blob: b98a6c5bd50b078c6fd28a9d872a1f42e6433038 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000844ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000845EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000846BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000847CXX
848CXXFLAGS
849ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000882OCAMLC
883OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000884OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000885OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000886GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000900LLVMGCC
901LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000902USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000903HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000925BINDINGS_TO_BUILD
926ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000927OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000928ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000929RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000930RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000931LIBOBJS
932LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000933ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000949projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000950projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000951projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000952projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000958projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000986# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000995includedir='${prefix}/include'
996oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001006
1007ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001008ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001013 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=
1015 continue
1016 fi
1017
Reid Spencera773bd52006-08-04 18:18:08 +00001018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001050 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001052 datadir=$ac_optarg ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
John Criswell7a73b802003-06-30 21:59:07 +00001061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
Reid Spencera773bd52006-08-04 18:18:08 +00001114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
John Criswell7a73b802003-06-30 21:59:07 +00001120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
Reid Spencera773bd52006-08-04 18:18:08 +00001144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
John Criswell7a73b802003-06-30 21:59:07 +00001149 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001150 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
Reid Spencera773bd52006-08-04 18:18:08 +00001218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
John Criswell7a73b802003-06-30 21:59:07 +00001228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001293 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001324 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
Reid Spencera773bd52006-08-04 18:18:08 +00001344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001349do
Reid Spencera773bd52006-08-04 18:18:08 +00001350 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001351 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001354 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
Reid Spencera773bd52006-08-04 18:18:08 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
John Criswell7a73b802003-06-30 21:59:07 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001402echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001421 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001461\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
John Criswell7a73b802003-06-30 21:59:07 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-optimized
David Greene2a5a12c2009-04-17 14:50:39 +00001535 --enable-profiling
Reid Spencer54d14482006-04-07 16:01:51 +00001536 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001537 --enable-expensive-checks
1538
Reid Spencer8b2e1412006-11-17 03:32:33 +00001539 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001541 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001542 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001543 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001544 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001545 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001546 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001551 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001554 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001556 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001558 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001559 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001566 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 searches PATH)
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001570 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001573 --with-binutils-include Specify path to binutils/include/ containing
1574 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001575 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001579 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001580 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001581
1582Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001583 CC C compiler command
1584 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001589 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001592 CXXCPP C++ preprocessor
1593 F77 Fortran 77 compiler command
1594 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001595
1596Use these variables to override the choices made by `configure' or to help
1597it to find libraries and programs with nonstandard names/locations.
1598
1599Report bugs to <llvmbugs@cs.uiuc.edu>.
1600_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001601ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001607 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001608 ac_builddir=.
1609
Reid Spencera773bd52006-08-04 18:18:08 +00001610case "$ac_dir" in
1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612*)
John Criswell7a73b802003-06-30 21:59:07 +00001613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620esac
1621ac_abs_top_builddir=$ac_pwd
1622ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623# for backward compatibility:
1624ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001627 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001628 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001639esac
Reid Spencera773bd52006-08-04 18:18:08 +00001640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001641
Reid Spencera773bd52006-08-04 18:18:08 +00001642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001650 else
1651 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001654 done
1655fi
1656
Reid Spencera773bd52006-08-04 18:18:08 +00001657test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001658if $ac_init_version; then
1659 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001660llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001661generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001662
Reid Spencera773bd52006-08-04 18:18:08 +00001663Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001667
Tanya Lattnercf067672008-01-17 05:57:22 +00001668Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001670 exit
John Criswell7a73b802003-06-30 21:59:07 +00001671fi
Reid Spencera773bd52006-08-04 18:18:08 +00001672cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001673This file contains any messages produced by compilers while
1674running configure, to aid debugging if configure makes a mistake.
1675
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001676It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001677generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001678
1679 $ $0 $@
1680
1681_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001682exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001683{
1684cat <<_ASUNAME
1685## --------- ##
1686## Platform. ##
1687## --------- ##
1688
1689hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694
1695/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697
1698/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1699/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1700/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001701/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001702/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1703/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1704/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705
1706_ASUNAME
1707
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 echo "PATH: $as_dir"
1714done
Reid Spencera773bd52006-08-04 18:18:08 +00001715IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001716
1717} >&5
1718
1719cat >&5 <<_ACEOF
1720
1721
1722## ----------- ##
1723## Core tests. ##
1724## ----------- ##
1725
1726_ACEOF
1727
1728
1729# Keep a trace of the command line.
1730# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001731# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001732# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001734ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001735ac_configure_args0=
1736ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_must_keep_next=false
1738for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001739do
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 for ac_arg
1741 do
1742 case $ac_arg in
1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745 | -silent | --silent | --silen | --sile | --sil)
1746 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001747 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 esac
1750 case $ac_pass in
1751 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752 2)
1753 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1754 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001755 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001756 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 case $ac_arg in
1758 *=* | --config-cache | -C | -disable-* | --disable-* \
1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761 | -with-* | --with-* | -without-* | --without-* | --x)
1762 case "$ac_configure_args0 " in
1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 esac
1765 ;;
1766 -* ) ac_must_keep_next=true ;;
1767 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001768 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001769 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ;;
1771 esac
1772 done
John Criswell7a73b802003-06-30 21:59:07 +00001773done
John Criswell0c38eaf2003-09-10 15:17:25 +00001774$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1775$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 +00001776
1777# When interrupted or exit'd, cleanup temporary files, and complete
1778# config.log. We remove comments because anyway the quotes in there
1779# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001780# WARNING: Use '\'' to represent an apostrophe within the trap.
1781# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001782trap 'exit_status=$?
1783 # Save into config.log some information that might help in debugging.
1784 {
1785 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787 cat <<\_ASBOX
1788## ---------------- ##
1789## Cache variables. ##
1790## ---------------- ##
1791_ASBOX
1792 echo
1793 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001794(
1795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1796 eval ac_val=\$$ac_var
1797 case $ac_val in #(
1798 *${as_nl}*)
1799 case $ac_var in #(
1800 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1801echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1802 esac
1803 case $ac_var in #(
1804 _ | IFS | as_nl) ;; #(
1805 *) $as_unset $ac_var ;;
1806 esac ;;
1807 esac
1808 done
John Criswell7a73b802003-06-30 21:59:07 +00001809 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001812 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001816 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001818 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001819 esac |
1820 sort
1821)
John Criswell7a73b802003-06-30 21:59:07 +00001822 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001823
1824 cat <<\_ASBOX
1825## ----------------- ##
1826## Output variables. ##
1827## ----------------- ##
1828_ASBOX
1829 echo
1830 for ac_var in $ac_subst_vars
1831 do
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001837 done | sort
1838 echo
1839
1840 if test -n "$ac_subst_files"; then
1841 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001842## ------------------- ##
1843## File substitutions. ##
1844## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001845_ASBOX
1846 echo
1847 for ac_var in $ac_subst_files
1848 do
Reid Spencera773bd52006-08-04 18:18:08 +00001849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001854 done | sort
1855 echo
1856 fi
1857
John Criswell7a73b802003-06-30 21:59:07 +00001858 if test -s confdefs.h; then
1859 cat <<\_ASBOX
1860## ----------- ##
1861## confdefs.h. ##
1862## ----------- ##
1863_ASBOX
1864 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001865 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001866 echo
1867 fi
1868 test "$ac_signal" != 0 &&
1869 echo "$as_me: caught signal $ac_signal"
1870 echo "$as_me: exit $exit_status"
1871 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001874 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001875' 0
John Criswell7a73b802003-06-30 21:59:07 +00001876for ac_signal in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878done
1879ac_signal=0
1880
1881# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001882rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001883
1884# Predefined preprocessor variables.
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_NAME "$PACKAGE_NAME"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_VERSION "$PACKAGE_VERSION"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_STRING "$PACKAGE_STRING"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908_ACEOF
1909
1910
1911# Let the site file select an alternate cache file if it wants to.
1912# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001913if test -n "$CONFIG_SITE"; then
1914 set x "$CONFIG_SITE"
1915elif test "x$prefix" != xNONE; then
1916 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1917else
1918 set x "$ac_default_prefix/share/config.site" \
1919 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001920fi
Reid Spencera773bd52006-08-04 18:18:08 +00001921shift
1922for ac_site_file
1923do
John Criswell7a73b802003-06-30 21:59:07 +00001924 if test -r "$ac_site_file"; then
1925 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926echo "$as_me: loading site script $ac_site_file" >&6;}
1927 sed 's/^/| /' "$ac_site_file" >&5
1928 . "$ac_site_file"
1929 fi
1930done
1931
1932if test -r "$cache_file"; then
1933 # Some versions of bash will fail to source /dev/null (special
1934 # files actually), so we avoid doing that.
1935 if test -f "$cache_file"; then
1936 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937echo "$as_me: loading cache $cache_file" >&6;}
1938 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001941 esac
1942 fi
1943else
1944 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945echo "$as_me: creating cache $cache_file" >&6;}
1946 >$cache_file
1947fi
1948
1949# Check that the precious variables saved in the cache have kept the same
1950# value.
1951ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001952for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001969 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001970echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001976 fi;;
1977 esac
1978 # Pass precious variables to config.status.
1979 if test "$ac_new_set" = set; then
1980 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001981 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001982 *) ac_arg=$ac_var=$ac_new_val ;;
1983 esac
1984 case " $ac_configure_args " in
1985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1986 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1987 esac
1988 fi
1989done
1990if $ac_cache_corrupted; then
1991 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1992echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1993 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1994echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1995 { (exit 1); exit 1; }; }
1996fi
1997
Reid Spencera773bd52006-08-04 18:18:08 +00001998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
John Criswell7a73b802003-06-30 21:59:07 +00002022ac_ext=c
2023ac_cpp='$CPP $CPPFLAGS'
2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027
2028
2029
Tanya Lattnercf067672008-01-17 05:57:22 +00002030LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002031
2032
2033
2034
2035
2036
2037
John Criswell7a73b802003-06-30 21:59:07 +00002038ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002039for ac_dir in autoconf "$srcdir"/autoconf; do
2040 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/install-sh -c"
2043 break
Reid Spencera773bd52006-08-04 18:18:08 +00002044 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install.sh -c"
2047 break
Reid Spencera773bd52006-08-04 18:18:08 +00002048 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/shtool install -c"
2051 break
2052 fi
2053done
2054if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002055 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2056echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002057 { (exit 1); exit 1; }; }
2058fi
Reid Spencera773bd52006-08-04 18:18:08 +00002059
2060# These three variables are undocumented and unsupported,
2061# and are intended to be withdrawn in a future Autoconf release.
2062# They can cause serious problems if a builder's source tree is in a directory
2063# whose full name contains unusual characters.
2064ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2065ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2066ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068
John Criswell392aaa32003-07-22 19:18:09 +00002069
Reid Spencer2706f8c2004-09-19 23:53:36 +00002070if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2072 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002073echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2074 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075 fi
John Criswell93e1c722003-09-15 17:04:06 +00002076fi
2077
John Criswell33a911a2003-11-25 20:36:46 +00002078for i in `ls ${srcdir}/projects`
2079do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080 if test -d ${srcdir}/projects/${i} ; then
2081 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 CVS) ;;
2083 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002089 # llvm-test is the old name of the test-suite, kept here for backwards
2090 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002091 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002093 test-suite) subdirs="$subdirs projects/test-suite"
2094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002104 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002105 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002108 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002110 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2111echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002112 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002113 esac
John Criswell33a911a2003-11-25 20:36:46 +00002114 fi
2115done
John Criswell559a6c12003-09-30 16:31:48 +00002116
John Criswell7a73b802003-06-30 21:59:07 +00002117
2118# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002119$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2120 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2121echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002122 { (exit 1); exit 1; }; }
2123
Reid Spencera773bd52006-08-04 18:18:08 +00002124{ echo "$as_me:$LINENO: checking build system type" >&5
2125echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002126if test "${ac_cv_build+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
Reid Spencera773bd52006-08-04 18:18:08 +00002129 ac_build_alias=$build_alias
2130test "x$ac_build_alias" = x &&
2131 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2132test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002133 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2134echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2135 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2138echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002139 { (exit 1); exit 1; }; }
2140
2141fi
Reid Spencera773bd52006-08-04 18:18:08 +00002142{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2143echo "${ECHO_T}$ac_cv_build" >&6; }
2144case $ac_cv_build in
2145*-*-*) ;;
2146*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2147echo "$as_me: error: invalid value of canonical build" >&2;}
2148 { (exit 1); exit 1; }; };;
2149esac
John Criswell7a73b802003-06-30 21:59:07 +00002150build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002151ac_save_IFS=$IFS; IFS='-'
2152set x $ac_cv_build
2153shift
2154build_cpu=$1
2155build_vendor=$2
2156shift; shift
2157# Remember, the first character of IFS is used to create $*,
2158# except with old shells:
2159build_os=$*
2160IFS=$ac_save_IFS
2161case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002162
2163
Reid Spencera773bd52006-08-04 18:18:08 +00002164{ echo "$as_me:$LINENO: checking host system type" >&5
2165echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002166if test "${ac_cv_host+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
Reid Spencera773bd52006-08-04 18:18:08 +00002169 if test "x$host_alias" = x; then
2170 ac_cv_host=$ac_cv_build
2171else
2172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2174echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002175 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002176fi
John Criswell7a73b802003-06-30 21:59:07 +00002177
2178fi
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2180echo "${ECHO_T}$ac_cv_host" >&6; }
2181case $ac_cv_host in
2182*-*-*) ;;
2183*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2184echo "$as_me: error: invalid value of canonical host" >&2;}
2185 { (exit 1); exit 1; }; };;
2186esac
John Criswell7a73b802003-06-30 21:59:07 +00002187host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_host
2190shift
2191host_cpu=$1
2192host_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196host_os=$*
2197IFS=$ac_save_IFS
2198case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: checking target system type" >&5
2202echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002203if test "${ac_cv_target+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
Reid Spencera773bd52006-08-04 18:18:08 +00002206 if test "x$target_alias" = x; then
2207 ac_cv_target=$ac_cv_host
2208else
2209 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2210 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2211echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002212 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002213fi
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215fi
Reid Spencera773bd52006-08-04 18:18:08 +00002216{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2217echo "${ECHO_T}$ac_cv_target" >&6; }
2218case $ac_cv_target in
2219*-*-*) ;;
2220*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2221echo "$as_me: error: invalid value of canonical target" >&2;}
2222 { (exit 1); exit 1; }; };;
2223esac
John Criswell7a73b802003-06-30 21:59:07 +00002224target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002225ac_save_IFS=$IFS; IFS='-'
2226set x $ac_cv_target
2227shift
2228target_cpu=$1
2229target_vendor=$2
2230shift; shift
2231# Remember, the first character of IFS is used to create $*,
2232# except with old shells:
2233target_os=$*
2234IFS=$ac_save_IFS
2235case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002236
2237
2238# The aliases save the names the user supplied, while $host etc.
2239# will get canonicalized.
2240test -n "$target_alias" &&
2241 test "$program_prefix$program_suffix$program_transform_name" = \
2242 NONENONEs,x,x, &&
2243 program_prefix=${target_alias}-
2244
Reid Spencera773bd52006-08-04 18:18:08 +00002245{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2246echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002250 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254 llvm_cv_os_type="AIX"
2255 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002256 *-*-irix*)
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="IRIX"
2260 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002264 llvm_cv_os_type="Cygwin"
2265 llvm_cv_platform_type="Unix" ;;
2266 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002268 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="Darwin"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 llvm_cv_os_type="FreeBSD"
2275 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002276 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002279 llvm_cv_os_type="OpenBSD"
2280 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002281 *-*-netbsd*)
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="NetBSD"
2285 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002286 *-*-dragonfly*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="DragonFly"
2290 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002291 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002294 llvm_cv_os_type="HP-UX"
2295 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="Interix"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="Linux"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,-z,allextract"
2308 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="SunOS"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 llvm_cv_os_type="Win32"
2315 llvm_cv_platform_type="Win32" ;;
2316 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 llvm_cv_os_type="MingW"
2320 llvm_cv_platform_type="Win32" ;;
2321 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option=""
2323 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 llvm_cv_os_type="Unknown"
2325 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002326esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002327fi
Reid Spencera773bd52006-08-04 18:18:08 +00002328{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2329echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331if test "$llvm_cv_os_type" = "Unknown" ; then
2332 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2333echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002334 { (exit 1); exit 1; }; }
2335fi
2336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002338
2339
Reid Spencera773bd52006-08-04 18:18:08 +00002340LINKALL=$llvm_cv_link_all_option
2341
2342NOLINKALL=$llvm_cv_no_link_all_option
2343
2344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345case $llvm_cv_platform_type in
2346 Unix)
2347
2348cat >>confdefs.h <<\_ACEOF
2349#define LLVM_ON_UNIX 1
2350_ACEOF
2351
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002352 LLVM_ON_UNIX=1
2353
2354 LLVM_ON_WIN32=0
2355
Reid Spencer7b3e8512004-12-24 06:29:05 +00002356 ;;
2357 Win32)
2358
2359cat >>confdefs.h <<\_ACEOF
2360#define LLVM_ON_WIN32 1
2361_ACEOF
2362
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002363 LLVM_ON_UNIX=0
2364
2365 LLVM_ON_WIN32=1
2366
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367 ;;
2368esac
2369
Reid Spencera773bd52006-08-04 18:18:08 +00002370{ echo "$as_me:$LINENO: checking target architecture" >&5
2371echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372if test "${llvm_cv_target_arch+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002376 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002377 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002378 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2379 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002380 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002381 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002382 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002383 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002384 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002385 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002386 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002387esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388fi
Reid Spencera773bd52006-08-04 18:18:08 +00002389{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2390echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392if test "$llvm_cv_target_arch" = "Unknown" ; then
2393 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2394echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2395fi
John Criswell76595452003-07-01 22:07:39 +00002396
Bill Wendlinga0833352009-03-12 04:10:09 +00002397ARCH=$llvm_cv_target_arch
2398
2399
2400ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002405if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2407set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002422 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 +00002423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427done
2428done
Reid Spencera773bd52006-08-04 18:18:08 +00002429IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430
2431fi
2432fi
2433CC=$ac_cv_prog_CC
2434if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002435 { echo "$as_me:$LINENO: result: $CC" >&5
2436echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: no" >&5
2439echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440fi
2441
Reid Spencera773bd52006-08-04 18:18:08 +00002442
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443fi
2444if test -z "$ac_cv_prog_CC"; then
2445 ac_ct_CC=$CC
2446 # Extract the first word of "gcc", so it can be a program name with args.
2447set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453 if test -n "$ac_ct_CC"; then
2454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002462 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 +00002463 ac_cv_prog_ac_ct_CC="gcc"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467done
2468done
Reid Spencera773bd52006-08-04 18:18:08 +00002469IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470
2471fi
2472fi
2473ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002475 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477else
Reid Spencera773bd52006-08-04 18:18:08 +00002478 { echo "$as_me:$LINENO: result: no" >&5
2479echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480fi
2481
Reid Spencera773bd52006-08-04 18:18:08 +00002482 if test "x$ac_ct_CC" = x; then
2483 CC=""
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486yes:)
2487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488whose name does not start with the host triplet. If you think this
2489configuration is useful to you, please write to autoconf@gnu.org." >&5
2490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493ac_tool_warned=yes ;;
2494esac
2495 CC=$ac_ct_CC
2496 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497else
2498 CC="$ac_cv_prog_CC"
2499fi
2500
2501if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002502 if test -n "$ac_tool_prefix"; then
2503 # 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 +00002504set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507if test "${ac_cv_prog_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002519 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 +00002520 ac_cv_prog_CC="${ac_tool_prefix}cc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524done
2525done
Reid Spencera773bd52006-08-04 18:18:08 +00002526IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527
2528fi
2529fi
2530CC=$ac_cv_prog_CC
2531if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002532 { echo "$as_me:$LINENO: result: $CC" >&5
2533echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
Reid Spencera773bd52006-08-04 18:18:08 +00002535 { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537fi
2538
Reid Spencera773bd52006-08-04 18:18:08 +00002539
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541fi
2542if test -z "$CC"; then
2543 # Extract the first word of "cc", so it can be a program name with args.
2544set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2552else
2553 ac_prog_rejected=no
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002560 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 +00002561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562 ac_prog_rejected=yes
2563 continue
2564 fi
2565 ac_cv_prog_CC="cc"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569done
2570done
Reid Spencera773bd52006-08-04 18:18:08 +00002571IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572
2573if test $ac_prog_rejected = yes; then
2574 # We found a bogon in the path, so make sure we never use it.
2575 set dummy $ac_cv_prog_CC
2576 shift
2577 if test $# != 0; then
2578 # We chose a different compiler from the bogus one.
2579 # However, it has the same basename, so the bogon will be chosen
2580 # first if we set CC to just the basename; use the full file name.
2581 shift
2582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2583 fi
2584fi
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002589 { echo "$as_me:$LINENO: result: $CC" >&5
2590echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002591else
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594fi
2595
Reid Spencera773bd52006-08-04 18:18:08 +00002596
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597fi
2598if test -z "$CC"; then
2599 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002600 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002601 do
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002618 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 +00002619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623done
2624done
Reid Spencera773bd52006-08-04 18:18:08 +00002625IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002626
2627fi
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629CC=$ac_cv_prog_CC
2630if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: $CC" >&5
2632echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002633else
Reid Spencera773bd52006-08-04 18:18:08 +00002634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636fi
2637
Reid Spencera773bd52006-08-04 18:18:08 +00002638
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002640 done
2641fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642if test -z "$CC"; then
2643 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002644 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002645do
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002662 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 +00002663 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667done
2668done
Reid Spencera773bd52006-08-04 18:18:08 +00002669IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002670
2671fi
2672fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002675 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002677else
Reid Spencera773bd52006-08-04 18:18:08 +00002678 { echo "$as_me:$LINENO: result: no" >&5
2679echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002680fi
2681
Reid Spencera773bd52006-08-04 18:18:08 +00002682
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002684done
John Criswell7a73b802003-06-30 21:59:07 +00002685
Reid Spencera773bd52006-08-04 18:18:08 +00002686 if test "x$ac_ct_CC" = x; then
2687 CC=""
2688 else
2689 case $cross_compiling:$ac_tool_warned in
2690yes:)
2691{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2692whose name does not start with the host triplet. If you think this
2693configuration is useful to you, please write to autoconf@gnu.org." >&5
2694echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet. If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2697ac_tool_warned=yes ;;
2698esac
2699 CC=$ac_ct_CC
2700 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701fi
2702
John Criswell7a73b802003-06-30 21:59:07 +00002703fi
2704
2705
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." >&5
2708echo "$as_me: error: no acceptable C compiler found in \$PATH
2709See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2711
John Criswell7a73b802003-06-30 21:59:07 +00002712# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002713echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002714ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002715{ (ac_try="$ac_compiler --version >&5"
2716case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002725{ (ac_try="$ac_compiler -v >&5"
2726case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002735{ (ac_try="$ac_compiler -V >&5"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745
2746cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002752
John Criswell7a73b802003-06-30 21:59:07 +00002753int
2754main ()
2755{
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002762ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002763# Try to create an executable without -o first, disregard a.out.
2764# It will help us diagnose broken compilers, and finding out an intuition
2765# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002766{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2767echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002768ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002769#
2770# List of possible output files, starting from the most likely.
2771# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2772# only as a last resort. b.out is created by i960 compilers.
2773ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2774#
2775# The IRIX 6 linker writes into existing files which may not be
2776# executable, retaining their permissions. Remove them first so a
2777# subsequent execution test works.
2778ac_rmfiles=
2779for ac_file in $ac_files
2780do
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784 esac
2785done
2786rm -f $ac_rmfiles
2787
2788if { (ac_try="$ac_link_default"
2789case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792esac
2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2799# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2800# in a Makefile. We should not override ac_cv_exeext if it was cached,
2801# so that the user can short-circuit this test for compilers unknown to
2802# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002803for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002804do
2805 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002806 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 # We found the default executable, but exeext='' is most
2811 # certainly right.
2812 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002813 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2815 then :; else
2816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817 fi
2818 # We set ac_cv_exeext here because the later test for it is not
2819 # safe: cross compilers may not add the suffix if given an `-o'
2820 # argument, so we may need to know it at that point already.
2821 # Even if this section looks crufty: it has the advantage of
2822 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002823 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002824 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002825 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002826 esac
2827done
Reid Spencera773bd52006-08-04 18:18:08 +00002828test "$ac_cv_exeext" = no && ac_cv_exeext=
2829
John Criswell7a73b802003-06-30 21:59:07 +00002830else
2831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002832sed 's/^/| /' conftest.$ac_ext >&5
2833
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002834{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002835See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002836echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002837See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002838 { (exit 77); exit 77; }; }
2839fi
2840
2841ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002842{ echo "$as_me:$LINENO: result: $ac_file" >&5
2843echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002844
Reid Spencera773bd52006-08-04 18:18:08 +00002845# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002846# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002847{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850# If not cross compiling, check that we can run a simple program.
2851if test "$cross_compiling" != yes; then
2852 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002853 { (case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 cross_compiling=no
2863 else
2864 if test "$cross_compiling" = maybe; then
2865 cross_compiling=yes
2866 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002867 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002868If you meant to cross compile, use \`--host'.
2869See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002870echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002873 { (exit 1); exit 1; }; }
2874 fi
2875 fi
2876fi
Reid Spencera773bd52006-08-04 18:18:08 +00002877{ echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879
John Criswell0c38eaf2003-09-10 15:17:25 +00002880rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002881ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002882# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002883# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002884{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2885echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2886{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2887echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002888
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2890echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2891if { (ac_try="$ac_link"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2903# work properly (i.e., refer to `conftest.exe'), while it won't with
2904# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002905for ac_file in conftest.exe conftest conftest.*; do
2906 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002907 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002910 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002911 * ) break;;
2912 esac
2913done
2914else
John Criswell0c38eaf2003-09-10 15:17:25 +00002915 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." >&5
2917echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2918See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002919 { (exit 1); exit 1; }; }
2920fi
2921
2922rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002923{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2924echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002925
2926rm -f conftest.$ac_ext
2927EXEEXT=$ac_cv_exeext
2928ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002929{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2930echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002931if test "${ac_cv_objext+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002940
John Criswell7a73b802003-06-30 21:59:07 +00002941int
2942main ()
2943{
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002960 for ac_file in conftest.o conftest.obj conftest.*; do
2961 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002962 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002964 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965 break;;
2966 esac
2967done
2968else
2969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2973See \`config.log' for more details." >&5
2974echo "$as_me: error: cannot compute suffix of object files: cannot compile
2975See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002976 { (exit 1); exit 1; }; }
2977fi
2978
2979rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980fi
Reid Spencera773bd52006-08-04 18:18:08 +00002981{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2982echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002983OBJEXT=$ac_cv_objext
2984ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002985{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2986echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002987if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002996
John Criswell7a73b802003-06-30 21:59:07 +00002997int
2998main ()
2999{
3000#ifndef __GNUC__
3001 choke me
3002#endif
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003009if { (ac_try="$ac_compile"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3023 { (case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_try") 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003042 ac_compiler_gnu=yes
3043else
3044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003045sed 's/^/| /' conftest.$ac_ext >&5
3046
Reid Spencera773bd52006-08-04 18:18:08 +00003047 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003048fi
Reid Spencera773bd52006-08-04 18:18:08 +00003049
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003051ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003052
3053fi
Reid Spencera773bd52006-08-04 18:18:08 +00003054{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056GCC=`test $ac_compiler_gnu = yes && echo yes`
3057ac_test_CFLAGS=${CFLAGS+set}
3058ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003059{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3060echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
Reid Spencera773bd52006-08-04 18:18:08 +00003064 ac_save_c_werror_flag=$ac_c_werror_flag
3065 ac_c_werror_flag=yes
3066 ac_cv_prog_cc_g=no
3067 CFLAGS="-g"
3068 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003074
John Criswell7a73b802003-06-30 21:59:07 +00003075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003117 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003118else
3119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003120sed 's/^/| /' conftest.$ac_ext >&5
3121
Reid Spencera773bd52006-08-04 18:18:08 +00003122 CFLAGS=""
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003172 :
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3178 CFLAGS="-g"
3179 cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185
3186int
3187main ()
3188{
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext
3195if { (ac_try="$ac_compile"
3196case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_try") 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003228 ac_cv_prog_cc_g=yes
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233
John Criswell7a73b802003-06-30 21:59:07 +00003234fi
Reid Spencera773bd52006-08-04 18:18:08 +00003235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003237fi
Reid Spencera773bd52006-08-04 18:18:08 +00003238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3244fi
3245{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3251 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003252 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003254 fi
3255else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 if test "$GCC" = yes; then
3257 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003258 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003260 fi
3261fi
Reid Spencera773bd52006-08-04 18:18:08 +00003262{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3264if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
Reid Spencera773bd52006-08-04 18:18:08 +00003267 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268ac_save_CC=$CC
3269cat >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#include <stdarg.h>
3276#include <stdio.h>
3277#include <sys/types.h>
3278#include <sys/stat.h>
3279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280struct buf { int x; };
3281FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282static char *e (p, i)
3283 char **p;
3284 int i;
3285{
3286 return p[i];
3287}
3288static char *f (char * (*g) (char **, int), char **p, ...)
3289{
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3296}
3297
3298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003301 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003304 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306
Reid Spencera773bd52006-08-04 18:18:08 +00003307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309#define FOO(x) 'x'
3310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312int test (int i, double x);
3313struct s1 {int (*f) (int a);};
3314struct s2 {int (*f) (double a);};
3315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316int argc;
3317char **argv;
3318int
3319main ()
3320{
3321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 ;
3323 return 0;
3324}
3325_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328do
3329 CC="$ac_save_CC $ac_arg"
3330 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003364 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365else
3366 echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
Reid Spencera773bd52006-08-04 18:18:08 +00003369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370fi
Reid Spencera773bd52006-08-04 18:18:08 +00003371
3372rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374done
Reid Spencera773bd52006-08-04 18:18:08 +00003375rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376CC=$ac_save_CC
3377
3378fi
Reid Spencera773bd52006-08-04 18:18:08 +00003379# AC_CACHE_VAL
3380case "x$ac_cv_prog_cc_c89" in
3381 x)
3382 { echo "$as_me:$LINENO: result: none needed" >&5
3383echo "${ECHO_T}none needed" >&6; } ;;
3384 xno)
3385 { echo "$as_me:$LINENO: result: unsupported" >&5
3386echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003388 CC="$CC $ac_cv_prog_cc_c89"
3389 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3390echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391esac
3392
John Criswell0c38eaf2003-09-10 15:17:25 +00003393
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401ac_ext=c
3402ac_cpp='$CPP $CPPFLAGS'
3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003406{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3407echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408# On Suns, sometimes $CPP names a directory.
3409if test -n "$CPP" && test -d "$CPP"; then
3410 CPP=
3411fi
3412if test -z "$CPP"; then
3413 if test "${ac_cv_prog_CPP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 # Double quotes because CPP needs to be expanded
3417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3418 do
3419 ac_preproc_ok=false
3420for ac_c_preproc_warn_flag in '' yes
3421do
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434#ifdef __STDC__
3435# include <limits.h>
3436#else
3437# include <assert.h>
3438#endif
3439 Syntax error
3440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003441if { (ac_try="$ac_cpp conftest.$ac_ext"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3459 fi
3460else
3461 ac_cpp_err=yes
3462fi
3463if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464 :
3465else
3466 echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Broken: fails on valid input.
3470continue
3471fi
Reid Spencera773bd52006-08-04 18:18:08 +00003472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473rm -f conftest.err conftest.$ac_ext
3474
Reid Spencera773bd52006-08-04 18:18:08 +00003475 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476 # can be detected and how.
3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483#include <ac_nonexistent.h>
3484_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003485if { (ac_try="$ac_cpp conftest.$ac_ext"
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
3490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003497 (exit $ac_status); } >/dev/null; then
3498 if test -s conftest.err; then
3499 ac_cpp_err=$ac_c_preproc_warn_flag
3500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501 else
3502 ac_cpp_err=
3503 fi
3504else
3505 ac_cpp_err=yes
3506fi
3507if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508 # Broken: success on invalid input.
3509continue
3510else
3511 echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 # Passes both tests.
3515ac_preproc_ok=:
3516break
3517fi
Reid Spencera773bd52006-08-04 18:18:08 +00003518
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003519rm -f conftest.err conftest.$ac_ext
3520
3521done
3522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523rm -f conftest.err conftest.$ac_ext
3524if $ac_preproc_ok; then
3525 break
3526fi
3527
3528 done
3529 ac_cv_prog_CPP=$CPP
3530
3531fi
3532 CPP=$ac_cv_prog_CPP
3533else
3534 ac_cv_prog_CPP=$CPP
3535fi
Reid Spencera773bd52006-08-04 18:18:08 +00003536{ echo "$as_me:$LINENO: result: $CPP" >&5
3537echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538ac_preproc_ok=false
3539for ac_c_preproc_warn_flag in '' yes
3540do
3541 # Use a header file that comes with gcc, so configuring glibc
3542 # with a fresh cross-compiler works.
3543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3544 # <limits.h> exists even on freestanding compilers.
3545 # On the NeXT, cc -E runs the code through the compiler's parser,
3546 # not just through cpp. "Syntax error" is here to catch this case.
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553#ifdef __STDC__
3554# include <limits.h>
3555#else
3556# include <assert.h>
3557#endif
3558 Syntax error
3559_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003560if { (ac_try="$ac_cpp conftest.$ac_ext"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576 else
3577 ac_cpp_err=
3578 fi
3579else
3580 ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583 :
3584else
3585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 # Broken: fails on valid input.
3589continue
3590fi
Reid Spencera773bd52006-08-04 18:18:08 +00003591
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592rm -f conftest.err conftest.$ac_ext
3593
Reid Spencera773bd52006-08-04 18:18:08 +00003594 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595 # can be detected and how.
3596 cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h. */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h. */
3602#include <ac_nonexistent.h>
3603_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003604if { (ac_try="$ac_cpp conftest.$ac_ext"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003616 (exit $ac_status); } >/dev/null; then
3617 if test -s conftest.err; then
3618 ac_cpp_err=$ac_c_preproc_warn_flag
3619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620 else
3621 ac_cpp_err=
3622 fi
3623else
3624 ac_cpp_err=yes
3625fi
3626if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627 # Broken: success on invalid input.
3628continue
3629else
3630 echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 # Passes both tests.
3634ac_preproc_ok=:
3635break
3636fi
Reid Spencera773bd52006-08-04 18:18:08 +00003637
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003638rm -f conftest.err conftest.$ac_ext
3639
3640done
3641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642rm -f conftest.err conftest.$ac_ext
3643if $ac_preproc_ok; then
3644 :
3645else
3646 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details." >&5
3648echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3649See \`config.log' for more details." >&2;}
3650 { (exit 1); exit 1; }; }
3651fi
3652
John Criswell7a73b802003-06-30 21:59:07 +00003653ac_ext=c
3654ac_cpp='$CPP $CPPFLAGS'
3655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658
John Criswell7a73b802003-06-30 21:59:07 +00003659
Reid Spencera773bd52006-08-04 18:18:08 +00003660{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3661echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662if test "${ac_cv_path_GREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
Reid Spencera773bd52006-08-04 18:18:08 +00003665 # Extract the first word of "grep ggrep" to use in msg output
3666if test -z "$GREP"; then
3667set dummy grep ggrep; ac_prog_name=$2
3668if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
Reid Spencera773bd52006-08-04 18:18:08 +00003671 ac_path_GREP_found=false
3672# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003674for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003675do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003678 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003681 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003682 # Check for GNU ac_path_GREP and select it if it is found.
3683 # Check for GNU $ac_path_GREP
3684case `"$ac_path_GREP" --version 2>&1` in
3685*GNU*)
3686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687*)
3688 ac_count=0
3689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690 while :
3691 do
3692 cat "conftest.in" "conftest.in" >"conftest.tmp"
3693 mv "conftest.tmp" "conftest.in"
3694 cp "conftest.in" "conftest.nl"
3695 echo 'GREP' >> "conftest.nl"
3696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698 ac_count=`expr $ac_count + 1`
3699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3700 # Best one so far, save it but keep looking for a better one
3701 ac_cv_path_GREP="$ac_path_GREP"
3702 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003703 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003704 # 10*(2^10) chars as input seems more than enough
3705 test $ac_count -gt 10 && break
3706 done
3707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708esac
3709
3710
3711 $ac_path_GREP_found && break 3
3712 done
3713done
3714
3715done
3716IFS=$as_save_IFS
3717
3718
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003719fi
Reid Spencera773bd52006-08-04 18:18:08 +00003720
3721GREP="$ac_cv_path_GREP"
3722if test -z "$GREP"; then
3723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3724echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3725 { (exit 1); exit 1; }; }
3726fi
3727
3728else
3729 ac_cv_path_GREP=$GREP
3730fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003731
John Criswell7a73b802003-06-30 21:59:07 +00003732
Reid Spencera773bd52006-08-04 18:18:08 +00003733fi
3734{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3735echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3736 GREP="$ac_cv_path_GREP"
3737
3738
3739{ echo "$as_me:$LINENO: checking for egrep" >&5
3740echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3745 then ac_cv_path_EGREP="$GREP -E"
3746 else
3747 # Extract the first word of "egrep" to use in msg output
3748if test -z "$EGREP"; then
3749set dummy egrep; ac_prog_name=$2
3750if test "${ac_cv_path_EGREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 ac_path_EGREP_found=false
3754# Loop through the user's path and test for each of PROGNAME-LIST
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_prog in egrep; do
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003763 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003764 # Check for GNU ac_path_EGREP and select it if it is found.
3765 # Check for GNU $ac_path_EGREP
3766case `"$ac_path_EGREP" --version 2>&1` in
3767*GNU*)
3768 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769*)
3770 ac_count=0
3771 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 while :
3773 do
3774 cat "conftest.in" "conftest.in" >"conftest.tmp"
3775 mv "conftest.tmp" "conftest.in"
3776 cp "conftest.in" "conftest.nl"
3777 echo 'EGREP' >> "conftest.nl"
3778 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3780 ac_count=`expr $ac_count + 1`
3781 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3782 # Best one so far, save it but keep looking for a better one
3783 ac_cv_path_EGREP="$ac_path_EGREP"
3784 ac_path_EGREP_max=$ac_count
3785 fi
3786 # 10*(2^10) chars as input seems more than enough
3787 test $ac_count -gt 10 && break
3788 done
3789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3790esac
3791
3792
3793 $ac_path_EGREP_found && break 3
3794 done
3795done
3796
3797done
3798IFS=$as_save_IFS
3799
3800
3801fi
3802
3803EGREP="$ac_cv_path_EGREP"
3804if test -z "$EGREP"; then
3805 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3806echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3807 { (exit 1); exit 1; }; }
3808fi
3809
3810else
3811 ac_cv_path_EGREP=$EGREP
3812fi
3813
3814
3815 fi
3816fi
3817{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3818echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3819 EGREP="$ac_cv_path_EGREP"
3820
3821
3822{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3823echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003824if test "${ac_cv_header_stdc+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003833#include <stdlib.h>
3834#include <stdarg.h>
3835#include <string.h>
3836#include <float.h>
3837
John Criswell0c38eaf2003-09-10 15:17:25 +00003838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
John Criswell7a73b802003-06-30 21:59:07 +00003845_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003846rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003847if { (ac_try="$ac_compile"
3848case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
3865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874esac
3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003880 ac_cv_header_stdc=yes
3881else
3882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003883sed 's/^/| /' conftest.$ac_ext >&5
3884
Reid Spencera773bd52006-08-04 18:18:08 +00003885 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003886fi
Reid Spencera773bd52006-08-04 18:18:08 +00003887
3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003889
3890if test $ac_cv_header_stdc = yes; then
3891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003898#include <string.h>
3899
3900_ACEOF
3901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003902 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003903 :
3904else
3905 ac_cv_header_stdc=no
3906fi
3907rm -f conftest*
3908
3909fi
3910
3911if test $ac_cv_header_stdc = yes; then
3912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003914/* confdefs.h. */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003919#include <stdlib.h>
3920
3921_ACEOF
3922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003923 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003924 :
3925else
3926 ac_cv_header_stdc=no
3927fi
3928rm -f conftest*
3929
3930fi
3931
3932if test $ac_cv_header_stdc = yes; then
3933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934 if test "$cross_compiling" = yes; then
3935 :
3936else
3937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003943#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003944#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003945#if ((' ' & 0x0FF) == 0x020)
3946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3948#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003949# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954#endif
3955
3956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957int
3958main ()
3959{
3960 int i;
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003963 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003964 return 2;
3965 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003966}
3967_ACEOF
3968rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003969if { (ac_try="$ac_link"
3970case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003979 { (case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982esac
3983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 :
3989else
3990 echo "$as_me: program exited with status $ac_status" >&5
3991echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003992sed 's/^/| /' conftest.$ac_ext >&5
3993
John Criswell7a73b802003-06-30 21:59:07 +00003994( exit $ac_status )
3995ac_cv_header_stdc=no
3996fi
Reid Spencera773bd52006-08-04 18:18:08 +00003997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3998fi
3999
4000
John Criswell7a73b802003-06-30 21:59:07 +00004001fi
4002fi
Reid Spencera773bd52006-08-04 18:18:08 +00004003{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4004echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004005if test $ac_cv_header_stdc = yes; then
4006
4007cat >>confdefs.h <<\_ACEOF
4008#define STDC_HEADERS 1
4009_ACEOF
4010
4011fi
4012
Reid Spencera773bd52006-08-04 18:18:08 +00004013# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024 inttypes.h stdint.h unistd.h
4025do
4026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032 cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
4038$ac_includes_default
4039
4040#include <$ac_header>
4041_ACEOF
4042rm -f conftest.$ac_objext
4043if { (ac_try="$ac_compile"
4044case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4057 { (case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060esac
4061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_try") 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004076 eval "$as_ac_Header=yes"
4077else
4078 echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 eval "$as_ac_Header=no"
4082fi
4083
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085fi
4086ac_res=`eval echo '${'$as_ac_Header'}'`
4087 { echo "$as_me:$LINENO: result: $ac_res" >&5
4088echo "${ECHO_T}$ac_res" >&6; }
4089if test `eval echo '${'$as_ac_Header'}'` = yes; then
4090 cat >>confdefs.h <<_ACEOF
4091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092_ACEOF
4093
4094fi
4095
4096done
4097
4098
4099{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4100echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4101if test "${ac_cv_c_bigendian+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 # See if sys/param.h defines the BYTE_ORDER macro.
4105cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111#include <sys/types.h>
4112#include <sys/param.h>
4113
4114int
4115main ()
4116{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004117#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004118 bogus endian macros
4119#endif
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125rm -f conftest.$ac_objext
4126if { (ac_try="$ac_compile"
4127case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4140 { (case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_try") 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004159 # It does; now see whether it defined to BIG_ENDIAN or not.
4160cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
4166#include <sys/types.h>
4167#include <sys/param.h>
4168
4169int
4170main ()
4171{
4172#if BYTE_ORDER != BIG_ENDIAN
4173 not big endian
4174#endif
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (ac_try="$ac_compile"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004193 (exit $ac_status); } &&
4194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4195 { (case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_try") 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_try") 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004214 ac_cv_c_bigendian=yes
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ac_cv_c_bigendian=no
4220fi
4221
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 # It does not; compile a test program.
4228if test "$cross_compiling" = yes; then
4229 # try to guess the endianness by grepping values into an object file
4230 ac_cv_c_bigendian=unknown
4231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4238short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4239void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4240short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4241short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4242void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4243int
4244main ()
4245{
4246 _ascii (); _ebcdic ();
4247 ;
4248 return 0;
4249}
4250_ACEOF
4251rm -f conftest.$ac_objext
4252if { (ac_try="$ac_compile"
4253case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_compile") 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266 { (case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269esac
4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_try") 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4286 ac_cv_c_bigendian=yes
4287fi
4288if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4289 if test "$ac_cv_c_bigendian" = unknown; then
4290 ac_cv_c_bigendian=no
4291 else
4292 # finding both strings is unlikely to happen, but who knows?
4293 ac_cv_c_bigendian=unknown
4294 fi
4295fi
4296else
4297 echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300
4301fi
4302
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304else
4305 cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311$ac_includes_default
4312int
4313main ()
4314{
4315
4316 /* Are we little or big endian? From Harbison&Steele. */
4317 union
4318 {
4319 long int l;
4320 char c[sizeof (long int)];
4321 } u;
4322 u.l = 1;
4323 return u.c[sizeof (long int) - 1] == 1;
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329rm -f conftest$ac_exeext
4330if { (ac_try="$ac_link"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_link") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343esac
4344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_c_bigendian=no
4350else
4351 echo "$as_me: program exited with status $ac_status" >&5
4352echo "$as_me: failed program was:" >&5
4353sed 's/^/| /' conftest.$ac_ext >&5
4354
4355( exit $ac_status )
4356ac_cv_c_bigendian=yes
4357fi
4358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359fi
4360
4361
4362fi
4363
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365fi
4366{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4367echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4368case $ac_cv_c_bigendian in
4369 yes)
4370 ENDIAN=big
4371 ;;
4372 no)
4373 ENDIAN=little
4374 ;;
4375 *)
4376 { { echo "$as_me:$LINENO: error: unknown endianness
4377presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4378echo "$as_me: error: unknown endianness
4379presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4380 { (exit 1); exit 1; }; } ;;
4381esac
4382
4383
4384if test "$cross_compiling" = yes; then
4385 LLVM_CROSS_COMPILING=1
4386
4387
4388{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4389echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4390if test "${ac_cv_build_exeext+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4394 ac_cv_build_exeext=.exe
4395else
4396 ac_build_prefix=${build_alias}-
4397
4398 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4399set dummy ${ac_build_prefix}gcc; ac_word=$2
4400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405 if test -n "$BUILD_CC"; then
4406 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004414 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 +00004415 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420done
4421IFS=$as_save_IFS
4422
4423fi
4424fi
4425BUILD_CC=$ac_cv_prog_BUILD_CC
4426if test -n "$BUILD_CC"; then
4427 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4428echo "${ECHO_T}$BUILD_CC" >&6; }
4429else
4430 { echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6; }
4432fi
4433
4434
4435 if test -z "$BUILD_CC"; then
4436 # Extract the first word of "gcc", so it can be a program name with args.
4437set dummy gcc; ac_word=$2
4438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 if test -n "$BUILD_CC"; then
4444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004452 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 +00004453 ac_cv_prog_BUILD_CC="gcc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458done
4459IFS=$as_save_IFS
4460
4461fi
4462fi
4463BUILD_CC=$ac_cv_prog_BUILD_CC
4464if test -n "$BUILD_CC"; then
4465 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466echo "${ECHO_T}$BUILD_CC" >&6; }
4467else
4468 { echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6; }
4470fi
4471
4472
4473 if test -z "$BUILD_CC"; then
4474 # Extract the first word of "cc", so it can be a program name with args.
4475set dummy cc; ac_word=$2
4476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 if test -n "$BUILD_CC"; then
4482 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483else
4484 ac_prog_rejected=no
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004491 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 +00004492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4493 ac_prog_rejected=yes
4494 continue
4495 fi
4496 ac_cv_prog_BUILD_CC="cc"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4499 fi
4500done
4501done
4502IFS=$as_save_IFS
4503
4504if test $ac_prog_rejected = yes; then
4505 # We found a bogon in the path, so make sure we never use it.
4506 set dummy $ac_cv_prog_BUILD_CC
4507 shift
4508 if test $# != 0; then
4509 # We chose a different compiler from the bogus one.
4510 # However, it has the same basename, so the bogon will be chosen
4511 # first if we set BUILD_CC to just the basename; use the full file name.
4512 shift
4513 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4514 fi
4515fi
4516fi
4517fi
4518BUILD_CC=$ac_cv_prog_BUILD_CC
4519if test -n "$BUILD_CC"; then
4520 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521echo "${ECHO_T}$BUILD_CC" >&6; }
4522else
4523 { echo "$as_me:$LINENO: result: no" >&5
4524echo "${ECHO_T}no" >&6; }
4525fi
4526
4527
4528 fi
4529 fi
4530 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4531echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4532 { (exit 1); exit 1; }; }
4533 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4534 rm -f conftest*
4535 echo 'int main () { return 0; }' > conftest.$ac_ext
4536 ac_cv_build_exeext=
4537 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4538 (eval $ac_build_link) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; then
4542 for file in conftest.*; do
4543 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004544 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004545 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4546 esac
4547 done
4548 else
4549 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4550echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4551 { (exit 1); exit 1; }; }
4552 fi
4553 rm -f conftest*
4554 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4555fi
4556fi
4557
4558BUILD_EXEEXT=""
4559test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4560{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4561echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4562ac_build_exeext=$BUILD_EXEEXT
4563
Jim Grosbach673612e2008-10-02 22:56:44 +00004564 ac_build_prefix=${build_alias}-
4565 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4566set dummy ${ac_build_prefix}g++; ac_word=$2
4567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 if test -n "$BUILD_CXX"; then
4573 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4574else
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
Jim Grosbach673612e2008-10-02 22:56:44 +00004582 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
4588IFS=$as_save_IFS
4589
4590fi
4591fi
4592BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593if test -n "$BUILD_CXX"; then
4594 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4595echo "${ECHO_T}$BUILD_CXX" >&6; }
4596else
4597 { echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6; }
4599fi
4600
4601
4602 if test -z "$BUILD_CXX"; then
4603 # Extract the first word of "g++", so it can be a program name with args.
4604set dummy g++; ac_word=$2
4605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 if test -n "$BUILD_CXX"; then
4611 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004619 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 +00004620 ac_cv_prog_BUILD_CXX="g++"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625done
4626IFS=$as_save_IFS
4627
4628fi
4629fi
4630BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631if test -n "$BUILD_CXX"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633echo "${ECHO_T}$BUILD_CXX" >&6; }
4634else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6; }
4637fi
4638
4639
4640 if test -z "$BUILD_CXX"; then
4641 # Extract the first word of "c++", so it can be a program name with args.
4642set dummy c++; ac_word=$2
4643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 if test -n "$BUILD_CXX"; then
4649 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4650else
4651 ac_prog_rejected=no
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004658 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 +00004659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4660 ac_prog_rejected=yes
4661 continue
4662 fi
4663 ac_cv_prog_BUILD_CXX="c++"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668done
4669IFS=$as_save_IFS
4670
4671if test $ac_prog_rejected = yes; then
4672 # We found a bogon in the path, so make sure we never use it.
4673 set dummy $ac_cv_prog_BUILD_CXX
4674 shift
4675 if test $# != 0; then
4676 # We chose a different compiler from the bogus one.
4677 # However, it has the same basename, so the bogon will be chosen
4678 # first if we set BUILD_CXX to just the basename; use the full file name.
4679 shift
4680 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4681 fi
4682fi
4683fi
4684fi
4685BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686if test -n "$BUILD_CXX"; then
4687 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688echo "${ECHO_T}$BUILD_CXX" >&6; }
4689else
4690 { echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6; }
4692fi
4693
4694
4695 fi
4696 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004697else
4698 LLVM_CROSS_COMPILING=0
4699
4700fi
4701
Nick Lewycky5b28f862009-04-10 05:18:27 +00004702if 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 +00004703 cvsbuild="yes"
4704 optimize="no"
4705 CVSBUILD=CVSBUILD=1
4706
4707else
4708 cvsbuild="no"
4709 optimize="yes"
4710fi
4711
4712
4713# Check whether --enable-optimized was given.
4714if test "${enable_optimized+set}" = set; then
4715 enableval=$enable_optimized;
4716else
4717 enableval=$optimize
4718fi
4719
4720if test ${enableval} = "no" ; then
4721 ENABLE_OPTIMIZED=
4722
4723else
4724 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4725
4726fi
4727
David Greene2a5a12c2009-04-17 14:50:39 +00004728# Check whether --enable-profiling was given.
4729if test "${enable_profiling+set}" = set; then
4730 enableval=$enable_profiling;
4731else
4732 enableval="no"
4733fi
4734
4735if test ${enableval} = "no" ; then
4736 ENABLE_PROFILING=
4737
4738else
4739 ENABLE_PROFILING=ENABLE_PROFILING=1
4740
4741fi
4742
Reid Spencera773bd52006-08-04 18:18:08 +00004743# Check whether --enable-assertions was given.
4744if test "${enable_assertions+set}" = set; then
4745 enableval=$enable_assertions;
4746else
4747 enableval="yes"
4748fi
4749
4750if test ${enableval} = "yes" ; then
4751 DISABLE_ASSERTIONS=
4752
4753else
4754 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4755
4756fi
4757
David Greenea696d242007-06-28 19:36:08 +00004758# Check whether --enable-expensive-checks was given.
4759if test "${enable_expensive_checks+set}" = set; then
4760 enableval=$enable_expensive_checks;
4761else
4762 enableval="no"
4763fi
4764
4765if test ${enableval} = "yes" ; then
4766 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4767
4768 EXPENSIVE_CHECKS=yes
4769
4770else
4771 ENABLE_EXPENSIVE_CHECKS=
4772
4773 EXPENSIVE_CHECKS=no
4774
4775fi
4776
Reid Spencer8b2e1412006-11-17 03:32:33 +00004777# Check whether --enable-debug-runtime was given.
4778if test "${enable_debug_runtime+set}" = set; then
4779 enableval=$enable_debug_runtime;
4780else
4781 enableval=no
4782fi
4783
4784if test ${enableval} = "no" ; then
4785 DEBUG_RUNTIME=
4786
4787else
4788 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4789
4790fi
4791
Reid Spencera773bd52006-08-04 18:18:08 +00004792# Check whether --enable-jit was given.
4793if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4795else
4796 enableval=default
4797fi
4798
4799if test ${enableval} = "no"
4800then
4801 JIT=
4802
4803else
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4806 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004807 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
4809 PowerPC) TARGET_HAS_JIT=1
4810 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004811 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
4813 Alpha) TARGET_HAS_JIT=1
4814 ;;
4815 IA64) TARGET_HAS_JIT=0
4816 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004817 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004818 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004819 Mips) TARGET_HAS_JIT=0
4820 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004821 PIC16) TARGET_HAS_JIT=0
4822 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004823 XCore) TARGET_HAS_JIT=0
4824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004825 *) TARGET_HAS_JIT=0
4826 ;;
4827 esac
4828fi
4829
4830# Check whether --enable-doxygen was given.
4831if test "${enable_doxygen+set}" = set; then
4832 enableval=$enable_doxygen;
4833else
4834 enableval=default
4835fi
4836
4837case "$enableval" in
4838 yes) ENABLE_DOXYGEN=1
4839 ;;
4840 no) ENABLE_DOXYGEN=0
4841 ;;
4842 default) ENABLE_DOXYGEN=0
4843 ;;
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4847esac
4848
4849# Check whether --enable-threads was given.
4850if test "${enable_threads+set}" = set; then
4851 enableval=$enable_threads;
4852else
Reid Spencer65c5d752006-11-05 17:08:18 +00004853 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004854fi
4855
4856case "$enableval" in
4857 yes) ENABLE_THREADS=1
4858 ;;
4859 no) ENABLE_THREADS=0
4860 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004861 default) ENABLE_THREADS=1
4862 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
4866esac
4867
4868cat >>confdefs.h <<_ACEOF
4869#define ENABLE_THREADS $ENABLE_THREADS
4870_ACEOF
4871
4872
Reid Spencer89b0d992006-12-16 22:07:52 +00004873# Check whether --enable-pic was given.
4874if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4876else
4877 enableval=default
4878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_PIC=1
4882 ;;
4883 no) ENABLE_PIC=0
4884 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004885 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004886 ;;
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890esac
4891
4892cat >>confdefs.h <<_ACEOF
4893#define ENABLE_PIC $ENABLE_PIC
4894_ACEOF
4895
4896
Reid Spencera773bd52006-08-04 18:18:08 +00004897TARGETS_TO_BUILD=""
4898# Check whether --enable-targets was given.
4899if test "${enable_targets+set}" = set; then
4900 enableval=$enable_targets;
4901else
4902 enableval=all
4903fi
4904
4905case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004906 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004907 host-only)
4908 case "$llvm_cv_target_arch" in
4909 x86) TARGETS_TO_BUILD="X86" ;;
4910 x86_64) TARGETS_TO_BUILD="X86" ;;
4911 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4912 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4914 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004915 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004916 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004917 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004918 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004919 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004920 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4921echo "$as_me: error: Can not set target to build" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923 esac
4924 ;;
4925 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4926 case "$a_target" in
4927 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4930 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4931 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4932 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004933 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004934 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004935 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004936 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004937 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004938 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4939 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004940 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004941 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4942echo "$as_me: error: Unrecognized target $a_target" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4944 esac
4945 done
4946 ;;
4947esac
Reid Spencera773bd52006-08-04 18:18:08 +00004948TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4949
4950
Reid Spencer65c5d752006-11-05 17:08:18 +00004951# Check whether --enable-cbe-printf-a was given.
4952if test "${enable_cbe_printf_a+set}" = set; then
4953 enableval=$enable_cbe_printf_a;
4954else
4955 enableval=default
4956fi
4957
4958case "$enableval" in
4959 yes) ENABLE_CBE_PRINTF_A=1
4960 ;;
4961 no) ENABLE_CBE_PRINTF_A=0
4962 ;;
4963 default) ENABLE_CBE_PRINTF_A=1
4964 ;;
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4966echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4968esac
4969
4970cat >>confdefs.h <<_ACEOF
4971#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4972_ACEOF
4973
4974
Reid Spencera773bd52006-08-04 18:18:08 +00004975
4976# Check whether --with-llvmgccdir was given.
4977if test "${with_llvmgccdir+set}" = set; then
4978 withval=$with_llvmgccdir;
4979else
4980 withval=default
4981fi
4982
4983case "$withval" in
4984 default) WITH_LLVMGCCDIR=default ;;
4985 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4986 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4987echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4988 { (exit 1); exit 1; }; } ;;
4989esac
4990
4991
Devang Patel5d28b882007-12-04 22:54:47 +00004992# Check whether --with-llvmgcc was given.
4993if test "${with_llvmgcc+set}" = set; then
4994 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4995 WITH_LLVMGCCDIR=""
4996fi
4997
4998
4999
5000# Check whether --with-llvmgxx was given.
5001if test "${with_llvmgxx+set}" = set; then
5002 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5003 WITH_LLVMGCCDIR=""
5004fi
5005
5006
5007if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5008 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5009echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5010 { (exit 1); exit 1; }; };
5011fi
5012
5013if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5014 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5015echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5016 { (exit 1); exit 1; }; };
5017fi
5018
5019
Reid Spencera773bd52006-08-04 18:18:08 +00005020# Check whether --with-extra-options was given.
5021if test "${with_extra_options+set}" = set; then
5022 withval=$with_extra_options;
5023else
5024 withval=default
5025fi
5026
5027case "$withval" in
5028 default) EXTRA_OPTIONS= ;;
5029 *) EXTRA_OPTIONS=$withval ;;
5030esac
5031EXTRA_OPTIONS=$EXTRA_OPTIONS
5032
5033
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005034# Check whether --enable-bindings was given.
5035if test "${enable_bindings+set}" = set; then
5036 enableval=$enable_bindings;
5037else
5038 enableval=default
5039fi
5040
5041BINDINGS_TO_BUILD=""
5042case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005043 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005044 all ) BINDINGS_TO_BUILD="ocaml" ;;
5045 none | no) BINDINGS_TO_BUILD="" ;;
5046 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047 case "$a_binding" in
5048 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5049 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5050echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5051 { (exit 1); exit 1; }; } ;;
5052 esac
5053 done
5054 ;;
5055esac
5056
Reid Spencera773bd52006-08-04 18:18:08 +00005057
Gordon Henriksenf0915682007-10-02 16:42:22 +00005058# Check whether --with-ocaml-libdir was given.
5059if test "${with_ocaml_libdir+set}" = set; then
5060 withval=$with_ocaml_libdir;
5061else
5062 withval=auto
5063fi
5064
5065case "$withval" in
5066 auto) with_ocaml_libdir="$withval" ;;
5067 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5068 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5069echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071esac
5072
5073
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005074# Check whether --with-binutils-include was given.
5075if test "${with_binutils_include+set}" = set; then
5076 withval=$with_binutils_include;
5077else
5078 withval=default
5079fi
5080
5081case "$withval" in
5082 default) WITH_BINUTILS_INCDIR=default ;;
5083 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5084 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5085echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5087esac
5088if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5089 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5090
5091 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5092 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5093 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5094echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5095 { (exit 1); exit 1; }; };
5096 fi
5097fi
5098
5099
Reid Spencera773bd52006-08-04 18:18:08 +00005100ac_ext=c
5101ac_cpp='$CPP $CPPFLAGS'
5102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5106echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5107# On Suns, sometimes $CPP names a directory.
5108if test -n "$CPP" && test -d "$CPP"; then
5109 CPP=
5110fi
5111if test -z "$CPP"; then
5112 if test "${ac_cv_prog_CPP+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115 # Double quotes because CPP needs to be expanded
5116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5117 do
5118 ac_preproc_ok=false
5119for ac_c_preproc_warn_flag in '' yes
5120do
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h. */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h. */
5133#ifdef __STDC__
5134# include <limits.h>
5135#else
5136# include <assert.h>
5137#endif
5138 Syntax error
5139_ACEOF
5140if { (ac_try="$ac_cpp conftest.$ac_ext"
5141case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144esac
5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_c_preproc_warn_flag
5155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5156 else
5157 ac_cpp_err=
5158 fi
5159else
5160 ac_cpp_err=yes
5161fi
5162if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005163 :
5164else
5165 echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 # Broken: fails on valid input.
5169continue
5170fi
5171
5172rm -f conftest.err conftest.$ac_ext
5173
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h. */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h. */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if { (ac_try="$ac_cpp conftest.$ac_ext"
5185case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188esac
5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_c_preproc_warn_flag
5199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5200 else
5201 ac_cpp_err=
5202 fi
5203else
5204 ac_cpp_err=yes
5205fi
5206if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005207 # Broken: success on invalid input.
5208continue
5209else
5210 echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 # Passes both tests.
5214ac_preproc_ok=:
5215break
5216fi
5217
5218rm -f conftest.err conftest.$ac_ext
5219
5220done
5221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222rm -f conftest.err conftest.$ac_ext
5223if $ac_preproc_ok; then
5224 break
5225fi
5226
5227 done
5228 ac_cv_prog_CPP=$CPP
5229
5230fi
5231 CPP=$ac_cv_prog_CPP
5232else
5233 ac_cv_prog_CPP=$CPP
5234fi
5235{ echo "$as_me:$LINENO: result: $CPP" >&5
5236echo "${ECHO_T}$CPP" >&6; }
5237ac_preproc_ok=false
5238for ac_c_preproc_warn_flag in '' yes
5239do
5240 # Use a header file that comes with gcc, so configuring glibc
5241 # with a fresh cross-compiler works.
5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243 # <limits.h> exists even on freestanding compilers.
5244 # On the NeXT, cc -E runs the code through the compiler's parser,
5245 # not just through cpp. "Syntax error" is here to catch this case.
5246 cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252#ifdef __STDC__
5253# include <limits.h>
5254#else
5255# include <assert.h>
5256#endif
5257 Syntax error
5258_ACEOF
5259if { (ac_try="$ac_cpp conftest.$ac_ext"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5275 else
5276 ac_cpp_err=
5277 fi
5278else
5279 ac_cpp_err=yes
5280fi
5281if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005282 :
5283else
5284 echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 # Broken: fails on valid input.
5288continue
5289fi
5290
5291rm -f conftest.err conftest.$ac_ext
5292
5293 # OK, works on sane cases. Now check whether nonexistent headers
5294 # can be detected and how.
5295 cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301#include <ac_nonexistent.h>
5302_ACEOF
5303if { (ac_try="$ac_cpp conftest.$ac_ext"
5304case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005315 (exit $ac_status); } >/dev/null; then
5316 if test -s conftest.err; then
5317 ac_cpp_err=$ac_c_preproc_warn_flag
5318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5319 else
5320 ac_cpp_err=
5321 fi
5322else
5323 ac_cpp_err=yes
5324fi
5325if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005326 # Broken: success on invalid input.
5327continue
5328else
5329 echo "$as_me: failed program was:" >&5
5330sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336
5337rm -f conftest.err conftest.$ac_ext
5338
5339done
5340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341rm -f conftest.err conftest.$ac_ext
5342if $ac_preproc_ok; then
5343 :
5344else
5345 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5346See \`config.log' for more details." >&5
5347echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5348See \`config.log' for more details." >&2;}
5349 { (exit 1); exit 1; }; }
5350fi
5351
5352ac_ext=c
5353ac_cpp='$CPP $CPPFLAGS'
5354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363if test -n "$ac_tool_prefix"; then
5364 for ac_prog in gcc
5365 do
5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370if test "${ac_cv_prog_CC+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 if test -n "$CC"; then
5374 ac_cv_prog_CC="$CC" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005382 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 +00005383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5386 fi
5387done
5388done
5389IFS=$as_save_IFS
5390
5391fi
5392fi
5393CC=$ac_cv_prog_CC
5394if test -n "$CC"; then
5395 { echo "$as_me:$LINENO: result: $CC" >&5
5396echo "${ECHO_T}$CC" >&6; }
5397else
5398 { echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6; }
5400fi
5401
5402
5403 test -n "$CC" && break
5404 done
5405fi
5406if test -z "$CC"; then
5407 ac_ct_CC=$CC
5408 for ac_prog in gcc
5409do
5410 # Extract the first word of "$ac_prog", so it can be a program name with args.
5411set dummy $ac_prog; ac_word=$2
5412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417 if test -n "$ac_ct_CC"; then
5418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005426 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 +00005427 ac_cv_prog_ac_ct_CC="$ac_prog"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438if test -n "$ac_ct_CC"; then
5439 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440echo "${ECHO_T}$ac_ct_CC" >&6; }
5441else
5442 { echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6; }
5444fi
5445
5446
5447 test -n "$ac_ct_CC" && break
5448done
5449
5450 if test "x$ac_ct_CC" = x; then
5451 CC=""
5452 else
5453 case $cross_compiling:$ac_tool_warned in
5454yes:)
5455{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456whose name does not start with the host triplet. If you think this
5457configuration is useful to you, please write to autoconf@gnu.org." >&5
5458echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459whose name does not start with the host triplet. If you think this
5460configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461ac_tool_warned=yes ;;
5462esac
5463 CC=$ac_ct_CC
5464 fi
5465fi
5466
5467
5468test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5469See \`config.log' for more details." >&5
5470echo "$as_me: error: no acceptable C compiler found in \$PATH
5471See \`config.log' for more details." >&2;}
5472 { (exit 1); exit 1; }; }
5473
5474# Provide some information about the compiler.
5475echo "$as_me:$LINENO: checking for C compiler version" >&5
5476ac_compiler=`set X $ac_compile; echo $2`
5477{ (ac_try="$ac_compiler --version >&5"
5478case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compiler --version >&5") 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }
5487{ (ac_try="$ac_compiler -v >&5"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler -v >&5") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497{ (ac_try="$ac_compiler -V >&5"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -V >&5") 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5507
5508{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5509echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5510if test "${ac_cv_c_compiler_gnu+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h. */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h. */
5519
5520int
5521main ()
5522{
5523#ifndef __GNUC__
5524 choke me
5525#endif
5526
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext
5532if { (ac_try="$ac_compile"
5533case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536esac
5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_try") 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005565 ac_compiler_gnu=yes
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 ac_compiler_gnu=no
5571fi
5572
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574ac_cv_c_compiler_gnu=$ac_compiler_gnu
5575
5576fi
5577{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5578echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5579GCC=`test $ac_compiler_gnu = yes && echo yes`
5580ac_test_CFLAGS=${CFLAGS+set}
5581ac_save_CFLAGS=$CFLAGS
5582{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5583echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5584if test "${ac_cv_prog_cc_g+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 ac_save_c_werror_flag=$ac_c_werror_flag
5588 ac_c_werror_flag=yes
5589 ac_cv_prog_cc_g=no
5590 CFLAGS="-g"
5591 cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h. */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h. */
5597
5598int
5599main ()
5600{
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (ac_try="$ac_compile"
5608case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611esac
5612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5621 { (case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624esac
5625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005640 ac_cv_prog_cc_g=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 CFLAGS=""
5646 cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
5652
5653int
5654main ()
5655{
5656
5657 ;
5658 return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (ac_try="$ac_compile"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($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_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($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_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005695 :
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 ac_c_werror_flag=$ac_save_c_werror_flag
5701 CFLAGS="-g"
5702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709int
5710main ()
5711{
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005751 ac_cv_prog_cc_g=yes
5752else
5753 echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756
5757fi
5758
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761
5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_c_werror_flag=$ac_save_c_werror_flag
5767fi
5768{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5769echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5770if test "$ac_test_CFLAGS" = set; then
5771 CFLAGS=$ac_save_CFLAGS
5772elif test $ac_cv_prog_cc_g = yes; then
5773 if test "$GCC" = yes; then
5774 CFLAGS="-g -O2"
5775 else
5776 CFLAGS="-g"
5777 fi
5778else
5779 if test "$GCC" = yes; then
5780 CFLAGS="-O2"
5781 else
5782 CFLAGS=
5783 fi
5784fi
5785{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5786echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5787if test "${ac_cv_prog_cc_c89+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 ac_cv_prog_cc_c89=no
5791ac_save_CC=$CC
5792cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798#include <stdarg.h>
5799#include <stdio.h>
5800#include <sys/types.h>
5801#include <sys/stat.h>
5802/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5803struct buf { int x; };
5804FILE * (*rcsopen) (struct buf *, struct stat *, int);
5805static char *e (p, i)
5806 char **p;
5807 int i;
5808{
5809 return p[i];
5810}
5811static char *f (char * (*g) (char **, int), char **p, ...)
5812{
5813 char *s;
5814 va_list v;
5815 va_start (v,p);
5816 s = g (p, va_arg (v,int));
5817 va_end (v);
5818 return s;
5819}
5820
5821/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5822 function prototypes and stuff, but not '\xHH' hex character constants.
5823 These don't provoke an error unfortunately, instead are silently treated
5824 as 'x'. The following induces an error, until -std is added to get
5825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5826 array size at least. It's necessary to write '\x00'==0 to get something
5827 that's true only with -std. */
5828int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5829
5830/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5831 inside strings and character constants. */
5832#define FOO(x) 'x'
5833int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5834
5835int test (int i, double x);
5836struct s1 {int (*f) (int a);};
5837struct s2 {int (*f) (double a);};
5838int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5839int argc;
5840char **argv;
5841int
5842main ()
5843{
5844return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5851do
5852 CC="$ac_save_CC $ac_arg"
5853 rm -f conftest.$ac_objext
5854if { (ac_try="$ac_compile"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005887 ac_cv_prog_cc_c89=$ac_arg
5888else
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892
5893fi
5894
5895rm -f core conftest.err conftest.$ac_objext
5896 test "x$ac_cv_prog_cc_c89" != "xno" && break
5897done
5898rm -f conftest.$ac_ext
5899CC=$ac_save_CC
5900
5901fi
5902# AC_CACHE_VAL
5903case "x$ac_cv_prog_cc_c89" in
5904 x)
5905 { echo "$as_me:$LINENO: result: none needed" >&5
5906echo "${ECHO_T}none needed" >&6; } ;;
5907 xno)
5908 { echo "$as_me:$LINENO: result: unsupported" >&5
5909echo "${ECHO_T}unsupported" >&6; } ;;
5910 *)
5911 CC="$CC $ac_cv_prog_cc_c89"
5912 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5913echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5914esac
5915
5916
5917ac_ext=c
5918ac_cpp='$CPP $CPPFLAGS'
5919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922
5923ac_ext=cpp
5924ac_cpp='$CXXCPP $CPPFLAGS'
5925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928if test -z "$CXX"; then
5929 if test -n "$CCC"; then
5930 CXX=$CCC
5931 else
5932 if test -n "$ac_tool_prefix"; then
5933 for ac_prog in g++
5934 do
5935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939if test "${ac_cv_prog_CXX+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 if test -n "$CXX"; then
5943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005951 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 +00005952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962CXX=$ac_cv_prog_CXX
5963if test -n "$CXX"; then
5964 { echo "$as_me:$LINENO: result: $CXX" >&5
5965echo "${ECHO_T}$CXX" >&6; }
5966else
5967 { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6; }
5969fi
5970
5971
5972 test -n "$CXX" && break
5973 done
5974fi
5975if test -z "$CXX"; then
5976 ac_ct_CXX=$CXX
5977 for ac_prog in g++
5978do
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980set dummy $ac_prog; ac_word=$2
5981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 if test -n "$ac_ct_CXX"; then
5987 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005995 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 +00005996 ac_cv_prog_ac_ct_CXX="$ac_prog"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000done
6001done
6002IFS=$as_save_IFS
6003
6004fi
6005fi
6006ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6007if test -n "$ac_ct_CXX"; then
6008 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6009echo "${ECHO_T}$ac_ct_CXX" >&6; }
6010else
6011 { echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6; }
6013fi
6014
6015
6016 test -n "$ac_ct_CXX" && break
6017done
6018
6019 if test "x$ac_ct_CXX" = x; then
6020 CXX="g++"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023yes:)
6024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025whose name does not start with the host triplet. If you think this
6026configuration is useful to you, please write to autoconf@gnu.org." >&5
6027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028whose name does not start with the host triplet. If you think this
6029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032 CXX=$ac_ct_CXX
6033 fi
6034fi
6035
6036 fi
6037fi
6038# Provide some information about the compiler.
6039echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6040ac_compiler=`set X $ac_compile; echo $2`
6041{ (ac_try="$ac_compiler --version >&5"
6042case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045esac
6046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compiler --version >&5") 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }
6051{ (ac_try="$ac_compiler -v >&5"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compiler -v >&5") 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }
6061{ (ac_try="$ac_compiler -V >&5"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler -V >&5") 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6071
6072{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6073echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6074if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083
6084int
6085main ()
6086{
6087#ifndef __GNUC__
6088 choke me
6089#endif
6090
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6110 { (case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_try") 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest.$ac_objext'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006129 ac_compiler_gnu=yes
6130else
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_compiler_gnu=no
6135fi
6136
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6139
6140fi
6141{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6142echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6143GXX=`test $ac_compiler_gnu = yes && echo yes`
6144ac_test_CXXFLAGS=${CXXFLAGS+set}
6145ac_save_CXXFLAGS=$CXXFLAGS
6146{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6147echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6148if test "${ac_cv_prog_cxx_g+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6152 ac_cxx_werror_flag=yes
6153 ac_cv_prog_cxx_g=no
6154 CXXFLAGS="-g"
6155 cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h. */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h. */
6161
6162int
6163main ()
6164{
6165
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext
6171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6185 { (case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_try") 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006204 ac_cv_prog_cxx_g=yes
6205else
6206 echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 CXXFLAGS=""
6210 cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h. */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h. */
6216
6217int
6218main ()
6219{
6220
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext
6226if { (ac_try="$ac_compile"
6227case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230esac
6231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6240 { (case "(($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_try") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (case "(($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_try") 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006259 :
6260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6265 CXXFLAGS="-g"
6266 cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
6272
6273int
6274main ()
6275{
6276
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006315 ac_cv_prog_cxx_g=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320
6321fi
6322
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324fi
6325
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6331fi
6332{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6333echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6334if test "$ac_test_CXXFLAGS" = set; then
6335 CXXFLAGS=$ac_save_CXXFLAGS
6336elif test $ac_cv_prog_cxx_g = yes; then
6337 if test "$GXX" = yes; then
6338 CXXFLAGS="-g -O2"
6339 else
6340 CXXFLAGS="-g"
6341 fi
6342else
6343 if test "$GXX" = yes; then
6344 CXXFLAGS="-O2"
6345 else
6346 CXXFLAGS=
6347 fi
6348fi
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
Reid Spencera773bd52006-08-04 18:18:08 +00006355
6356{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6357echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6358if test "${lt_cv_path_NM+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 if test -n "$NM"; then
6362 # Let the user override the test.
6363 lt_cv_path_NM="$NM"
6364else
6365 lt_nm_to_check="${ac_tool_prefix}nm"
6366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6367 lt_nm_to_check="$lt_nm_to_check nm"
6368 fi
6369 for lt_tmp_nm in $lt_nm_to_check; do
6370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6372 IFS="$lt_save_ifs"
6373 test -z "$ac_dir" && ac_dir=.
6374 tmp_nm="$ac_dir/$lt_tmp_nm"
6375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6376 # Check to see if the nm accepts a BSD-compat flag.
6377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6378 # nm: unknown option "B" ignored
6379 # Tru64's nm complains that /dev/null is an invalid object file
6380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6381 */dev/null* | *'Invalid file or object type'*)
6382 lt_cv_path_NM="$tmp_nm -B"
6383 break
6384 ;;
6385 *)
6386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6387 */dev/null*)
6388 lt_cv_path_NM="$tmp_nm -p"
6389 break
6390 ;;
6391 *)
6392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6393 continue # so that we can try to find one that supports BSD flags
6394 ;;
6395 esac
6396 ;;
6397 esac
6398 fi
6399 done
6400 IFS="$lt_save_ifs"
6401 done
6402 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6403fi
6404fi
6405{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6406echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6407NM="$lt_cv_path_NM"
6408
6409
6410
6411{ echo "$as_me:$LINENO: checking for GNU make" >&5
6412echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6413if test "${llvm_cv_gnu_make_command+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416 llvm_cv_gnu_make_command=''
6417 for a in "$MAKE" make gmake gnumake ; do
6418 if test -z "$a" ; then continue ; fi ;
6419 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6420 then
6421 llvm_cv_gnu_make_command=$a ;
6422 break;
6423 fi
6424 done
6425fi
6426{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6427echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6428 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6429 ifGNUmake='' ;
6430 else
6431 ifGNUmake='#' ;
6432 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6433echo "${ECHO_T}\"Not found\"" >&6; };
6434 fi
6435
6436
6437{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6438echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6439LN_S=$as_ln_s
6440if test "$LN_S" = "ln -s"; then
6441 { echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6; }
6443else
6444 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6445echo "${ECHO_T}no, using $LN_S" >&6; }
6446fi
6447
6448# Extract the first word of "cmp", so it can be a program name with args.
6449set dummy cmp; ac_word=$2
6450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452if test "${ac_cv_path_CMP+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 case $CMP in
6456 [\\/]* | ?:[\\/]*)
6457 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6458 ;;
6459 *)
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006466 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 +00006467 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471done
6472done
6473IFS=$as_save_IFS
6474
6475 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6476 ;;
6477esac
6478fi
6479CMP=$ac_cv_path_CMP
6480if test -n "$CMP"; then
6481 { echo "$as_me:$LINENO: result: $CMP" >&5
6482echo "${ECHO_T}$CMP" >&6; }
6483else
6484 { echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6; }
6486fi
6487
6488
6489# Extract the first word of "cp", so it can be a program name with args.
6490set dummy cp; ac_word=$2
6491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493if test "${ac_cv_path_CP+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 case $CP in
6497 [\\/]* | ?:[\\/]*)
6498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6499 ;;
6500 *)
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006507 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 +00006508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512done
6513done
6514IFS=$as_save_IFS
6515
6516 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6517 ;;
6518esac
6519fi
6520CP=$ac_cv_path_CP
6521if test -n "$CP"; then
6522 { echo "$as_me:$LINENO: result: $CP" >&5
6523echo "${ECHO_T}$CP" >&6; }
6524else
6525 { echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6; }
6527fi
6528
6529
6530# Extract the first word of "date", so it can be a program name with args.
6531set dummy date; ac_word=$2
6532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534if test "${ac_cv_path_DATE+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537 case $DATE in
6538 [\\/]* | ?:[\\/]*)
6539 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6540 ;;
6541 *)
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006548 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 +00006549 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554done
6555IFS=$as_save_IFS
6556
6557 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6558 ;;
6559esac
6560fi
6561DATE=$ac_cv_path_DATE
6562if test -n "$DATE"; then
6563 { echo "$as_me:$LINENO: result: $DATE" >&5
6564echo "${ECHO_T}$DATE" >&6; }
6565else
6566 { echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6; }
6568fi
6569
6570
6571# Extract the first word of "find", so it can be a program name with args.
6572set dummy find; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_path_FIND+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 case $FIND in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006589 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 +00006590 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596IFS=$as_save_IFS
6597
6598 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6599 ;;
6600esac
6601fi
6602FIND=$ac_cv_path_FIND
6603if test -n "$FIND"; then
6604 { echo "$as_me:$LINENO: result: $FIND" >&5
6605echo "${ECHO_T}$FIND" >&6; }
6606else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6; }
6609fi
6610
6611
6612# Extract the first word of "grep", so it can be a program name with args.
6613set dummy grep; ac_word=$2
6614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616if test "${ac_cv_path_GREP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 case $GREP in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006630 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 +00006631 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635done
6636done
6637IFS=$as_save_IFS
6638
6639 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6640 ;;
6641esac
6642fi
6643GREP=$ac_cv_path_GREP
6644if test -n "$GREP"; then
6645 { echo "$as_me:$LINENO: result: $GREP" >&5
6646echo "${ECHO_T}$GREP" >&6; }
6647else
6648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
6650fi
6651
6652
6653# Extract the first word of "mkdir", so it can be a program name with args.
6654set dummy mkdir; ac_word=$2
6655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657if test "${ac_cv_path_MKDIR+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 case $MKDIR in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6663 ;;
6664 *)
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006671 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 +00006672 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678IFS=$as_save_IFS
6679
6680 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6681 ;;
6682esac
6683fi
6684MKDIR=$ac_cv_path_MKDIR
6685if test -n "$MKDIR"; then
6686 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6687echo "${ECHO_T}$MKDIR" >&6; }
6688else
6689 { echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6; }
6691fi
6692
6693
6694# Extract the first word of "mv", so it can be a program name with args.
6695set dummy mv; ac_word=$2
6696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698if test "${ac_cv_path_MV+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 case $MV in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006712 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 +00006713 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6722 ;;
6723esac
6724fi
6725MV=$ac_cv_path_MV
6726if test -n "$MV"; then
6727 { echo "$as_me:$LINENO: result: $MV" >&5
6728echo "${ECHO_T}$MV" >&6; }
6729else
6730 { echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6; }
6732fi
6733
6734
6735if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6737set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_prog_RANLIB+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 if test -n "$RANLIB"; then
6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006752 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 +00006753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758done
6759IFS=$as_save_IFS
6760
6761fi
6762fi
6763RANLIB=$ac_cv_prog_RANLIB
6764if test -n "$RANLIB"; then
6765 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6766echo "${ECHO_T}$RANLIB" >&6; }
6767else
6768 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; }
6770fi
6771
6772
6773fi
6774if test -z "$ac_cv_prog_RANLIB"; then
6775 ac_ct_RANLIB=$RANLIB
6776 # Extract the first word of "ranlib", so it can be a program name with args.
6777set dummy ranlib; ac_word=$2
6778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 if test -n "$ac_ct_RANLIB"; then
6784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006792 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 +00006793 ac_cv_prog_ac_ct_RANLIB="ranlib"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6804if test -n "$ac_ct_RANLIB"; then
6805 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6806echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6807else
6808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
6810fi
6811
6812 if test "x$ac_ct_RANLIB" = x; then
6813 RANLIB=":"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816yes:)
6817{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818whose name does not start with the host triplet. If you think this
6819configuration is useful to you, please write to autoconf@gnu.org." >&5
6820echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821whose name does not start with the host triplet. If you think this
6822configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825 RANLIB=$ac_ct_RANLIB
6826 fi
6827else
6828 RANLIB="$ac_cv_prog_RANLIB"
6829fi
6830
6831# Extract the first word of "rm", so it can be a program name with args.
6832set dummy rm; ac_word=$2
6833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835if test "${ac_cv_path_RM+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 case $RM in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6841 ;;
6842 *)
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006849 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 +00006850 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855done
6856IFS=$as_save_IFS
6857
6858 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6859 ;;
6860esac
6861fi
6862RM=$ac_cv_path_RM
6863if test -n "$RM"; then
6864 { echo "$as_me:$LINENO: result: $RM" >&5
6865echo "${ECHO_T}$RM" >&6; }
6866else
6867 { echo "$as_me:$LINENO: result: no" >&5
6868echo "${ECHO_T}no" >&6; }
6869fi
6870
6871
6872# Extract the first word of "sed", so it can be a program name with args.
6873set dummy sed; ac_word=$2
6874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876if test "${ac_cv_path_SED+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879 case $SED in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6882 ;;
6883 *)
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006890 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 +00006891 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895done
6896done
6897IFS=$as_save_IFS
6898
6899 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6900 ;;
6901esac
6902fi
6903SED=$ac_cv_path_SED
6904if test -n "$SED"; then
6905 { echo "$as_me:$LINENO: result: $SED" >&5
6906echo "${ECHO_T}$SED" >&6; }
6907else
6908 { echo "$as_me:$LINENO: result: no" >&5
6909echo "${ECHO_T}no" >&6; }
6910fi
6911
6912
6913# Extract the first word of "tar", so it can be a program name with args.
6914set dummy tar; ac_word=$2
6915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917if test "${ac_cv_path_TAR+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919else
6920 case $TAR in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6923 ;;
6924 *)
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006931 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 +00006932 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937done
6938IFS=$as_save_IFS
6939
6940 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6941 ;;
6942esac
6943fi
6944TAR=$ac_cv_path_TAR
6945if test -n "$TAR"; then
6946 { echo "$as_me:$LINENO: result: $TAR" >&5
6947echo "${ECHO_T}$TAR" >&6; }
6948else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6; }
6951fi
6952
6953
6954# Extract the first word of "pwd", so it can be a program name with args.
6955set dummy pwd; ac_word=$2
6956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958if test "${ac_cv_path_BINPWD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 case $BINPWD in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6964 ;;
6965 *)
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006972 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 +00006973 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978done
6979IFS=$as_save_IFS
6980
6981 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6982 ;;
6983esac
6984fi
6985BINPWD=$ac_cv_path_BINPWD
6986if test -n "$BINPWD"; then
6987 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6988echo "${ECHO_T}$BINPWD" >&6; }
6989else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992fi
6993
6994
6995
6996# Extract the first word of "Graphviz", so it can be a program name with args.
6997set dummy Graphviz; ac_word=$2
6998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003 case $GRAPHVIZ in
7004 [\\/]* | ?:[\\/]*)
7005 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7006 ;;
7007 *)
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007014 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 +00007015 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019done
7020done
7021IFS=$as_save_IFS
7022
7023 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7024 ;;
7025esac
7026fi
7027GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7028if test -n "$GRAPHVIZ"; then
7029 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7030echo "${ECHO_T}$GRAPHVIZ" >&6; }
7031else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036
7037if test "$GRAPHVIZ" != "echo Graphviz" ; then
7038
7039cat >>confdefs.h <<\_ACEOF
7040#define HAVE_GRAPHVIZ 1
7041_ACEOF
7042
Jeff Cohen28783c32007-01-12 18:22:38 +00007043 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007044 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7045 fi
7046
7047cat >>confdefs.h <<_ACEOF
7048#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7049_ACEOF
7050
7051fi
7052# Extract the first word of "dot", so it can be a program name with args.
7053set dummy dot; ac_word=$2
7054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_path_DOT+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 case $DOT in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007070 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 +00007071 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076done
7077IFS=$as_save_IFS
7078
7079 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7080 ;;
7081esac
7082fi
7083DOT=$ac_cv_path_DOT
7084if test -n "$DOT"; then
7085 { echo "$as_me:$LINENO: result: $DOT" >&5
7086echo "${ECHO_T}$DOT" >&6; }
7087else
7088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093if test "$DOT" != "echo dot" ; then
7094
7095cat >>confdefs.h <<\_ACEOF
7096#define HAVE_DOT 1
7097_ACEOF
7098
Jeff Cohen28783c32007-01-12 18:22:38 +00007099 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007100 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7101 fi
7102
7103cat >>confdefs.h <<_ACEOF
7104#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7105_ACEOF
7106
7107fi
7108for ac_prog in gv gsview32
7109do
7110 # Extract the first word of "$ac_prog", so it can be a program name with args.
7111set dummy $ac_prog; ac_word=$2
7112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114if test "${ac_cv_path_GV+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 case $GV in
7118 [\\/]* | ?:[\\/]*)
7119 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7120 ;;
7121 *)
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007128 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 +00007129 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134done
7135IFS=$as_save_IFS
7136
7137 ;;
7138esac
7139fi
7140GV=$ac_cv_path_GV
7141if test -n "$GV"; then
7142 { echo "$as_me:$LINENO: result: $GV" >&5
7143echo "${ECHO_T}$GV" >&6; }
7144else
7145 { echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6; }
7147fi
7148
7149
7150 test -n "$GV" && break
7151done
7152test -n "$GV" || GV="echo gv"
7153
7154if test "$GV" != "echo gv" ; then
7155
7156cat >>confdefs.h <<\_ACEOF
7157#define HAVE_GV 1
7158_ACEOF
7159
Jeff Cohen28783c32007-01-12 18:22:38 +00007160 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007161 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7162 fi
7163
7164cat >>confdefs.h <<_ACEOF
7165#define LLVM_PATH_GV "$GV${EXEEXT}"
7166_ACEOF
7167
7168fi
7169# Extract the first word of "dotty", so it can be a program name with args.
7170set dummy dotty; ac_word=$2
7171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173if test "${ac_cv_path_DOTTY+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176 case $DOTTY in
7177 [\\/]* | ?:[\\/]*)
7178 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7179 ;;
7180 *)
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007187 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 +00007188 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192done
7193done
7194IFS=$as_save_IFS
7195
7196 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7197 ;;
7198esac
7199fi
7200DOTTY=$ac_cv_path_DOTTY
7201if test -n "$DOTTY"; then
7202 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7203echo "${ECHO_T}$DOTTY" >&6; }
7204else
7205 { echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6; }
7207fi
7208
7209
7210if test "$DOTTY" != "echo dotty" ; then
7211
7212cat >>confdefs.h <<\_ACEOF
7213#define HAVE_DOTTY 1
7214_ACEOF
7215
Jeff Cohen28783c32007-01-12 18:22:38 +00007216 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007217 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7218 fi
7219
7220cat >>confdefs.h <<_ACEOF
7221#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7222_ACEOF
7223
7224fi
7225
7226
7227# Extract the first word of "perl", so it can be a program name with args.
7228set dummy perl; ac_word=$2
7229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231if test "${ac_cv_path_PERL+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234 case $PERL in
7235 [\\/]* | ?:[\\/]*)
7236 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7237 ;;
7238 *)
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007245 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 +00007246 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250done
7251done
7252IFS=$as_save_IFS
7253
7254 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7255 ;;
7256esac
7257fi
7258PERL=$ac_cv_path_PERL
7259if test -n "$PERL"; then
7260 { echo "$as_me:$LINENO: result: $PERL" >&5
7261echo "${ECHO_T}$PERL" >&6; }
7262else
7263 { echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6; }
7265fi
7266
7267
7268if test "$PERL" != "none"; then
7269 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7270echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7271 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7272 { echo "$as_me:$LINENO: result: yes" >&5
7273echo "${ECHO_T}yes" >&6; }
7274 else
7275 PERL=none
7276 { echo "$as_me:$LINENO: result: not found" >&5
7277echo "${ECHO_T}not found" >&6; }
7278 fi
7279fi
7280
7281
7282if test x"$PERL" = xnone; then
7283 HAVE_PERL=0
7284
Reid Spencer59807fa2007-05-17 18:11:03 +00007285 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7286echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7287 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007288else
7289 HAVE_PERL=1
7290
7291fi
7292
7293# Find a good install program. We prefer a C program (faster),
7294# so one script is as good as another. But avoid the broken or
7295# incompatible versions:
7296# SysV /etc/install, /usr/sbin/install
7297# SunOS /usr/etc/install
7298# IRIX /sbin/install
7299# AIX /bin/install
7300# AmigaOS /C/install, which installs bootblocks on floppy discs
7301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7304# OS/2's system install, which has a completely different semantic
7305# ./install, which can be erroneously created by make from ./install.sh.
7306{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7307echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7308if test -z "$INSTALL"; then
7309if test "${ac_cv_path_install+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 # Account for people who put trailing slashes in PATH elements.
7318case $as_dir/ in
7319 ./ | .// | /cC/* | \
7320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7322 /usr/ucb/* ) ;;
7323 *)
7324 # OSF1 and SCO ODT 3.0 have their own names for install.
7325 # Don't use installbsd from OSF since it installs stuff as root
7326 # by default.
7327 for ac_prog in ginstall scoinst install; do
7328 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007329 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 +00007330 if test $ac_prog = install &&
7331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7332 # AIX install. It has an incompatible calling convention.
7333 :
7334 elif test $ac_prog = install &&
7335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7336 # program-specific install script used by HP pwplus--don't use.
7337 :
7338 else
7339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7340 break 3
7341 fi
7342 fi
7343 done
7344 done
7345 ;;
7346esac
7347done
7348IFS=$as_save_IFS
7349
7350
7351fi
7352 if test "${ac_cv_path_install+set}" = set; then
7353 INSTALL=$ac_cv_path_install
7354 else
7355 # As a last resort, use the slow shell script. Don't cache a
7356 # value for INSTALL within a source directory, because that will
7357 # break other packages using the cache if that directory is
7358 # removed, or if the value is a relative name.
7359 INSTALL=$ac_install_sh
7360 fi
7361fi
7362{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7363echo "${ECHO_T}$INSTALL" >&6; }
7364
7365# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7366# It thinks the first close brace ends the variable substitution.
7367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7368
7369test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7370
7371test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7372
7373
7374# Extract the first word of "bzip2", so it can be a program name with args.
7375set dummy bzip2; ac_word=$2
7376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378if test "${ac_cv_path_BZIP2+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 case $BZIP2 in
7382 [\\/]* | ?:[\\/]*)
7383 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7384 ;;
7385 *)
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007392 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 +00007393 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398done
7399IFS=$as_save_IFS
7400
Reid Spencera773bd52006-08-04 18:18:08 +00007401 ;;
7402esac
7403fi
7404BZIP2=$ac_cv_path_BZIP2
7405if test -n "$BZIP2"; then
7406 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7407echo "${ECHO_T}$BZIP2" >&6; }
7408else
7409 { echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6; }
7411fi
7412
7413
7414# Extract the first word of "doxygen", so it can be a program name with args.
7415set dummy doxygen; ac_word=$2
7416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418if test "${ac_cv_path_DOXYGEN+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421 case $DOXYGEN in
7422 [\\/]* | ?:[\\/]*)
7423 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7424 ;;
7425 *)
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007432 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 +00007433 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437done
7438done
7439IFS=$as_save_IFS
7440
Reid Spencera773bd52006-08-04 18:18:08 +00007441 ;;
7442esac
7443fi
7444DOXYGEN=$ac_cv_path_DOXYGEN
7445if test -n "$DOXYGEN"; then
7446 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7447echo "${ECHO_T}$DOXYGEN" >&6; }
7448else
7449 { echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6; }
7451fi
7452
7453
Reid Spencera773bd52006-08-04 18:18:08 +00007454# Extract the first word of "groff", so it can be a program name with args.
7455set dummy groff; ac_word=$2
7456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458if test "${ac_cv_path_GROFF+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461 case $GROFF in
7462 [\\/]* | ?:[\\/]*)
7463 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7464 ;;
7465 *)
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007472 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 +00007473 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479IFS=$as_save_IFS
7480
Reid Spencera773bd52006-08-04 18:18:08 +00007481 ;;
7482esac
7483fi
7484GROFF=$ac_cv_path_GROFF
7485if test -n "$GROFF"; then
7486 { echo "$as_me:$LINENO: result: $GROFF" >&5
7487echo "${ECHO_T}$GROFF" >&6; }
7488else
7489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
7491fi
7492
7493
7494# Extract the first word of "gzip", so it can be a program name with args.
7495set dummy gzip; ac_word=$2
7496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_path_GZIP+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 case $GZIP in
7502 [\\/]* | ?:[\\/]*)
7503 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007512 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 +00007513 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518done
7519IFS=$as_save_IFS
7520
Reid Spencera773bd52006-08-04 18:18:08 +00007521 ;;
7522esac
7523fi
7524GZIP=$ac_cv_path_GZIP
7525if test -n "$GZIP"; then
7526 { echo "$as_me:$LINENO: result: $GZIP" >&5
7527echo "${ECHO_T}$GZIP" >&6; }
7528else
7529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
7531fi
7532
7533
7534# Extract the first word of "pod2html", so it can be a program name with args.
7535set dummy pod2html; ac_word=$2
7536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538if test "${ac_cv_path_POD2HTML+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541 case $POD2HTML in
7542 [\\/]* | ?:[\\/]*)
7543 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7544 ;;
7545 *)
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007552 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 +00007553 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558done
7559IFS=$as_save_IFS
7560
Reid Spencera773bd52006-08-04 18:18:08 +00007561 ;;
7562esac
7563fi
7564POD2HTML=$ac_cv_path_POD2HTML
7565if test -n "$POD2HTML"; then
7566 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7567echo "${ECHO_T}$POD2HTML" >&6; }
7568else
7569 { echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6; }
7571fi
7572
7573
7574# Extract the first word of "pod2man", so it can be a program name with args.
7575set dummy pod2man; ac_word=$2
7576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578if test "${ac_cv_path_POD2MAN+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 case $POD2MAN in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007592 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 +00007593 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598done
7599IFS=$as_save_IFS
7600
Reid Spencera773bd52006-08-04 18:18:08 +00007601 ;;
7602esac
7603fi
7604POD2MAN=$ac_cv_path_POD2MAN
7605if test -n "$POD2MAN"; then
7606 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7607echo "${ECHO_T}$POD2MAN" >&6; }
7608else
7609 { echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6; }
7611fi
7612
7613
7614# Extract the first word of "runtest", so it can be a program name with args.
7615set dummy runtest; ac_word=$2
7616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618if test "${ac_cv_path_RUNTEST+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 case $RUNTEST in
7622 [\\/]* | ?:[\\/]*)
7623 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007632 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 +00007633 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637done
7638done
7639IFS=$as_save_IFS
7640
Reid Spencera773bd52006-08-04 18:18:08 +00007641 ;;
7642esac
7643fi
7644RUNTEST=$ac_cv_path_RUNTEST
7645if test -n "$RUNTEST"; then
7646 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7647echo "${ECHO_T}$RUNTEST" >&6; }
7648else
7649 { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
7651fi
7652
7653
7654
7655no_itcl=true
7656{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7657echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7658
7659# Check whether --with-tclinclude was given.
7660if test "${with_tclinclude+set}" = set; then
7661 withval=$with_tclinclude; with_tclinclude=${withval}
7662else
7663 with_tclinclude=''
7664fi
7665
7666if test "${ac_cv_path_tclsh+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669
7670if test x"${with_tclinclude}" != x ; then
7671 if test -f ${with_tclinclude}/tclsh ; then
7672 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7673 elif test -f ${with_tclinclude}/src/tclsh ; then
7674 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7675 else
7676 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7677echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7678 { (exit 1); exit 1; }; }
7679 fi
7680fi
7681
7682if test x"${ac_cv_path_tclsh}" = x ; then
7683 { echo "$as_me:$LINENO: result: none" >&5
7684echo "${ECHO_T}none" >&6; }
7685 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
7686do
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
7689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_TCLSH+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694 case $TCLSH in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7697 ;;
7698 *)
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007705 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 +00007706 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712IFS=$as_save_IFS
7713
7714 ;;
7715esac
7716fi
7717TCLSH=$ac_cv_path_TCLSH
7718if test -n "$TCLSH"; then
7719 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7720echo "${ECHO_T}$TCLSH" >&6; }
7721else
7722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
7724fi
7725
7726
7727 test -n "$TCLSH" && break
7728done
7729
7730 if test x"${TCLSH}" = x ; then
7731 ac_cv_path_tclsh='';
7732 else
7733 ac_cv_path_tclsh="${TCLSH}";
7734 fi
7735else
7736 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7737echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7738 TCLSH="${ac_cv_path_tclsh}"
7739
7740fi
7741
7742fi
7743
7744# Extract the first word of "zip", so it can be a program name with args.
7745set dummy zip; ac_word=$2
7746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748if test "${ac_cv_path_ZIP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 case $ZIP in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007762 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 +00007763 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767done
7768done
7769IFS=$as_save_IFS
7770
Reid Spencera773bd52006-08-04 18:18:08 +00007771 ;;
7772esac
7773fi
7774ZIP=$ac_cv_path_ZIP
7775if test -n "$ZIP"; then
7776 { echo "$as_me:$LINENO: result: $ZIP" >&5
7777echo "${ECHO_T}$ZIP" >&6; }
7778else
7779 { echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6; }
7781fi
7782
7783
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007784for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007785do
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790if test "${ac_cv_path_OCAMLC+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 case $OCAMLC in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_OCAMLC="$OCAMLC" # 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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007805 ac_cv_path_OCAMLC="$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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007813 ;;
7814esac
7815fi
7816OCAMLC=$ac_cv_path_OCAMLC
7817if test -n "$OCAMLC"; then
7818 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7819echo "${ECHO_T}$OCAMLC" >&6; }
7820else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6; }
7823fi
7824
7825
Gordon Henriksene7072162008-03-07 18:20:01 +00007826 test -n "$OCAMLC" && break
7827done
7828
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007829for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007830do
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838 case $OCAMLOPT in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7841 ;;
7842 *)
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007849 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 +00007850 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855done
7856IFS=$as_save_IFS
7857
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007858 ;;
7859esac
7860fi
7861OCAMLOPT=$ac_cv_path_OCAMLOPT
7862if test -n "$OCAMLOPT"; then
7863 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7864echo "${ECHO_T}$OCAMLOPT" >&6; }
7865else
7866 { echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6; }
7868fi
7869
7870
Gordon Henriksene7072162008-03-07 18:20:01 +00007871 test -n "$OCAMLOPT" && break
7872done
7873
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007874for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007875do
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883 case $OCAMLDEP in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007894 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 +00007895 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900done
7901IFS=$as_save_IFS
7902
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007903 ;;
7904esac
7905fi
7906OCAMLDEP=$ac_cv_path_OCAMLDEP
7907if test -n "$OCAMLDEP"; then
7908 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7909echo "${ECHO_T}$OCAMLDEP" >&6; }
7910else
7911 { echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6; }
7913fi
7914
7915
Gordon Henriksene7072162008-03-07 18:20:01 +00007916 test -n "$OCAMLDEP" && break
7917done
7918
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007919for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007920do
7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
7922set dummy $ac_prog; ac_word=$2
7923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 case $OCAMLDOC in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7931 ;;
7932 *)
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007939 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 +00007940 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945done
7946IFS=$as_save_IFS
7947
7948 ;;
7949esac
7950fi
7951OCAMLDOC=$ac_cv_path_OCAMLDOC
7952if test -n "$OCAMLDOC"; then
7953 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7954echo "${ECHO_T}$OCAMLDOC" >&6; }
7955else
7956 { echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6; }
7958fi
7959
7960
7961 test -n "$OCAMLDOC" && break
7962done
7963
Torok Edwincc499a42008-10-22 09:56:27 +00007964for ac_prog in gas as
7965do
7966 # Extract the first word of "$ac_prog", so it can be a program name with args.
7967set dummy $ac_prog; ac_word=$2
7968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970if test "${ac_cv_path_GAS+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973 case $GAS in
7974 [\\/]* | ?:[\\/]*)
7975 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007984 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 +00007985 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989done
7990done
7991IFS=$as_save_IFS
7992
7993 ;;
7994esac
7995fi
7996GAS=$ac_cv_path_GAS
7997if test -n "$GAS"; then
7998 { echo "$as_me:$LINENO: result: $GAS" >&5
7999echo "${ECHO_T}$GAS" >&6; }
8000else
8001 { echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6; }
8003fi
8004
8005
8006 test -n "$GAS" && break
8007done
8008
Reid Spencera773bd52006-08-04 18:18:08 +00008009
8010{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8011echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8012if test "${llvm_cv_link_use_r+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 ac_ext=c
8016ac_cpp='$CPP $CPPFLAGS'
8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021 oldcflags="$CFLAGS"
8022 CFLAGS="$CFLAGS -Wl,-R."
8023 cat >conftest.$ac_ext <<_ACEOF
8024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
8029
8030int
8031main ()
8032{
8033int main() { return 0; }
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext conftest$ac_exeext
8039if { (ac_try="$ac_link"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_link") 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056esac
8057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008072 llvm_cv_link_use_r=yes
8073else
8074 echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 llvm_cv_link_use_r=no
8078fi
8079
Bill Wendlingebcceee2009-04-18 11:20:33 +00008080rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008081 conftest$ac_exeext conftest.$ac_ext
8082 CFLAGS="$oldcflags"
8083 ac_ext=c
8084ac_cpp='$CPP $CPPFLAGS'
8085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089
8090fi
8091{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8092echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8093if test "$llvm_cv_link_use_r" = yes ; then
8094
8095cat >>confdefs.h <<\_ACEOF
8096#define HAVE_LINK_R 1
8097_ACEOF
8098
8099 fi
8100
8101
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008102{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8103echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8104if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113 oldcflags="$CFLAGS"
8114 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121
8122int
8123main ()
8124{
8125int main() { return 0; }
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext conftest$ac_exeext
8131if { (ac_try="$ac_link"
8132case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_link") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008164 llvm_cv_link_use_export_dynamic=yes
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 llvm_cv_link_use_export_dynamic=no
8170fi
8171
Bill Wendlingebcceee2009-04-18 11:20:33 +00008172rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008173 conftest$ac_exeext conftest.$ac_ext
8174 CFLAGS="$oldcflags"
8175 ac_ext=c
8176ac_cpp='$CPP $CPPFLAGS'
8177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182fi
8183{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8184echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8185if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8186
8187cat >>confdefs.h <<\_ACEOF
8188#define HAVE_LINK_EXPORT_DYNAMIC 1
8189_ACEOF
8190
8191 fi
8192
8193
Reid Spencera773bd52006-08-04 18:18:08 +00008194
8195
8196{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8197echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8198if test "${ac_cv_c_const+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 cat >conftest.$ac_ext <<_ACEOF
8202/* confdefs.h. */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h. */
8207
8208int
8209main ()
8210{
8211/* FIXME: Include the comments suggested by Paul. */
8212#ifndef __cplusplus
8213 /* Ultrix mips cc rejects this. */
8214 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008215 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008216 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008217 char const *const *ccp;
8218 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008219 /* NEC SVR4.0.2 mips cc rejects this. */
8220 struct point {int x, y;};
8221 static struct point const zero = {0,0};
8222 /* AIX XL C 1.02.0.0 rejects this.
8223 It does not let you subtract one const X* pointer from another in
8224 an arm of an if-expression whose if-part is not a constant
8225 expression */
8226 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008227 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008228 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008229 ++ccp;
8230 p = (char**) ccp;
8231 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008232 { /* SCO 3.2v4 cc rejects this. */
8233 char *t;
8234 char const *s = 0 ? (char *) 0 : (char const *) 0;
8235
8236 *t++ = 0;
8237 if (s) return 0;
8238 }
8239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8240 int x[] = {25, 17};
8241 const int *foo = &x[0];
8242 ++foo;
8243 }
8244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8245 typedef const int *iptr;
8246 iptr p = 0;
8247 ++p;
8248 }
8249 { /* AIX XL C 1.02.0.0 rejects this saying
8250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8251 struct s { int j; const int *ap[3]; };
8252 struct s *b; b->j = 5;
8253 }
8254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8255 const int foo = 10;
8256 if (!foo) return 0;
8257 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008258 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008259#endif
8260
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265rm -f conftest.$ac_objext
8266if { (ac_try="$ac_compile"
8267case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_compile") 2>conftest.er1
8273 ac_status=$?
8274 grep -v '^ *+' conftest.er1 >conftest.err
8275 rm -f conftest.er1
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008278 (exit $ac_status); } &&
8279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283esac
8284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest.$ac_objext'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008299 ac_cv_c_const=yes
8300else
8301 echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 ac_cv_c_const=no
8305fi
8306
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8310echo "${ECHO_T}$ac_cv_c_const" >&6; }
8311if test $ac_cv_c_const = no; then
8312
8313cat >>confdefs.h <<\_ACEOF
8314#define const
8315_ACEOF
8316
8317fi
8318
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008319
8320
8321
8322
8323
8324ac_header_dirent=no
8325for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008327{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8328echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332 cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
8338#include <sys/types.h>
8339#include <$ac_hdr>
8340
8341int
8342main ()
8343{
8344if ((DIR *) 0)
8345return 0;
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008351if { (ac_try="$ac_compile"
8352case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355esac
8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368esac
8369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378esac
8379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008384 eval "$as_ac_Header=yes"
8385else
8386 echo "$as_me: failed program was:" >&5
8387sed 's/^/| /' conftest.$ac_ext >&5
8388
Reid Spencera773bd52006-08-04 18:18:08 +00008389 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008390fi
Reid Spencera773bd52006-08-04 18:18:08 +00008391
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393fi
Reid Spencera773bd52006-08-04 18:18:08 +00008394ac_res=`eval echo '${'$as_ac_Header'}'`
8395 { echo "$as_me:$LINENO: result: $ac_res" >&5
8396echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008397if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8400_ACEOF
8401
8402ac_header_dirent=$ac_hdr; break
8403fi
8404
8405done
8406# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008408 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008410if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008414cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h. */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h. */
8420
Reid Spencera773bd52006-08-04 18:18:08 +00008421/* Override any GCC internal prototype to avoid an error.
8422 Use char because int might match the return type of a GCC
8423 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424#ifdef __cplusplus
8425extern "C"
8426#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008427char opendir ();
8428int
8429main ()
8430{
Reid Spencera773bd52006-08-04 18:18:08 +00008431return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008432 ;
8433 return 0;
8434}
8435_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008436for ac_lib in '' dir; do
8437 if test -z "$ac_lib"; then
8438 ac_res="none required"
8439 else
8440 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008442 fi
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (ac_try="$ac_link"
8445case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008477 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008478else
8479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008482
8483fi
8484
Bill Wendlingebcceee2009-04-18 11:20:33 +00008485rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008486 conftest$ac_exeext
8487 if test "${ac_cv_search_opendir+set}" = set; then
8488 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008489fi
John Criswell7a73b802003-06-30 21:59:07 +00008490done
Reid Spencera773bd52006-08-04 18:18:08 +00008491if test "${ac_cv_search_opendir+set}" = set; then
8492 :
8493else
8494 ac_cv_search_opendir=no
8495fi
8496rm conftest.$ac_ext
8497LIBS=$ac_func_search_save_LIBS
8498fi
8499{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8501ac_res=$ac_cv_search_opendir
8502if test "$ac_res" != no; then
8503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008504
Reid Spencera773bd52006-08-04 18:18:08 +00008505fi
8506
8507else
8508 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8509echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8510if test "${ac_cv_search_opendir+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513 ac_func_search_save_LIBS=$LIBS
8514cat >conftest.$ac_ext <<_ACEOF
8515/* confdefs.h. */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h. */
8520
8521/* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524#ifdef __cplusplus
8525extern "C"
8526#endif
8527char opendir ();
8528int
8529main ()
8530{
8531return opendir ();
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536for ac_lib in '' x; do
8537 if test -z "$ac_lib"; then
8538 ac_res="none required"
8539 else
8540 ac_res=-l$ac_lib
8541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8542 fi
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544if { (ac_try="$ac_link"
8545case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8558 { (case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8561esac
8562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_try") 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8571esac
8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_try") 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008577 ac_cv_search_opendir=$ac_res
8578else
8579 echo "$as_me: failed program was:" >&5
8580sed 's/^/| /' conftest.$ac_ext >&5
8581
8582
8583fi
8584
Bill Wendlingebcceee2009-04-18 11:20:33 +00008585rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008586 conftest$ac_exeext
8587 if test "${ac_cv_search_opendir+set}" = set; then
8588 break
8589fi
8590done
8591if test "${ac_cv_search_opendir+set}" = set; then
8592 :
8593else
8594 ac_cv_search_opendir=no
8595fi
8596rm conftest.$ac_ext
8597LIBS=$ac_func_search_save_LIBS
8598fi
8599{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8600echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8601ac_res=$ac_cv_search_opendir
8602if test "$ac_res" != no; then
8603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8604
8605fi
8606
8607fi
John Criswell7a73b802003-06-30 21:59:07 +00008608
8609
8610for ac_header in dlfcn.h
8611do
8612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008617 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008618fi
Reid Spencera773bd52006-08-04 18:18:08 +00008619ac_res=`eval echo '${'$as_ac_Header'}'`
8620 { echo "$as_me:$LINENO: result: $ac_res" >&5
8621echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008622else
Brian Gaeke0a621332004-09-08 20:38:05 +00008623 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008626cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008632$ac_includes_default
8633#include <$ac_header>
8634_ACEOF
8635rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008636if { (ac_try="$ac_compile"
8637case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8650 { (case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8653esac
8654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_try") 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663esac
8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008669 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008670else
8671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008672sed 's/^/| /' conftest.$ac_ext >&5
8673
Reid Spencera773bd52006-08-04 18:18:08 +00008674 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008675fi
Reid Spencera773bd52006-08-04 18:18:08 +00008676
8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8679echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008680
8681# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008682{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008684cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008685/* confdefs.h. */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h. */
8690#include <$ac_header>
8691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008692if { (ac_try="$ac_cpp conftest.$ac_ext"
8693case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696esac
8697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008704 (exit $ac_status); } >/dev/null; then
8705 if test -s conftest.err; then
8706 ac_cpp_err=$ac_c_preproc_warn_flag
8707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8708 else
8709 ac_cpp_err=
8710 fi
8711else
8712 ac_cpp_err=yes
8713fi
8714if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008715 ac_header_preproc=yes
8716else
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_header_preproc=no
8721fi
Reid Spencera773bd52006-08-04 18:18:08 +00008722
Brian Gaeke0a621332004-09-08 20:38:05 +00008723rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008726
8727# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8729 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8734 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008735 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008736 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008749 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008750## ----------------------------------- ##
8751## Report this to llvmbugs@cs.uiuc.edu ##
8752## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008753_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008754 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008755 ;;
8756esac
Reid Spencera773bd52006-08-04 18:18:08 +00008757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008762 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008763fi
Reid Spencera773bd52006-08-04 18:18:08 +00008764ac_res=`eval echo '${'$as_ac_Header'}'`
8765 { echo "$as_me:$LINENO: result: $ac_res" >&5
8766echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008767
8768fi
John Criswell7a73b802003-06-30 21:59:07 +00008769if test `eval echo '${'$as_ac_Header'}'` = yes; then
8770 cat >>confdefs.h <<_ACEOF
8771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772_ACEOF
8773
8774fi
8775
8776done
8777
Reid Spencera773bd52006-08-04 18:18:08 +00008778# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008780 enableval=$enable_ltdl_install;
8781fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008782
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008783
Bill Wendlingebcceee2009-04-18 11:20:33 +00008784
8785
8786if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008787 INSTALL_LTDL_TRUE=
8788 INSTALL_LTDL_FALSE='#'
8789else
8790 INSTALL_LTDL_TRUE='#'
8791 INSTALL_LTDL_FALSE=
8792fi
8793
Bill Wendlingebcceee2009-04-18 11:20:33 +00008794
8795
8796if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797 CONVENIENCE_LTDL_TRUE=
8798 CONVENIENCE_LTDL_FALSE='#'
8799else
8800 CONVENIENCE_LTDL_TRUE='#'
8801 CONVENIENCE_LTDL_FALSE=
8802fi
8803
8804
Reid Spencera773bd52006-08-04 18:18:08 +00008805{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8806echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807library_names_spec=
8808libname_spec='lib$name'
8809soname_spec=
8810shrext_cmds=".so"
8811postinstall_cmds=
8812postuninstall_cmds=
8813finish_cmds=
8814finish_eval=
8815shlibpath_var=
8816shlibpath_overrides_runpath=unknown
8817version_type=none
8818dynamic_linker="$host_os ld.so"
8819sys_lib_dlsearch_path_spec="/lib /usr/lib"
8820if test "$GCC" = yes; then
8821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8822 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8823 # if the path contains ";" then we assume it to be the separator
8824 # otherwise default to the standard path separator (i.e. ":") - it is
8825 # assumed that no part of a normal pathname contains ";" but that should
8826 # okay in the real world where ";" in dirpaths is itself problematic.
8827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8828 else
8829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8830 fi
8831else
8832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8833fi
8834need_lib_prefix=unknown
8835hardcode_into_libs=no
8836
8837# when you set need_version to no, make sure it does not cause -set_version
8838# flags to be left without arguments
8839need_version=unknown
8840
8841case $host_os in
8842aix3*)
8843 version_type=linux
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8845 shlibpath_var=LIBPATH
8846
8847 # AIX 3 has no versioning support, so we append a major version to the name.
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 ;;
8850
8851aix4* | aix5*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 hardcode_into_libs=yes
8856 if test "$host_cpu" = ia64; then
8857 # AIX 5 supports IA64
8858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 else
8861 # With GCC up to 2.95.x, collect2 would create an import file
8862 # for dependence libraries. The import file would start with
8863 # the line `#! .'. This would cause the generated library to
8864 # depend on `.', always an invalid library. This was fixed in
8865 # development snapshots of GCC prior to 3.0.
8866 case $host_os in
8867 aix4 | aix4.[01] | aix4.[01].*)
8868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8869 echo ' yes '
8870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8871 :
8872 else
8873 can_build_shared=no
8874 fi
8875 ;;
8876 esac
8877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8878 # soname into executable. Probably we can add versioning support to
8879 # collect2, so additional links can be useful in future.
8880 if test "$aix_use_runtimelinking" = yes; then
8881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8882 # instead of lib<name>.a to let people know that these are not
8883 # typical AIX shared libraries.
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 else
8886 # We preserve .a as extension for shared libraries through AIX4.2
8887 # and later when we are not doing run time linking.
8888 library_names_spec='${libname}${release}.a $libname.a'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 fi
8891 shlibpath_var=LIBPATH
8892 fi
8893 ;;
8894
8895amigaos*)
8896 library_names_spec='$libname.ixlibrary $libname.a'
8897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8898 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'
8899 ;;
8900
8901beos*)
8902 library_names_spec='${libname}${shared_ext}'
8903 dynamic_linker="$host_os ld.so"
8904 shlibpath_var=LIBRARY_PATH
8905 ;;
8906
8907bsdi[45]*)
8908 version_type=linux
8909 need_version=no
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8916 # the default ld.so.conf also contains /usr/contrib/lib and
8917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8918 # libtool to hard-code these into programs
8919 ;;
8920
8921cygwin* | mingw* | pw32*)
8922 version_type=windows
8923 shrext_cmds=".dll"
8924 need_version=no
8925 need_lib_prefix=no
8926
8927 case $GCC,$host_os in
8928 yes,cygwin* | yes,mingw* | yes,pw32*)
8929 library_names_spec='$libname.dll.a'
8930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8931 postinstall_cmds='base_file=`basename \${file}`~
8932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8933 dldir=$destdir/`dirname \$dlpath`~
8934 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008935 $install_prog $dir/$dlname \$dldir/$dlname~
8936 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8938 dlpath=$dir/\$dldll~
8939 $rm \$dlpath'
8940 shlibpath_overrides_runpath=yes
8941
8942 case $host_os in
8943 cygwin*)
8944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8947 ;;
8948 mingw*)
8949 # MinGW DLLs use traditional 'lib' prefix
8950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8953 # It is most probably a Windows format PATH printed by
8954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8955 # path with ; separators, and with drive letters. We can handle the
8956 # drive letters (cygwin fileutils understands them), so leave them,
8957 # especially as we might pass files found there to a mingw objdump,
8958 # which wouldn't understand a cygwinified path. Ahh.
8959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8960 else
8961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8962 fi
8963 ;;
8964 pw32*)
8965 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008966 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 +00008967 ;;
8968 esac
8969 ;;
8970
8971 *)
8972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8973 ;;
8974 esac
8975 dynamic_linker='Win32 ld.exe'
8976 # FIXME: first we should search . and the directory the executable is in
8977 shlibpath_var=PATH
8978 ;;
8979
8980darwin* | rhapsody*)
8981 dynamic_linker="$host_os dyld"
8982 version_type=darwin
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8986 soname_spec='${libname}${release}${major}$shared_ext'
8987 shlibpath_overrides_runpath=yes
8988 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008989 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8991 if test "$GCC" = yes; then
8992 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"`
8993 else
8994 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8995 fi
8996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8997 ;;
8998
8999dgux*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 ;;
9007
9008freebsd1*)
9009 dynamic_linker=no
9010 ;;
9011
9012kfreebsd*-gnu)
9013 version_type=linux
9014 need_lib_prefix=no
9015 need_version=no
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=no
9020 hardcode_into_libs=yes
9021 dynamic_linker='GNU ld.so'
9022 ;;
9023
Reid Spencera773bd52006-08-04 18:18:08 +00009024freebsd* | dragonfly*)
9025 # DragonFly does not have aout. When/if they implement a new
9026 # versioning mechanism, adjust this.
9027 if test -x /usr/bin/objformat; then
9028 objformat=`/usr/bin/objformat`
9029 else
9030 case $host_os in
9031 freebsd[123]*) objformat=aout ;;
9032 *) objformat=elf ;;
9033 esac
9034 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009035 version_type=freebsd-$objformat
9036 case $version_type in
9037 freebsd-elf*)
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9039 need_version=no
9040 need_lib_prefix=no
9041 ;;
9042 freebsd-*)
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9044 need_version=yes
9045 ;;
9046 esac
9047 shlibpath_var=LD_LIBRARY_PATH
9048 case $host_os in
9049 freebsd2*)
9050 shlibpath_overrides_runpath=yes
9051 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009052 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009058 shlibpath_overrides_runpath=no
9059 hardcode_into_libs=yes
9060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009061 freebsd*) # from 4.6 on
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065 esac
9066 ;;
9067
9068gnu*)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 ;;
9077
9078hpux9* | hpux10* | hpux11*)
9079 # Give a soname corresponding to the major version so that dld.sl refuses to
9080 # link against other versions.
9081 version_type=sunos
9082 need_lib_prefix=no
9083 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009084 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009085 ia64*)
9086 shrext_cmds='.so'
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.so"
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 if test "X$HPUX_IA64_MODE" = X32; then
9094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9095 else
9096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9097 fi
9098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099 ;;
9100 hppa*64*)
9101 shrext_cmds='.sl'
9102 hardcode_into_libs=yes
9103 dynamic_linker="$host_os dld.sl"
9104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110 ;;
9111 *)
9112 shrext_cmds='.sl'
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=SHLIB_PATH
9115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 ;;
9119 esac
9120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9121 postinstall_cmds='chmod 555 $lib'
9122 ;;
9123
Reid Spencera773bd52006-08-04 18:18:08 +00009124interix3*)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=no
9133 hardcode_into_libs=yes
9134 ;;
9135
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136irix5* | irix6* | nonstopux*)
9137 case $host_os in
9138 nonstopux*) version_type=nonstopux ;;
9139 *)
9140 if test "$lt_cv_prog_gnu_ld" = yes; then
9141 version_type=linux
9142 else
9143 version_type=irix
9144 fi ;;
9145 esac
9146 need_lib_prefix=no
9147 need_version=no
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9150 case $host_os in
9151 irix5* | nonstopux*)
9152 libsuff= shlibsuff=
9153 ;;
9154 *)
9155 case $LD in # libtool.m4 will add one of these switches to LD
9156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9157 libsuff= shlibsuff= libmagic=32-bit;;
9158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9159 libsuff=32 shlibsuff=N32 libmagic=N32;;
9160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9162 *) libsuff= shlibsuff= libmagic=never-match;;
9163 esac
9164 ;;
9165 esac
9166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9167 shlibpath_overrides_runpath=no
9168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9170 hardcode_into_libs=yes
9171 ;;
9172
9173# No shared lib support for Linux oldld, aout, or coff.
9174linux*oldld* | linux*aout* | linux*coff*)
9175 dynamic_linker=no
9176 ;;
9177
9178# This must be Linux ELF.
9179linux*)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 # This implies no fast_install, which is unacceptable.
9189 # Some rework will be needed to allow for fast_install
9190 # before this can be enabled.
9191 hardcode_into_libs=yes
9192
9193 # Append ld.so.conf contents to the search path
9194 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009195 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 +00009196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9197 fi
9198
9199 # We used to test for /lib/ld.so.1 and disable shared libraries on
9200 # powerpc, because MkLinux only supported shared libraries with the
9201 # GNU dynamic linker. Since this was broken with cross compilers,
9202 # most powerpc-linux boxes support dynamic linking these days and
9203 # people can always --disable-shared, the test was removed, and we
9204 # assume the GNU/Linux dynamic linker is in use.
9205 dynamic_linker='GNU/Linux ld.so'
9206 ;;
9207
9208knetbsd*-gnu)
9209 version_type=linux
9210 need_lib_prefix=no
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=no
9216 hardcode_into_libs=yes
9217 dynamic_linker='GNU ld.so'
9218 ;;
9219
9220netbsd*)
9221 version_type=sunos
9222 need_lib_prefix=no
9223 need_version=no
9224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9227 dynamic_linker='NetBSD (a.out) ld.so'
9228 else
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 dynamic_linker='NetBSD ld.elf_so'
9232 fi
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=yes
9235 hardcode_into_libs=yes
9236 ;;
9237
9238newsos6)
9239 version_type=linux
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9243 ;;
9244
9245nto-qnx*)
9246 version_type=linux
9247 need_lib_prefix=no
9248 need_version=no
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 ;;
9254
9255openbsd*)
9256 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009257 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9260 case $host_os in
9261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9262 *) need_version=no ;;
9263 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 case $host_os in
9269 openbsd2.[89] | openbsd2.[89].*)
9270 shlibpath_overrides_runpath=no
9271 ;;
9272 *)
9273 shlibpath_overrides_runpath=yes
9274 ;;
9275 esac
9276 else
9277 shlibpath_overrides_runpath=yes
9278 fi
9279 ;;
9280
9281os2*)
9282 libname_spec='$name'
9283 shrext_cmds=".dll"
9284 need_lib_prefix=no
9285 library_names_spec='$libname${shared_ext} $libname.a'
9286 dynamic_linker='OS/2 ld.exe'
9287 shlibpath_var=LIBPATH
9288 ;;
9289
9290osf3* | osf4* | osf5*)
9291 version_type=osf
9292 need_lib_prefix=no
9293 need_version=no
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9299 ;;
9300
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301solaris*)
9302 version_type=linux
9303 need_lib_prefix=no
9304 need_version=no
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 hardcode_into_libs=yes
9310 # ldd complains unless libraries are executable
9311 postinstall_cmds='chmod +x $lib'
9312 ;;
9313
9314sunos4*)
9315 version_type=sunos
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9320 if test "$with_gnu_ld" = yes; then
9321 need_lib_prefix=no
9322 fi
9323 need_version=yes
9324 ;;
9325
Reid Spencera773bd52006-08-04 18:18:08 +00009326sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009327 version_type=linux
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 case $host_vendor in
9332 sni)
9333 shlibpath_overrides_runpath=no
9334 need_lib_prefix=no
9335 export_dynamic_flag_spec='${wl}-Blargedynsym'
9336 runpath_var=LD_RUN_PATH
9337 ;;
9338 siemens)
9339 need_lib_prefix=no
9340 ;;
9341 motorola)
9342 need_lib_prefix=no
9343 need_version=no
9344 shlibpath_overrides_runpath=no
9345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9346 ;;
9347 esac
9348 ;;
9349
9350sysv4*MP*)
9351 if test -d /usr/nec ;then
9352 version_type=linux
9353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9354 soname_spec='$libname${shared_ext}.$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 fi
9357 ;;
9358
Reid Spencera773bd52006-08-04 18:18:08 +00009359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9360 version_type=freebsd-elf
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 hardcode_into_libs=yes
9367 if test "$with_gnu_ld" = yes; then
9368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9369 shlibpath_overrides_runpath=no
9370 else
9371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9372 shlibpath_overrides_runpath=yes
9373 case $host_os in
9374 sco3.2v5*)
9375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9376 ;;
9377 esac
9378 fi
9379 sys_lib_dlsearch_path_spec='/usr/lib'
9380 ;;
9381
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382uts4*)
9383 version_type=linux
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 ;;
9388
9389*)
9390 dynamic_linker=no
9391 ;;
9392esac
Reid Spencera773bd52006-08-04 18:18:08 +00009393{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9394echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395test "$dynamic_linker" = no && can_build_shared=no
9396
Reid Spencera773bd52006-08-04 18:18:08 +00009397variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9398if test "$GCC" = yes; then
9399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9400fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401
Reid Spencera773bd52006-08-04 18:18:08 +00009402
9403{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9404echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405if test "${libltdl_cv_shlibext+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407else
9408
9409module=yes
9410eval libltdl_cv_shlibext=$shrext_cmds
9411
9412fi
Reid Spencera773bd52006-08-04 18:18:08 +00009413{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9414echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009415if test -n "$libltdl_cv_shlibext"; then
9416
9417cat >>confdefs.h <<_ACEOF
9418#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9419_ACEOF
9420
9421fi
9422
9423
Reid Spencera773bd52006-08-04 18:18:08 +00009424{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9425echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426if test "${libltdl_cv_shlibpath_var+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428else
9429 libltdl_cv_shlibpath_var="$shlibpath_var"
9430fi
Reid Spencera773bd52006-08-04 18:18:08 +00009431{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9432echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433if test -n "$libltdl_cv_shlibpath_var"; then
9434
9435cat >>confdefs.h <<_ACEOF
9436#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9437_ACEOF
9438
9439fi
9440
9441
Reid Spencera773bd52006-08-04 18:18:08 +00009442{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9443echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444if test "${libltdl_cv_sys_search_path+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9448fi
Reid Spencera773bd52006-08-04 18:18:08 +00009449{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9450echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451if test -n "$libltdl_cv_sys_search_path"; then
9452 sys_search_path=
9453 for dir in $libltdl_cv_sys_search_path; do
9454 if test -z "$sys_search_path"; then
9455 sys_search_path="$dir"
9456 else
9457 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9458 fi
9459 done
9460
9461cat >>confdefs.h <<_ACEOF
9462#define LTDL_SYSSEARCHPATH "$sys_search_path"
9463_ACEOF
9464
9465fi
9466
Reid Spencera773bd52006-08-04 18:18:08 +00009467{ echo "$as_me:$LINENO: checking for objdir" >&5
9468echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469if test "${libltdl_cv_objdir+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472 libltdl_cv_objdir="$objdir"
9473 if test -n "$objdir"; then
9474 :
9475 else
9476 rm -f .libs 2>/dev/null
9477 mkdir .libs 2>/dev/null
9478 if test -d .libs; then
9479 libltdl_cv_objdir=.libs
9480 else
9481 # MS-DOS does not allow filenames that begin with a dot.
9482 libltdl_cv_objdir=_libs
9483 fi
9484 rmdir .libs 2>/dev/null
9485 fi
9486
9487fi
Reid Spencera773bd52006-08-04 18:18:08 +00009488{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9489echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490
9491cat >>confdefs.h <<_ACEOF
9492#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9493_ACEOF
9494
9495
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496
9497
9498
9499
9500# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009501{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9502echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506
9507# These are sane defaults that work on at least a few old systems.
9508# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9509
9510# Character class describing NM global symbol codes.
9511symcode='[BCDEGRST]'
9512
9513# Regexp to match symbols that can be accessed directly from C.
9514sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9515
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516# Transform an extracted symbol line into a proper C declaration
9517lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9518
9519# Transform an extracted symbol line into symbol name and symbol address
9520lt_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'"
9521
9522# Define system-specific variables.
9523case $host_os in
9524aix*)
9525 symcode='[BCDT]'
9526 ;;
9527cygwin* | mingw* | pw32*)
9528 symcode='[ABCDGISTW]'
9529 ;;
9530hpux*) # Its linker distinguishes data from code symbols
9531 if test "$host_cpu" = ia64; then
9532 symcode='[ABCDEGRST]'
9533 fi
9534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9535 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'"
9536 ;;
9537linux*)
9538 if test "$host_cpu" = ia64; then
9539 symcode='[ABCDGIRSTW]'
9540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9541 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'"
9542 fi
9543 ;;
9544irix* | nonstopux*)
9545 symcode='[BCDEGRST]'
9546 ;;
9547osf*)
9548 symcode='[BCDEGQRST]'
9549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009550solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551 symcode='[BDRT]'
9552 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009553sco3.2v5*)
9554 symcode='[DT]'
9555 ;;
9556sysv4.2uw2*)
9557 symcode='[DT]'
9558 ;;
9559sysv5* | sco5v6* | unixware* | OpenUNIX*)
9560 symcode='[ABDT]'
9561 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562sysv4)
9563 symcode='[DFNSTU]'
9564 ;;
9565esac
9566
9567# Handle CRLF in mingw tool chain
9568opt_cr=
9569case $build_os in
9570mingw*)
9571 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9572 ;;
9573esac
9574
9575# If we're using GNU nm, then use its standard symbol codes.
9576case `$NM -V 2>&1` in
9577*GNU* | *'with BFD'*)
9578 symcode='[ABCDGIRSTW]' ;;
9579esac
9580
9581# Try without a prefix undercore, then with it.
9582for ac_symprfx in "" "_"; do
9583
Reid Spencera773bd52006-08-04 18:18:08 +00009584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9585 symxfrm="\\1 $ac_symprfx\\2 \\2"
9586
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009588 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 +00009589
9590 # Check to see that the pipe works correctly.
9591 pipe_works=no
9592
9593 rm -f conftest*
9594 cat > conftest.$ac_ext <<EOF
9595#ifdef __cplusplus
9596extern "C" {
9597#endif
9598char nm_test_var;
9599void nm_test_func(){}
9600#ifdef __cplusplus
9601}
9602#endif
9603int main(){nm_test_var='a';nm_test_func();return(0);}
9604EOF
9605
9606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607 (eval $ac_compile) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; then
9611 # Now try to grab the symbols.
9612 nlist=conftest.nm
9613 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9614 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && test -s "$nlist"; then
9618 # Try sorting and uniquifying the output.
9619 if sort "$nlist" | uniq > "$nlist"T; then
9620 mv -f "$nlist"T "$nlist"
9621 else
9622 rm -f "$nlist"T
9623 fi
9624
9625 # Make sure that we snagged all the symbols we need.
9626 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9627 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9628 cat <<EOF > conftest.$ac_ext
9629#ifdef __cplusplus
9630extern "C" {
9631#endif
9632
9633EOF
9634 # Now generate the symbol file.
9635 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9636
9637 cat <<EOF >> conftest.$ac_ext
9638#if defined (__STDC__) && __STDC__
9639# define lt_ptr_t void *
9640#else
9641# define lt_ptr_t char *
9642# define const
9643#endif
9644
9645/* The mapping between symbol names and symbols. */
9646const struct {
9647 const char *name;
9648 lt_ptr_t address;
9649}
9650lt_preloaded_symbols[] =
9651{
9652EOF
9653 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9654 cat <<\EOF >> conftest.$ac_ext
9655 {0, (lt_ptr_t) 0}
9656};
9657
9658#ifdef __cplusplus
9659}
9660#endif
9661EOF
9662 # Now try linking the two files.
9663 mv conftest.$ac_objext conftstm.$ac_objext
9664 lt_save_LIBS="$LIBS"
9665 lt_save_CFLAGS="$CFLAGS"
9666 LIBS="conftstm.$ac_objext"
9667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669 (eval $ac_link) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9673 pipe_works=yes
9674 fi
9675 LIBS="$lt_save_LIBS"
9676 CFLAGS="$lt_save_CFLAGS"
9677 else
9678 echo "cannot find nm_test_func in $nlist" >&5
9679 fi
9680 else
9681 echo "cannot find nm_test_var in $nlist" >&5
9682 fi
9683 else
9684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9685 fi
9686 else
9687 echo "$progname: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 fi
9690 rm -f conftest* conftst*
9691
9692 # Do not use the global_symbol_pipe unless it works.
9693 if test "$pipe_works" = yes; then
9694 break
9695 else
9696 lt_cv_sys_global_symbol_pipe=
9697 fi
9698done
9699
9700fi
9701
9702if test -z "$lt_cv_sys_global_symbol_pipe"; then
9703 lt_cv_sys_global_symbol_to_cdecl=
9704fi
9705if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009706 { echo "$as_me:$LINENO: result: failed" >&5
9707echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708else
Reid Spencera773bd52006-08-04 18:18:08 +00009709 { echo "$as_me:$LINENO: result: ok" >&5
9710echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711fi
9712
9713
Reid Spencera773bd52006-08-04 18:18:08 +00009714{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9715echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9720 libltdl_cv_preloaded_symbols=yes
9721 else
9722 libltdl_cv_preloaded_symbols=no
9723 fi
9724
9725fi
Reid Spencera773bd52006-08-04 18:18:08 +00009726{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9727echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9729
9730cat >>confdefs.h <<\_ACEOF
9731#define HAVE_PRELOADED_SYMBOLS 1
9732_ACEOF
9733
9734fi
9735
9736LIBADD_DL=
9737
9738ac_ext=c
9739ac_cpp='$CPP $CPPFLAGS'
9740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742ac_compiler_gnu=$ac_cv_c_compiler_gnu
9743
9744
Reid Spencera773bd52006-08-04 18:18:08 +00009745{ echo "$as_me:$LINENO: checking for shl_load" >&5
9746echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747if test "${ac_cv_func_shl_load+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750 cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758#define shl_load innocuous_shl_load
9759
9760/* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char shl_load (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9764
9765#ifdef __STDC__
9766# include <limits.h>
9767#else
9768# include <assert.h>
9769#endif
9770
9771#undef shl_load
9772
Reid Spencera773bd52006-08-04 18:18:08 +00009773/* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776#ifdef __cplusplus
9777extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779char shl_load ();
9780/* The GNU C library defines this for functions which it implements
9781 to always fail with ENOSYS. Some functions are actually named
9782 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009783#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785#endif
9786
9787int
9788main ()
9789{
Reid Spencera773bd52006-08-04 18:18:08 +00009790return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791 ;
9792 return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9810 { (case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_try") 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829 ac_cv_func_shl_load=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
Reid Spencera773bd52006-08-04 18:18:08 +00009834 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835fi
Reid Spencera773bd52006-08-04 18:18:08 +00009836
Bill Wendlingebcceee2009-04-18 11:20:33 +00009837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 conftest$ac_exeext conftest.$ac_ext
9839fi
Reid Spencera773bd52006-08-04 18:18:08 +00009840{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9841echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842if test $ac_cv_func_shl_load = yes; then
9843
9844cat >>confdefs.h <<\_ACEOF
9845#define HAVE_SHL_LOAD 1
9846_ACEOF
9847
9848else
Reid Spencera773bd52006-08-04 18:18:08 +00009849 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9850echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854 ac_check_lib_save_LIBS=$LIBS
9855LIBS="-ldld $LIBS"
9856cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h. */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h. */
9862
Reid Spencera773bd52006-08-04 18:18:08 +00009863/* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866#ifdef __cplusplus
9867extern "C"
9868#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869char shl_load ();
9870int
9871main ()
9872{
Reid Spencera773bd52006-08-04 18:18:08 +00009873return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874 ;
9875 return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009879if { (ac_try="$ac_link"
9880case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912 ac_cv_lib_dld_shl_load=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
Reid Spencera773bd52006-08-04 18:18:08 +00009917 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918fi
Reid Spencera773bd52006-08-04 18:18:08 +00009919
Bill Wendlingebcceee2009-04-18 11:20:33 +00009920rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
Reid Spencera773bd52006-08-04 18:18:08 +00009924{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9925echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926if test $ac_cv_lib_dld_shl_load = yes; then
9927
9928cat >>confdefs.h <<\_ACEOF
9929#define HAVE_SHL_LOAD 1
9930_ACEOF
9931
9932 LIBADD_DL="$LIBADD_DL -ldld"
9933else
Reid Spencera773bd52006-08-04 18:18:08 +00009934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938else
9939 ac_check_lib_save_LIBS=$LIBS
9940LIBS="-ldl $LIBS"
9941cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947
Reid Spencera773bd52006-08-04 18:18:08 +00009948/* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951#ifdef __cplusplus
9952extern "C"
9953#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954char dlopen ();
9955int
9956main ()
9957{
Reid Spencera773bd52006-08-04 18:18:08 +00009958return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959 ;
9960 return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009964if { (ac_try="$ac_link"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997 ac_cv_lib_dl_dlopen=yes
9998else
9999 echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
Reid Spencera773bd52006-08-04 18:18:08 +000010002 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003fi
Reid Spencera773bd52006-08-04 18:18:08 +000010004
Bill Wendlingebcceee2009-04-18 11:20:33 +000010005rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006 conftest$ac_exeext conftest.$ac_ext
10007LIBS=$ac_check_lib_save_LIBS
10008fi
Reid Spencera773bd52006-08-04 18:18:08 +000010009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011if test $ac_cv_lib_dl_dlopen = yes; then
10012
10013cat >>confdefs.h <<\_ACEOF
10014#define HAVE_LIBDL 1
10015_ACEOF
10016
10017 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10018else
10019 cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
10025#if HAVE_DLFCN_H
10026# include <dlfcn.h>
10027#endif
10028
10029int
10030main ()
10031{
10032dlopen(0, 0);
10033 ;
10034 return 0;
10035}
10036_ACEOF
10037rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010038if { (ac_try="$ac_link"
10039case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042esac
10043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071
10072cat >>confdefs.h <<\_ACEOF
10073#define HAVE_LIBDL 1
10074_ACEOF
10075 libltdl_cv_func_dlopen="yes"
10076else
10077 echo "$as_me: failed program was:" >&5
10078sed 's/^/| /' conftest.$ac_ext >&5
10079
Reid Spencera773bd52006-08-04 18:18:08 +000010080 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085 ac_check_lib_save_LIBS=$LIBS
10086LIBS="-lsvld $LIBS"
10087cat >conftest.$ac_ext <<_ACEOF
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093
Reid Spencera773bd52006-08-04 18:18:08 +000010094/* Override any GCC internal prototype to avoid an error.
10095 Use char because int might match the return type of a GCC
10096 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097#ifdef __cplusplus
10098extern "C"
10099#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100char dlopen ();
10101int
10102main ()
10103{
Reid Spencera773bd52006-08-04 18:18:08 +000010104return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 ;
10106 return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010110if { (ac_try="$ac_link"
10111case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143 ac_cv_lib_svld_dlopen=yes
10144else
10145 echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
Reid Spencera773bd52006-08-04 18:18:08 +000010148 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149fi
Reid Spencera773bd52006-08-04 18:18:08 +000010150
Bill Wendlingebcceee2009-04-18 11:20:33 +000010151rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152 conftest$ac_exeext conftest.$ac_ext
10153LIBS=$ac_check_lib_save_LIBS
10154fi
Reid Spencera773bd52006-08-04 18:18:08 +000010155{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10156echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157if test $ac_cv_lib_svld_dlopen = yes; then
10158
10159cat >>confdefs.h <<\_ACEOF
10160#define HAVE_LIBDL 1
10161_ACEOF
10162
10163 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10164else
Reid Spencera773bd52006-08-04 18:18:08 +000010165 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10166echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170 ac_check_lib_save_LIBS=$LIBS
10171LIBS="-ldld $LIBS"
10172cat >conftest.$ac_ext <<_ACEOF
10173/* confdefs.h. */
10174_ACEOF
10175cat confdefs.h >>conftest.$ac_ext
10176cat >>conftest.$ac_ext <<_ACEOF
10177/* end confdefs.h. */
10178
Reid Spencera773bd52006-08-04 18:18:08 +000010179/* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182#ifdef __cplusplus
10183extern "C"
10184#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185char dld_link ();
10186int
10187main ()
10188{
Reid Spencera773bd52006-08-04 18:18:08 +000010189return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190 ;
10191 return 0;
10192}
10193_ACEOF
10194rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010195if { (ac_try="$ac_link"
10196case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199esac
10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10209 { (case "(($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_try") 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228 ac_cv_lib_dld_dld_link=yes
10229else
10230 echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
Reid Spencera773bd52006-08-04 18:18:08 +000010233 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234fi
Reid Spencera773bd52006-08-04 18:18:08 +000010235
Bill Wendlingebcceee2009-04-18 11:20:33 +000010236rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 conftest$ac_exeext conftest.$ac_ext
10238LIBS=$ac_check_lib_save_LIBS
10239fi
Reid Spencera773bd52006-08-04 18:18:08 +000010240{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10241echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242if test $ac_cv_lib_dld_dld_link = yes; then
10243
10244cat >>confdefs.h <<\_ACEOF
10245#define HAVE_DLD 1
10246_ACEOF
10247
10248 LIBADD_DL="$LIBADD_DL -ldld"
10249else
Reid Spencera773bd52006-08-04 18:18:08 +000010250 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10251echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h. */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h. */
10261/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263#define _dyld_func_lookup innocuous__dyld_func_lookup
10264
10265/* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char _dyld_func_lookup (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10269
10270#ifdef __STDC__
10271# include <limits.h>
10272#else
10273# include <assert.h>
10274#endif
10275
10276#undef _dyld_func_lookup
10277
Reid Spencera773bd52006-08-04 18:18:08 +000010278/* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281#ifdef __cplusplus
10282extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010284char _dyld_func_lookup ();
10285/* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010288#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290#endif
10291
10292int
10293main ()
10294{
Reid Spencera773bd52006-08-04 18:18:08 +000010295return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334 ac_cv_func__dyld_func_lookup=yes
10335else
10336 echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
Reid Spencera773bd52006-08-04 18:18:08 +000010339 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340fi
Reid Spencera773bd52006-08-04 18:18:08 +000010341
Bill Wendlingebcceee2009-04-18 11:20:33 +000010342rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343 conftest$ac_exeext conftest.$ac_ext
10344fi
Reid Spencera773bd52006-08-04 18:18:08 +000010345{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10346echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347if test $ac_cv_func__dyld_func_lookup = yes; then
10348
10349cat >>confdefs.h <<\_ACEOF
10350#define HAVE_DYLD 1
10351_ACEOF
10352
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361
10362fi
Reid Spencera773bd52006-08-04 18:18:08 +000010363
Bill Wendlingebcceee2009-04-18 11:20:33 +000010364rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365 conftest$ac_exeext conftest.$ac_ext
10366
10367fi
10368
10369
10370fi
10371
10372
10373fi
10374
10375
10376if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10377then
10378 lt_save_LIBS="$LIBS"
10379 LIBS="$LIBS $LIBADD_DL"
10380
10381for ac_func in dlerror
10382do
10383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389 cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10397#define $ac_func innocuous_$ac_func
10398
10399/* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char $ac_func (); below.
10401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402 <limits.h> exists even on freestanding compilers. */
10403
10404#ifdef __STDC__
10405# include <limits.h>
10406#else
10407# include <assert.h>
10408#endif
10409
10410#undef $ac_func
10411
Reid Spencera773bd52006-08-04 18:18:08 +000010412/* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415#ifdef __cplusplus
10416extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418char $ac_func ();
10419/* The GNU C library defines this for functions which it implements
10420 to always fail with ENOSYS. Some functions are actually named
10421 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010422#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424#endif
10425
10426int
10427main ()
10428{
Reid Spencera773bd52006-08-04 18:18:08 +000010429return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010435if { (ac_try="$ac_link"
10436case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010447 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449 { (case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452esac
10453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_try") 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462esac
10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468 eval "$as_ac_var=yes"
10469else
10470 echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
Reid Spencera773bd52006-08-04 18:18:08 +000010473 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474fi
Reid Spencera773bd52006-08-04 18:18:08 +000010475
Bill Wendlingebcceee2009-04-18 11:20:33 +000010476rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477 conftest$ac_exeext conftest.$ac_ext
10478fi
Reid Spencera773bd52006-08-04 18:18:08 +000010479ac_res=`eval echo '${'$as_ac_var'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482if test `eval echo '${'$as_ac_var'}'` = yes; then
10483 cat >>confdefs.h <<_ACEOF
10484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485_ACEOF
10486
10487fi
10488done
10489
10490 LIBS="$lt_save_LIBS"
10491fi
10492ac_ext=c
10493ac_cpp='$CPP $CPPFLAGS'
10494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498
10499
Reid Spencera773bd52006-08-04 18:18:08 +000010500{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10501echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505 ac_cv_sys_symbol_underscore=no
10506 cat > conftest.$ac_ext <<EOF
10507void nm_test_func(){}
10508int main(){nm_test_func;return 0;}
10509EOF
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; then
10515 # Now try to grab the symbols.
10516 ac_nlist=conftest.nm
10517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s "$ac_nlist"; then
10522 # See whether the symbols have a leading underscore.
10523 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10524 ac_cv_sys_symbol_underscore=yes
10525 else
10526 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10527 :
10528 else
10529 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10530 fi
10531 fi
10532 else
10533 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10534 fi
10535 else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.c >&5
10538 fi
10539 rm -rf conftest*
10540
10541fi
Reid Spencera773bd52006-08-04 18:18:08 +000010542{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10543echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544
10545
10546if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10547 if test x"$libltdl_cv_func_dlopen" = xyes ||
10548 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010549 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10550echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551if test "${libltdl_cv_need_uscore+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554 libltdl_cv_need_uscore=unknown
10555 save_LIBS="$LIBS"
10556 LIBS="$LIBS $LIBADD_DL"
10557 if test "$cross_compiling" = yes; then :
10558 libltdl_cv_need_uscore=cross
10559else
10560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561 lt_status=$lt_dlunknown
10562 cat > conftest.$ac_ext <<EOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000010563#line 10563 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564#include "confdefs.h"
10565
10566#if HAVE_DLFCN_H
10567#include <dlfcn.h>
10568#endif
10569
10570#include <stdio.h>
10571
10572#ifdef RTLD_GLOBAL
10573# define LT_DLGLOBAL RTLD_GLOBAL
10574#else
10575# ifdef DL_GLOBAL
10576# define LT_DLGLOBAL DL_GLOBAL
10577# else
10578# define LT_DLGLOBAL 0
10579# endif
10580#endif
10581
10582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583 find out it does not work in some platform. */
10584#ifndef LT_DLLAZY_OR_NOW
10585# ifdef RTLD_LAZY
10586# define LT_DLLAZY_OR_NOW RTLD_LAZY
10587# else
10588# ifdef DL_LAZY
10589# define LT_DLLAZY_OR_NOW DL_LAZY
10590# else
10591# ifdef RTLD_NOW
10592# define LT_DLLAZY_OR_NOW RTLD_NOW
10593# else
10594# ifdef DL_NOW
10595# define LT_DLLAZY_OR_NOW DL_NOW
10596# else
10597# define LT_DLLAZY_OR_NOW 0
10598# endif
10599# endif
10600# endif
10601# endif
10602#endif
10603
10604#ifdef __cplusplus
10605extern "C" void exit (int);
10606#endif
10607
10608void fnord() { int i=42;}
10609int main ()
10610{
10611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612 int status = $lt_dlunknown;
10613
10614 if (self)
10615 {
10616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618 /* dlclose (self); */
10619 }
Reid Spencera773bd52006-08-04 18:18:08 +000010620 else
10621 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622
10623 exit (status);
10624}
10625EOF
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010631 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632 lt_status=$?
10633 case x$lt_status in
10634 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10635 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010636 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637 esac
10638 else :
10639 # compilation failed
10640
10641 fi
10642fi
10643rm -fr conftest*
10644
10645 LIBS="$save_LIBS"
10646
10647fi
Reid Spencera773bd52006-08-04 18:18:08 +000010648{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10649echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650 fi
10651fi
10652
10653if test x"$libltdl_cv_need_uscore" = xyes; then
10654
10655cat >>confdefs.h <<\_ACEOF
10656#define NEED_USCORE 1
10657_ACEOF
10658
10659fi
10660
10661
Reid Spencera773bd52006-08-04 18:18:08 +000010662{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10663echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 # PORTME does your system automatically load deplibs for dlopen?
10668 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10669 # For now, we just catch OSes we know something about -- in the
10670 # future, we'll try test this programmatically.
10671 libltdl_cv_sys_dlopen_deplibs=unknown
10672 case "$host_os" in
10673 aix3*|aix4.1.*|aix4.2.*)
10674 # Unknown whether this is true for these versions of AIX, but
10675 # we want this `case' here to explicitly catch those versions.
10676 libltdl_cv_sys_dlopen_deplibs=unknown
10677 ;;
10678 aix[45]*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10680 ;;
10681 darwin*)
10682 # Assuming the user has installed a libdl from somewhere, this is true
10683 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10684 libltdl_cv_sys_dlopen_deplibs=yes
10685 ;;
10686 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10687 # GNU and its variants, using gnu ld.so (Glibc)
10688 libltdl_cv_sys_dlopen_deplibs=yes
10689 ;;
10690 hpux10*|hpux11*)
10691 libltdl_cv_sys_dlopen_deplibs=yes
10692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010693 interix*)
10694 libltdl_cv_sys_dlopen_deplibs=yes
10695 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696 irix[12345]*|irix6.[01]*)
10697 # Catch all versions of IRIX before 6.2, and indicate that we don't
10698 # know how it worked for any of those versions.
10699 libltdl_cv_sys_dlopen_deplibs=unknown
10700 ;;
10701 irix*)
10702 # The case above catches anything before 6.2, and it's known that
10703 # at 6.2 and later dlopen does load deplibs.
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
10706 netbsd*)
10707 libltdl_cv_sys_dlopen_deplibs=yes
10708 ;;
10709 openbsd*)
10710 libltdl_cv_sys_dlopen_deplibs=yes
10711 ;;
10712 osf[1234]*)
10713 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10714 # it did *not* use an RPATH in a shared library to find objects the
10715 # library depends on, so we explictly say `no'.
10716 libltdl_cv_sys_dlopen_deplibs=no
10717 ;;
10718 osf5.0|osf5.0a|osf5.1)
10719 # dlopen *does* load deplibs and with the right loader patch applied
10720 # it even uses RPATH in a shared library to search for shared objects
10721 # that the library depends on, but there's no easy way to know if that
10722 # patch is installed. Since this is the case, all we can really
10723 # say is unknown -- it depends on the patch being installed. If
10724 # it is, this changes to `yes'. Without it, it would be `no'.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10726 ;;
10727 osf*)
10728 # the two cases above should catch all versions of osf <= 5.1. Read
10729 # the comments above for what we know about them.
10730 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10731 # is used to find them so we can finally say `yes'.
10732 libltdl_cv_sys_dlopen_deplibs=yes
10733 ;;
10734 solaris*)
10735 libltdl_cv_sys_dlopen_deplibs=yes
10736 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738 libltdl_cv_sys_dlopen_deplibs=yes
10739 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 esac
10741
10742fi
Reid Spencera773bd52006-08-04 18:18:08 +000010743{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10744echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10746
10747cat >>confdefs.h <<\_ACEOF
10748#define LTDL_DLOPEN_DEPLIBS 1
10749_ACEOF
10750
10751fi
10752
10753
10754for ac_header in argz.h
10755do
10756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762fi
Reid Spencera773bd52006-08-04 18:18:08 +000010763ac_res=`eval echo '${'$as_ac_Header'}'`
10764 { echo "$as_me:$LINENO: result: $ac_res" >&5
10765echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766else
10767 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010768{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776$ac_includes_default
10777#include <$ac_header>
10778_ACEOF
10779rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010780if { (ac_try="$ac_compile"
10781case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813 ac_header_compiler=yes
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
Reid Spencera773bd52006-08-04 18:18:08 +000010818 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819fi
Reid Spencera773bd52006-08-04 18:18:08 +000010820
10821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824
10825# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010826{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828cat >conftest.$ac_ext <<_ACEOF
10829/* confdefs.h. */
10830_ACEOF
10831cat confdefs.h >>conftest.$ac_ext
10832cat >>conftest.$ac_ext <<_ACEOF
10833/* end confdefs.h. */
10834#include <$ac_header>
10835_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010836if { (ac_try="$ac_cpp conftest.$ac_ext"
10837case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840esac
10841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010848 (exit $ac_status); } >/dev/null; then
10849 if test -s conftest.err; then
10850 ac_cpp_err=$ac_c_preproc_warn_flag
10851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10852 else
10853 ac_cpp_err=
10854 fi
10855else
10856 ac_cpp_err=yes
10857fi
10858if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010859 ac_header_preproc=yes
10860else
10861 echo "$as_me: failed program was:" >&5
10862sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_header_preproc=no
10865fi
Reid Spencera773bd52006-08-04 18:18:08 +000010866
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010868{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10869echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870
10871# So? What about this header?
10872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10873 yes:no: )
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10878 ac_header_preproc=yes
10879 ;;
10880 no:yes:* )
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010893 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894## ----------------------------------- ##
10895## Report this to llvmbugs@cs.uiuc.edu ##
10896## ----------------------------------- ##
10897_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010898 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899 ;;
10900esac
Reid Spencera773bd52006-08-04 18:18:08 +000010901{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905else
10906 eval "$as_ac_Header=\$ac_header_preproc"
10907fi
Reid Spencera773bd52006-08-04 18:18:08 +000010908ac_res=`eval echo '${'$as_ac_Header'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911
10912fi
10913if test `eval echo '${'$as_ac_Header'}'` = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916_ACEOF
10917
10918fi
10919
10920done
10921
10922
Reid Spencera773bd52006-08-04 18:18:08 +000010923{ echo "$as_me:$LINENO: checking for error_t" >&5
10924echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925if test "${ac_cv_type_error_t+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934#if HAVE_ARGZ_H
10935# include <argz.h>
10936#endif
10937
Reid Spencera773bd52006-08-04 18:18:08 +000010938typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939int
10940main ()
10941{
Reid Spencera773bd52006-08-04 18:18:08 +000010942if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010944if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945 return 0;
10946 ;
10947 return 0;
10948}
10949_ACEOF
10950rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010951if { (ac_try="$ac_compile"
10952case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965 { (case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_try") 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984 ac_cv_type_error_t=yes
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
Reid Spencera773bd52006-08-04 18:18:08 +000010989 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990fi
Reid Spencera773bd52006-08-04 18:18:08 +000010991
10992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993fi
Reid Spencera773bd52006-08-04 18:18:08 +000010994{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10995echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996if test $ac_cv_type_error_t = yes; then
10997
10998cat >>confdefs.h <<_ACEOF
10999#define HAVE_ERROR_T 1
11000_ACEOF
11001
11002
11003else
11004
11005cat >>confdefs.h <<\_ACEOF
11006#define error_t int
11007_ACEOF
11008
11009fi
11010
11011
11012
11013
11014
11015
11016
11017for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11018do
11019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011020{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11022if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
11030/* end confdefs.h. */
11031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11033#define $ac_func innocuous_$ac_func
11034
11035/* System header to define __stub macros and hopefully few prototypes,
11036 which can conflict with char $ac_func (); below.
11037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038 <limits.h> exists even on freestanding compilers. */
11039
11040#ifdef __STDC__
11041# include <limits.h>
11042#else
11043# include <assert.h>
11044#endif
11045
11046#undef $ac_func
11047
Reid Spencera773bd52006-08-04 18:18:08 +000011048/* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051#ifdef __cplusplus
11052extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054char $ac_func ();
11055/* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011058#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060#endif
11061
11062int
11063main ()
11064{
Reid Spencera773bd52006-08-04 18:18:08 +000011065return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 ;
11067 return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011071if { (ac_try="$ac_link"
11072case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075esac
11076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104 eval "$as_ac_var=yes"
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
Reid Spencera773bd52006-08-04 18:18:08 +000011109 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110fi
Reid Spencera773bd52006-08-04 18:18:08 +000011111
Bill Wendlingebcceee2009-04-18 11:20:33 +000011112rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 conftest$ac_exeext conftest.$ac_ext
11114fi
Reid Spencera773bd52006-08-04 18:18:08 +000011115ac_res=`eval echo '${'$as_ac_var'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118if test `eval echo '${'$as_ac_var'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121_ACEOF
11122
11123fi
11124done
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11154 stdio.h unistd.h
11155do
11156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162fi
Reid Spencera773bd52006-08-04 18:18:08 +000011163ac_res=`eval echo '${'$as_ac_Header'}'`
11164 { echo "$as_me:$LINENO: result: $ac_res" >&5
11165echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166else
11167 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011168{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176$ac_includes_default
11177#include <$ac_header>
11178_ACEOF
11179rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011180if { (ac_try="$ac_compile"
11181case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187 ac_status=$?
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11194 { (case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_try") 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207esac
11208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213 ac_header_compiler=yes
11214else
11215 echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
Reid Spencera773bd52006-08-04 18:18:08 +000011218 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219fi
Reid Spencera773bd52006-08-04 18:18:08 +000011220
11221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224
11225# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011226{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228cat >conftest.$ac_ext <<_ACEOF
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234#include <$ac_header>
11235_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011236if { (ac_try="$ac_cpp conftest.$ac_ext"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011248 (exit $ac_status); } >/dev/null; then
11249 if test -s conftest.err; then
11250 ac_cpp_err=$ac_c_preproc_warn_flag
11251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11252 else
11253 ac_cpp_err=
11254 fi
11255else
11256 ac_cpp_err=yes
11257fi
11258if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259 ac_header_preproc=yes
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ac_header_preproc=no
11265fi
Reid Spencera773bd52006-08-04 18:18:08 +000011266
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270
11271# So? What about this header?
11272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 yes:no: )
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278 ac_header_preproc=yes
11279 ;;
11280 no:yes:* )
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011293 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294## ----------------------------------- ##
11295## Report this to llvmbugs@cs.uiuc.edu ##
11296## ----------------------------------- ##
11297_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011298 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 ;;
11300esac
Reid Spencera773bd52006-08-04 18:18:08 +000011301{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 eval "$as_ac_Header=\$ac_header_preproc"
11307fi
Reid Spencera773bd52006-08-04 18:18:08 +000011308ac_res=`eval echo '${'$as_ac_Header'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311
11312fi
11313if test `eval echo '${'$as_ac_Header'}'` = yes; then
11314 cat >>confdefs.h <<_ACEOF
11315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316_ACEOF
11317
11318fi
11319
11320done
11321
11322
11323
11324
11325
11326for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11327do
11328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334fi
Reid Spencera773bd52006-08-04 18:18:08 +000011335ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338else
11339 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011340{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348$ac_includes_default
11349#include <$ac_header>
11350_ACEOF
11351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011352if { (ac_try="$ac_compile"
11353case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 ac_header_compiler=yes
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
Reid Spencera773bd52006-08-04 18:18:08 +000011390 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391fi
Reid Spencera773bd52006-08-04 18:18:08 +000011392
11393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396
11397# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011398{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406#include <$ac_header>
11407_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011408if { (ac_try="$ac_cpp conftest.$ac_ext"
11409case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011420 (exit $ac_status); } >/dev/null; then
11421 if test -s conftest.err; then
11422 ac_cpp_err=$ac_c_preproc_warn_flag
11423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11424 else
11425 ac_cpp_err=
11426 fi
11427else
11428 ac_cpp_err=yes
11429fi
11430if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431 ac_header_preproc=yes
11432else
11433 echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 ac_header_preproc=no
11437fi
Reid Spencera773bd52006-08-04 18:18:08 +000011438
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442
11443# So? What about this header?
11444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445 yes:no: )
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450 ac_header_preproc=yes
11451 ;;
11452 no:yes:* )
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011465 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466## ----------------------------------- ##
11467## Report this to llvmbugs@cs.uiuc.edu ##
11468## ----------------------------------- ##
11469_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011470 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471 ;;
11472esac
Reid Spencera773bd52006-08-04 18:18:08 +000011473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 eval "$as_ac_Header=\$ac_header_preproc"
11479fi
Reid Spencera773bd52006-08-04 18:18:08 +000011480ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483
11484fi
11485if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488_ACEOF
11489
11490fi
11491
11492done
11493
11494
11495
11496for ac_header in string.h strings.h
11497do
11498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504fi
Reid Spencera773bd52006-08-04 18:18:08 +000011505ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508else
11509 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519#include <$ac_header>
11520_ACEOF
11521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011522if { (ac_try="$ac_compile"
11523case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555 ac_header_compiler=yes
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
Reid Spencera773bd52006-08-04 18:18:08 +000011560 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561fi
Reid Spencera773bd52006-08-04 18:18:08 +000011562
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566
11567# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576#include <$ac_header>
11577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011578if { (ac_try="$ac_cpp conftest.$ac_ext"
11579case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582esac
11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594 else
11595 ac_cpp_err=
11596 fi
11597else
11598 ac_cpp_err=yes
11599fi
11600if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601 ac_header_preproc=yes
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 ac_header_preproc=no
11607fi
Reid Spencera773bd52006-08-04 18:18:08 +000011608
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612
11613# So? What about this header?
11614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 yes:no: )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11621 ;;
11622 no:yes:* )
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011635 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636## ----------------------------------- ##
11637## Report this to llvmbugs@cs.uiuc.edu ##
11638## ----------------------------------- ##
11639_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011640 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 ;;
11642esac
Reid Spencera773bd52006-08-04 18:18:08 +000011643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648 eval "$as_ac_Header=\$ac_header_preproc"
11649fi
Reid Spencera773bd52006-08-04 18:18:08 +000011650ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653
11654fi
11655if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658_ACEOF
11659 break
11660fi
11661
11662done
11663
11664
11665
11666
11667for ac_func in strchr index
11668do
11669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 cat >conftest.$ac_ext <<_ACEOF
11676/* confdefs.h. */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h. */
11681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11683#define $ac_func innocuous_$ac_func
11684
11685/* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char $ac_func (); below.
11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688 <limits.h> exists even on freestanding compilers. */
11689
11690#ifdef __STDC__
11691# include <limits.h>
11692#else
11693# include <assert.h>
11694#endif
11695
11696#undef $ac_func
11697
Reid Spencera773bd52006-08-04 18:18:08 +000011698/* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701#ifdef __cplusplus
11702extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704char $ac_func ();
11705/* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011708#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710#endif
11711
11712int
11713main ()
11714{
Reid Spencera773bd52006-08-04 18:18:08 +000011715return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716 ;
11717 return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011721if { (ac_try="$ac_link"
11722case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest$ac_exeext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 eval "$as_ac_var=yes"
11755else
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
Reid Spencera773bd52006-08-04 18:18:08 +000011759 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011760fi
Reid Spencera773bd52006-08-04 18:18:08 +000011761
Bill Wendlingebcceee2009-04-18 11:20:33 +000011762rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763 conftest$ac_exeext conftest.$ac_ext
11764fi
Reid Spencera773bd52006-08-04 18:18:08 +000011765ac_res=`eval echo '${'$as_ac_var'}'`
11766 { echo "$as_me:$LINENO: result: $ac_res" >&5
11767echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768if test `eval echo '${'$as_ac_var'}'` = yes; then
11769 cat >>confdefs.h <<_ACEOF
11770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11771_ACEOF
11772 break
11773fi
11774done
11775
11776
11777
11778for ac_func in strrchr rindex
11779do
11780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011781{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11794#define $ac_func innocuous_$ac_func
11795
11796/* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func (); below.
11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 <limits.h> exists even on freestanding compilers. */
11800
11801#ifdef __STDC__
11802# include <limits.h>
11803#else
11804# include <assert.h>
11805#endif
11806
11807#undef $ac_func
11808
Reid Spencera773bd52006-08-04 18:18:08 +000011809/* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812#ifdef __cplusplus
11813extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815char $ac_func ();
11816/* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011819#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821#endif
11822
11823int
11824main ()
11825{
Reid Spencera773bd52006-08-04 18:18:08 +000011826return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011832if { (ac_try="$ac_link"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 eval "$as_ac_var=yes"
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
Reid Spencera773bd52006-08-04 18:18:08 +000011870 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871fi
Reid Spencera773bd52006-08-04 18:18:08 +000011872
Bill Wendlingebcceee2009-04-18 11:20:33 +000011873rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011874 conftest$ac_exeext conftest.$ac_ext
11875fi
Reid Spencera773bd52006-08-04 18:18:08 +000011876ac_res=`eval echo '${'$as_ac_var'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879if test `eval echo '${'$as_ac_var'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882_ACEOF
11883 break
11884fi
11885done
11886
11887
11888
11889for ac_func in memcpy bcopy
11890do
11891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011892{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905#define $ac_func innocuous_$ac_func
11906
11907/* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11911
11912#ifdef __STDC__
11913# include <limits.h>
11914#else
11915# include <assert.h>
11916#endif
11917
11918#undef $ac_func
11919
Reid Spencera773bd52006-08-04 18:18:08 +000011920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923#ifdef __cplusplus
11924extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926char $ac_func ();
11927/* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011930#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932#endif
11933
11934int
11935main ()
11936{
Reid Spencera773bd52006-08-04 18:18:08 +000011937return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011943if { (ac_try="$ac_link"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976 eval "$as_ac_var=yes"
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
Reid Spencera773bd52006-08-04 18:18:08 +000011981 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982fi
Reid Spencera773bd52006-08-04 18:18:08 +000011983
Bill Wendlingebcceee2009-04-18 11:20:33 +000011984rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985 conftest$ac_exeext conftest.$ac_ext
11986fi
Reid Spencera773bd52006-08-04 18:18:08 +000011987ac_res=`eval echo '${'$as_ac_var'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990if test `eval echo '${'$as_ac_var'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993_ACEOF
11994 break
11995fi
11996done
11997
11998
11999
12000for ac_func in memmove strcmp
12001do
12002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016#define $ac_func innocuous_$ac_func
12017
12018/* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char $ac_func (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12022
12023#ifdef __STDC__
12024# include <limits.h>
12025#else
12026# include <assert.h>
12027#endif
12028
12029#undef $ac_func
12030
Reid Spencera773bd52006-08-04 18:18:08 +000012031/* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034#ifdef __cplusplus
12035extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037char $ac_func ();
12038/* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012041#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043#endif
12044
12045int
12046main ()
12047{
Reid Spencera773bd52006-08-04 18:18:08 +000012048return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049 ;
12050 return 0;
12051}
12052_ACEOF
12053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012054if { (ac_try="$ac_link"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087 eval "$as_ac_var=yes"
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
Reid Spencera773bd52006-08-04 18:18:08 +000012092 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093fi
Reid Spencera773bd52006-08-04 18:18:08 +000012094
Bill Wendlingebcceee2009-04-18 11:20:33 +000012095rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096 conftest$ac_exeext conftest.$ac_ext
12097fi
Reid Spencera773bd52006-08-04 18:18:08 +000012098ac_res=`eval echo '${'$as_ac_var'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101if test `eval echo '${'$as_ac_var'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104_ACEOF
12105
12106fi
12107done
12108
12109
12110
12111
12112for ac_func in closedir opendir readdir
12113do
12114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
12126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12128#define $ac_func innocuous_$ac_func
12129
12130/* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char $ac_func (); below.
12132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133 <limits.h> exists even on freestanding compilers. */
12134
12135#ifdef __STDC__
12136# include <limits.h>
12137#else
12138# include <assert.h>
12139#endif
12140
12141#undef $ac_func
12142
Reid Spencera773bd52006-08-04 18:18:08 +000012143/* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146#ifdef __cplusplus
12147extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149char $ac_func ();
12150/* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012153#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155#endif
12156
12157int
12158main ()
12159{
Reid Spencera773bd52006-08-04 18:18:08 +000012160return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161 ;
12162 return 0;
12163}
12164_ACEOF
12165rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012166if { (ac_try="$ac_link"
12167case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest$ac_exeext'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012199 eval "$as_ac_var=yes"
12200else
12201 echo "$as_me: failed program was:" >&5
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
Reid Spencera773bd52006-08-04 18:18:08 +000012204 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205fi
Reid Spencera773bd52006-08-04 18:18:08 +000012206
Bill Wendlingebcceee2009-04-18 11:20:33 +000012207rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208 conftest$ac_exeext conftest.$ac_ext
12209fi
Reid Spencera773bd52006-08-04 18:18:08 +000012210ac_res=`eval echo '${'$as_ac_var'}'`
12211 { echo "$as_me:$LINENO: result: $ac_res" >&5
12212echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213if test `eval echo '${'$as_ac_var'}'` = yes; then
12214 cat >>confdefs.h <<_ACEOF
12215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12216_ACEOF
12217
12218fi
12219done
12220
12221
Reid Spencera773bd52006-08-04 18:18:08 +000012222# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012224 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225 case $enableval in
12226 yes) enable_shared=yes ;;
12227 no) enable_shared=no ;;
12228 *)
12229 enable_shared=no
12230 # Look at the argument we got. We use all the common list separators.
12231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12232 for pkg in $enableval; do
12233 IFS="$lt_save_ifs"
12234 if test "X$pkg" = "X$p"; then
12235 enable_shared=yes
12236 fi
12237 done
12238 IFS="$lt_save_ifs"
12239 ;;
12240 esac
12241else
12242 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012243fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244
Reid Spencera773bd52006-08-04 18:18:08 +000012245
12246# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012248 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249 case $enableval in
12250 yes) enable_static=yes ;;
12251 no) enable_static=no ;;
12252 *)
12253 enable_static=no
12254 # Look at the argument we got. We use all the common list separators.
12255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256 for pkg in $enableval; do
12257 IFS="$lt_save_ifs"
12258 if test "X$pkg" = "X$p"; then
12259 enable_static=yes
12260 fi
12261 done
12262 IFS="$lt_save_ifs"
12263 ;;
12264 esac
12265else
12266 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012267fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268
Reid Spencera773bd52006-08-04 18:18:08 +000012269
12270# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012271if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012272 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 case $enableval in
12274 yes) enable_fast_install=yes ;;
12275 no) enable_fast_install=no ;;
12276 *)
12277 enable_fast_install=no
12278 # Look at the argument we got. We use all the common list separators.
12279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280 for pkg in $enableval; do
12281 IFS="$lt_save_ifs"
12282 if test "X$pkg" = "X$p"; then
12283 enable_fast_install=yes
12284 fi
12285 done
12286 IFS="$lt_save_ifs"
12287 ;;
12288 esac
12289else
12290 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012291fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292
Reid Spencera773bd52006-08-04 18:18:08 +000012293
12294{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12295echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012296if test "${lt_cv_path_SED+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299 # Loop through the user's path and test for sed and gsed.
12300# Then use that list of sed's as ones to test for truncation.
12301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for lt_ac_prog in sed gsed; do
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12309 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12310 fi
12311 done
12312 done
12313done
12314lt_ac_max=0
12315lt_ac_count=0
12316# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12317# along with /bin/sed that truncates output.
12318for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012319 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320 cat /dev/null > conftest.in
12321 lt_ac_count=0
12322 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12323 # Check for GNU sed and select it if it is found.
12324 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12325 lt_cv_path_SED=$lt_ac_sed
12326 break
12327 fi
12328 while true; do
12329 cat conftest.in conftest.in >conftest.tmp
12330 mv conftest.tmp conftest.in
12331 cp conftest.in conftest.nl
12332 echo >>conftest.nl
12333 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12334 cmp -s conftest.out conftest.nl || break
12335 # 10000 chars as input seems more than enough
12336 test $lt_ac_count -gt 10 && break
12337 lt_ac_count=`expr $lt_ac_count + 1`
12338 if test $lt_ac_count -gt $lt_ac_max; then
12339 lt_ac_max=$lt_ac_count
12340 lt_cv_path_SED=$lt_ac_sed
12341 fi
12342 done
12343done
12344
12345fi
12346
12347SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012348{ echo "$as_me:$LINENO: result: $SED" >&5
12349echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350
12351
Reid Spencera773bd52006-08-04 18:18:08 +000012352# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012353if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012355else
12356 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012357fi
12358
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359ac_prog=ld
12360if test "$GCC" = yes; then
12361 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012362 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12363echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012364 case $host in
12365 *-*-mingw*)
12366 # gcc leaves a trailing carriage return which upsets mingw
12367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12368 *)
12369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12370 esac
12371 case $ac_prog in
12372 # Accept absolute paths.
12373 [\\/]* | ?:[\\/]*)
12374 re_direlt='/[^/][^/]*/\.\./'
12375 # Canonicalize the pathname of ld
12376 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12377 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12378 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12379 done
12380 test -z "$LD" && LD="$ac_prog"
12381 ;;
12382 "")
12383 # If it fails, then pretend we aren't using GCC.
12384 ac_prog=ld
12385 ;;
12386 *)
12387 # If it is relative, then search for the first ld in PATH.
12388 with_gnu_ld=unknown
12389 ;;
12390 esac
12391elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012392 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12393echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394else
Reid Spencera773bd52006-08-04 18:18:08 +000012395 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12396echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012397fi
12398if test "${lt_cv_path_LD+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400else
12401 if test -z "$LD"; then
12402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12403 for ac_dir in $PATH; do
12404 IFS="$lt_save_ifs"
12405 test -z "$ac_dir" && ac_dir=.
12406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12407 lt_cv_path_LD="$ac_dir/$ac_prog"
12408 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012409 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012410 # Break only if it was the GNU/non-GNU ld that we prefer.
12411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12412 *GNU* | *'with BFD'*)
12413 test "$with_gnu_ld" != no && break
12414 ;;
12415 *)
12416 test "$with_gnu_ld" != yes && break
12417 ;;
12418 esac
12419 fi
12420 done
12421 IFS="$lt_save_ifs"
12422else
12423 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12424fi
12425fi
12426
12427LD="$lt_cv_path_LD"
12428if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012429 { echo "$as_me:$LINENO: result: $LD" >&5
12430echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431else
Reid Spencera773bd52006-08-04 18:18:08 +000012432 { echo "$as_me:$LINENO: result: no" >&5
12433echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434fi
12435test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12436echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012438{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12439echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440if test "${lt_cv_prog_gnu_ld+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
Reid Spencera773bd52006-08-04 18:18:08 +000012443 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444case `$LD -v 2>&1 </dev/null` in
12445*GNU* | *'with BFD'*)
12446 lt_cv_prog_gnu_ld=yes
12447 ;;
12448*)
12449 lt_cv_prog_gnu_ld=no
12450 ;;
12451esac
12452fi
Reid Spencera773bd52006-08-04 18:18:08 +000012453{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12454echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455with_gnu_ld=$lt_cv_prog_gnu_ld
12456
12457
Reid Spencera773bd52006-08-04 18:18:08 +000012458{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12459echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460if test "${lt_cv_ld_reload_flag+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463 lt_cv_ld_reload_flag='-r'
12464fi
Reid Spencera773bd52006-08-04 18:18:08 +000012465{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12466echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467reload_flag=$lt_cv_ld_reload_flag
12468case $reload_flag in
12469"" | " "*) ;;
12470*) reload_flag=" $reload_flag" ;;
12471esac
12472reload_cmds='$LD$reload_flag -o $output$reload_objs'
12473case $host_os in
12474 darwin*)
12475 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477 else
12478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12479 fi
12480 ;;
12481esac
12482
Reid Spencera773bd52006-08-04 18:18:08 +000012483{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12484echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485if test "${lt_cv_deplibs_check_method+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488 lt_cv_file_magic_cmd='$MAGIC_CMD'
12489lt_cv_file_magic_test_file=
12490lt_cv_deplibs_check_method='unknown'
12491# Need to set the preceding variable on all platforms that support
12492# interlibrary dependencies.
12493# 'none' -- dependencies not supported.
12494# `unknown' -- same as none, but documents that we really don't know.
12495# 'pass_all' -- all dependencies passed with no checks.
12496# 'test_compile' -- check by making test program.
12497# 'file_magic [[regex]]' -- check by looking for files in library path
12498# which responds to the $file_magic_cmd with a given extended regex.
12499# If you have `file' or equivalent on your system and you're not sure
12500# whether `pass_all' will *always* work, you probably want this one.
12501
12502case $host_os in
12503aix4* | aix5*)
12504 lt_cv_deplibs_check_method=pass_all
12505 ;;
12506
12507beos*)
12508 lt_cv_deplibs_check_method=pass_all
12509 ;;
12510
12511bsdi[45]*)
12512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12513 lt_cv_file_magic_cmd='/usr/bin/file -L'
12514 lt_cv_file_magic_test_file=/shlib/libc.so
12515 ;;
12516
12517cygwin*)
12518 # func_win32_libid is a shell function defined in ltmain.sh
12519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12520 lt_cv_file_magic_cmd='func_win32_libid'
12521 ;;
12522
12523mingw* | pw32*)
12524 # Base MSYS/MinGW do not provide the 'file' command needed by
12525 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12527 lt_cv_file_magic_cmd='$OBJDUMP -f'
12528 ;;
12529
12530darwin* | rhapsody*)
12531 lt_cv_deplibs_check_method=pass_all
12532 ;;
12533
Reid Spencera773bd52006-08-04 18:18:08 +000012534freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12536 case $host_cpu in
12537 i*86 )
12538 # Not sure whether the presence of OpenBSD here was a mistake.
12539 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012540 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 +000012541 lt_cv_file_magic_cmd=/usr/bin/file
12542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12543 ;;
12544 esac
12545 else
12546 lt_cv_deplibs_check_method=pass_all
12547 fi
12548 ;;
12549
12550gnu*)
12551 lt_cv_deplibs_check_method=pass_all
12552 ;;
12553
12554hpux10.20* | hpux11*)
12555 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012556 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012557 ia64*)
12558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12560 ;;
12561 hppa*64*)
12562 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]'
12563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12564 ;;
12565 *)
12566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12567 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12568 ;;
12569 esac
12570 ;;
12571
Reid Spencera773bd52006-08-04 18:18:08 +000012572interix3*)
12573 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12575 ;;
12576
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577irix5* | irix6* | nonstopux*)
12578 case $LD in
12579 *-32|*"-32 ") libmagic=32-bit;;
12580 *-n32|*"-n32 ") libmagic=N32;;
12581 *-64|*"-64 ") libmagic=64-bit;;
12582 *) libmagic=never-match;;
12583 esac
12584 lt_cv_deplibs_check_method=pass_all
12585 ;;
12586
12587# This must be Linux ELF.
12588linux*)
12589 lt_cv_deplibs_check_method=pass_all
12590 ;;
12591
12592netbsd*)
12593 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12595 else
12596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12597 fi
12598 ;;
12599
12600newos6*)
12601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12602 lt_cv_file_magic_cmd=/usr/bin/file
12603 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12604 ;;
12605
12606nto-qnx*)
12607 lt_cv_deplibs_check_method=unknown
12608 ;;
12609
12610openbsd*)
12611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12613 else
12614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12615 fi
12616 ;;
12617
12618osf3* | osf4* | osf5*)
12619 lt_cv_deplibs_check_method=pass_all
12620 ;;
12621
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622solaris*)
12623 lt_cv_deplibs_check_method=pass_all
12624 ;;
12625
Reid Spencera773bd52006-08-04 18:18:08 +000012626sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627 case $host_vendor in
12628 motorola)
12629 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]'
12630 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12631 ;;
12632 ncr)
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
12635 sequent)
12636 lt_cv_file_magic_cmd='/bin/file'
12637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12638 ;;
12639 sni)
12640 lt_cv_file_magic_cmd='/bin/file'
12641 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12642 lt_cv_file_magic_test_file=/lib/libc.so
12643 ;;
12644 siemens)
12645 lt_cv_deplibs_check_method=pass_all
12646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012647 pc)
12648 lt_cv_deplibs_check_method=pass_all
12649 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012650 esac
12651 ;;
12652
Reid Spencera773bd52006-08-04 18:18:08 +000012653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012654 lt_cv_deplibs_check_method=pass_all
12655 ;;
12656esac
12657
12658fi
Reid Spencera773bd52006-08-04 18:18:08 +000012659{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12660echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661file_magic_cmd=$lt_cv_file_magic_cmd
12662deplibs_check_method=$lt_cv_deplibs_check_method
12663test -z "$deplibs_check_method" && deplibs_check_method=unknown
12664
12665
12666
12667# If no C compiler was specified, use CC.
12668LTCC=${LTCC-"$CC"}
12669
Reid Spencera773bd52006-08-04 18:18:08 +000012670# If no C compiler flags were specified, use CFLAGS.
12671LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12672
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012673# Allow CC to be a program name with arguments.
12674compiler=$CC
12675
Reid Spencera773bd52006-08-04 18:18:08 +000012676# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012678 enableval=$enable_libtool_lock;
12679fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012680
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012681test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12682
12683# Some flags need to be propagated to the compiler or linker for good
12684# libtool support.
12685case $host in
12686ia64-*-hpux*)
12687 # Find out which ABI we are using.
12688 echo 'int i;' > conftest.$ac_ext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; then
12694 case `/usr/bin/file conftest.$ac_objext` in
12695 *ELF-32*)
12696 HPUX_IA64_MODE="32"
12697 ;;
12698 *ELF-64*)
12699 HPUX_IA64_MODE="64"
12700 ;;
12701 esac
12702 fi
12703 rm -rf conftest*
12704 ;;
12705*-*-irix6*)
12706 # Find out which ABI we are using.
Bill Wendlingebcceee2009-04-18 11:20:33 +000012707 echo '#line 12707 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; then
12713 if test "$lt_cv_prog_gnu_ld" = yes; then
12714 case `/usr/bin/file conftest.$ac_objext` in
12715 *32-bit*)
12716 LD="${LD-ld} -melf32bsmip"
12717 ;;
12718 *N32*)
12719 LD="${LD-ld} -melf32bmipn32"
12720 ;;
12721 *64-bit*)
12722 LD="${LD-ld} -melf64bmip"
12723 ;;
12724 esac
12725 else
12726 case `/usr/bin/file conftest.$ac_objext` in
12727 *32-bit*)
12728 LD="${LD-ld} -32"
12729 ;;
12730 *N32*)
12731 LD="${LD-ld} -n32"
12732 ;;
12733 *64-bit*)
12734 LD="${LD-ld} -64"
12735 ;;
12736 esac
12737 fi
12738 fi
12739 rm -rf conftest*
12740 ;;
12741
12742x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12743 # Find out which ABI we are using.
12744 echo 'int i;' > conftest.$ac_ext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012750 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012751 *32-bit*)
12752 case $host in
12753 x86_64-*linux*)
12754 LD="${LD-ld} -m elf_i386"
12755 ;;
12756 ppc64-*linux*|powerpc64-*linux*)
12757 LD="${LD-ld} -m elf32ppclinux"
12758 ;;
12759 s390x-*linux*)
12760 LD="${LD-ld} -m elf_s390"
12761 ;;
12762 sparc64-*linux*)
12763 LD="${LD-ld} -m elf32_sparc"
12764 ;;
12765 esac
12766 ;;
12767 *64-bit*)
12768 case $host in
12769 x86_64-*linux*)
12770 LD="${LD-ld} -m elf_x86_64"
12771 ;;
12772 ppc*-*linux*|powerpc*-*linux*)
12773 LD="${LD-ld} -m elf64ppc"
12774 ;;
12775 s390*-*linux*)
12776 LD="${LD-ld} -m elf64_s390"
12777 ;;
12778 sparc*-*linux*)
12779 LD="${LD-ld} -m elf64_sparc"
12780 ;;
12781 esac
12782 ;;
12783 esac
12784 fi
12785 rm -rf conftest*
12786 ;;
12787
12788*-*-sco3.2v5*)
12789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12790 SAVE_CFLAGS="$CFLAGS"
12791 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012792 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12793echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012794if test "${lt_cv_cc_needs_belf+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 ac_ext=c
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809
Reid Spencera773bd52006-08-04 18:18:08 +000012810int
12811main ()
12812{
12813
12814 ;
12815 return 0;
12816}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012819if { (ac_try="$ac_link"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836esac
12837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012852 lt_cv_cc_needs_belf=yes
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
Reid Spencera773bd52006-08-04 18:18:08 +000012857 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012858fi
Reid Spencera773bd52006-08-04 18:18:08 +000012859
Bill Wendlingebcceee2009-04-18 11:20:33 +000012860rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012861 conftest$ac_exeext conftest.$ac_ext
12862 ac_ext=c
12863ac_cpp='$CPP $CPPFLAGS'
12864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868fi
Reid Spencera773bd52006-08-04 18:18:08 +000012869{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12870echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12873 CFLAGS="$SAVE_CFLAGS"
12874 fi
12875 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012876sparc*-*solaris*)
12877 # Find out which ABI we are using.
12878 echo 'int i;' > conftest.$ac_ext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; then
12884 case `/usr/bin/file conftest.o` in
12885 *64-bit*)
12886 case $lt_cv_prog_gnu_ld in
12887 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12888 *) LD="${LD-ld} -64" ;;
12889 esac
12890 ;;
12891 esac
12892 fi
12893 rm -rf conftest*
12894 ;;
12895
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896
12897esac
12898
12899need_locks="$enable_libtool_lock"
12900
12901
Reid Spencer2706f8c2004-09-19 23:53:36 +000012902
12903
12904if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12905 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12906 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012907 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012908ac_cpp='$CXXCPP $CPPFLAGS'
12909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012912{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12913echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012914if test -z "$CXXCPP"; then
12915 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917else
John Criswell47fdd832003-07-14 16:52:07 +000012918 # Double quotes because CXXCPP needs to be expanded
12919 for CXXCPP in "$CXX -E" "/lib/cpp"
12920 do
12921 ac_preproc_ok=false
12922for ac_cxx_preproc_warn_flag in '' yes
12923do
12924 # Use a header file that comes with gcc, so configuring glibc
12925 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12927 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012928 # On the NeXT, cc -E runs the code through the compiler's parser,
12929 # not just through cpp. "Syntax error" is here to catch this case.
12930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936#ifdef __STDC__
12937# include <limits.h>
12938#else
12939# include <assert.h>
12940#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012941 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012942_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012943if { (ac_try="$ac_cpp conftest.$ac_ext"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012950 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012951 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012955 (exit $ac_status); } >/dev/null; then
12956 if test -s conftest.err; then
12957 ac_cpp_err=$ac_cxx_preproc_warn_flag
12958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12959 else
12960 ac_cpp_err=
12961 fi
12962else
12963 ac_cpp_err=yes
12964fi
12965if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012966 :
12967else
12968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012969sed 's/^/| /' conftest.$ac_ext >&5
12970
John Criswell47fdd832003-07-14 16:52:07 +000012971 # Broken: fails on valid input.
12972continue
12973fi
Reid Spencera773bd52006-08-04 18:18:08 +000012974
John Criswell47fdd832003-07-14 16:52:07 +000012975rm -f conftest.err conftest.$ac_ext
12976
Reid Spencera773bd52006-08-04 18:18:08 +000012977 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012978 # can be detected and how.
12979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012985#include <ac_nonexistent.h>
12986_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012987if { (ac_try="$ac_cpp conftest.$ac_ext"
12988case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012994 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012995 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012999 (exit $ac_status); } >/dev/null; then
13000 if test -s conftest.err; then
13001 ac_cpp_err=$ac_cxx_preproc_warn_flag
13002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13003 else
13004 ac_cpp_err=
13005 fi
13006else
13007 ac_cpp_err=yes
13008fi
13009if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013010 # Broken: success on invalid input.
13011continue
13012else
13013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013014sed 's/^/| /' conftest.$ac_ext >&5
13015
John Criswell47fdd832003-07-14 16:52:07 +000013016 # Passes both tests.
13017ac_preproc_ok=:
13018break
13019fi
Reid Spencera773bd52006-08-04 18:18:08 +000013020
John Criswell47fdd832003-07-14 16:52:07 +000013021rm -f conftest.err conftest.$ac_ext
13022
13023done
13024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13025rm -f conftest.err conftest.$ac_ext
13026if $ac_preproc_ok; then
13027 break
John Criswell7a73b802003-06-30 21:59:07 +000013028fi
13029
John Criswell47fdd832003-07-14 16:52:07 +000013030 done
13031 ac_cv_prog_CXXCPP=$CXXCPP
13032
13033fi
13034 CXXCPP=$ac_cv_prog_CXXCPP
13035else
13036 ac_cv_prog_CXXCPP=$CXXCPP
13037fi
Reid Spencera773bd52006-08-04 18:18:08 +000013038{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13039echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013040ac_preproc_ok=false
13041for ac_cxx_preproc_warn_flag in '' yes
13042do
13043 # Use a header file that comes with gcc, so configuring glibc
13044 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013047 # On the NeXT, cc -E runs the code through the compiler's parser,
13048 # not just through cpp. "Syntax error" is here to catch this case.
13049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055#ifdef __STDC__
13056# include <limits.h>
13057#else
13058# include <assert.h>
13059#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013060 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013061_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013062if { (ac_try="$ac_cpp conftest.$ac_ext"
13063case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066esac
13067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013074 (exit $ac_status); } >/dev/null; then
13075 if test -s conftest.err; then
13076 ac_cpp_err=$ac_cxx_preproc_warn_flag
13077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13078 else
13079 ac_cpp_err=
13080 fi
13081else
13082 ac_cpp_err=yes
13083fi
13084if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013085 :
13086else
13087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013088sed 's/^/| /' conftest.$ac_ext >&5
13089
John Criswell47fdd832003-07-14 16:52:07 +000013090 # Broken: fails on valid input.
13091continue
13092fi
Reid Spencera773bd52006-08-04 18:18:08 +000013093
John Criswell47fdd832003-07-14 16:52:07 +000013094rm -f conftest.err conftest.$ac_ext
13095
Reid Spencera773bd52006-08-04 18:18:08 +000013096 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013097 # can be detected and how.
13098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013099/* confdefs.h. */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013104#include <ac_nonexistent.h>
13105_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013106if { (ac_try="$ac_cpp conftest.$ac_ext"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013113 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013114 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013118 (exit $ac_status); } >/dev/null; then
13119 if test -s conftest.err; then
13120 ac_cpp_err=$ac_cxx_preproc_warn_flag
13121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13122 else
13123 ac_cpp_err=
13124 fi
13125else
13126 ac_cpp_err=yes
13127fi
13128if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013129 # Broken: success on invalid input.
13130continue
13131else
13132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013133sed 's/^/| /' conftest.$ac_ext >&5
13134
John Criswell47fdd832003-07-14 16:52:07 +000013135 # Passes both tests.
13136ac_preproc_ok=:
13137break
13138fi
Reid Spencera773bd52006-08-04 18:18:08 +000013139
John Criswell47fdd832003-07-14 16:52:07 +000013140rm -f conftest.err conftest.$ac_ext
13141
13142done
13143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13144rm -f conftest.err conftest.$ac_ext
13145if $ac_preproc_ok; then
13146 :
13147else
John Criswell0c38eaf2003-09-10 15:17:25 +000013148 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13149See \`config.log' for more details." >&5
13150echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13151See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013152 { (exit 1); exit 1; }; }
13153fi
13154
Reid Spencera773bd52006-08-04 18:18:08 +000013155ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013156ac_cpp='$CXXCPP $CPPFLAGS'
13157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160
Reid Spencer2706f8c2004-09-19 23:53:36 +000013161fi
13162
John Criswell47fdd832003-07-14 16:52:07 +000013163
13164ac_ext=f
13165ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13166ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13168if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013169 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 +000013170 do
13171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013175if test "${ac_cv_prog_F77+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177else
13178 if test -n "$F77"; then
13179 ac_cv_prog_F77="$F77" # Let the user override the test.
13180else
13181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182for as_dir in $PATH
13183do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013187 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 +000013188 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192done
13193done
Reid Spencera773bd52006-08-04 18:18:08 +000013194IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013195
13196fi
13197fi
13198F77=$ac_cv_prog_F77
13199if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013200 { echo "$as_me:$LINENO: result: $F77" >&5
13201echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013202else
Reid Spencera773bd52006-08-04 18:18:08 +000013203 { echo "$as_me:$LINENO: result: no" >&5
13204echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013205fi
13206
Reid Spencera773bd52006-08-04 18:18:08 +000013207
John Criswell47fdd832003-07-14 16:52:07 +000013208 test -n "$F77" && break
13209 done
13210fi
13211if test -z "$F77"; then
13212 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013213 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 +000013214do
13215 # Extract the first word of "$ac_prog", so it can be a program name with args.
13216set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013219if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222 if test -n "$ac_ct_F77"; then
13223 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13224else
13225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013231 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 +000013232 ac_cv_prog_ac_ct_F77="$ac_prog"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13235 fi
13236done
13237done
Reid Spencera773bd52006-08-04 18:18:08 +000013238IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013239
13240fi
13241fi
13242ac_ct_F77=$ac_cv_prog_ac_ct_F77
13243if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013244 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13245echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013246else
Reid Spencera773bd52006-08-04 18:18:08 +000013247 { echo "$as_me:$LINENO: result: no" >&5
13248echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013249fi
13250
Reid Spencera773bd52006-08-04 18:18:08 +000013251
John Criswell47fdd832003-07-14 16:52:07 +000013252 test -n "$ac_ct_F77" && break
13253done
13254
Reid Spencera773bd52006-08-04 18:18:08 +000013255 if test "x$ac_ct_F77" = x; then
13256 F77=""
13257 else
13258 case $cross_compiling:$ac_tool_warned in
13259yes:)
13260{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13261whose name does not start with the host triplet. If you think this
13262configuration is useful to you, please write to autoconf@gnu.org." >&5
13263echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13264whose name does not start with the host triplet. If you think this
13265configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13266ac_tool_warned=yes ;;
13267esac
13268 F77=$ac_ct_F77
13269 fi
John Criswell47fdd832003-07-14 16:52:07 +000013270fi
13271
13272
13273# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013274echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013275ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013276{ (ac_try="$ac_compiler --version >&5"
13277case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013286{ (ac_try="$ac_compiler -v >&5"
13287case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013296{ (ac_try="$ac_compiler -V >&5"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013306rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013307
13308# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013309# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013310ac_save_ext=$ac_ext
13311ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013312{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13313echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013314if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317 cat >conftest.$ac_ext <<_ACEOF
13318 program main
13319#ifndef __GNUC__
13320 choke me
13321#endif
13322
13323 end
13324_ACEOF
13325rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013326if { (ac_try="$ac_compile"
13327case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013359 ac_compiler_gnu=yes
13360else
13361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013362sed 's/^/| /' conftest.$ac_ext >&5
13363
Reid Spencera773bd52006-08-04 18:18:08 +000013364 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013365fi
Reid Spencera773bd52006-08-04 18:18:08 +000013366
13367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013368ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13369
13370fi
Reid Spencera773bd52006-08-04 18:18:08 +000013371{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13372echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013373ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013374ac_test_FFLAGS=${FFLAGS+set}
13375ac_save_FFLAGS=$FFLAGS
13376FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013377{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13378echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013379if test "${ac_cv_prog_f77_g+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382 FFLAGS=-g
13383cat >conftest.$ac_ext <<_ACEOF
13384 program main
13385
13386 end
13387_ACEOF
13388rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013389if { (ac_try="$ac_compile"
13390case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393esac
13394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013422 ac_cv_prog_f77_g=yes
13423else
13424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013425sed 's/^/| /' conftest.$ac_ext >&5
13426
Reid Spencera773bd52006-08-04 18:18:08 +000013427 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013428fi
Reid Spencera773bd52006-08-04 18:18:08 +000013429
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013431
13432fi
Reid Spencera773bd52006-08-04 18:18:08 +000013433{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13434echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013435if test "$ac_test_FFLAGS" = set; then
13436 FFLAGS=$ac_save_FFLAGS
13437elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013438 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013439 FFLAGS="-g -O2"
13440 else
13441 FFLAGS="-g"
13442 fi
13443else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013444 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013445 FFLAGS="-O2"
13446 else
13447 FFLAGS=
13448 fi
13449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013450
13451G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013452ac_ext=c
13453ac_cpp='$CPP $CPPFLAGS'
13454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457
13458
13459
13460# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13461
13462# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013463{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13464echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013465if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467else
13468 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013469 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013470
13471 case $build_os in
13472 msdosdjgpp*)
13473 # On DJGPP, this test can blow up pretty badly due to problems in libc
13474 # (any single argument exceeding 2000 bytes causes a buffer overrun
13475 # during glob expansion). Even if it were fixed, the result of this
13476 # check would be larger than it should be.
13477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13478 ;;
13479
13480 gnu*)
13481 # Under GNU Hurd, this test is not required because there is
13482 # no limit to the length of command line arguments.
13483 # Libtool will interpret -1 as no limit whatsoever
13484 lt_cv_sys_max_cmd_len=-1;
13485 ;;
13486
13487 cygwin* | mingw*)
13488 # On Win9x/ME, this test blows up -- it succeeds, but takes
13489 # about 5 minutes as the teststring grows exponentially.
13490 # Worse, since 9x/ME are not pre-emptively multitasking,
13491 # you end up with a "frozen" computer, even though with patience
13492 # the test eventually succeeds (with a max line length of 256k).
13493 # Instead, let's just punt: use the minimum linelength reported by
13494 # all of the supported platforms: 8192 (on NT/2K/XP).
13495 lt_cv_sys_max_cmd_len=8192;
13496 ;;
13497
Reid Spencer2706f8c2004-09-19 23:53:36 +000013498 amigaos*)
13499 # On AmigaOS with pdksh, this test takes hours, literally.
13500 # So we just punt and use a minimum line length of 8192.
13501 lt_cv_sys_max_cmd_len=8192;
13502 ;;
13503
Reid Spencera773bd52006-08-04 18:18:08 +000013504 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013505 # This has been around since 386BSD, at least. Likely further.
13506 if test -x /sbin/sysctl; then
13507 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13508 elif test -x /usr/sbin/sysctl; then
13509 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13510 else
Reid Spencera773bd52006-08-04 18:18:08 +000013511 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013512 fi
13513 # And add a safety zone
13514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013516 ;;
13517
Reid Spencera773bd52006-08-04 18:18:08 +000013518 interix*)
13519 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13520 lt_cv_sys_max_cmd_len=196608
13521 ;;
13522
13523 osf*)
13524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13526 # nice to cause kernel panics so lets avoid the loop below.
13527 # First set a reasonable default.
13528 lt_cv_sys_max_cmd_len=16384
13529 #
13530 if test -x /sbin/sysconfig; then
13531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13532 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13533 esac
13534 fi
13535 ;;
13536 sco3.2v5*)
13537 lt_cv_sys_max_cmd_len=102400
13538 ;;
13539 sysv5* | sco5v6* | sysv4.2uw2*)
13540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13541 if test -n "$kargmax"; then
13542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13543 else
13544 lt_cv_sys_max_cmd_len=32768
13545 fi
13546 ;;
13547 *)
John Criswell47fdd832003-07-14 16:52:07 +000013548 # If test is not a shell built-in, we'll probably end up computing a
13549 # maximum length that is only half of the actual maximum length, but
13550 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013551 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13552 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13553 = "XX$teststring") >/dev/null 2>&1 &&
13554 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013555 lt_cv_sys_max_cmd_len=$new_result &&
13556 test $i != 17 # 1/2 MB should be enough
13557 do
13558 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013559 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013560 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013562 # Add a significant safety factor because C++ compilers can tack on massive
13563 # amounts of additional arguments before passing them to the linker.
13564 # It appears as though 1/2 is a usable value.
13565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13566 ;;
13567 esac
13568
13569fi
13570
13571if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013572 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13573echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013574else
Reid Spencera773bd52006-08-04 18:18:08 +000013575 { echo "$as_me:$LINENO: result: none" >&5
13576echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013577fi
13578
13579
13580
13581
13582# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013583{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13584echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013585if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588
13589# These are sane defaults that work on at least a few old systems.
13590# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13591
13592# Character class describing NM global symbol codes.
13593symcode='[BCDEGRST]'
13594
13595# Regexp to match symbols that can be accessed directly from C.
13596sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13597
John Criswell47fdd832003-07-14 16:52:07 +000013598# Transform an extracted symbol line into a proper C declaration
13599lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13600
13601# Transform an extracted symbol line into symbol name and symbol address
13602lt_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'"
13603
13604# Define system-specific variables.
13605case $host_os in
13606aix*)
13607 symcode='[BCDT]'
13608 ;;
13609cygwin* | mingw* | pw32*)
13610 symcode='[ABCDGISTW]'
13611 ;;
13612hpux*) # Its linker distinguishes data from code symbols
13613 if test "$host_cpu" = ia64; then
13614 symcode='[ABCDEGRST]'
13615 fi
13616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13617 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'"
13618 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013619linux*)
13620 if test "$host_cpu" = ia64; then
13621 symcode='[ABCDGIRSTW]'
13622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13623 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'"
13624 fi
13625 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013626irix* | nonstopux*)
13627 symcode='[BCDEGRST]'
13628 ;;
13629osf*)
13630 symcode='[BCDEGQRST]'
13631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013632solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013633 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013635sco3.2v5*)
13636 symcode='[DT]'
13637 ;;
13638sysv4.2uw2*)
13639 symcode='[DT]'
13640 ;;
13641sysv5* | sco5v6* | unixware* | OpenUNIX*)
13642 symcode='[ABDT]'
13643 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013644sysv4)
13645 symcode='[DFNSTU]'
13646 ;;
13647esac
13648
13649# Handle CRLF in mingw tool chain
13650opt_cr=
13651case $build_os in
13652mingw*)
13653 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13654 ;;
13655esac
13656
13657# If we're using GNU nm, then use its standard symbol codes.
13658case `$NM -V 2>&1` in
13659*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013660 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013661esac
13662
13663# Try without a prefix undercore, then with it.
13664for ac_symprfx in "" "_"; do
13665
Reid Spencera773bd52006-08-04 18:18:08 +000013666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13667 symxfrm="\\1 $ac_symprfx\\2 \\2"
13668
John Criswell47fdd832003-07-14 16:52:07 +000013669 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013670 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 +000013671
13672 # Check to see that the pipe works correctly.
13673 pipe_works=no
13674
13675 rm -f conftest*
13676 cat > conftest.$ac_ext <<EOF
13677#ifdef __cplusplus
13678extern "C" {
13679#endif
13680char nm_test_var;
13681void nm_test_func(){}
13682#ifdef __cplusplus
13683}
13684#endif
13685int main(){nm_test_var='a';nm_test_func();return(0);}
13686EOF
13687
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; then
13693 # Now try to grab the symbols.
13694 nlist=conftest.nm
13695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && test -s "$nlist"; then
13700 # Try sorting and uniquifying the output.
13701 if sort "$nlist" | uniq > "$nlist"T; then
13702 mv -f "$nlist"T "$nlist"
13703 else
13704 rm -f "$nlist"T
13705 fi
13706
13707 # Make sure that we snagged all the symbols we need.
13708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13710 cat <<EOF > conftest.$ac_ext
13711#ifdef __cplusplus
13712extern "C" {
13713#endif
13714
13715EOF
13716 # Now generate the symbol file.
13717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13718
13719 cat <<EOF >> conftest.$ac_ext
13720#if defined (__STDC__) && __STDC__
13721# define lt_ptr_t void *
13722#else
13723# define lt_ptr_t char *
13724# define const
13725#endif
13726
13727/* The mapping between symbol names and symbols. */
13728const struct {
13729 const char *name;
13730 lt_ptr_t address;
13731}
13732lt_preloaded_symbols[] =
13733{
13734EOF
13735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13736 cat <<\EOF >> conftest.$ac_ext
13737 {0, (lt_ptr_t) 0}
13738};
13739
13740#ifdef __cplusplus
13741}
13742#endif
13743EOF
13744 # Now try linking the two files.
13745 mv conftest.$ac_objext conftstm.$ac_objext
13746 lt_save_LIBS="$LIBS"
13747 lt_save_CFLAGS="$CFLAGS"
13748 LIBS="conftstm.$ac_objext"
13749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751 (eval $ac_link) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13755 pipe_works=yes
13756 fi
13757 LIBS="$lt_save_LIBS"
13758 CFLAGS="$lt_save_CFLAGS"
13759 else
13760 echo "cannot find nm_test_func in $nlist" >&5
13761 fi
13762 else
13763 echo "cannot find nm_test_var in $nlist" >&5
13764 fi
13765 else
13766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13767 fi
13768 else
13769 echo "$progname: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 fi
13772 rm -f conftest* conftst*
13773
13774 # Do not use the global_symbol_pipe unless it works.
13775 if test "$pipe_works" = yes; then
13776 break
13777 else
13778 lt_cv_sys_global_symbol_pipe=
13779 fi
13780done
13781
13782fi
13783
13784if test -z "$lt_cv_sys_global_symbol_pipe"; then
13785 lt_cv_sys_global_symbol_to_cdecl=
13786fi
13787if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013788 { echo "$as_me:$LINENO: result: failed" >&5
13789echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013790else
Reid Spencera773bd52006-08-04 18:18:08 +000013791 { echo "$as_me:$LINENO: result: ok" >&5
13792echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013793fi
13794
Reid Spencera773bd52006-08-04 18:18:08 +000013795{ echo "$as_me:$LINENO: checking for objdir" >&5
13796echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013797if test "${lt_cv_objdir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799else
13800 rm -f .libs 2>/dev/null
13801mkdir .libs 2>/dev/null
13802if test -d .libs; then
13803 lt_cv_objdir=.libs
13804else
13805 # MS-DOS does not allow filenames that begin with a dot.
13806 lt_cv_objdir=_libs
13807fi
13808rmdir .libs 2>/dev/null
13809fi
Reid Spencera773bd52006-08-04 18:18:08 +000013810{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13811echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013812objdir=$lt_cv_objdir
13813
13814
13815
13816
13817
13818case $host_os in
13819aix3*)
13820 # AIX sometimes has problems with the GCC collect2 program. For some
13821 # reason, if we set the COLLECT_NAMES environment variable, the problems
13822 # vanish in a puff of smoke.
13823 if test "X${COLLECT_NAMES+set}" != Xset; then
13824 COLLECT_NAMES=
13825 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013826 fi
13827 ;;
13828esac
13829
John Criswell47fdd832003-07-14 16:52:07 +000013830# Sed substitution that helps us do robust quoting. It backslashifies
13831# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013832Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013833sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13834
13835# Same as above, but do not quote variable references.
13836double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13837
13838# Sed substitution to delay expansion of an escaped shell variable in a
13839# double_quote_subst'ed string.
13840delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13841
13842# Sed substitution to avoid accidental globbing in evaled expressions
13843no_glob_subst='s/\*/\\\*/g'
13844
13845# Constants:
13846rm="rm -f"
13847
13848# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013849default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013850can_build_shared=yes
13851
Reid Spencera773bd52006-08-04 18:18:08 +000013852# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013853# which needs '.lib').
13854libext=a
13855ltmain="$ac_aux_dir/ltmain.sh"
13856ofile="$default_ofile"
13857with_gnu_ld="$lt_cv_prog_gnu_ld"
13858
13859if test -n "$ac_tool_prefix"; then
13860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13861set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013864if test "${ac_cv_prog_AR+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
13867 if test -n "$AR"; then
13868 ac_cv_prog_AR="$AR" # Let the user override the test.
13869else
13870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871for as_dir in $PATH
13872do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013876 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 +000013877 ac_cv_prog_AR="${ac_tool_prefix}ar"
13878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 break 2
13880 fi
13881done
13882done
Reid Spencera773bd52006-08-04 18:18:08 +000013883IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013884
13885fi
13886fi
13887AR=$ac_cv_prog_AR
13888if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013889 { echo "$as_me:$LINENO: result: $AR" >&5
13890echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013891else
Reid Spencera773bd52006-08-04 18:18:08 +000013892 { echo "$as_me:$LINENO: result: no" >&5
13893echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013894fi
13895
Reid Spencera773bd52006-08-04 18:18:08 +000013896
John Criswell47fdd832003-07-14 16:52:07 +000013897fi
13898if test -z "$ac_cv_prog_AR"; then
13899 ac_ct_AR=$AR
13900 # Extract the first word of "ar", so it can be a program name with args.
13901set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013904if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
13907 if test -n "$ac_ct_AR"; then
13908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13909else
13910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911for as_dir in $PATH
13912do
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013916 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 +000013917 ac_cv_prog_ac_ct_AR="ar"
13918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921done
13922done
Reid Spencera773bd52006-08-04 18:18:08 +000013923IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013924
John Criswell47fdd832003-07-14 16:52:07 +000013925fi
13926fi
13927ac_ct_AR=$ac_cv_prog_ac_ct_AR
13928if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013929 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13930echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013931else
Reid Spencera773bd52006-08-04 18:18:08 +000013932 { echo "$as_me:$LINENO: result: no" >&5
13933echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013934fi
13935
Reid Spencera773bd52006-08-04 18:18:08 +000013936 if test "x$ac_ct_AR" = x; then
13937 AR="false"
13938 else
13939 case $cross_compiling:$ac_tool_warned in
13940yes:)
13941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13942whose name does not start with the host triplet. If you think this
13943configuration is useful to you, please write to autoconf@gnu.org." >&5
13944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13945whose name does not start with the host triplet. If you think this
13946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13947ac_tool_warned=yes ;;
13948esac
13949 AR=$ac_ct_AR
13950 fi
John Criswell47fdd832003-07-14 16:52:07 +000013951else
13952 AR="$ac_cv_prog_AR"
13953fi
13954
John Criswell7a73b802003-06-30 21:59:07 +000013955if test -n "$ac_tool_prefix"; then
13956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013960if test "${ac_cv_prog_RANLIB+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
13963 if test -n "$RANLIB"; then
13964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13965else
13966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967for as_dir in $PATH
13968do
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013972 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 +000013973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13976 fi
13977done
13978done
Reid Spencera773bd52006-08-04 18:18:08 +000013979IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013980
13981fi
13982fi
13983RANLIB=$ac_cv_prog_RANLIB
13984if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013985 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13986echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013987else
Reid Spencera773bd52006-08-04 18:18:08 +000013988 { echo "$as_me:$LINENO: result: no" >&5
13989echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013990fi
13991
Reid Spencera773bd52006-08-04 18:18:08 +000013992
John Criswell7a73b802003-06-30 21:59:07 +000013993fi
13994if test -z "$ac_cv_prog_RANLIB"; then
13995 ac_ct_RANLIB=$RANLIB
13996 # Extract the first word of "ranlib", so it can be a program name with args.
13997set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014000if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002else
14003 if test -n "$ac_ct_RANLIB"; then
14004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14005else
14006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007for as_dir in $PATH
14008do
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014012 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 +000014013 ac_cv_prog_ac_ct_RANLIB="ranlib"
14014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14016 fi
14017done
14018done
Reid Spencera773bd52006-08-04 18:18:08 +000014019IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014020
John Criswell7a73b802003-06-30 21:59:07 +000014021fi
14022fi
14023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14024if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14026echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014027else
Reid Spencera773bd52006-08-04 18:18:08 +000014028 { echo "$as_me:$LINENO: result: no" >&5
14029echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014030fi
14031
Reid Spencera773bd52006-08-04 18:18:08 +000014032 if test "x$ac_ct_RANLIB" = x; then
14033 RANLIB=":"
14034 else
14035 case $cross_compiling:$ac_tool_warned in
14036yes:)
14037{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14038whose name does not start with the host triplet. If you think this
14039configuration is useful to you, please write to autoconf@gnu.org." >&5
14040echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14041whose name does not start with the host triplet. If you think this
14042configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14043ac_tool_warned=yes ;;
14044esac
14045 RANLIB=$ac_ct_RANLIB
14046 fi
John Criswell7a73b802003-06-30 21:59:07 +000014047else
14048 RANLIB="$ac_cv_prog_RANLIB"
14049fi
14050
14051if test -n "$ac_tool_prefix"; then
14052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14053set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014056if test "${ac_cv_prog_STRIP+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
14059 if test -n "$STRIP"; then
14060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14061else
14062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063for as_dir in $PATH
14064do
14065 IFS=$as_save_IFS
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014068 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 +000014069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 break 2
14072 fi
14073done
14074done
Reid Spencera773bd52006-08-04 18:18:08 +000014075IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014076
14077fi
14078fi
14079STRIP=$ac_cv_prog_STRIP
14080if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014081 { echo "$as_me:$LINENO: result: $STRIP" >&5
14082echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014083else
Reid Spencera773bd52006-08-04 18:18:08 +000014084 { echo "$as_me:$LINENO: result: no" >&5
14085echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014086fi
14087
Reid Spencera773bd52006-08-04 18:18:08 +000014088
John Criswell7a73b802003-06-30 21:59:07 +000014089fi
14090if test -z "$ac_cv_prog_STRIP"; then
14091 ac_ct_STRIP=$STRIP
14092 # Extract the first word of "strip", so it can be a program name with args.
14093set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098else
14099 if test -n "$ac_ct_STRIP"; then
14100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14101else
14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103for as_dir in $PATH
14104do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014108 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 +000014109 ac_cv_prog_ac_ct_STRIP="strip"
14110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113done
14114done
Reid Spencera773bd52006-08-04 18:18:08 +000014115IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014116
John Criswell7a73b802003-06-30 21:59:07 +000014117fi
14118fi
14119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14120if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014121 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14122echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014123else
Reid Spencera773bd52006-08-04 18:18:08 +000014124 { echo "$as_me:$LINENO: result: no" >&5
14125echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014126fi
14127
Reid Spencera773bd52006-08-04 18:18:08 +000014128 if test "x$ac_ct_STRIP" = x; then
14129 STRIP=":"
14130 else
14131 case $cross_compiling:$ac_tool_warned in
14132yes:)
14133{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14134whose name does not start with the host triplet. If you think this
14135configuration is useful to you, please write to autoconf@gnu.org." >&5
14136echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14137whose name does not start with the host triplet. If you think this
14138configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14139ac_tool_warned=yes ;;
14140esac
14141 STRIP=$ac_ct_STRIP
14142 fi
John Criswell7a73b802003-06-30 21:59:07 +000014143else
14144 STRIP="$ac_cv_prog_STRIP"
14145fi
14146
14147
John Criswell7a73b802003-06-30 21:59:07 +000014148old_CC="$CC"
14149old_CFLAGS="$CFLAGS"
14150
14151# Set sane defaults for various variables
14152test -z "$AR" && AR=ar
14153test -z "$AR_FLAGS" && AR_FLAGS=cru
14154test -z "$AS" && AS=as
14155test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014156test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014157test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014158test -z "$DLLTOOL" && DLLTOOL=dlltool
14159test -z "$LD" && LD=ld
14160test -z "$LN_S" && LN_S="ln -s"
14161test -z "$MAGIC_CMD" && MAGIC_CMD=file
14162test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014163test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014164test -z "$OBJDUMP" && OBJDUMP=objdump
14165test -z "$RANLIB" && RANLIB=:
14166test -z "$STRIP" && STRIP=:
14167test -z "$ac_objext" && ac_objext=o
14168
John Criswell7a73b802003-06-30 21:59:07 +000014169# Determine commands to create old-style static archives.
14170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14171old_postinstall_cmds='chmod 644 $oldlib'
14172old_postuninstall_cmds=
14173
14174if test -n "$RANLIB"; then
14175 case $host_os in
14176 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014178 ;;
14179 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014181 ;;
14182 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014184fi
14185
Reid Spencera773bd52006-08-04 18:18:08 +000014186for cc_temp in $compiler""; do
14187 case $cc_temp in
14188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190 \-*) ;;
14191 *) break;;
14192 esac
14193done
14194cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14195
Reid Spencer2706f8c2004-09-19 23:53:36 +000014196
John Criswell47fdd832003-07-14 16:52:07 +000014197# Only perform the check for file, if the check method requires it
14198case $deplibs_check_method in
14199file_magic*)
14200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014201 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14202echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014203if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014205else
John Criswell47fdd832003-07-14 16:52:07 +000014206 case $MAGIC_CMD in
14207[\\/*] | ?:[\\/]*)
14208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14209 ;;
14210*)
14211 lt_save_MAGIC_CMD="$MAGIC_CMD"
14212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14214 for ac_dir in $ac_dummy; do
14215 IFS="$lt_save_ifs"
14216 test -z "$ac_dir" && ac_dir=.
14217 if test -f $ac_dir/${ac_tool_prefix}file; then
14218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14219 if test -n "$file_magic_test_file"; then
14220 case $deplibs_check_method in
14221 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14225 $EGREP "$file_magic_regex" > /dev/null; then
14226 :
14227 else
14228 cat <<EOF 1>&2
14229
14230*** Warning: the command libtool uses to detect shared libraries,
14231*** $file_magic_cmd, produces output that libtool cannot recognize.
14232*** The result is that libtool may fail to recognize shared libraries
14233*** as such. This will affect the creation of libtool libraries that
14234*** depend on shared libraries, but programs linked with such libtool
14235*** libraries will work regardless of this problem. Nevertheless, you
14236*** may want to report the problem to your system manager and/or to
14237*** bug-libtool@gnu.org
14238
14239EOF
14240 fi ;;
14241 esac
14242 fi
14243 break
14244 fi
14245 done
14246 IFS="$lt_save_ifs"
14247 MAGIC_CMD="$lt_save_MAGIC_CMD"
14248 ;;
14249esac
John Criswell7a73b802003-06-30 21:59:07 +000014250fi
John Criswell7a73b802003-06-30 21:59:07 +000014251
John Criswell47fdd832003-07-14 16:52:07 +000014252MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14253if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014254 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14255echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014256else
Reid Spencera773bd52006-08-04 18:18:08 +000014257 { echo "$as_me:$LINENO: result: no" >&5
14258echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014259fi
John Criswell7a73b802003-06-30 21:59:07 +000014260
John Criswell47fdd832003-07-14 16:52:07 +000014261if test -z "$lt_cv_path_MAGIC_CMD"; then
14262 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014263 { echo "$as_me:$LINENO: checking for file" >&5
14264echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014265if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
14268 case $MAGIC_CMD in
14269[\\/*] | ?:[\\/]*)
14270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14271 ;;
14272*)
14273 lt_save_MAGIC_CMD="$MAGIC_CMD"
14274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14276 for ac_dir in $ac_dummy; do
14277 IFS="$lt_save_ifs"
14278 test -z "$ac_dir" && ac_dir=.
14279 if test -f $ac_dir/file; then
14280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14281 if test -n "$file_magic_test_file"; then
14282 case $deplibs_check_method in
14283 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14287 $EGREP "$file_magic_regex" > /dev/null; then
14288 :
14289 else
14290 cat <<EOF 1>&2
14291
14292*** Warning: the command libtool uses to detect shared libraries,
14293*** $file_magic_cmd, produces output that libtool cannot recognize.
14294*** The result is that libtool may fail to recognize shared libraries
14295*** as such. This will affect the creation of libtool libraries that
14296*** depend on shared libraries, but programs linked with such libtool
14297*** libraries will work regardless of this problem. Nevertheless, you
14298*** may want to report the problem to your system manager and/or to
14299*** bug-libtool@gnu.org
14300
14301EOF
14302 fi ;;
14303 esac
14304 fi
14305 break
14306 fi
14307 done
14308 IFS="$lt_save_ifs"
14309 MAGIC_CMD="$lt_save_MAGIC_CMD"
14310 ;;
14311esac
14312fi
14313
14314MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14315if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014316 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14317echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014318else
Reid Spencera773bd52006-08-04 18:18:08 +000014319 { echo "$as_me:$LINENO: result: no" >&5
14320echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014321fi
14322
14323 else
14324 MAGIC_CMD=:
14325 fi
14326fi
14327
14328 fi
14329 ;;
14330esac
14331
Reid Spencer17795972004-11-18 09:47:37 +000014332enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014333enable_win32_dll=no
14334
Reid Spencera773bd52006-08-04 18:18:08 +000014335# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014336if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014337 enableval=$enable_libtool_lock;
14338fi
John Criswell47fdd832003-07-14 16:52:07 +000014339
John Criswell47fdd832003-07-14 16:52:07 +000014340test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14341
John Criswell7a73b802003-06-30 21:59:07 +000014342
Reid Spencera773bd52006-08-04 18:18:08 +000014343# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014344if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014345 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014346else
14347 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014348fi
14349
John Criswell7a73b802003-06-30 21:59:07 +000014350test -z "$pic_mode" && pic_mode=default
14351
John Criswell47fdd832003-07-14 16:52:07 +000014352# Use C for the default configuration in the libtool script
14353tagname=
14354lt_save_CC="$CC"
14355ac_ext=c
14356ac_cpp='$CPP $CPPFLAGS'
14357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362# Source file extension for C test sources.
14363ac_ext=c
14364
14365# Object file extension for compiled C test sources.
14366objext=o
14367objext=$objext
14368
14369# Code to be used in simple compile tests
14370lt_simple_compile_test_code="int some_variable = 0;\n"
14371
14372# Code to be used in simple link tests
14373lt_simple_link_test_code='int main(){return(0);}\n'
14374
14375
14376# If no C compiler was specified, use CC.
14377LTCC=${LTCC-"$CC"}
14378
Reid Spencera773bd52006-08-04 18:18:08 +000014379# If no C compiler flags were specified, use CFLAGS.
14380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14381
John Criswell47fdd832003-07-14 16:52:07 +000014382# Allow CC to be a program name with arguments.
14383compiler=$CC
14384
14385
Reid Spencera773bd52006-08-04 18:18:08 +000014386# save warnings/boilerplate of simple test code
14387ac_outfile=conftest.$ac_objext
14388printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14390_lt_compiler_boilerplate=`cat conftest.err`
14391$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014392
Reid Spencera773bd52006-08-04 18:18:08 +000014393ac_outfile=conftest.$ac_objext
14394printf "$lt_simple_link_test_code" >conftest.$ac_ext
14395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14396_lt_linker_boilerplate=`cat conftest.err`
14397$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014398
14399
John Criswell47fdd832003-07-14 16:52:07 +000014400
14401lt_prog_compiler_no_builtin_flag=
14402
14403if test "$GCC" = yes; then
14404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14405
Reid Spencer2706f8c2004-09-19 23:53:36 +000014406
Reid Spencera773bd52006-08-04 18:18:08 +000014407{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14408echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014409if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
14412 lt_cv_prog_compiler_rtti_exceptions=no
14413 ac_outfile=conftest.$ac_objext
14414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 lt_compiler_flag="-fno-rtti -fno-exceptions"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 # The option is referenced via a variable to avoid confusing sed.
14421 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000014425 (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014426 (eval "$lt_compile" 2>conftest.err)
14427 ac_status=$?
14428 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000014429 echo "$as_me:14429: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014430 if (exit $ac_status) && test -s "$ac_outfile"; then
14431 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014432 # So say no if there are warnings other than the usual output.
14433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014436 lt_cv_prog_compiler_rtti_exceptions=yes
14437 fi
14438 fi
14439 $rm conftest*
14440
14441fi
Reid Spencera773bd52006-08-04 18:18:08 +000014442{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14443echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014444
14445if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14447else
14448 :
14449fi
14450
14451fi
14452
14453lt_prog_compiler_wl=
14454lt_prog_compiler_pic=
14455lt_prog_compiler_static=
14456
Reid Spencera773bd52006-08-04 18:18:08 +000014457{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14458echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014459
14460 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014461 lt_prog_compiler_wl='-Wl,'
14462 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014463
14464 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014465 aix*)
14466 # All AIX code is PIC.
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static='-Bstatic'
14470 fi
John Criswell7a73b802003-06-30 21:59:07 +000014471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014472
John Criswell7a73b802003-06-30 21:59:07 +000014473 amigaos*)
14474 # FIXME: we need at least 68020 code to build shared libraries, but
14475 # adding the `-m68020' flag to GCC prevents building anything better,
14476 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014477 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014479
14480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014481 # PIC is the default for these OSes.
14482 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014483
14484 mingw* | pw32* | os2*)
14485 # This hack is so that the source file can tell whether it is being
14486 # built for inclusion in a dll (and should export symbols for example).
14487 lt_prog_compiler_pic='-DDLL_EXPORT'
14488 ;;
14489
John Criswell7a73b802003-06-30 21:59:07 +000014490 darwin* | rhapsody*)
14491 # PIC is the default on this platform
14492 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014493 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014494 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014495
Reid Spencera773bd52006-08-04 18:18:08 +000014496 interix3*)
14497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14498 # Instead, we relocate shared libraries at runtime.
14499 ;;
14500
John Criswell47fdd832003-07-14 16:52:07 +000014501 msdosdjgpp*)
14502 # Just because we use GCC doesn't mean we suddenly get shared libraries
14503 # on systems that don't support them.
14504 lt_prog_compiler_can_build_shared=no
14505 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014506 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014507
John Criswell7a73b802003-06-30 21:59:07 +000014508 sysv4*MP*)
14509 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014510 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014511 fi
14512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014513
14514 hpux*)
14515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14516 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014517 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014518 hppa*64*|ia64*)
14519 # +Z the default
14520 ;;
14521 *)
14522 lt_prog_compiler_pic='-fPIC'
14523 ;;
14524 esac
14525 ;;
14526
John Criswell7a73b802003-06-30 21:59:07 +000014527 *)
John Criswell47fdd832003-07-14 16:52:07 +000014528 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014529 ;;
14530 esac
14531 else
John Criswell47fdd832003-07-14 16:52:07 +000014532 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014533 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014534 aix*)
14535 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014536 if test "$host_cpu" = ia64; then
14537 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014538 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014539 else
John Criswell47fdd832003-07-14 16:52:07 +000014540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014541 fi
14542 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014543 darwin*)
14544 # PIC is the default on this platform
14545 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014546 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014547 xlc*)
14548 lt_prog_compiler_pic='-qnocommon'
14549 lt_prog_compiler_wl='-Wl,'
14550 ;;
14551 esac
14552 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014553
John Criswell47fdd832003-07-14 16:52:07 +000014554 mingw* | pw32* | os2*)
14555 # This hack is so that the source file can tell whether it is being
14556 # built for inclusion in a dll (and should export symbols for example).
14557 lt_prog_compiler_pic='-DDLL_EXPORT'
14558 ;;
14559
John Criswell7a73b802003-06-30 21:59:07 +000014560 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014561 lt_prog_compiler_wl='-Wl,'
14562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14563 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014564 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014565 hppa*64*|ia64*)
14566 # +Z the default
14567 ;;
14568 *)
14569 lt_prog_compiler_pic='+Z'
14570 ;;
14571 esac
14572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14573 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014574 ;;
14575
John Criswell47fdd832003-07-14 16:52:07 +000014576 irix5* | irix6* | nonstopux*)
14577 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014578 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014579 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014580 ;;
14581
14582 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014583 lt_prog_compiler_pic='-KPIC'
14584 lt_prog_compiler_static='-Bstatic'
14585 ;;
14586
14587 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014588 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014589 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014590 lt_prog_compiler_wl='-Wl,'
14591 lt_prog_compiler_pic='-KPIC'
14592 lt_prog_compiler_static='-static'
14593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014594 pgcc* | pgf77* | pgf90* | pgf95*)
14595 # Portland Group compilers (*not* the Pentium gcc compiler,
14596 # which looks to be a dead project)
14597 lt_prog_compiler_wl='-Wl,'
14598 lt_prog_compiler_pic='-fpic'
14599 lt_prog_compiler_static='-Bstatic'
14600 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014601 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014602 lt_prog_compiler_wl='-Wl,'
14603 # All Alpha code is PIC.
14604 lt_prog_compiler_static='-non_shared'
14605 ;;
14606 esac
John Criswell7a73b802003-06-30 21:59:07 +000014607 ;;
14608
14609 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014610 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014611 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014612 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014613 ;;
14614
John Criswell7a73b802003-06-30 21:59:07 +000014615 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014616 lt_prog_compiler_pic='-KPIC'
14617 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014618 case $cc_basename in
14619 f77* | f90* | f95*)
14620 lt_prog_compiler_wl='-Qoption ld ';;
14621 *)
14622 lt_prog_compiler_wl='-Wl,';;
14623 esac
John Criswell7a73b802003-06-30 21:59:07 +000014624 ;;
14625
14626 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014627 lt_prog_compiler_wl='-Qoption ld '
14628 lt_prog_compiler_pic='-PIC'
14629 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014630 ;;
14631
Reid Spencera773bd52006-08-04 18:18:08 +000014632 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014633 lt_prog_compiler_wl='-Wl,'
14634 lt_prog_compiler_pic='-KPIC'
14635 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014636 ;;
14637
14638 sysv4*MP*)
14639 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014640 lt_prog_compiler_pic='-Kconform_pic'
14641 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014642 fi
14643 ;;
14644
Reid Spencera773bd52006-08-04 18:18:08 +000014645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_pic='-KPIC'
14648 lt_prog_compiler_static='-Bstatic'
14649 ;;
14650
14651 unicos*)
14652 lt_prog_compiler_wl='-Wl,'
14653 lt_prog_compiler_can_build_shared=no
14654 ;;
14655
John Criswell47fdd832003-07-14 16:52:07 +000014656 uts4*)
14657 lt_prog_compiler_pic='-pic'
14658 lt_prog_compiler_static='-Bstatic'
14659 ;;
14660
John Criswell7a73b802003-06-30 21:59:07 +000014661 *)
John Criswell47fdd832003-07-14 16:52:07 +000014662 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014663 ;;
14664 esac
14665 fi
14666
Reid Spencera773bd52006-08-04 18:18:08 +000014667{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14668echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014669
John Criswell47fdd832003-07-14 16:52:07 +000014670#
14671# Check to make sure the PIC flag actually works.
14672#
14673if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014674
Reid Spencera773bd52006-08-04 18:18:08 +000014675{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14676echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014677if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
John Criswell47fdd832003-07-14 16:52:07 +000014680 lt_prog_compiler_pic_works=no
14681 ac_outfile=conftest.$ac_objext
14682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14684 # Insert the option either (1) after the last *FLAGS variable, or
14685 # (2) before a word containing "conftest.", or (3) at the end.
14686 # Note that $ac_compile itself does not contain backslashes and begins
14687 # with a dollar sign (not a hyphen), so the echo should work correctly.
14688 # The option is referenced via a variable to avoid confusing sed.
14689 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000014693 (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014694 (eval "$lt_compile" 2>conftest.err)
14695 ac_status=$?
14696 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000014697 echo "$as_me:14697: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014698 if (exit $ac_status) && test -s "$ac_outfile"; then
14699 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014700 # So say no if there are warnings other than the usual output.
14701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014704 lt_prog_compiler_pic_works=yes
14705 fi
14706 fi
14707 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014708
John Criswell47fdd832003-07-14 16:52:07 +000014709fi
Reid Spencera773bd52006-08-04 18:18:08 +000014710{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14711echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014712
John Criswell47fdd832003-07-14 16:52:07 +000014713if test x"$lt_prog_compiler_pic_works" = xyes; then
14714 case $lt_prog_compiler_pic in
14715 "" | " "*) ;;
14716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14717 esac
John Criswell7a73b802003-06-30 21:59:07 +000014718else
John Criswell47fdd832003-07-14 16:52:07 +000014719 lt_prog_compiler_pic=
14720 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014721fi
14722
John Criswell7a73b802003-06-30 21:59:07 +000014723fi
Reid Spencera773bd52006-08-04 18:18:08 +000014724case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014725 # For platforms which do not support PIC, -DPIC is meaningless:
14726 *djgpp*)
14727 lt_prog_compiler_pic=
14728 ;;
14729 *)
14730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14731 ;;
14732esac
John Criswell7a73b802003-06-30 21:59:07 +000014733
Reid Spencera773bd52006-08-04 18:18:08 +000014734#
14735# Check to make sure the static flag actually works.
14736#
14737wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14738{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14739echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14740if test "${lt_prog_compiler_static_works+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742else
14743 lt_prog_compiler_static_works=no
14744 save_LDFLAGS="$LDFLAGS"
14745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14748 # The linker can only warn and ignore the option if not recognized
14749 # So say no if there are warnings
14750 if test -s conftest.err; then
14751 # Append any errors to the config.log.
14752 cat conftest.err 1>&5
14753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14755 if diff conftest.exp conftest.er2 >/dev/null; then
14756 lt_prog_compiler_static_works=yes
14757 fi
14758 else
14759 lt_prog_compiler_static_works=yes
14760 fi
14761 fi
14762 $rm conftest*
14763 LDFLAGS="$save_LDFLAGS"
14764
14765fi
14766{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14767echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14768
14769if test x"$lt_prog_compiler_static_works" = xyes; then
14770 :
14771else
14772 lt_prog_compiler_static=
14773fi
14774
14775
14776{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014778if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
John Criswell47fdd832003-07-14 16:52:07 +000014781 lt_cv_prog_compiler_c_o=no
14782 $rm -r conftest 2>/dev/null
14783 mkdir conftest
14784 cd conftest
14785 mkdir out
14786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014787
John Criswell47fdd832003-07-14 16:52:07 +000014788 lt_compiler_flag="-o out/conftest2.$ac_objext"
14789 # Insert the option either (1) after the last *FLAGS variable, or
14790 # (2) before a word containing "conftest.", or (3) at the end.
14791 # Note that $ac_compile itself does not contain backslashes and begins
14792 # with a dollar sign (not a hyphen), so the echo should work correctly.
14793 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000014797 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014798 (eval "$lt_compile" 2>out/conftest.err)
14799 ac_status=$?
14800 cat out/conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000014801 echo "$as_me:14801: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14803 then
14804 # The compiler can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014809 lt_cv_prog_compiler_c_o=yes
14810 fi
14811 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014812 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014813 $rm conftest*
14814 # SGI C++ compiler will create directory out/ii_files/ for
14815 # template instantiation
14816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14817 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014818 cd ..
14819 rmdir conftest
14820 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014821
14822fi
Reid Spencera773bd52006-08-04 18:18:08 +000014823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14824echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014825
John Criswell7a73b802003-06-30 21:59:07 +000014826
John Criswell7a73b802003-06-30 21:59:07 +000014827hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014828if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014829 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014832 hard_links=yes
14833 $rm conftest*
14834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14835 touch conftest.a
14836 ln conftest.a conftest.b 2>&5 || hard_links=no
14837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014838 { echo "$as_me:$LINENO: result: $hard_links" >&5
14839echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014840 if test "$hard_links" = no; then
14841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14843 need_locks=warn
14844 fi
14845else
14846 need_locks=no
14847fi
John Criswell7a73b802003-06-30 21:59:07 +000014848
Reid Spencera773bd52006-08-04 18:18:08 +000014849{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014851
14852 runpath_var=
14853 allow_undefined_flag=
14854 enable_shared_with_static_runtimes=no
14855 archive_cmds=
14856 archive_expsym_cmds=
14857 old_archive_From_new_cmds=
14858 old_archive_from_expsyms_cmds=
14859 export_dynamic_flag_spec=
14860 whole_archive_flag_spec=
14861 thread_safe_flag_spec=
14862 hardcode_libdir_flag_spec=
14863 hardcode_libdir_flag_spec_ld=
14864 hardcode_libdir_separator=
14865 hardcode_direct=no
14866 hardcode_minus_L=no
14867 hardcode_shlibpath_var=unsupported
14868 link_all_deplibs=unknown
14869 hardcode_automatic=no
14870 module_cmds=
14871 module_expsym_cmds=
14872 always_export_symbols=no
14873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14874 # include_expsyms should be a list of space-separated symbols to be *always*
14875 # included in the symbol list
14876 include_expsyms=
14877 # exclude_expsyms can be an extended regexp of symbols to exclude
14878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14880 # as well as any symbol that contains `d'.
14881 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14883 # platforms (ab)use it in PIC code, but their linkers get confused if
14884 # the symbol is explicitly referenced. Since portable code cannot
14885 # rely on this symbol name, it's probably fine to never include it in
14886 # preloaded symbol tables.
14887 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014888 # Just being paranoid about ensuring that cc_basename is set.
14889 for cc_temp in $compiler""; do
14890 case $cc_temp in
14891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14893 \-*) ;;
14894 *) break;;
14895 esac
14896done
14897cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014898
14899 case $host_os in
14900 cygwin* | mingw* | pw32*)
14901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14902 # When not using gcc, we currently assume that we are using
14903 # Microsoft Visual C++.
14904 if test "$GCC" != yes; then
14905 with_gnu_ld=no
14906 fi
14907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014908 interix*)
14909 # we just hope/assume this is gcc and not c89 (= MSVC++)
14910 with_gnu_ld=yes
14911 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014912 openbsd*)
14913 with_gnu_ld=no
14914 ;;
14915 esac
14916
14917 ld_shlibs=yes
14918 if test "$with_gnu_ld" = yes; then
14919 # If archive_cmds runs LD, not CC, wlarc should be empty
14920 wlarc='${wl}'
14921
Reid Spencera773bd52006-08-04 18:18:08 +000014922 # Set some defaults for GNU ld with shared library support. These
14923 # are reset later if shared libraries are not supported. Putting them
14924 # here allows them to be overridden if necessary.
14925 runpath_var=LD_RUN_PATH
14926 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14927 export_dynamic_flag_spec='${wl}--export-dynamic'
14928 # ancient GNU ld didn't support --whole-archive et. al.
14929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14930 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14931 else
14932 whole_archive_flag_spec=
14933 fi
14934 supports_anon_versioning=no
14935 case `$LD -v 2>/dev/null` in
14936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14939 *\ 2.11.*) ;; # other 2.11 versions
14940 *) supports_anon_versioning=yes ;;
14941 esac
14942
John Criswell47fdd832003-07-14 16:52:07 +000014943 # See if GNU ld supports shared libraries.
14944 case $host_os in
14945 aix3* | aix4* | aix5*)
14946 # On AIX/PPC, the GNU linker is very broken
14947 if test "$host_cpu" != ia64; then
14948 ld_shlibs=no
14949 cat <<EOF 1>&2
14950
14951*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14952*** to be unable to reliably create shared libraries on AIX.
14953*** Therefore, libtool is disabling shared libraries support. If you
14954*** really care for shared libraries, you may want to modify your PATH
14955*** so that a non-GNU linker is found, and then restart.
14956
14957EOF
14958 fi
14959 ;;
14960
14961 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014962 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 +000014963 hardcode_libdir_flag_spec='-L$libdir'
14964 hardcode_minus_L=yes
14965
14966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14967 # that the semantics of dynamic libraries on AmigaOS, at least up
14968 # to version 4, is to share data among multiple programs linked
14969 # with the same dynamic library. Since this doesn't match the
14970 # behavior of shared libraries on other platforms, we can't use
14971 # them.
14972 ld_shlibs=no
14973 ;;
14974
14975 beos*)
14976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977 allow_undefined_flag=unsupported
14978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14979 # support --undefined. This deserves some investigation. FIXME
14980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14981 else
14982 ld_shlibs=no
14983 fi
14984 ;;
14985
14986 cygwin* | mingw* | pw32*)
14987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14988 # as there is no search path for DLLs.
14989 hardcode_libdir_flag_spec='-L$libdir'
14990 allow_undefined_flag=unsupported
14991 always_export_symbols=no
14992 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014993 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 +000014994
14995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014996 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 +000014997 # If the export-symbols file already is a .def file (1st line
14998 # is EXPORTS), use it as is; otherwise, prepend...
14999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15000 cp $export_symbols $output_objdir/$soname.def;
15001 else
15002 echo EXPORTS > $output_objdir/$soname.def;
15003 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015004 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15006 else
15007 ld_shlibs=no
15008 fi
15009 ;;
15010
15011 interix3*)
15012 hardcode_direct=no
15013 hardcode_shlibpath_var=no
15014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15015 export_dynamic_flag_spec='${wl}-E'
15016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15017 # Instead, shared libraries are loaded at an image base (0x10000000 by
15018 # default) and relocated if they conflict, which is a slow very memory
15019 # consuming and fragmenting process. To avoid this, we pick a random,
15020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15023 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'
15024 ;;
15025
15026 linux*)
15027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15028 tmp_addflag=
15029 case $cc_basename,$host_cpu in
15030 pgcc*) # Portland Group C compiler
15031 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'
15032 tmp_addflag=' $pic_flag'
15033 ;;
15034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15035 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'
15036 tmp_addflag=' $pic_flag -Mnomain' ;;
15037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15038 tmp_addflag=' -i_dynamic' ;;
15039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15040 tmp_addflag=' -i_dynamic -nofor_main' ;;
15041 ifc* | ifort*) # Intel Fortran compiler
15042 tmp_addflag=' -nofor_main' ;;
15043 esac
15044 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045
15046 if test $supports_anon_versioning = yes; then
15047 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15049 $echo "local: *; };" >> $output_objdir/$libname.ver~
15050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15051 fi
John Criswell47fdd832003-07-14 16:52:07 +000015052 else
15053 ld_shlibs=no
15054 fi
15055 ;;
15056
15057 netbsd*)
15058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15060 wlarc=
15061 else
15062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064 fi
15065 ;;
15066
Reid Spencera773bd52006-08-04 18:18:08 +000015067 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15069 ld_shlibs=no
15070 cat <<EOF 1>&2
15071
15072*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15073*** create shared libraries on Solaris systems. Therefore, libtool
15074*** is disabling shared libraries support. We urge you to upgrade GNU
15075*** binutils to release 2.9.1 or newer. Another option is to modify
15076*** your PATH or compiler configuration so that the native linker is
15077*** used, and then restart.
15078
15079EOF
15080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15083 else
15084 ld_shlibs=no
15085 fi
15086 ;;
15087
Reid Spencera773bd52006-08-04 18:18:08 +000015088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15089 case `$LD -v 2>&1` in
15090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15091 ld_shlibs=no
15092 cat <<_LT_EOF 1>&2
15093
15094*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15095*** reliably create shared libraries on SCO systems. Therefore, libtool
15096*** is disabling shared libraries support. We urge you to upgrade GNU
15097*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15098*** your PATH or compiler configuration so that the native linker is
15099*** used, and then restart.
15100
15101_LT_EOF
15102 ;;
15103 *)
15104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15108 else
15109 ld_shlibs=no
15110 fi
15111 ;;
15112 esac
15113 ;;
15114
John Criswell47fdd832003-07-14 16:52:07 +000015115 sunos4*)
15116 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15117 wlarc=
15118 hardcode_direct=yes
15119 hardcode_shlibpath_var=no
15120 ;;
15121
15122 *)
15123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126 else
15127 ld_shlibs=no
15128 fi
15129 ;;
15130 esac
15131
Reid Spencera773bd52006-08-04 18:18:08 +000015132 if test "$ld_shlibs" = no; then
15133 runpath_var=
15134 hardcode_libdir_flag_spec=
15135 export_dynamic_flag_spec=
15136 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015137 fi
15138 else
15139 # PORTME fill in a description of your system's linker (not GNU ld)
15140 case $host_os in
15141 aix3*)
15142 allow_undefined_flag=unsupported
15143 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015144 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 +000015145 # Note: this linker hardcodes the directories in LIBPATH if there
15146 # are no directories specified by -L.
15147 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015149 # Neither direct hardcoding nor static linking is supported with a
15150 # broken collect2.
15151 hardcode_direct=unsupported
15152 fi
15153 ;;
15154
15155 aix4* | aix5*)
15156 if test "$host_cpu" = ia64; then
15157 # On IA64, the linker does run time linking by default, so we don't
15158 # have to do anything special.
15159 aix_use_runtimelinking=no
15160 exp_sym_flag='-Bexport'
15161 no_entry_flag=""
15162 else
15163 # If we're using GNU nm, then we don't want the "-C" option.
15164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15166 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'
15167 else
15168 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'
15169 fi
15170 aix_use_runtimelinking=no
15171
15172 # Test if we are trying to use run time linking or normal
15173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15174 # need to do runtime linking.
15175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15176 for ld_flag in $LDFLAGS; do
15177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15178 aix_use_runtimelinking=yes
15179 break
15180 fi
15181 done
Reid Spencera773bd52006-08-04 18:18:08 +000015182 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015183 esac
15184
15185 exp_sym_flag='-bexport'
15186 no_entry_flag='-bnoentry'
15187 fi
15188
15189 # When large executables or shared objects are built, AIX ld can
15190 # have problems creating the table of contents. If linking a library
15191 # or program results in "error TOC overflow" add -mminimal-toc to
15192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15194
15195 archive_cmds=''
15196 hardcode_direct=yes
15197 hardcode_libdir_separator=':'
15198 link_all_deplibs=yes
15199
15200 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015201 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015202 # We only want to do this on AIX 4.2 and lower, the check
15203 # below for broken collect2 doesn't work under 4.3+
15204 collect2name=`${CC} -print-prog-name=collect2`
15205 if test -f "$collect2name" && \
15206 strings "$collect2name" | grep resolve_lib_name >/dev/null
15207 then
15208 # We have reworked collect2
15209 hardcode_direct=yes
15210 else
15211 # We have old collect2
15212 hardcode_direct=unsupported
15213 # It fails to find uninstalled libraries when the uninstalled
15214 # path is not listed in the libpath. Setting hardcode_minus_L
15215 # to unsupported forces relinking
15216 hardcode_minus_L=yes
15217 hardcode_libdir_flag_spec='-L$libdir'
15218 hardcode_libdir_separator=
15219 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015221 esac
15222 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015223 if test "$aix_use_runtimelinking" = yes; then
15224 shared_flag="$shared_flag "'${wl}-G'
15225 fi
John Criswell47fdd832003-07-14 16:52:07 +000015226 else
15227 # not using gcc
15228 if test "$host_cpu" = ia64; then
15229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15230 # chokes on -Wl,-G. The following line is correct:
15231 shared_flag='-G'
15232 else
Reid Spencera773bd52006-08-04 18:18:08 +000015233 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015234 shared_flag='${wl}-G'
15235 else
15236 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015237 fi
John Criswell47fdd832003-07-14 16:52:07 +000015238 fi
15239 fi
15240
15241 # It seems that -bexpall does not export symbols beginning with
15242 # underscore (_), so it is better to generate a list of symbols to export.
15243 always_export_symbols=yes
15244 if test "$aix_use_runtimelinking" = yes; then
15245 # Warning - without using the other runtime loading flags (-brtl),
15246 # -berok will link without error, but may produce a broken library.
15247 allow_undefined_flag='-berok'
15248 # Determine the default libpath from the value encoded in an empty executable.
15249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015255
John Criswell7a73b802003-06-30 21:59:07 +000015256int
15257main ()
15258{
John Criswell47fdd832003-07-14 16:52:07 +000015259
John Criswell7a73b802003-06-30 21:59:07 +000015260 ;
15261 return 0;
15262}
15263_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015264rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015265if { (ac_try="$ac_link"
15266case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282esac
15283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015298
John Criswell47fdd832003-07-14 16:52:07 +000015299aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15300}'`
15301# Check for a 64-bit object if we didn't find anything.
15302if 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; }
15303}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015304else
15305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015306sed 's/^/| /' conftest.$ac_ext >&5
15307
Reid Spencera773bd52006-08-04 18:18:08 +000015308
John Criswell7a73b802003-06-30 21:59:07 +000015309fi
Reid Spencera773bd52006-08-04 18:18:08 +000015310
Bill Wendlingebcceee2009-04-18 11:20:33 +000015311rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015312 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015313if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015314
John Criswell47fdd832003-07-14 16:52:07 +000015315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015316 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 +000015317 else
15318 if test "$host_cpu" = ia64; then
15319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15320 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015321 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 +000015322 else
15323 # Determine the default libpath from the value encoded in an empty executable.
15324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015330
John Criswell47fdd832003-07-14 16:52:07 +000015331int
15332main ()
15333{
John Criswell7a73b802003-06-30 21:59:07 +000015334
John Criswell47fdd832003-07-14 16:52:07 +000015335 ;
15336 return 0;
15337}
15338_ACEOF
15339rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015340if { (ac_try="$ac_link"
15341case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344esac
15345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015373
John Criswell47fdd832003-07-14 16:52:07 +000015374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15375}'`
15376# Check for a 64-bit object if we didn't find anything.
15377if 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; }
15378}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015379else
John Criswell47fdd832003-07-14 16:52:07 +000015380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015381sed 's/^/| /' conftest.$ac_ext >&5
15382
Reid Spencera773bd52006-08-04 18:18:08 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384fi
Reid Spencera773bd52006-08-04 18:18:08 +000015385
Bill Wendlingebcceee2009-04-18 11:20:33 +000015386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015387 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015389
John Criswell47fdd832003-07-14 16:52:07 +000015390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15391 # Warning - without using the other run time loading flags,
15392 # -berok will link without error, but may produce a broken library.
15393 no_undefined_flag=' ${wl}-bernotok'
15394 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015395 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015396 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015397 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015398 # This is similar to how AIX traditionally builds its shared libraries.
15399 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 +000015400 fi
15401 fi
John Criswell7a73b802003-06-30 21:59:07 +000015402 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015403
15404 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015405 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 +000015406 hardcode_libdir_flag_spec='-L$libdir'
15407 hardcode_minus_L=yes
15408 # see comment about different semantics on the GNU ld section
15409 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015410 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015411
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015413 export_dynamic_flag_spec=-rdynamic
15414 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015415
John Criswell47fdd832003-07-14 16:52:07 +000015416 cygwin* | mingw* | pw32*)
15417 # When not using gcc, we currently assume that we are using
15418 # Microsoft Visual C++.
15419 # hardcode_libdir_flag_spec is actually meaningless, as there is
15420 # no search path for DLLs.
15421 hardcode_libdir_flag_spec=' '
15422 allow_undefined_flag=unsupported
15423 # Tell ltmain to make .lib files, not .a files.
15424 libext=lib
15425 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015426 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015427 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015428 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015429 # The linker will automatically build a .lib file if we build a DLL.
15430 old_archive_From_new_cmds='true'
15431 # FIXME: Should let the user specify the lib program.
15432 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15433 fix_srcfile_path='`cygpath -w "$srcfile"`'
15434 enable_shared_with_static_runtimes=yes
15435 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015436
John Criswell47fdd832003-07-14 16:52:07 +000015437 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015438 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015439 rhapsody* | darwin1.[012])
15440 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15441 ;;
15442 *) # Darwin 1.3 on
15443 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15444 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15445 else
15446 case ${MACOSX_DEPLOYMENT_TARGET} in
15447 10.[012])
15448 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15449 ;;
15450 10.*)
15451 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15452 ;;
15453 esac
15454 fi
15455 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015456 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015457 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015458 hardcode_direct=no
15459 hardcode_automatic=yes
15460 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015461 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015462 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015463 if test "$GCC" = yes ; then
15464 output_verbose_link_cmd='echo'
15465 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15466 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015467 # 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 +000015468 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}'
15469 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 +000015470 else
Reid Spencera773bd52006-08-04 18:18:08 +000015471 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015472 xlc*)
15473 output_verbose_link_cmd='echo'
15474 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15475 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015476 # 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 +000015477 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}'
15478 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 +000015479 ;;
15480 *)
15481 ld_shlibs=no
15482 ;;
15483 esac
John Criswell7a73b802003-06-30 21:59:07 +000015484 fi
John Criswell47fdd832003-07-14 16:52:07 +000015485 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015486
John Criswell47fdd832003-07-14 16:52:07 +000015487 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_shlibpath_var=no
15491 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015492
John Criswell47fdd832003-07-14 16:52:07 +000015493 freebsd1*)
15494 ld_shlibs=no
15495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015496
John Criswell47fdd832003-07-14 16:52:07 +000015497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15498 # support. Future versions do this automatically, but an explicit c++rt0.o
15499 # does not break anything, and helps significantly (at the cost of a little
15500 # extra space).
15501 freebsd2.2*)
15502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15503 hardcode_libdir_flag_spec='-R$libdir'
15504 hardcode_direct=yes
15505 hardcode_shlibpath_var=no
15506 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015507
John Criswell47fdd832003-07-14 16:52:07 +000015508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15509 freebsd2*)
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15511 hardcode_direct=yes
15512 hardcode_minus_L=yes
15513 hardcode_shlibpath_var=no
15514 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015515
John Criswell47fdd832003-07-14 16:52:07 +000015516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015517 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015518 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15519 hardcode_libdir_flag_spec='-R$libdir'
15520 hardcode_direct=yes
15521 hardcode_shlibpath_var=no
15522 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015523
John Criswell47fdd832003-07-14 16:52:07 +000015524 hpux9*)
15525 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015526 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 +000015527 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015528 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 +000015529 fi
15530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531 hardcode_libdir_separator=:
15532 hardcode_direct=yes
15533
15534 # hardcode_minus_L: Not really in the search PATH,
15535 # but as the default location of the library.
15536 hardcode_minus_L=yes
15537 export_dynamic_flag_spec='${wl}-E'
15538 ;;
15539
Reid Spencera773bd52006-08-04 18:18:08 +000015540 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015542 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15543 else
15544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15545 fi
15546 if test "$with_gnu_ld" = no; then
15547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator=:
15549
15550 hardcode_direct=yes
15551 export_dynamic_flag_spec='${wl}-E'
15552
15553 # hardcode_minus_L: Not really in the search PATH,
15554 # but as the default location of the library.
15555 hardcode_minus_L=yes
15556 fi
15557 ;;
15558
15559 hpux11*)
15560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15561 case $host_cpu in
15562 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015563 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015565 ia64*)
15566 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015568 *)
15569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15570 ;;
15571 esac
15572 else
Reid Spencera773bd52006-08-04 18:18:08 +000015573 case $host_cpu in
15574 hppa*64*)
15575 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 ;;
15577 ia64*)
15578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015579 ;;
15580 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015581 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 +000015582 ;;
15583 esac
15584 fi
15585 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015588
Reid Spencera773bd52006-08-04 18:18:08 +000015589 case $host_cpu in
15590 hppa*64*|ia64*)
15591 hardcode_libdir_flag_spec_ld='+b $libdir'
15592 hardcode_direct=no
15593 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015594 ;;
15595 *)
John Criswell47fdd832003-07-14 16:52:07 +000015596 hardcode_direct=yes
15597 export_dynamic_flag_spec='${wl}-E'
15598
15599 # hardcode_minus_L: Not really in the search PATH,
15600 # but as the default location of the library.
15601 hardcode_minus_L=yes
15602 ;;
15603 esac
15604 fi
15605 ;;
15606
15607 irix5* | irix6* | nonstopux*)
15608 if test "$GCC" = yes; then
15609 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'
15610 else
15611 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'
15612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15613 fi
15614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15615 hardcode_libdir_separator=:
15616 link_all_deplibs=yes
15617 ;;
15618
15619 netbsd*)
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15622 else
15623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15624 fi
15625 hardcode_libdir_flag_spec='-R$libdir'
15626 hardcode_direct=yes
15627 hardcode_shlibpath_var=no
15628 ;;
15629
15630 newsos6)
15631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_direct=yes
15633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15634 hardcode_libdir_separator=:
15635 hardcode_shlibpath_var=no
15636 ;;
15637
15638 openbsd*)
15639 hardcode_direct=yes
15640 hardcode_shlibpath_var=no
15641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015643 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 +000015644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15645 export_dynamic_flag_spec='${wl}-E'
15646 else
15647 case $host_os in
15648 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_libdir_flag_spec='-R$libdir'
15651 ;;
15652 *)
15653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655 ;;
15656 esac
15657 fi
15658 ;;
15659
15660 os2*)
15661 hardcode_libdir_flag_spec='-L$libdir'
15662 hardcode_minus_L=yes
15663 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015664 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 +000015665 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15666 ;;
15667
15668 osf3*)
15669 if test "$GCC" = yes; then
15670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15671 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'
15672 else
15673 allow_undefined_flag=' -expect_unresolved \*'
15674 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'
15675 fi
15676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15677 hardcode_libdir_separator=:
15678 ;;
15679
15680 osf4* | osf5*) # as osf3* with the addition of -msym flag
15681 if test "$GCC" = yes; then
15682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15683 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'
15684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685 else
15686 allow_undefined_flag=' -expect_unresolved \*'
15687 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 +000015688 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 +000015689 $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 +000015690
John Criswell47fdd832003-07-14 16:52:07 +000015691 # Both c and cxx compiler support -rpath directly
15692 hardcode_libdir_flag_spec='-rpath $libdir'
15693 fi
15694 hardcode_libdir_separator=:
15695 ;;
15696
John Criswell47fdd832003-07-14 16:52:07 +000015697 solaris*)
15698 no_undefined_flag=' -z text'
15699 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015700 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015701 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015702 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703 $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 +000015704 else
Reid Spencera773bd52006-08-04 18:18:08 +000015705 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015707 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708 $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 +000015709 fi
15710 hardcode_libdir_flag_spec='-R$libdir'
15711 hardcode_shlibpath_var=no
15712 case $host_os in
15713 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015714 *)
15715 # The compiler driver will combine linker options so we
15716 # cannot just pass the convience library names through
15717 # without $wl, iff we do not link with $LD.
15718 # Luckily, gcc supports the same syntax we need for Sun Studio.
15719 # Supported since Solaris 2.6 (maybe 2.5.1?)
15720 case $wlarc in
15721 '')
15722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15723 *)
15724 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' ;;
15725 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015726 esac
15727 link_all_deplibs=yes
15728 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015729
John Criswell47fdd832003-07-14 16:52:07 +000015730 sunos4*)
15731 if test "x$host_vendor" = xsequent; then
15732 # Use $CC to link under sequent, because it throws in some extra .o
15733 # files that make .init and .fini sections work.
15734 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15735 else
15736 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15737 fi
15738 hardcode_libdir_flag_spec='-L$libdir'
15739 hardcode_direct=yes
15740 hardcode_minus_L=yes
15741 hardcode_shlibpath_var=no
15742 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015743
John Criswell47fdd832003-07-14 16:52:07 +000015744 sysv4)
15745 case $host_vendor in
15746 sni)
15747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct=yes # is this really true???
15749 ;;
15750 siemens)
15751 ## LD is ld it makes a PLAMLIB
15752 ## CC just makes a GrossModule.
15753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15754 reload_cmds='$CC -r -o $output$reload_objs'
15755 hardcode_direct=no
15756 ;;
15757 motorola)
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15760 ;;
15761 esac
15762 runpath_var='LD_RUN_PATH'
15763 hardcode_shlibpath_var=no
15764 ;;
15765
15766 sysv4.3*)
15767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var=no
15769 export_dynamic_flag_spec='-Bexport'
15770 ;;
15771
15772 sysv4*MP*)
15773 if test -d /usr/nec; then
15774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_shlibpath_var=no
15776 runpath_var=LD_RUN_PATH
15777 hardcode_runpath_var=yes
15778 ld_shlibs=yes
15779 fi
15780 ;;
15781
Reid Spencera773bd52006-08-04 18:18:08 +000015782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15783 no_undefined_flag='${wl}-z,text'
15784 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015785 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015786 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015787
John Criswell47fdd832003-07-14 16:52:07 +000015788 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 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 +000015791 else
Reid Spencera773bd52006-08-04 18:18:08 +000015792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 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 +000015794 fi
John Criswell47fdd832003-07-14 16:52:07 +000015795 ;;
15796
Reid Spencera773bd52006-08-04 18:18:08 +000015797 sysv5* | sco3.2v5* | sco5v6*)
15798 # Note: We can NOT use -z defs as we might desire, because we do not
15799 # link with -lc, and that would cause any symbols used from libc to
15800 # always be unresolved, which means just about no library would
15801 # ever link correctly. If we're not using GNU ld we use -z text
15802 # though, which does catch some bad symbols but isn't as heavy-handed
15803 # as -z defs.
15804 no_undefined_flag='${wl}-z,text'
15805 allow_undefined_flag='${wl}-z,nodefs'
15806 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015807 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015808 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15809 hardcode_libdir_separator=':'
15810 link_all_deplibs=yes
15811 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015812 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015813
15814 if test "$GCC" = yes; then
15815 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 else
15818 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15820 fi
John Criswell47fdd832003-07-14 16:52:07 +000015821 ;;
15822
15823 uts4*)
15824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_shlibpath_var=no
15827 ;;
15828
15829 *)
15830 ld_shlibs=no
15831 ;;
15832 esac
15833 fi
15834
Reid Spencera773bd52006-08-04 18:18:08 +000015835{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15836echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015837test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015838
John Criswell47fdd832003-07-14 16:52:07 +000015839#
15840# Do we need to explicitly link libc?
15841#
15842case "x$archive_cmds_need_lc" in
15843x|xyes)
15844 # Assume -lc should be added
15845 archive_cmds_need_lc=yes
15846
15847 if test "$enable_shared" = yes && test "$GCC" = yes; then
15848 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015849 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015850 # FIXME: we may have to deal with multi-command sequences.
15851 ;;
15852 '$CC '*)
15853 # Test whether the compiler implicitly links with -lc since on some
15854 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15855 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015856 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15857echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015858 $rm conftest*
15859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15860
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } 2>conftest.err; then
15866 soname=conftest
15867 lib=conftest
15868 libobjs=conftest.$ac_objext
15869 deplibs=
15870 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015871 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015872 compiler_flags=-v
15873 linker_flags=-v
15874 verstring=
15875 output_objdir=.
15876 libname=conftest
15877 lt_save_allow_undefined_flag=$allow_undefined_flag
15878 allow_undefined_flag=
15879 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15880 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }
15884 then
15885 archive_cmds_need_lc=no
15886 else
15887 archive_cmds_need_lc=yes
15888 fi
15889 allow_undefined_flag=$lt_save_allow_undefined_flag
15890 else
15891 cat conftest.err 1>&5
15892 fi
15893 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015894 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15895echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015896 ;;
15897 esac
15898 fi
15899 ;;
15900esac
15901
Reid Spencera773bd52006-08-04 18:18:08 +000015902{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15903echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015904library_names_spec=
15905libname_spec='lib$name'
15906soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015907shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015908postinstall_cmds=
15909postuninstall_cmds=
15910finish_cmds=
15911finish_eval=
15912shlibpath_var=
15913shlibpath_overrides_runpath=unknown
15914version_type=none
15915dynamic_linker="$host_os ld.so"
15916sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015917if test "$GCC" = yes; then
15918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15919 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15920 # if the path contains ";" then we assume it to be the separator
15921 # otherwise default to the standard path separator (i.e. ":") - it is
15922 # assumed that no part of a normal pathname contains ";" but that should
15923 # okay in the real world where ";" in dirpaths is itself problematic.
15924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15925 else
15926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15927 fi
15928else
15929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15930fi
15931need_lib_prefix=unknown
15932hardcode_into_libs=no
15933
15934# when you set need_version to no, make sure it does not cause -set_version
15935# flags to be left without arguments
15936need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015937
15938case $host_os in
15939aix3*)
15940 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015942 shlibpath_var=LIBPATH
15943
John Criswell47fdd832003-07-14 16:52:07 +000015944 # AIX 3 has no versioning support, so we append a major version to the name.
15945 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015946 ;;
15947
15948aix4* | aix5*)
15949 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015950 need_lib_prefix=no
15951 need_version=no
15952 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015953 if test "$host_cpu" = ia64; then
15954 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015955 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015956 shlibpath_var=LD_LIBRARY_PATH
15957 else
15958 # With GCC up to 2.95.x, collect2 would create an import file
15959 # for dependence libraries. The import file would start with
15960 # the line `#! .'. This would cause the generated library to
15961 # depend on `.', always an invalid library. This was fixed in
15962 # development snapshots of GCC prior to 3.0.
15963 case $host_os in
15964 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15966 echo ' yes '
15967 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15968 :
15969 else
15970 can_build_shared=no
15971 fi
15972 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015973 esac
John Criswell47fdd832003-07-14 16:52:07 +000015974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15975 # soname into executable. Probably we can add versioning support to
15976 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015977 if test "$aix_use_runtimelinking" = yes; then
15978 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15979 # instead of lib<name>.a to let people know that these are not
15980 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015982 else
15983 # We preserve .a as extension for shared libraries through AIX4.2
15984 # and later when we are not doing run time linking.
15985 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015986 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015987 fi
15988 shlibpath_var=LIBPATH
15989 fi
15990 ;;
15991
15992amigaos*)
15993 library_names_spec='$libname.ixlibrary $libname.a'
15994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015995 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 +000015996 ;;
15997
15998beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015999 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016000 dynamic_linker="$host_os ld.so"
16001 shlibpath_var=LIBRARY_PATH
16002 ;;
16003
Reid Spencer2706f8c2004-09-19 23:53:36 +000016004bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016005 version_type=linux
16006 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016009 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16012 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016013 # the default ld.so.conf also contains /usr/contrib/lib and
16014 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16015 # libtool to hard-code these into programs
16016 ;;
16017
16018cygwin* | mingw* | pw32*)
16019 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016020 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016021 need_version=no
16022 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016023
John Criswell7a73b802003-06-30 21:59:07 +000016024 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016025 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016026 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016027 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016028 postinstall_cmds='base_file=`basename \${file}`~
16029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16030 dldir=$destdir/`dirname \$dlpath`~
16031 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016032 $install_prog $dir/$dlname \$dldir/$dlname~
16033 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16035 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016036 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016037 shlibpath_overrides_runpath=yes
16038
16039 case $host_os in
16040 cygwin*)
16041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16042 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 +000016043 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016044 ;;
16045 mingw*)
16046 # MinGW DLLs use traditional 'lib' prefix
16047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16049 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16050 # It is most probably a Windows format PATH printed by
16051 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16052 # path with ; separators, and with drive letters. We can handle the
16053 # drive letters (cygwin fileutils understands them), so leave them,
16054 # especially as we might pass files found there to a mingw objdump,
16055 # which wouldn't understand a cygwinified path. Ahh.
16056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16057 else
16058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16059 fi
16060 ;;
16061 pw32*)
16062 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016063 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 +000016064 ;;
16065 esac
John Criswell7a73b802003-06-30 21:59:07 +000016066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016067
John Criswell7a73b802003-06-30 21:59:07 +000016068 *)
John Criswell47fdd832003-07-14 16:52:07 +000016069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016070 ;;
16071 esac
16072 dynamic_linker='Win32 ld.exe'
16073 # FIXME: first we should search . and the directory the executable is in
16074 shlibpath_var=PATH
16075 ;;
16076
16077darwin* | rhapsody*)
16078 dynamic_linker="$host_os dyld"
16079 version_type=darwin
16080 need_lib_prefix=no
16081 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016082 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016083 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016084 shlibpath_overrides_runpath=yes
16085 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016086 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016087 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088 if test "$GCC" = yes; then
16089 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"`
16090 else
16091 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016092 fi
16093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16094 ;;
16095
16096dgux*)
16097 version_type=linux
16098 need_lib_prefix=no
16099 need_version=no
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016103 ;;
16104
16105freebsd1*)
16106 dynamic_linker=no
16107 ;;
16108
Reid Spencer2706f8c2004-09-19 23:53:36 +000016109kfreebsd*-gnu)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=no
16117 hardcode_into_libs=yes
16118 dynamic_linker='GNU ld.so'
16119 ;;
16120
Reid Spencera773bd52006-08-04 18:18:08 +000016121freebsd* | dragonfly*)
16122 # DragonFly does not have aout. When/if they implement a new
16123 # versioning mechanism, adjust this.
16124 if test -x /usr/bin/objformat; then
16125 objformat=`/usr/bin/objformat`
16126 else
16127 case $host_os in
16128 freebsd[123]*) objformat=aout ;;
16129 *) objformat=elf ;;
16130 esac
16131 fi
John Criswell7a73b802003-06-30 21:59:07 +000016132 version_type=freebsd-$objformat
16133 case $version_type in
16134 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016136 need_version=no
16137 need_lib_prefix=no
16138 ;;
16139 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016141 need_version=yes
16142 ;;
16143 esac
16144 shlibpath_var=LD_LIBRARY_PATH
16145 case $host_os in
16146 freebsd2*)
16147 shlibpath_overrides_runpath=yes
16148 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016149 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016150 shlibpath_overrides_runpath=yes
16151 hardcode_into_libs=yes
16152 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016155 shlibpath_overrides_runpath=no
16156 hardcode_into_libs=yes
16157 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016158 freebsd*) # from 4.6 on
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16161 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016162 esac
16163 ;;
16164
16165gnu*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016171 shlibpath_var=LD_LIBRARY_PATH
16172 hardcode_into_libs=yes
16173 ;;
16174
16175hpux9* | hpux10* | hpux11*)
16176 # Give a soname corresponding to the major version so that dld.sl refuses to
16177 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016178 version_type=sunos
16179 need_lib_prefix=no
16180 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016181 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016182 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016183 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016184 hardcode_into_libs=yes
16185 dynamic_linker="$host_os dld.so"
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 if test "X$HPUX_IA64_MODE" = X32; then
16191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16192 else
16193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16194 fi
16195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16196 ;;
16197 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016198 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016199 hardcode_into_libs=yes
16200 dynamic_linker="$host_os dld.sl"
16201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16207 ;;
16208 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016209 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016210 dynamic_linker="$host_os dld.sl"
16211 shlibpath_var=SHLIB_PATH
16212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 ;;
16216 esac
John Criswell7a73b802003-06-30 21:59:07 +000016217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16218 postinstall_cmds='chmod 555 $lib'
16219 ;;
16220
Reid Spencera773bd52006-08-04 18:18:08 +000016221interix3*)
16222 version_type=linux
16223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=no
16230 hardcode_into_libs=yes
16231 ;;
16232
John Criswell47fdd832003-07-14 16:52:07 +000016233irix5* | irix6* | nonstopux*)
16234 case $host_os in
16235 nonstopux*) version_type=nonstopux ;;
16236 *)
16237 if test "$lt_cv_prog_gnu_ld" = yes; then
16238 version_type=linux
16239 else
16240 version_type=irix
16241 fi ;;
16242 esac
John Criswell7a73b802003-06-30 21:59:07 +000016243 need_lib_prefix=no
16244 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016245 soname_spec='${libname}${release}${shared_ext}$major'
16246 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 +000016247 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016248 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016249 libsuff= shlibsuff=
16250 ;;
16251 *)
16252 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254 libsuff= shlibsuff= libmagic=32-bit;;
16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256 libsuff=32 shlibsuff=N32 libmagic=N32;;
16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016259 *) libsuff= shlibsuff= libmagic=never-match;;
16260 esac
16261 ;;
16262 esac
16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016267 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016268 ;;
16269
16270# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016271linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016272 dynamic_linker=no
16273 ;;
16274
16275# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016276linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016277 version_type=linux
16278 need_lib_prefix=no
16279 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
16285 # This implies no fast_install, which is unacceptable.
16286 # Some rework will be needed to allow for fast_install
16287 # before this can be enabled.
16288 hardcode_into_libs=yes
16289
Reid Spencer2706f8c2004-09-19 23:53:36 +000016290 # Append ld.so.conf contents to the search path
16291 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016292 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 +000016293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16294 fi
16295
John Criswell7a73b802003-06-30 21:59:07 +000016296 # We used to test for /lib/ld.so.1 and disable shared libraries on
16297 # powerpc, because MkLinux only supported shared libraries with the
16298 # GNU dynamic linker. Since this was broken with cross compilers,
16299 # most powerpc-linux boxes support dynamic linking these days and
16300 # people can always --disable-shared, the test was removed, and we
16301 # assume the GNU/Linux dynamic linker is in use.
16302 dynamic_linker='GNU/Linux ld.so'
16303 ;;
16304
Reid Spencer2706f8c2004-09-19 23:53:36 +000016305knetbsd*-gnu)
16306 version_type=linux
16307 need_lib_prefix=no
16308 need_version=no
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 shlibpath_overrides_runpath=no
16313 hardcode_into_libs=yes
16314 dynamic_linker='GNU ld.so'
16315 ;;
16316
John Criswell7a73b802003-06-30 21:59:07 +000016317netbsd*)
16318 version_type=sunos
16319 need_lib_prefix=no
16320 need_version=no
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324 dynamic_linker='NetBSD (a.out) ld.so'
16325 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016327 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016328 dynamic_linker='NetBSD ld.elf_so'
16329 fi
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 hardcode_into_libs=yes
16333 ;;
16334
16335newsos6)
16336 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 ;;
16341
Reid Spencer2706f8c2004-09-19 23:53:36 +000016342nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016343 version_type=linux
16344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 ;;
16351
16352openbsd*)
16353 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016354 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016355 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16357 case $host_os in
16358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16359 *) need_version=no ;;
16360 esac
John Criswell47fdd832003-07-14 16:52:07 +000016361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16363 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016364 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 +000016365 case $host_os in
16366 openbsd2.[89] | openbsd2.[89].*)
16367 shlibpath_overrides_runpath=no
16368 ;;
16369 *)
16370 shlibpath_overrides_runpath=yes
16371 ;;
16372 esac
John Criswell7a73b802003-06-30 21:59:07 +000016373 else
16374 shlibpath_overrides_runpath=yes
16375 fi
John Criswell7a73b802003-06-30 21:59:07 +000016376 ;;
16377
16378os2*)
16379 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016380 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016381 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016382 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016383 dynamic_linker='OS/2 ld.exe'
16384 shlibpath_var=LIBPATH
16385 ;;
16386
16387osf3* | osf4* | osf5*)
16388 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016389 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016390 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016391 soname_spec='${libname}${release}${shared_ext}$major'
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016393 shlibpath_var=LD_LIBRARY_PATH
16394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16396 ;;
16397
John Criswell7a73b802003-06-30 21:59:07 +000016398solaris*)
16399 version_type=linux
16400 need_lib_prefix=no
16401 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 # ldd complains unless libraries are executable
16408 postinstall_cmds='chmod +x $lib'
16409 ;;
16410
16411sunos4*)
16412 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 if test "$with_gnu_ld" = yes; then
16418 need_lib_prefix=no
16419 fi
16420 need_version=yes
16421 ;;
16422
Reid Spencera773bd52006-08-04 18:18:08 +000016423sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016424 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016427 shlibpath_var=LD_LIBRARY_PATH
16428 case $host_vendor in
16429 sni)
16430 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016431 need_lib_prefix=no
16432 export_dynamic_flag_spec='${wl}-Blargedynsym'
16433 runpath_var=LD_RUN_PATH
16434 ;;
16435 siemens)
16436 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016437 ;;
16438 motorola)
16439 need_lib_prefix=no
16440 need_version=no
16441 shlibpath_overrides_runpath=no
16442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16443 ;;
16444 esac
16445 ;;
16446
John Criswell7a73b802003-06-30 21:59:07 +000016447sysv4*MP*)
16448 if test -d /usr/nec ;then
16449 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016452 shlibpath_var=LD_LIBRARY_PATH
16453 fi
16454 ;;
16455
Reid Spencera773bd52006-08-04 18:18:08 +000016456sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16457 version_type=freebsd-elf
16458 need_lib_prefix=no
16459 need_version=no
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 hardcode_into_libs=yes
16464 if test "$with_gnu_ld" = yes; then
16465 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16466 shlibpath_overrides_runpath=no
16467 else
16468 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16469 shlibpath_overrides_runpath=yes
16470 case $host_os in
16471 sco3.2v5*)
16472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16473 ;;
16474 esac
16475 fi
16476 sys_lib_dlsearch_path_spec='/usr/lib'
16477 ;;
16478
John Criswell47fdd832003-07-14 16:52:07 +000016479uts4*)
16480 version_type=linux
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 ;;
16485
John Criswell7a73b802003-06-30 21:59:07 +000016486*)
16487 dynamic_linker=no
16488 ;;
16489esac
Reid Spencera773bd52006-08-04 18:18:08 +000016490{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16491echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016492test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016493
Reid Spencera773bd52006-08-04 18:18:08 +000016494variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16495if test "$GCC" = yes; then
16496 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16497fi
16498
16499{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16500echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016501hardcode_action=
16502if test -n "$hardcode_libdir_flag_spec" || \
16503 test -n "$runpath_var" || \
16504 test "X$hardcode_automatic" = "Xyes" ; then
16505
16506 # We can hardcode non-existant directories.
16507 if test "$hardcode_direct" != no &&
16508 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16509 # have to relink, otherwise we might link with an installed library
16510 # when we should be linking with a yet-to-be-installed one
16511 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16512 test "$hardcode_minus_L" != no; then
16513 # Linking always hardcodes the temporary library directory.
16514 hardcode_action=relink
16515 else
16516 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16517 hardcode_action=immediate
16518 fi
16519else
16520 # We cannot hardcode anything, or else we can only hardcode existing
16521 # directories.
16522 hardcode_action=unsupported
16523fi
Reid Spencera773bd52006-08-04 18:18:08 +000016524{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16525echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016526
16527if test "$hardcode_action" = relink; then
16528 # Fast installation is not supported
16529 enable_fast_install=no
16530elif test "$shlibpath_overrides_runpath" = yes ||
16531 test "$enable_shared" = no; then
16532 # Fast installation is not necessary
16533 enable_fast_install=needless
16534fi
16535
16536striplib=
16537old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016538{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16539echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016540if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16541 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16542 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016543 { echo "$as_me:$LINENO: result: yes" >&5
16544echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016545else
16546# FIXME - insert some real tests, host_os isn't really good enough
16547 case $host_os in
16548 darwin*)
16549 if test -n "$STRIP" ; then
16550 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016551 { echo "$as_me:$LINENO: result: yes" >&5
16552echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016553 else
Reid Spencera773bd52006-08-04 18:18:08 +000016554 { echo "$as_me:$LINENO: result: no" >&5
16555echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016556fi
16557 ;;
16558 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016559 { echo "$as_me:$LINENO: result: no" >&5
16560echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016561 ;;
16562 esac
16563fi
16564
John Criswell7a73b802003-06-30 21:59:07 +000016565if test "x$enable_dlopen" != xyes; then
16566 enable_dlopen=unknown
16567 enable_dlopen_self=unknown
16568 enable_dlopen_self_static=unknown
16569else
16570 lt_cv_dlopen=no
16571 lt_cv_dlopen_libs=
16572
16573 case $host_os in
16574 beos*)
16575 lt_cv_dlopen="load_add_on"
16576 lt_cv_dlopen_libs=
16577 lt_cv_dlopen_self=yes
16578 ;;
16579
John Criswell47fdd832003-07-14 16:52:07 +000016580 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016581 lt_cv_dlopen="LoadLibrary"
16582 lt_cv_dlopen_libs=
16583 ;;
16584
John Criswell47fdd832003-07-14 16:52:07 +000016585 cygwin*)
16586 lt_cv_dlopen="dlopen"
16587 lt_cv_dlopen_libs=
16588 ;;
16589
16590 darwin*)
16591 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016592 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016594if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596else
16597 ac_check_lib_save_LIBS=$LIBS
16598LIBS="-ldl $LIBS"
16599cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016600/* confdefs.h. */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016605
Reid Spencera773bd52006-08-04 18:18:08 +000016606/* Override any GCC internal prototype to avoid an error.
16607 Use char because int might match the return type of a GCC
16608 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016609#ifdef __cplusplus
16610extern "C"
16611#endif
John Criswell47fdd832003-07-14 16:52:07 +000016612char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016613int
16614main ()
16615{
Reid Spencera773bd52006-08-04 18:18:08 +000016616return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016617 ;
16618 return 0;
16619}
16620_ACEOF
16621rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016622if { (ac_try="$ac_link"
16623case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626esac
16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636 { (case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639esac
16640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_try") 2>&5
16642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest$ac_exeext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016655 ac_cv_lib_dl_dlopen=yes
16656else
16657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016658sed 's/^/| /' conftest.$ac_ext >&5
16659
Reid Spencera773bd52006-08-04 18:18:08 +000016660 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016661fi
Reid Spencera773bd52006-08-04 18:18:08 +000016662
Bill Wendlingebcceee2009-04-18 11:20:33 +000016663rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016664 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016665LIBS=$ac_check_lib_save_LIBS
16666fi
Reid Spencera773bd52006-08-04 18:18:08 +000016667{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16668echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016669if test $ac_cv_lib_dl_dlopen = yes; then
16670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16671else
16672
16673 lt_cv_dlopen="dyld"
16674 lt_cv_dlopen_libs=
16675 lt_cv_dlopen_self=yes
16676
16677fi
16678
16679 ;;
16680
John Criswell7a73b802003-06-30 21:59:07 +000016681 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016682 { echo "$as_me:$LINENO: checking for shl_load" >&5
16683echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016684if test "${ac_cv_func_shl_load+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16686else
16687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016693/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695#define shl_load innocuous_shl_load
16696
John Criswell7a73b802003-06-30 21:59:07 +000016697/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016698 which can conflict with char shl_load (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016701
John Criswell0c38eaf2003-09-10 15:17:25 +000016702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016707
16708#undef shl_load
16709
Reid Spencera773bd52006-08-04 18:18:08 +000016710/* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016713#ifdef __cplusplus
16714extern "C"
16715#endif
John Criswell7a73b802003-06-30 21:59:07 +000016716char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016717/* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016720#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016721choke me
John Criswell7a73b802003-06-30 21:59:07 +000016722#endif
16723
John Criswell0c38eaf2003-09-10 15:17:25 +000016724int
16725main ()
16726{
Reid Spencera773bd52006-08-04 18:18:08 +000016727return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016733if { (ac_try="$ac_link"
16734case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737esac
16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016766 ac_cv_func_shl_load=yes
16767else
16768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016769sed 's/^/| /' conftest.$ac_ext >&5
16770
Reid Spencera773bd52006-08-04 18:18:08 +000016771 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016772fi
Reid Spencera773bd52006-08-04 18:18:08 +000016773
Bill Wendlingebcceee2009-04-18 11:20:33 +000016774rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016775 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016776fi
Reid Spencera773bd52006-08-04 18:18:08 +000016777{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16778echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016779if test $ac_cv_func_shl_load = yes; then
16780 lt_cv_dlopen="shl_load"
16781else
Reid Spencera773bd52006-08-04 18:18:08 +000016782 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16783echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016784if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786else
16787 ac_check_lib_save_LIBS=$LIBS
16788LIBS="-ldld $LIBS"
16789cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016795
Reid Spencera773bd52006-08-04 18:18:08 +000016796/* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016799#ifdef __cplusplus
16800extern "C"
16801#endif
John Criswell7a73b802003-06-30 21:59:07 +000016802char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016803int
16804main ()
16805{
Reid Spencera773bd52006-08-04 18:18:08 +000016806return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016812if { (ac_try="$ac_link"
16813case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016845 ac_cv_lib_dld_shl_load=yes
16846else
16847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016848sed 's/^/| /' conftest.$ac_ext >&5
16849
Reid Spencera773bd52006-08-04 18:18:08 +000016850 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016851fi
Reid Spencera773bd52006-08-04 18:18:08 +000016852
Bill Wendlingebcceee2009-04-18 11:20:33 +000016853rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016855LIBS=$ac_check_lib_save_LIBS
16856fi
Reid Spencera773bd52006-08-04 18:18:08 +000016857{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16858echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016859if test $ac_cv_lib_dld_shl_load = yes; then
16860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16861else
Reid Spencera773bd52006-08-04 18:18:08 +000016862 { echo "$as_me:$LINENO: checking for dlopen" >&5
16863echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016864if test "${ac_cv_func_dlopen+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016873/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16875#define dlopen innocuous_dlopen
16876
John Criswell7a73b802003-06-30 21:59:07 +000016877/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016878 which can conflict with char dlopen (); below.
16879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16880 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881
John Criswell0c38eaf2003-09-10 15:17:25 +000016882#ifdef __STDC__
16883# include <limits.h>
16884#else
16885# include <assert.h>
16886#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887
16888#undef dlopen
16889
Reid Spencera773bd52006-08-04 18:18:08 +000016890/* Override any GCC internal prototype to avoid an error.
16891 Use char because int might match the return type of a GCC
16892 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016893#ifdef __cplusplus
16894extern "C"
16895#endif
John Criswell7a73b802003-06-30 21:59:07 +000016896char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016897/* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016900#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016901choke me
John Criswell7a73b802003-06-30 21:59:07 +000016902#endif
16903
John Criswell0c38eaf2003-09-10 15:17:25 +000016904int
16905main ()
16906{
Reid Spencera773bd52006-08-04 18:18:08 +000016907return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016908 ;
16909 return 0;
16910}
16911_ACEOF
16912rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016913if { (ac_try="$ac_link"
16914case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16917esac
16918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921 grep -v '^ *+' conftest.er1 >conftest.err
16922 rm -f conftest.er1
16923 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16927 { (case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930esac
16931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_try") 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016946 ac_cv_func_dlopen=yes
16947else
16948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016949sed 's/^/| /' conftest.$ac_ext >&5
16950
Reid Spencera773bd52006-08-04 18:18:08 +000016951 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016952fi
Reid Spencera773bd52006-08-04 18:18:08 +000016953
Bill Wendlingebcceee2009-04-18 11:20:33 +000016954rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016955 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016956fi
Reid Spencera773bd52006-08-04 18:18:08 +000016957{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16958echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016959if test $ac_cv_func_dlopen = yes; then
16960 lt_cv_dlopen="dlopen"
16961else
Reid Spencera773bd52006-08-04 18:18:08 +000016962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966else
16967 ac_check_lib_save_LIBS=$LIBS
16968LIBS="-ldl $LIBS"
16969cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016975
Reid Spencera773bd52006-08-04 18:18:08 +000016976/* Override any GCC internal prototype to avoid an error.
16977 Use char because int might match the return type of a GCC
16978 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016979#ifdef __cplusplus
16980extern "C"
16981#endif
John Criswell7a73b802003-06-30 21:59:07 +000016982char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016983int
16984main ()
16985{
Reid Spencera773bd52006-08-04 18:18:08 +000016986return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016992if { (ac_try="$ac_link"
16993case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017025 ac_cv_lib_dl_dlopen=yes
17026else
17027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017028sed 's/^/| /' conftest.$ac_ext >&5
17029
Reid Spencera773bd52006-08-04 18:18:08 +000017030 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017031fi
Reid Spencera773bd52006-08-04 18:18:08 +000017032
Bill Wendlingebcceee2009-04-18 11:20:33 +000017033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017035LIBS=$ac_check_lib_save_LIBS
17036fi
Reid Spencera773bd52006-08-04 18:18:08 +000017037{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017039if test $ac_cv_lib_dl_dlopen = yes; then
17040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17041else
Reid Spencera773bd52006-08-04 18:18:08 +000017042 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 ac_check_lib_save_LIBS=$LIBS
17048LIBS="-lsvld $LIBS"
17049cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017055
Reid Spencera773bd52006-08-04 18:18:08 +000017056/* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017059#ifdef __cplusplus
17060extern "C"
17061#endif
John Criswell7a73b802003-06-30 21:59:07 +000017062char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017063int
17064main ()
17065{
Reid Spencera773bd52006-08-04 18:18:08 +000017066return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017072if { (ac_try="$ac_link"
17073case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017079 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017105 ac_cv_lib_svld_dlopen=yes
17106else
17107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017108sed 's/^/| /' conftest.$ac_ext >&5
17109
Reid Spencera773bd52006-08-04 18:18:08 +000017110 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017111fi
Reid Spencera773bd52006-08-04 18:18:08 +000017112
Bill Wendlingebcceee2009-04-18 11:20:33 +000017113rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017115LIBS=$ac_check_lib_save_LIBS
17116fi
Reid Spencera773bd52006-08-04 18:18:08 +000017117{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17118echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017119if test $ac_cv_lib_svld_dlopen = yes; then
17120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17121else
Reid Spencera773bd52006-08-04 18:18:08 +000017122 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17123echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017124if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 ac_check_lib_save_LIBS=$LIBS
17128LIBS="-ldld $LIBS"
17129cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017135
Reid Spencera773bd52006-08-04 18:18:08 +000017136/* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017139#ifdef __cplusplus
17140extern "C"
17141#endif
John Criswell7a73b802003-06-30 21:59:07 +000017142char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017143int
17144main ()
17145{
Reid Spencera773bd52006-08-04 18:18:08 +000017146return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017152if { (ac_try="$ac_link"
17153case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
17157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017185 ac_cv_lib_dld_dld_link=yes
17186else
17187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017188sed 's/^/| /' conftest.$ac_ext >&5
17189
Reid Spencera773bd52006-08-04 18:18:08 +000017190 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017191fi
Reid Spencera773bd52006-08-04 18:18:08 +000017192
Bill Wendlingebcceee2009-04-18 11:20:33 +000017193rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017195LIBS=$ac_check_lib_save_LIBS
17196fi
Reid Spencera773bd52006-08-04 18:18:08 +000017197{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17198echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017199if test $ac_cv_lib_dld_dld_link = yes; then
17200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17201fi
17202
17203
17204fi
17205
17206
17207fi
17208
17209
17210fi
17211
17212
17213fi
17214
17215
17216fi
17217
17218 ;;
17219 esac
17220
17221 if test "x$lt_cv_dlopen" != xno; then
17222 enable_dlopen=yes
17223 else
17224 enable_dlopen=no
17225 fi
17226
17227 case $lt_cv_dlopen in
17228 dlopen)
17229 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017231
17232 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017234
17235 save_LIBS="$LIBS"
17236 LIBS="$lt_cv_dlopen_libs $LIBS"
17237
Reid Spencera773bd52006-08-04 18:18:08 +000017238 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17239echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017240if test "${lt_cv_dlopen_self+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242else
17243 if test "$cross_compiling" = yes; then :
17244 lt_cv_dlopen_self=cross
17245else
John Criswell47fdd832003-07-14 16:52:07 +000017246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017247 lt_status=$lt_dlunknown
17248 cat > conftest.$ac_ext <<EOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000017249#line 17249 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017250#include "confdefs.h"
17251
17252#if HAVE_DLFCN_H
17253#include <dlfcn.h>
17254#endif
17255
17256#include <stdio.h>
17257
17258#ifdef RTLD_GLOBAL
17259# define LT_DLGLOBAL RTLD_GLOBAL
17260#else
17261# ifdef DL_GLOBAL
17262# define LT_DLGLOBAL DL_GLOBAL
17263# else
17264# define LT_DLGLOBAL 0
17265# endif
17266#endif
17267
17268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17269 find out it does not work in some platform. */
17270#ifndef LT_DLLAZY_OR_NOW
17271# ifdef RTLD_LAZY
17272# define LT_DLLAZY_OR_NOW RTLD_LAZY
17273# else
17274# ifdef DL_LAZY
17275# define LT_DLLAZY_OR_NOW DL_LAZY
17276# else
17277# ifdef RTLD_NOW
17278# define LT_DLLAZY_OR_NOW RTLD_NOW
17279# else
17280# ifdef DL_NOW
17281# define LT_DLLAZY_OR_NOW DL_NOW
17282# else
17283# define LT_DLLAZY_OR_NOW 0
17284# endif
17285# endif
17286# endif
17287# endif
17288#endif
17289
17290#ifdef __cplusplus
17291extern "C" void exit (int);
17292#endif
17293
17294void fnord() { int i=42;}
17295int main ()
17296{
17297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17298 int status = $lt_dlunknown;
17299
17300 if (self)
17301 {
17302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17304 /* dlclose (self); */
17305 }
Reid Spencera773bd52006-08-04 18:18:08 +000017306 else
17307 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017308
17309 exit (status);
17310}
17311EOF
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017317 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017318 lt_status=$?
17319 case x$lt_status in
17320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017323 esac
17324 else :
17325 # compilation failed
17326 lt_cv_dlopen_self=no
17327 fi
17328fi
17329rm -fr conftest*
17330
17331
17332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17334echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017335
17336 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17338 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17339echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017340if test "${lt_cv_dlopen_self_static+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 if test "$cross_compiling" = yes; then :
17344 lt_cv_dlopen_self_static=cross
17345else
John Criswell47fdd832003-07-14 16:52:07 +000017346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017347 lt_status=$lt_dlunknown
17348 cat > conftest.$ac_ext <<EOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000017349#line 17349 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017350#include "confdefs.h"
17351
17352#if HAVE_DLFCN_H
17353#include <dlfcn.h>
17354#endif
17355
17356#include <stdio.h>
17357
17358#ifdef RTLD_GLOBAL
17359# define LT_DLGLOBAL RTLD_GLOBAL
17360#else
17361# ifdef DL_GLOBAL
17362# define LT_DLGLOBAL DL_GLOBAL
17363# else
17364# define LT_DLGLOBAL 0
17365# endif
17366#endif
17367
17368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17369 find out it does not work in some platform. */
17370#ifndef LT_DLLAZY_OR_NOW
17371# ifdef RTLD_LAZY
17372# define LT_DLLAZY_OR_NOW RTLD_LAZY
17373# else
17374# ifdef DL_LAZY
17375# define LT_DLLAZY_OR_NOW DL_LAZY
17376# else
17377# ifdef RTLD_NOW
17378# define LT_DLLAZY_OR_NOW RTLD_NOW
17379# else
17380# ifdef DL_NOW
17381# define LT_DLLAZY_OR_NOW DL_NOW
17382# else
17383# define LT_DLLAZY_OR_NOW 0
17384# endif
17385# endif
17386# endif
17387# endif
17388#endif
17389
17390#ifdef __cplusplus
17391extern "C" void exit (int);
17392#endif
17393
17394void fnord() { int i=42;}
17395int main ()
17396{
17397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17398 int status = $lt_dlunknown;
17399
17400 if (self)
17401 {
17402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17404 /* dlclose (self); */
17405 }
Reid Spencera773bd52006-08-04 18:18:08 +000017406 else
17407 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017408
17409 exit (status);
17410}
17411EOF
17412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017417 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017418 lt_status=$?
17419 case x$lt_status in
17420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017422 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017423 esac
17424 else :
17425 # compilation failed
17426 lt_cv_dlopen_self_static=no
17427 fi
17428fi
17429rm -fr conftest*
17430
17431
17432fi
Reid Spencera773bd52006-08-04 18:18:08 +000017433{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17434echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017435 fi
17436
17437 CPPFLAGS="$save_CPPFLAGS"
17438 LDFLAGS="$save_LDFLAGS"
17439 LIBS="$save_LIBS"
17440 ;;
17441 esac
17442
17443 case $lt_cv_dlopen_self in
17444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17445 *) enable_dlopen_self=unknown ;;
17446 esac
17447
17448 case $lt_cv_dlopen_self_static in
17449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17450 *) enable_dlopen_self_static=unknown ;;
17451 esac
17452fi
17453
17454
Reid Spencera773bd52006-08-04 18:18:08 +000017455# Report which library types will actually be built
17456{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17457echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17458{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17459echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017460
Reid Spencera773bd52006-08-04 18:18:08 +000017461{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17462echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017463test "$can_build_shared" = "no" && enable_shared=no
17464
17465# On AIX, shared libraries and static libraries use the same namespace, and
17466# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017467case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017468aix3*)
17469 test "$enable_shared" = yes && enable_static=no
17470 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017472 postinstall_cmds='$RANLIB $lib'
17473 fi
17474 ;;
17475
Reid Spencer2706f8c2004-09-19 23:53:36 +000017476aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17478 test "$enable_shared" = yes && enable_static=no
17479 fi
John Criswell7a73b802003-06-30 21:59:07 +000017480 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017481esac
Reid Spencera773bd52006-08-04 18:18:08 +000017482{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17483echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017484
Reid Spencera773bd52006-08-04 18:18:08 +000017485{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17486echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017487# Make sure either enable_shared or enable_static is yes.
17488test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017489{ echo "$as_me:$LINENO: result: $enable_static" >&5
17490echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017491
17492# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017493# libtool distribution, otherwise you forgot to ship ltmain.sh
17494# with your package, and you will get complaints that there are
17495# no rules to generate ltmain.sh.
17496if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017497 # See if we are running on zsh, and set the options which allow our commands through
17498 # without removal of \ escapes.
17499 if test -n "${ZSH_VERSION+set}" ; then
17500 setopt NO_GLOB_SUBST
17501 fi
John Criswell7a73b802003-06-30 21:59:07 +000017502 # Now quote all the things that may contain metacharacters while being
17503 # careful not to overquote the AC_SUBSTed values. We take copies of the
17504 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017505 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 +000017506 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17509 deplibs_check_method reload_flag reload_cmds need_locks \
17510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17511 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017513 old_postinstall_cmds old_postuninstall_cmds \
17514 compiler \
17515 CC \
17516 LD \
17517 lt_prog_compiler_wl \
17518 lt_prog_compiler_pic \
17519 lt_prog_compiler_static \
17520 lt_prog_compiler_no_builtin_flag \
17521 export_dynamic_flag_spec \
17522 thread_safe_flag_spec \
17523 whole_archive_flag_spec \
17524 enable_shared_with_static_runtimes \
17525 old_archive_cmds \
17526 old_archive_from_new_cmds \
17527 predep_objects \
17528 postdep_objects \
17529 predeps \
17530 postdeps \
17531 compiler_lib_search_path \
17532 archive_cmds \
17533 archive_expsym_cmds \
17534 postinstall_cmds \
17535 postuninstall_cmds \
17536 old_archive_from_expsyms_cmds \
17537 allow_undefined_flag \
17538 no_undefined_flag \
17539 export_symbols_cmds \
17540 hardcode_libdir_flag_spec \
17541 hardcode_libdir_flag_spec_ld \
17542 hardcode_libdir_separator \
17543 hardcode_automatic \
17544 module_cmds \
17545 module_expsym_cmds \
17546 lt_cv_prog_compiler_c_o \
17547 exclude_expsyms \
17548 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017549
17550 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017551 old_archive_cmds | \
17552 old_archive_from_new_cmds | \
17553 archive_cmds | \
17554 archive_expsym_cmds | \
17555 module_cmds | \
17556 module_expsym_cmds | \
17557 old_archive_from_expsyms_cmds | \
17558 export_symbols_cmds | \
17559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017560 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017561 old_postinstall_cmds | old_postuninstall_cmds | \
17562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017563 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564 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 +000017565 ;;
17566 *)
17567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17568 ;;
17569 esac
17570 done
17571
John Criswell47fdd832003-07-14 16:52:07 +000017572 case $lt_echo in
17573 *'\$0 --fallback-echo"')
17574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17575 ;;
17576 esac
17577
17578cfgfile="${ofile}T"
17579 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17580 $rm -f "$cfgfile"
17581 { echo "$as_me:$LINENO: creating $ofile" >&5
17582echo "$as_me: creating $ofile" >&6;}
17583
17584 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017585#! $SHELL
17586
John Criswell47fdd832003-07-14 16:52:07 +000017587# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017588# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17589# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17590#
John Criswell47fdd832003-07-14 16:52:07 +000017591# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17592# Free Software Foundation, Inc.
17593#
17594# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017595# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17596#
17597# This program is free software; you can redistribute it and/or modify
17598# it under the terms of the GNU General Public License as published by
17599# the Free Software Foundation; either version 2 of the License, or
17600# (at your option) any later version.
17601#
17602# This program is distributed in the hope that it will be useful, but
17603# WITHOUT ANY WARRANTY; without even the implied warranty of
17604# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17605# General Public License for more details.
17606#
17607# You should have received a copy of the GNU General Public License
17608# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017609# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017610#
17611# As a special exception to the GNU General Public License, if you
17612# distribute this file as part of a program that contains a
17613# configuration script generated by Autoconf, you may include it under
17614# the same distribution terms that you use for the rest of that program.
17615
John Criswell47fdd832003-07-14 16:52:07 +000017616# A sed program that does not truncate output.
17617SED=$lt_SED
17618
John Criswell7a73b802003-06-30 21:59:07 +000017619# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017620Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017621
17622# The HP-UX ksh and POSIX shell print the target directory to stdout
17623# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017624(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017625
John Criswell47fdd832003-07-14 16:52:07 +000017626# The names of the tagged configurations supported by this script.
17627available_tags=
17628
John Criswell7a73b802003-06-30 21:59:07 +000017629# ### BEGIN LIBTOOL CONFIG
17630
17631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17632
17633# Shell to use when invoking shell scripts.
17634SHELL=$lt_SHELL
17635
17636# Whether or not to build shared libraries.
17637build_libtool_libs=$enable_shared
17638
17639# Whether or not to build static libraries.
17640build_old_libs=$enable_static
17641
17642# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017643build_libtool_need_lc=$archive_cmds_need_lc
17644
17645# Whether or not to disallow shared libs when runtime libs are static
17646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017647
17648# Whether or not to optimize for fast installation.
17649fast_install=$enable_fast_install
17650
17651# The host system.
17652host_alias=$host_alias
17653host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017654host_os=$host_os
17655
17656# The build system.
17657build_alias=$build_alias
17658build=$build
17659build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661# An echo program that does not interpret backslashes.
17662echo=$lt_echo
17663
17664# The archiver.
17665AR=$lt_AR
17666AR_FLAGS=$lt_AR_FLAGS
17667
John Criswell47fdd832003-07-14 16:52:07 +000017668# A C compiler.
17669LTCC=$lt_LTCC
17670
Reid Spencera773bd52006-08-04 18:18:08 +000017671# LTCC compiler flags.
17672LTCFLAGS=$lt_LTCFLAGS
17673
John Criswell47fdd832003-07-14 16:52:07 +000017674# A language-specific compiler.
17675CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017676
17677# Is the compiler the GNU C compiler?
17678with_gcc=$GCC
17679
John Criswell47fdd832003-07-14 16:52:07 +000017680# An ERE matcher.
17681EGREP=$lt_EGREP
17682
John Criswell7a73b802003-06-30 21:59:07 +000017683# The linker used to build libraries.
17684LD=$lt_LD
17685
17686# Whether we need hard or soft links.
17687LN_S=$lt_LN_S
17688
17689# A BSD-compatible nm program.
17690NM=$lt_NM
17691
17692# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017694
17695# Used to examine libraries when file_magic_cmd begins "file"
17696MAGIC_CMD=$MAGIC_CMD
17697
17698# Used on cygwin: DLL creation program.
17699DLLTOOL="$DLLTOOL"
17700
17701# Used on cygwin: object dumper.
17702OBJDUMP="$OBJDUMP"
17703
17704# Used on cygwin: assembler.
17705AS="$AS"
17706
17707# The name of the directory that contains temporary libtool files.
17708objdir=$objdir
17709
17710# How to create reloadable object files.
17711reload_flag=$lt_reload_flag
17712reload_cmds=$lt_reload_cmds
17713
17714# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017715wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017716
17717# Object file suffix (normally "o").
17718objext="$ac_objext"
17719
17720# Old archive suffix (normally "a").
17721libext="$libext"
17722
John Criswell47fdd832003-07-14 16:52:07 +000017723# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017724shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017725
John Criswell7a73b802003-06-30 21:59:07 +000017726# Executable file suffix (normally "").
17727exeext="$exeext"
17728
17729# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017730pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017731pic_mode=$pic_mode
17732
John Criswell47fdd832003-07-14 16:52:07 +000017733# What is the maximum length of a command?
17734max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017735
John Criswell47fdd832003-07-14 16:52:07 +000017736# Does compiler simultaneously support -c and -o options?
17737compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017738
Reid Spencera773bd52006-08-04 18:18:08 +000017739# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017740need_locks=$lt_need_locks
17741
17742# Do we need the lib prefix for modules?
17743need_lib_prefix=$need_lib_prefix
17744
17745# Do we need a version for libraries?
17746need_version=$need_version
17747
17748# Whether dlopen is supported.
17749dlopen_support=$enable_dlopen
17750
17751# Whether dlopen of programs is supported.
17752dlopen_self=$enable_dlopen_self
17753
17754# Whether dlopen of statically linked programs is supported.
17755dlopen_self_static=$enable_dlopen_self_static
17756
17757# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017758link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017759
17760# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017762
17763# Compiler flag to allow reflexive dlopens.
17764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17765
17766# Compiler flag to generate shared objects directly from archives.
17767whole_archive_flag_spec=$lt_whole_archive_flag_spec
17768
17769# Compiler flag to generate thread-safe objects.
17770thread_safe_flag_spec=$lt_thread_safe_flag_spec
17771
17772# Library versioning type.
17773version_type=$version_type
17774
17775# Format of library name prefix.
17776libname_spec=$lt_libname_spec
17777
17778# List of archive names. First name is the real one, the rest are links.
17779# The last name is the one that the linker finds with -lNAME.
17780library_names_spec=$lt_library_names_spec
17781
17782# The coded name of the library, if different from the real name.
17783soname_spec=$lt_soname_spec
17784
17785# Commands used to build and install an old-style archive.
17786RANLIB=$lt_RANLIB
17787old_archive_cmds=$lt_old_archive_cmds
17788old_postinstall_cmds=$lt_old_postinstall_cmds
17789old_postuninstall_cmds=$lt_old_postuninstall_cmds
17790
17791# Create an old-style archive from a shared archive.
17792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17793
17794# Create a temporary old-style archive to link instead of a shared archive.
17795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17796
17797# Commands used to build and install a shared archive.
17798archive_cmds=$lt_archive_cmds
17799archive_expsym_cmds=$lt_archive_expsym_cmds
17800postinstall_cmds=$lt_postinstall_cmds
17801postuninstall_cmds=$lt_postuninstall_cmds
17802
John Criswell47fdd832003-07-14 16:52:07 +000017803# Commands used to build a loadable module (assumed same as above if empty)
17804module_cmds=$lt_module_cmds
17805module_expsym_cmds=$lt_module_expsym_cmds
17806
John Criswell7a73b802003-06-30 21:59:07 +000017807# Commands to strip libraries.
17808old_striplib=$lt_old_striplib
17809striplib=$lt_striplib
17810
John Criswell47fdd832003-07-14 16:52:07 +000017811# Dependencies to place before the objects being linked to create a
17812# shared library.
17813predep_objects=$lt_predep_objects
17814
17815# Dependencies to place after the objects being linked to create a
17816# shared library.
17817postdep_objects=$lt_postdep_objects
17818
17819# Dependencies to place before the objects being linked to create a
17820# shared library.
17821predeps=$lt_predeps
17822
17823# Dependencies to place after the objects being linked to create a
17824# shared library.
17825postdeps=$lt_postdeps
17826
17827# The library search path used internally by the compiler when linking
17828# a shared library.
17829compiler_lib_search_path=$lt_compiler_lib_search_path
17830
John Criswell7a73b802003-06-30 21:59:07 +000017831# Method to check whether dependent libraries are shared objects.
17832deplibs_check_method=$lt_deplibs_check_method
17833
17834# Command to use when deplibs_check_method == file_magic.
17835file_magic_cmd=$lt_file_magic_cmd
17836
17837# Flag that allows shared libraries with undefined symbols to be built.
17838allow_undefined_flag=$lt_allow_undefined_flag
17839
17840# Flag that forces no undefined symbols.
17841no_undefined_flag=$lt_no_undefined_flag
17842
17843# Commands used to finish a libtool library installation in a directory.
17844finish_cmds=$lt_finish_cmds
17845
17846# Same as above, but a single script fragment to be evaled but not shown.
17847finish_eval=$lt_finish_eval
17848
17849# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017850global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017851
17852# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017853global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017854
17855# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017856global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017857
17858# This is the shared library runtime path variable.
17859runpath_var=$runpath_var
17860
17861# This is the shared library path variable.
17862shlibpath_var=$shlibpath_var
17863
17864# Is shlibpath searched before the hard-coded library search path?
17865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17866
17867# How to hardcode a shared library path into an executable.
17868hardcode_action=$hardcode_action
17869
17870# Whether we should hardcode library paths into libraries.
17871hardcode_into_libs=$hardcode_into_libs
17872
17873# Flag to hardcode \$libdir into a binary during linking.
17874# This must work even if \$libdir does not exist.
17875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17876
John Criswell47fdd832003-07-14 16:52:07 +000017877# If ld is used when linking, flag to hardcode \$libdir into
17878# a binary during linking. This must work even if \$libdir does
17879# not exist.
17880hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17881
John Criswell7a73b802003-06-30 21:59:07 +000017882# Whether we need a single -rpath flag with a separated argument.
17883hardcode_libdir_separator=$lt_hardcode_libdir_separator
17884
John Criswell47fdd832003-07-14 16:52:07 +000017885# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017886# resulting binary.
17887hardcode_direct=$hardcode_direct
17888
17889# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17890# resulting binary.
17891hardcode_minus_L=$hardcode_minus_L
17892
17893# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17894# the resulting binary.
17895hardcode_shlibpath_var=$hardcode_shlibpath_var
17896
John Criswell47fdd832003-07-14 16:52:07 +000017897# Set to yes if building a shared library automatically hardcodes DIR into the library
17898# and all subsequent libraries and executables linked against it.
17899hardcode_automatic=$hardcode_automatic
17900
John Criswell7a73b802003-06-30 21:59:07 +000017901# Variables whose values should be saved in libtool wrapper scripts and
17902# restored at relink time.
17903variables_saved_for_relink="$variables_saved_for_relink"
17904
17905# Whether libtool must link a program against all its dependency libraries.
17906link_all_deplibs=$link_all_deplibs
17907
17908# Compile-time system search path for libraries
17909sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17910
17911# Run-time system search path for libraries
17912sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17913
17914# Fix the shell variable \$srcfile for the compiler.
17915fix_srcfile_path="$fix_srcfile_path"
17916
17917# Set to yes if exported symbols are required.
17918always_export_symbols=$always_export_symbols
17919
17920# The commands to list exported symbols.
17921export_symbols_cmds=$lt_export_symbols_cmds
17922
17923# The commands to extract the exported symbol list from a shared archive.
17924extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926# Symbols that should not be listed in the preloaded symbols.
17927exclude_expsyms=$lt_exclude_expsyms
17928
17929# Symbols that must always be exported.
17930include_expsyms=$lt_include_expsyms
17931
17932# ### END LIBTOOL CONFIG
17933
17934__EOF__
17935
John Criswell47fdd832003-07-14 16:52:07 +000017936
John Criswell7a73b802003-06-30 21:59:07 +000017937 case $host_os in
17938 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017939 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017940
17941# AIX sometimes has problems with the GCC collect2 program. For some
17942# reason, if we set the COLLECT_NAMES environment variable, the problems
17943# vanish in a puff of smoke.
17944if test "X${COLLECT_NAMES+set}" != Xset; then
17945 COLLECT_NAMES=
17946 export COLLECT_NAMES
17947fi
17948EOF
17949 ;;
17950 esac
17951
John Criswell7a73b802003-06-30 21:59:07 +000017952 # We use sed instead of cat because bash on DJGPP gets confused if
17953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17954 # text mode, it properly converts lines to CR/LF. This bash problem
17955 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017956 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017957
John Criswell47fdd832003-07-14 16:52:07 +000017958 mv -f "$cfgfile" "$ofile" || \
17959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017960 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017961
17962else
17963 # If there is no Makefile yet, we rely on a make rule to execute
17964 # `config.status --recheck' to rerun these tests and create the
17965 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17967 if test -f "$ltmain_in"; then
17968 test -f Makefile && make "$ltmain"
17969 fi
John Criswell7a73b802003-06-30 21:59:07 +000017970fi
John Criswell7a73b802003-06-30 21:59:07 +000017971
17972
John Criswell47fdd832003-07-14 16:52:07 +000017973ac_ext=c
17974ac_cpp='$CPP $CPPFLAGS'
17975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979CC="$lt_save_CC"
17980
17981
Reid Spencera773bd52006-08-04 18:18:08 +000017982# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017983if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017984 withval=$with_tags; tagnames="$withval"
17985fi
17986
John Criswell47fdd832003-07-14 16:52:07 +000017987
17988if test -f "$ltmain" && test -n "$tagnames"; then
17989 if test ! -f "${ofile}"; then
17990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17991echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17992 fi
17993
17994 if test -z "$LTCC"; then
17995 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17996 if test -z "$LTCC"; then
17997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17998echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17999 else
18000 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18001echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18002 fi
18003 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018004 if test -z "$LTCFLAGS"; then
18005 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18006 fi
John Criswell47fdd832003-07-14 16:52:07 +000018007
18008 # Extract list of available tagged configurations in $ofile.
18009 # Note that this assumes the entire list is on one line.
18010 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18011
18012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18013 for tagname in $tagnames; do
18014 IFS="$lt_save_ifs"
18015 # Check whether tagname contains only valid characters
18016 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18017 "") ;;
18018 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18019echo "$as_me: error: invalid tag name: $tagname" >&2;}
18020 { (exit 1); exit 1; }; }
18021 ;;
18022 esac
18023
18024 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18025 then
18026 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18027echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18028 { (exit 1); exit 1; }; }
18029 fi
18030
18031 # Update the list of available tags.
18032 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018033 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018034
18035 case $tagname in
18036 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18038 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18039 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018040 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018041ac_cpp='$CXXCPP $CPPFLAGS'
18042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18045
18046
18047
18048
18049archive_cmds_need_lc_CXX=no
18050allow_undefined_flag_CXX=
18051always_export_symbols_CXX=no
18052archive_expsym_cmds_CXX=
18053export_dynamic_flag_spec_CXX=
18054hardcode_direct_CXX=no
18055hardcode_libdir_flag_spec_CXX=
18056hardcode_libdir_flag_spec_ld_CXX=
18057hardcode_libdir_separator_CXX=
18058hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018059hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018060hardcode_automatic_CXX=no
18061module_cmds_CXX=
18062module_expsym_cmds_CXX=
18063link_all_deplibs_CXX=unknown
18064old_archive_cmds_CXX=$old_archive_cmds
18065no_undefined_flag_CXX=
18066whole_archive_flag_spec_CXX=
18067enable_shared_with_static_runtimes_CXX=no
18068
18069# Dependencies to place before and after the object being linked:
18070predep_objects_CXX=
18071postdep_objects_CXX=
18072predeps_CXX=
18073postdeps_CXX=
18074compiler_lib_search_path_CXX=
18075
18076# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018077ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018078
18079# Object file extension for compiled C++ test sources.
18080objext=o
18081objext_CXX=$objext
18082
18083# Code to be used in simple compile tests
18084lt_simple_compile_test_code="int some_variable = 0;\n"
18085
18086# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018087lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018088
18089# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18090
18091# If no C compiler was specified, use CC.
18092LTCC=${LTCC-"$CC"}
18093
Reid Spencera773bd52006-08-04 18:18:08 +000018094# If no C compiler flags were specified, use CFLAGS.
18095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18096
John Criswell47fdd832003-07-14 16:52:07 +000018097# Allow CC to be a program name with arguments.
18098compiler=$CC
18099
18100
Reid Spencera773bd52006-08-04 18:18:08 +000018101# save warnings/boilerplate of simple test code
18102ac_outfile=conftest.$ac_objext
18103printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18104eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18105_lt_compiler_boilerplate=`cat conftest.err`
18106$rm conftest*
18107
18108ac_outfile=conftest.$ac_objext
18109printf "$lt_simple_link_test_code" >conftest.$ac_ext
18110eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18111_lt_linker_boilerplate=`cat conftest.err`
18112$rm conftest*
18113
18114
John Criswell47fdd832003-07-14 16:52:07 +000018115# Allow CC to be a program name with arguments.
18116lt_save_CC=$CC
18117lt_save_LD=$LD
18118lt_save_GCC=$GCC
18119GCC=$GXX
18120lt_save_with_gnu_ld=$with_gnu_ld
18121lt_save_path_LD=$lt_cv_path_LD
18122if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18123 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18124else
Reid Spencera773bd52006-08-04 18:18:08 +000018125 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018126fi
18127if test -n "${lt_cv_path_LDCXX+set}"; then
18128 lt_cv_path_LD=$lt_cv_path_LDCXX
18129else
Reid Spencera773bd52006-08-04 18:18:08 +000018130 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018131fi
18132test -z "${LDCXX+set}" || LD=$LDCXX
18133CC=${CXX-"c++"}
18134compiler=$CC
18135compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018136for cc_temp in $compiler""; do
18137 case $cc_temp in
18138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18140 \-*) ;;
18141 *) break;;
18142 esac
18143done
18144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18145
John Criswell47fdd832003-07-14 16:52:07 +000018146
18147# We don't want -fno-exception wen compiling C++ code, so set the
18148# no_builtin_flag separately
18149if test "$GXX" = yes; then
18150 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18151else
18152 lt_prog_compiler_no_builtin_flag_CXX=
18153fi
18154
18155if test "$GXX" = yes; then
18156 # Set up default GNU C++ configuration
18157
18158
Reid Spencera773bd52006-08-04 18:18:08 +000018159# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018160if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018162else
18163 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018164fi
18165
John Criswell47fdd832003-07-14 16:52:07 +000018166ac_prog=ld
18167if test "$GCC" = yes; then
18168 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018169 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18170echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018171 case $host in
18172 *-*-mingw*)
18173 # gcc leaves a trailing carriage return which upsets mingw
18174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18175 *)
18176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18177 esac
18178 case $ac_prog in
18179 # Accept absolute paths.
18180 [\\/]* | ?:[\\/]*)
18181 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018182 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018183 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18184 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18185 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18186 done
18187 test -z "$LD" && LD="$ac_prog"
18188 ;;
18189 "")
18190 # If it fails, then pretend we aren't using GCC.
18191 ac_prog=ld
18192 ;;
18193 *)
18194 # If it is relative, then search for the first ld in PATH.
18195 with_gnu_ld=unknown
18196 ;;
18197 esac
18198elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018199 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18200echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018201else
Reid Spencera773bd52006-08-04 18:18:08 +000018202 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18203echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018204fi
18205if test "${lt_cv_path_LD+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207else
18208 if test -z "$LD"; then
18209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18210 for ac_dir in $PATH; do
18211 IFS="$lt_save_ifs"
18212 test -z "$ac_dir" && ac_dir=.
18213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18214 lt_cv_path_LD="$ac_dir/$ac_prog"
18215 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018216 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018217 # Break only if it was the GNU/non-GNU ld that we prefer.
18218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18219 *GNU* | *'with BFD'*)
18220 test "$with_gnu_ld" != no && break
18221 ;;
18222 *)
18223 test "$with_gnu_ld" != yes && break
18224 ;;
18225 esac
18226 fi
18227 done
18228 IFS="$lt_save_ifs"
18229else
18230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18231fi
18232fi
18233
18234LD="$lt_cv_path_LD"
18235if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018236 { echo "$as_me:$LINENO: result: $LD" >&5
18237echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018238else
Reid Spencera773bd52006-08-04 18:18:08 +000018239 { echo "$as_me:$LINENO: result: no" >&5
18240echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018241fi
18242test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18243echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018245{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18246echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018247if test "${lt_cv_prog_gnu_ld+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
Reid Spencera773bd52006-08-04 18:18:08 +000018250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018251case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018252*GNU* | *'with BFD'*)
18253 lt_cv_prog_gnu_ld=yes
18254 ;;
18255*)
18256 lt_cv_prog_gnu_ld=no
18257 ;;
18258esac
18259fi
Reid Spencera773bd52006-08-04 18:18:08 +000018260{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18261echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018262with_gnu_ld=$lt_cv_prog_gnu_ld
18263
18264
18265
18266 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18267 # archiving commands below assume that GNU ld is being used.
18268 if test "$with_gnu_ld" = yes; then
18269 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18270 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'
18271
18272 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18273 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18274
18275 # If archive_cmds runs LD, not CC, wlarc should be empty
18276 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18277 # investigate it a little bit more. (MM)
18278 wlarc='${wl}'
18279
18280 # ancient GNU ld didn't support --whole-archive et. al.
18281 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18282 grep 'no-whole-archive' > /dev/null; then
18283 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18284 else
18285 whole_archive_flag_spec_CXX=
18286 fi
18287 else
18288 with_gnu_ld=no
18289 wlarc=
18290
18291 # A generic and very simple default shared library creation
18292 # command for GNU C++ for the case where it uses the native
18293 # linker, instead of GNU ld. If possible, this setting should
18294 # overridden to take advantage of the native linker features on
18295 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018296 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018297 fi
18298
18299 # Commands to make compiler produce verbose output that lists
18300 # what "hidden" libraries, object files and flags are used when
18301 # linking a shared library.
18302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18303
18304else
18305 GXX=no
18306 with_gnu_ld=no
18307 wlarc=
18308fi
18309
18310# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018311{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18312echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018313ld_shlibs_CXX=yes
18314case $host_os in
18315 aix3*)
18316 # FIXME: insert proper C++ library support
18317 ld_shlibs_CXX=no
18318 ;;
18319 aix4* | aix5*)
18320 if test "$host_cpu" = ia64; then
18321 # On IA64, the linker does run time linking by default, so we don't
18322 # have to do anything special.
18323 aix_use_runtimelinking=no
18324 exp_sym_flag='-Bexport'
18325 no_entry_flag=""
18326 else
18327 aix_use_runtimelinking=no
18328
18329 # Test if we are trying to use run time linking or normal
18330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18331 # need to do runtime linking.
18332 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18333 for ld_flag in $LDFLAGS; do
18334 case $ld_flag in
18335 *-brtl*)
18336 aix_use_runtimelinking=yes
18337 break
18338 ;;
18339 esac
18340 done
Reid Spencera773bd52006-08-04 18:18:08 +000018341 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018342 esac
18343
18344 exp_sym_flag='-bexport'
18345 no_entry_flag='-bnoentry'
18346 fi
18347
18348 # When large executables or shared objects are built, AIX ld can
18349 # have problems creating the table of contents. If linking a library
18350 # or program results in "error TOC overflow" add -mminimal-toc to
18351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18353
18354 archive_cmds_CXX=''
18355 hardcode_direct_CXX=yes
18356 hardcode_libdir_separator_CXX=':'
18357 link_all_deplibs_CXX=yes
18358
18359 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018360 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018361 # We only want to do this on AIX 4.2 and lower, the check
18362 # below for broken collect2 doesn't work under 4.3+
18363 collect2name=`${CC} -print-prog-name=collect2`
18364 if test -f "$collect2name" && \
18365 strings "$collect2name" | grep resolve_lib_name >/dev/null
18366 then
18367 # We have reworked collect2
18368 hardcode_direct_CXX=yes
18369 else
18370 # We have old collect2
18371 hardcode_direct_CXX=unsupported
18372 # It fails to find uninstalled libraries when the uninstalled
18373 # path is not listed in the libpath. Setting hardcode_minus_L
18374 # to unsupported forces relinking
18375 hardcode_minus_L_CXX=yes
18376 hardcode_libdir_flag_spec_CXX='-L$libdir'
18377 hardcode_libdir_separator_CXX=
18378 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018379 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018380 esac
18381 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018382 if test "$aix_use_runtimelinking" = yes; then
18383 shared_flag="$shared_flag "'${wl}-G'
18384 fi
John Criswell47fdd832003-07-14 16:52:07 +000018385 else
18386 # not using gcc
18387 if test "$host_cpu" = ia64; then
18388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18389 # chokes on -Wl,-G. The following line is correct:
18390 shared_flag='-G'
18391 else
18392 if test "$aix_use_runtimelinking" = yes; then
18393 shared_flag='${wl}-G'
18394 else
18395 shared_flag='${wl}-bM:SRE'
18396 fi
18397 fi
18398 fi
18399
18400 # It seems that -bexpall does not export symbols beginning with
18401 # underscore (_), so it is better to generate a list of symbols to export.
18402 always_export_symbols_CXX=yes
18403 if test "$aix_use_runtimelinking" = yes; then
18404 # Warning - without using the other runtime loading flags (-brtl),
18405 # -berok will link without error, but may produce a broken library.
18406 allow_undefined_flag_CXX='-berok'
18407 # Determine the default libpath from the value encoded in an empty executable.
18408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
18413/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018414
John Criswell47fdd832003-07-14 16:52:07 +000018415int
18416main ()
18417{
18418
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018424if { (ac_try="$ac_link"
18425case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428esac
18429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018457
18458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18459}'`
18460# Check for a 64-bit object if we didn't find anything.
18461if 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; }
18462}'`; fi
18463else
18464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018465sed 's/^/| /' conftest.$ac_ext >&5
18466
Reid Spencera773bd52006-08-04 18:18:08 +000018467
John Criswell47fdd832003-07-14 16:52:07 +000018468fi
Reid Spencera773bd52006-08-04 18:18:08 +000018469
Bill Wendlingebcceee2009-04-18 11:20:33 +000018470rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018471 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18473
18474 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18475
Reid Spencera773bd52006-08-04 18:18:08 +000018476 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 +000018477 else
18478 if test "$host_cpu" = ia64; then
18479 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18480 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018481 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 +000018482 else
18483 # Determine the default libpath from the value encoded in an empty executable.
18484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018485/* confdefs.h. */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018490
John Criswell47fdd832003-07-14 16:52:07 +000018491int
18492main ()
18493{
18494
18495 ;
18496 return 0;
18497}
18498_ACEOF
18499rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018500if { (ac_try="$ac_link"
18501case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018533
18534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18535}'`
18536# Check for a 64-bit object if we didn't find anything.
18537if 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; }
18538}'`; fi
18539else
18540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018541sed 's/^/| /' conftest.$ac_ext >&5
18542
Reid Spencera773bd52006-08-04 18:18:08 +000018543
John Criswell47fdd832003-07-14 16:52:07 +000018544fi
Reid Spencera773bd52006-08-04 18:18:08 +000018545
Bill Wendlingebcceee2009-04-18 11:20:33 +000018546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018547 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018548if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18549
18550 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18551 # Warning - without using the other run time loading flags,
18552 # -berok will link without error, but may produce a broken library.
18553 no_undefined_flag_CXX=' ${wl}-bernotok'
18554 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018555 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018556 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018557 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018558 # This is similar to how AIX traditionally builds its shared libraries.
18559 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 +000018560 fi
18561 fi
18562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018563
18564 beos*)
18565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18566 allow_undefined_flag_CXX=unsupported
18567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18568 # support --undefined. This deserves some investigation. FIXME
18569 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570 else
18571 ld_shlibs_CXX=no
18572 fi
18573 ;;
18574
John Criswell47fdd832003-07-14 16:52:07 +000018575 chorus*)
18576 case $cc_basename in
18577 *)
18578 # FIXME: insert proper C++ library support
18579 ld_shlibs_CXX=no
18580 ;;
18581 esac
18582 ;;
18583
18584 cygwin* | mingw* | pw32*)
18585 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18586 # as there is no search path for DLLs.
18587 hardcode_libdir_flag_spec_CXX='-L$libdir'
18588 allow_undefined_flag_CXX=unsupported
18589 always_export_symbols_CXX=no
18590 enable_shared_with_static_runtimes_CXX=yes
18591
18592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018593 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 +000018594 # If the export-symbols file already is a .def file (1st line
18595 # is EXPORTS), use it as is; otherwise, prepend...
18596 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18597 cp $export_symbols $output_objdir/$soname.def;
18598 else
18599 echo EXPORTS > $output_objdir/$soname.def;
18600 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018601 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018602 $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 +000018603 else
18604 ld_shlibs_CXX=no
18605 fi
18606 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018607 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018608 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018609 rhapsody* | darwin1.[012])
18610 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18611 ;;
18612 *) # Darwin 1.3 on
18613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18614 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18615 else
18616 case ${MACOSX_DEPLOYMENT_TARGET} in
18617 10.[012])
18618 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18619 ;;
18620 10.*)
18621 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18622 ;;
18623 esac
18624 fi
18625 ;;
18626 esac
18627 archive_cmds_need_lc_CXX=no
18628 hardcode_direct_CXX=no
18629 hardcode_automatic_CXX=yes
18630 hardcode_shlibpath_var_CXX=unsupported
18631 whole_archive_flag_spec_CXX=''
18632 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018633
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634 if test "$GXX" = yes ; then
18635 lt_int_apple_cc_single_mod=no
18636 output_verbose_link_cmd='echo'
18637 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18638 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018639 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018640 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018641 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 +000018642 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018643 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 +000018644 fi
18645 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018646 # 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 +000018647 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018648 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 +000018649 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018650 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 +000018651 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018652 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 +000018653 else
Reid Spencera773bd52006-08-04 18:18:08 +000018654 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018655 xlc*)
18656 output_verbose_link_cmd='echo'
18657 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'
18658 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018659 # 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 +000018660 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}'
18661 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 +000018662 ;;
18663 *)
18664 ld_shlibs_CXX=no
18665 ;;
18666 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018667 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018668 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018669
18670 dgux*)
18671 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018672 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018673 # FIXME: insert proper C++ library support
18674 ld_shlibs_CXX=no
18675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018676 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018677 # Green Hills C++ Compiler
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
18681 *)
18682 # FIXME: insert proper C++ library support
18683 ld_shlibs_CXX=no
18684 ;;
18685 esac
18686 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018687 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018688 # C++ shared libraries reported to be fairly broken before switch to ELF
18689 ld_shlibs_CXX=no
18690 ;;
18691 freebsd-elf*)
18692 archive_cmds_need_lc_CXX=no
18693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018694 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018695 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18696 # conventions
18697 ld_shlibs_CXX=yes
18698 ;;
18699 gnu*)
18700 ;;
18701 hpux9*)
18702 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18703 hardcode_libdir_separator_CXX=:
18704 export_dynamic_flag_spec_CXX='${wl}-E'
18705 hardcode_direct_CXX=yes
18706 hardcode_minus_L_CXX=yes # Not in the search PATH,
18707 # but as the default
18708 # location of the library.
18709
18710 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018711 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018715 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018716 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 +000018717 # Commands to make compiler produce verbose output that lists
18718 # what "hidden" libraries, object files and flags are used when
18719 # linking a shared library.
18720 #
18721 # There doesn't appear to be a way to prevent this compiler from
18722 # explicitly linking system object files so we need to strip them
18723 # from the output so that they don't get included in the library
18724 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018725 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 +000018726 ;;
18727 *)
18728 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018729 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 +000018730 else
18731 # FIXME: insert proper C++ library support
18732 ld_shlibs_CXX=no
18733 fi
18734 ;;
18735 esac
18736 ;;
18737 hpux10*|hpux11*)
18738 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018739 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18740 hardcode_libdir_separator_CXX=:
18741
18742 case $host_cpu in
18743 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018744 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018745 ;;
18746 *)
John Criswell47fdd832003-07-14 16:52:07 +000018747 export_dynamic_flag_spec_CXX='${wl}-E'
18748 ;;
18749 esac
18750 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018751 case $host_cpu in
18752 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018753 hardcode_direct_CXX=no
18754 hardcode_shlibpath_var_CXX=no
18755 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018756 *)
18757 hardcode_direct_CXX=yes
18758 hardcode_minus_L_CXX=yes # Not in the search PATH,
18759 # but as the default
18760 # location of the library.
18761 ;;
18762 esac
18763
18764 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018765 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18768 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018769 aCC*)
18770 case $host_cpu in
18771 hppa*64*)
18772 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18773 ;;
18774 ia64*)
18775 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 +000018776 ;;
18777 *)
18778 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18779 ;;
18780 esac
18781 # Commands to make compiler produce verbose output that lists
18782 # what "hidden" libraries, object files and flags are used when
18783 # linking a shared library.
18784 #
18785 # There doesn't appear to be a way to prevent this compiler from
18786 # explicitly linking system object files so we need to strip them
18787 # from the output so that they don't get included in the library
18788 # dependencies.
18789 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'
18790 ;;
18791 *)
18792 if test "$GXX" = yes; then
18793 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018794 case $host_cpu in
18795 hppa*64*)
18796 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18797 ;;
18798 ia64*)
18799 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 +000018800 ;;
18801 *)
18802 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'
18803 ;;
18804 esac
18805 fi
18806 else
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 fi
18810 ;;
18811 esac
18812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018813 interix3*)
18814 hardcode_direct_CXX=no
18815 hardcode_shlibpath_var_CXX=no
18816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18817 export_dynamic_flag_spec_CXX='${wl}-E'
18818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18819 # Instead, shared libraries are loaded at an image base (0x10000000 by
18820 # default) and relocated if they conflict, which is a slow very memory
18821 # consuming and fragmenting process. To avoid this, we pick a random,
18822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18824 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'
18825 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'
18826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018827 irix5* | irix6*)
18828 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018829 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018830 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018831 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 +000018832
18833 # Archives containing C++ object files must be created using
18834 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18835 # necessary to make sure instantiated templates are included
18836 # in the archive.
18837 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18838 ;;
18839 *)
18840 if test "$GXX" = yes; then
18841 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018842 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 +000018843 else
18844 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'
18845 fi
18846 fi
18847 link_all_deplibs_CXX=yes
18848 ;;
18849 esac
18850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18851 hardcode_libdir_separator_CXX=:
18852 ;;
18853 linux*)
18854 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018855 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018856 # Kuck and Associates, Inc. (KAI) C++ Compiler
18857
18858 # KCC will only create a shared library if the output file
18859 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18860 # to its proper name (with version) after linking.
18861 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'
18862 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'
18863 # Commands to make compiler produce verbose output that lists
18864 # what "hidden" libraries, object files and flags are used when
18865 # linking a shared library.
18866 #
18867 # There doesn't appear to be a way to prevent this compiler from
18868 # explicitly linking system object files so we need to strip them
18869 # from the output so that they don't get included in the library
18870 # dependencies.
18871 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'
18872
18873 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18875
18876 # Archives containing C++ object files must be created using
18877 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18878 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18879 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018880 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018881 # Intel C++
18882 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018883 # version 8.0 and above of icpc choke on multiply defined symbols
18884 # if we add $predep_objects and $postdep_objects, however 7.1 and
18885 # earlier do not add the objects themselves.
18886 case `$CC -V 2>&1` in
18887 *"Version 7."*)
18888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18889 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'
18890 ;;
18891 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018892 tmp_idyn=
18893 case $host_cpu in
18894 ia64*) tmp_idyn=' -i_dynamic';;
18895 esac
18896 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18897 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 +000018898 ;;
18899 esac
John Criswell47fdd832003-07-14 16:52:07 +000018900 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18903 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18904 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018905 pgCC*)
18906 # Portland Group C++ compiler
18907 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18908 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'
18909
18910 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18912 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'
18913 ;;
18914 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018915 # Compaq C++
18916 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917 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'
18918
18919 runpath_var=LD_RUN_PATH
18920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18921 hardcode_libdir_separator_CXX=:
18922
18923 # Commands to make compiler produce verbose output that lists
18924 # what "hidden" libraries, object files and flags are used when
18925 # linking a shared library.
18926 #
18927 # There doesn't appear to be a way to prevent this compiler from
18928 # explicitly linking system object files so we need to strip them
18929 # from the output so that they don't get included in the library
18930 # dependencies.
18931 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'
18932 ;;
18933 esac
18934 ;;
18935 lynxos*)
18936 # FIXME: insert proper C++ library support
18937 ld_shlibs_CXX=no
18938 ;;
18939 m88k*)
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
18943 mvs*)
18944 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018945 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18948 ;;
18949 *)
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18952 ;;
18953 esac
18954 ;;
18955 netbsd*)
18956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18957 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18958 wlarc=
18959 hardcode_libdir_flag_spec_CXX='-R$libdir'
18960 hardcode_direct_CXX=yes
18961 hardcode_shlibpath_var_CXX=no
18962 fi
18963 # Workaround some broken pre-1.5 toolchains
18964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18965 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018966 openbsd2*)
18967 # C++ shared libraries are fairly broken
18968 ld_shlibs_CXX=no
18969 ;;
18970 openbsd*)
18971 hardcode_direct_CXX=yes
18972 hardcode_shlibpath_var_CXX=no
18973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18976 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18977 export_dynamic_flag_spec_CXX='${wl}-E'
18978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18979 fi
18980 output_verbose_link_cmd='echo'
18981 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018982 osf3*)
18983 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018984 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018985 # Kuck and Associates, Inc. (KAI) C++ Compiler
18986
18987 # KCC will only create a shared library if the output file
18988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989 # to its proper name (with version) after linking.
18990 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'
18991
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993 hardcode_libdir_separator_CXX=:
18994
18995 # Archives containing C++ object files must be created using
18996 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18998
18999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019000 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019001 # Rational C++ 2.4.1
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019005 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019007 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 +000019008
19009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19010 hardcode_libdir_separator_CXX=:
19011
19012 # Commands to make compiler produce verbose output that lists
19013 # what "hidden" libraries, object files and flags are used when
19014 # linking a shared library.
19015 #
19016 # There doesn't appear to be a way to prevent this compiler from
19017 # explicitly linking system object files so we need to strip them
19018 # from the output so that they don't get included in the library
19019 # dependencies.
19020 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'
19021 ;;
19022 *)
19023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19024 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019025 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 +000019026
19027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19028 hardcode_libdir_separator_CXX=:
19029
19030 # Commands to make compiler produce verbose output that lists
19031 # what "hidden" libraries, object files and flags are used when
19032 # linking a shared library.
19033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19034
19035 else
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 fi
19039 ;;
19040 esac
19041 ;;
19042 osf4* | osf5*)
19043 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019044 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019045 # Kuck and Associates, Inc. (KAI) C++ Compiler
19046
19047 # KCC will only create a shared library if the output file
19048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049 # to its proper name (with version) after linking.
19050 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'
19051
19052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19053 hardcode_libdir_separator_CXX=:
19054
19055 # Archives containing C++ object files must be created using
19056 # the KAI C++ compiler.
19057 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019059 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019060 # Rational C++ 2.4.1
19061 # FIXME: insert proper C++ library support
19062 ld_shlibs_CXX=no
19063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019064 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019065 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019066 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 +000019067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19068 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019069 $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 +000019070 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019071
19072 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19073 hardcode_libdir_separator_CXX=:
19074
19075 # Commands to make compiler produce verbose output that lists
19076 # what "hidden" libraries, object files and flags are used when
19077 # linking a shared library.
19078 #
19079 # There doesn't appear to be a way to prevent this compiler from
19080 # explicitly linking system object files so we need to strip them
19081 # from the output so that they don't get included in the library
19082 # dependencies.
19083 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'
19084 ;;
19085 *)
19086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019088 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 +000019089
19090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091 hardcode_libdir_separator_CXX=:
19092
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19097
19098 else
19099 # FIXME: insert proper C++ library support
19100 ld_shlibs_CXX=no
19101 fi
19102 ;;
19103 esac
19104 ;;
19105 psos*)
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019109 sunos4*)
19110 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019111 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019112 # Sun C++ 4.x
19113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19115 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019116 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019117 # Lucid
19118 # FIXME: insert proper C++ library support
19119 ld_shlibs_CXX=no
19120 ;;
19121 *)
19122 # FIXME: insert proper C++ library support
19123 ld_shlibs_CXX=no
19124 ;;
19125 esac
19126 ;;
19127 solaris*)
19128 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019129 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019130 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019131 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019132 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019133 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 +000019134 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 +000019135 $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 +000019136
19137 hardcode_libdir_flag_spec_CXX='-R$libdir'
19138 hardcode_shlibpath_var_CXX=no
19139 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019140 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019141 *)
19142 # The C++ compiler is used as linker so we must use $wl
19143 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019144 # linker. We must also pass each convience library through
19145 # to the system linker between allextract/defaultextract.
19146 # The C++ compiler will combine linker options so we
19147 # cannot just pass the convience library names through
19148 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019149 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019150 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 +000019151 ;;
19152 esac
19153 link_all_deplibs_CXX=yes
19154
Reid Spencera773bd52006-08-04 18:18:08 +000019155 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019156
19157 # Archives containing C++ object files must be created using
19158 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19159 # necessary to make sure instantiated templates are included
19160 # in the archive.
19161 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019163 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019164 # Green Hills C++ Compiler
19165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19166
19167 # The C++ compiler must be used to create the archive.
19168 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19169 ;;
19170 *)
19171 # GNU C++ compiler with Solaris linker
19172 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19173 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19174 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019175 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 +000019176 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19177 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19178
John Criswell47fdd832003-07-14 16:52:07 +000019179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019182 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019183 else
19184 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19185 # platform.
19186 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 +000019187 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19188 $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 +000019189
19190 # Commands to make compiler produce verbose output that lists
19191 # what "hidden" libraries, object files and flags are used when
19192 # linking a shared library.
19193 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19194 fi
19195
19196 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19197 fi
19198 ;;
19199 esac
19200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19202 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019203 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019204 hardcode_shlibpath_var_CXX=no
19205 runpath_var='LD_RUN_PATH'
19206
19207 case $cc_basename in
19208 CC*)
19209 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19210 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19211 ;;
19212 *)
19213 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19214 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19215 ;;
19216 esac
19217 ;;
19218 sysv5* | sco3.2v5* | sco5v6*)
19219 # Note: We can NOT use -z defs as we might desire, because we do not
19220 # link with -lc, and that would cause any symbols used from libc to
19221 # always be unresolved, which means just about no library would
19222 # ever link correctly. If we're not using GNU ld we use -z text
19223 # though, which does catch some bad symbols but isn't as heavy-handed
19224 # as -z defs.
19225 # For security reasons, it is highly recommended that you always
19226 # use absolute paths for naming shared libraries, and exclude the
19227 # DT_RUNPATH tag from executables and libraries. But doing so
19228 # requires that you compile everything twice, which is a pain.
19229 # So that behaviour is only enabled if SCOABSPATH is set to a
19230 # non-empty value in the environment. Most likely only useful for
19231 # creating official distributions of packages.
19232 # This is a hack until libtool officially supports absolute path
19233 # names for shared libraries.
19234 no_undefined_flag_CXX='${wl}-z,text'
19235 allow_undefined_flag_CXX='${wl}-z,nodefs'
19236 archive_cmds_need_lc_CXX=no
19237 hardcode_shlibpath_var_CXX=no
19238 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19239 hardcode_libdir_separator_CXX=':'
19240 link_all_deplibs_CXX=yes
19241 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19242 runpath_var='LD_RUN_PATH'
19243
19244 case $cc_basename in
19245 CC*)
19246 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19247 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19248 ;;
19249 *)
19250 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19251 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19252 ;;
19253 esac
John Criswell47fdd832003-07-14 16:52:07 +000019254 ;;
19255 tandem*)
19256 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019257 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019258 # NonStop-UX NCC 3.20
19259 # FIXME: insert proper C++ library support
19260 ld_shlibs_CXX=no
19261 ;;
19262 *)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19265 ;;
19266 esac
19267 ;;
19268 vxworks*)
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
19272 *)
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19275 ;;
19276esac
Reid Spencera773bd52006-08-04 18:18:08 +000019277{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19278echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019279test "$ld_shlibs_CXX" = no && can_build_shared=no
19280
19281GCC_CXX="$GXX"
19282LD_CXX="$LD"
19283
John Criswell47fdd832003-07-14 16:52:07 +000019284
19285cat > conftest.$ac_ext <<EOF
19286class Foo
19287{
19288public:
19289 Foo (void) { a = 0; }
19290private:
19291 int a;
19292};
19293EOF
19294
19295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19296 (eval $ac_compile) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; then
19300 # Parse the compiler output and extract the necessary
19301 # objects, libraries and library flags.
19302
19303 # Sentinel used to keep track of whether or not we are before
19304 # the conftest object file.
19305 pre_test_object_deps_done=no
19306
19307 # The `*' in the case matches for architectures that use `case' in
19308 # $output_verbose_cmd can trigger glob expansion during the loop
19309 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019310 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019311
19312 for p in `eval $output_verbose_link_cmd`; do
19313 case $p in
19314
19315 -L* | -R* | -l*)
19316 # Some compilers place space between "-{L,R}" and the path.
19317 # Remove the space.
19318 if test $p = "-L" \
19319 || test $p = "-R"; then
19320 prev=$p
19321 continue
19322 else
19323 prev=
19324 fi
19325
19326 if test "$pre_test_object_deps_done" = no; then
19327 case $p in
19328 -L* | -R*)
19329 # Internal compiler library paths should come after those
19330 # provided the user. The postdeps already come after the
19331 # user supplied libs so there is no need to process them.
19332 if test -z "$compiler_lib_search_path_CXX"; then
19333 compiler_lib_search_path_CXX="${prev}${p}"
19334 else
19335 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19336 fi
19337 ;;
19338 # The "-l" case would never come before the object being
19339 # linked, so don't bother handling this case.
19340 esac
19341 else
19342 if test -z "$postdeps_CXX"; then
19343 postdeps_CXX="${prev}${p}"
19344 else
19345 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19346 fi
19347 fi
19348 ;;
19349
19350 *.$objext)
19351 # This assumes that the test object file only shows up
19352 # once in the compiler output.
19353 if test "$p" = "conftest.$objext"; then
19354 pre_test_object_deps_done=yes
19355 continue
19356 fi
19357
19358 if test "$pre_test_object_deps_done" = no; then
19359 if test -z "$predep_objects_CXX"; then
19360 predep_objects_CXX="$p"
19361 else
19362 predep_objects_CXX="$predep_objects_CXX $p"
19363 fi
19364 else
19365 if test -z "$postdep_objects_CXX"; then
19366 postdep_objects_CXX="$p"
19367 else
19368 postdep_objects_CXX="$postdep_objects_CXX $p"
19369 fi
19370 fi
19371 ;;
19372
19373 *) ;; # Ignore the rest.
19374
19375 esac
19376 done
19377
19378 # Clean up.
19379 rm -f a.out a.exe
19380else
19381 echo "libtool.m4: error: problem compiling CXX test program"
19382fi
19383
19384$rm -f confest.$objext
19385
Reid Spencera773bd52006-08-04 18:18:08 +000019386# PORTME: override above test on systems where it is broken
19387case $host_os in
19388interix3*)
19389 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19390 # hack all around it, let's just trust "g++" to DTRT.
19391 predep_objects_CXX=
19392 postdep_objects_CXX=
19393 postdeps_CXX=
19394 ;;
19395
19396solaris*)
19397 case $cc_basename in
19398 CC*)
19399 # Adding this requires a known-good setup of shared libraries for
19400 # Sun compiler versions before 5.6, else PIC objects from an old
19401 # archive will be linked into the output, leading to subtle bugs.
19402 postdeps_CXX='-lCstd -lCrun'
19403 ;;
19404 esac
19405 ;;
19406esac
19407
19408
John Criswell47fdd832003-07-14 16:52:07 +000019409case " $postdeps_CXX " in
19410*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19411esac
19412
19413lt_prog_compiler_wl_CXX=
19414lt_prog_compiler_pic_CXX=
19415lt_prog_compiler_static_CXX=
19416
Reid Spencera773bd52006-08-04 18:18:08 +000019417{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19418echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019419
19420 # C++ specific cases for pic, static, wl, etc.
19421 if test "$GXX" = yes; then
19422 lt_prog_compiler_wl_CXX='-Wl,'
19423 lt_prog_compiler_static_CXX='-static'
19424
19425 case $host_os in
19426 aix*)
19427 # All AIX code is PIC.
19428 if test "$host_cpu" = ia64; then
19429 # AIX 5 now supports IA64 processor
19430 lt_prog_compiler_static_CXX='-Bstatic'
19431 fi
19432 ;;
19433 amigaos*)
19434 # FIXME: we need at least 68020 code to build shared libraries, but
19435 # adding the `-m68020' flag to GCC prevents building anything better,
19436 # like `-m68040'.
19437 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19438 ;;
19439 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19440 # PIC is the default for these OSes.
19441 ;;
19442 mingw* | os2* | pw32*)
19443 # This hack is so that the source file can tell whether it is being
19444 # built for inclusion in a dll (and should export symbols for example).
19445 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19446 ;;
19447 darwin* | rhapsody*)
19448 # PIC is the default on this platform
19449 # Common symbols not allowed in MH_DYLIB files
19450 lt_prog_compiler_pic_CXX='-fno-common'
19451 ;;
19452 *djgpp*)
19453 # DJGPP does not support shared libraries at all
19454 lt_prog_compiler_pic_CXX=
19455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019456 interix3*)
19457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19458 # Instead, we relocate shared libraries at runtime.
19459 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019460 sysv4*MP*)
19461 if test -d /usr/nec; then
19462 lt_prog_compiler_pic_CXX=-Kconform_pic
19463 fi
19464 ;;
19465 hpux*)
19466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19467 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019468 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019469 hppa*64*|ia64*)
19470 ;;
19471 *)
19472 lt_prog_compiler_pic_CXX='-fPIC'
19473 ;;
19474 esac
19475 ;;
19476 *)
19477 lt_prog_compiler_pic_CXX='-fPIC'
19478 ;;
19479 esac
19480 else
19481 case $host_os in
19482 aix4* | aix5*)
19483 # All AIX code is PIC.
19484 if test "$host_cpu" = ia64; then
19485 # AIX 5 now supports IA64 processor
19486 lt_prog_compiler_static_CXX='-Bstatic'
19487 else
19488 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19489 fi
19490 ;;
19491 chorus*)
19492 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019493 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019494 # Green Hills C++ Compiler
19495 # _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"
19496 ;;
19497 esac
19498 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019499 darwin*)
19500 # PIC is the default on this platform
19501 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019502 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019503 xlc*)
19504 lt_prog_compiler_pic_CXX='-qnocommon'
19505 lt_prog_compiler_wl_CXX='-Wl,'
19506 ;;
19507 esac
19508 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019509 dgux*)
19510 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019511 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019512 lt_prog_compiler_pic_CXX='-KPIC'
19513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019514 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019515 # Green Hills C++ Compiler
19516 lt_prog_compiler_pic_CXX='-pic'
19517 ;;
19518 *)
19519 ;;
19520 esac
19521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019522 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019523 # FreeBSD uses GNU C++
19524 ;;
19525 hpux9* | hpux10* | hpux11*)
19526 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019527 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019528 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019529 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019530 if test "$host_cpu" != ia64; then
19531 lt_prog_compiler_pic_CXX='+Z'
19532 fi
19533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019534 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019535 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019536 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19537 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019538 hppa*64*|ia64*)
19539 # +Z the default
19540 ;;
19541 *)
19542 lt_prog_compiler_pic_CXX='+Z'
19543 ;;
19544 esac
19545 ;;
19546 *)
19547 ;;
19548 esac
19549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019550 interix*)
19551 # This is c89, which is MS Visual C++ (no shared libs)
19552 # Anyone wants to do a port?
19553 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019554 irix5* | irix6* | nonstopux*)
19555 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019556 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019557 lt_prog_compiler_wl_CXX='-Wl,'
19558 lt_prog_compiler_static_CXX='-non_shared'
19559 # CC pic flag -KPIC is the default.
19560 ;;
19561 *)
19562 ;;
19563 esac
19564 ;;
19565 linux*)
19566 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019567 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019568 # KAI C++ Compiler
19569 lt_prog_compiler_wl_CXX='--backend -Wl,'
19570 lt_prog_compiler_pic_CXX='-fPIC'
19571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019572 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019573 # Intel C++
19574 lt_prog_compiler_wl_CXX='-Wl,'
19575 lt_prog_compiler_pic_CXX='-KPIC'
19576 lt_prog_compiler_static_CXX='-static'
19577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019578 pgCC*)
19579 # Portland Group C++ compiler.
19580 lt_prog_compiler_wl_CXX='-Wl,'
19581 lt_prog_compiler_pic_CXX='-fpic'
19582 lt_prog_compiler_static_CXX='-Bstatic'
19583 ;;
19584 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019585 # Compaq C++
19586 # Make sure the PIC flag is empty. It appears that all Alpha
19587 # Linux and Compaq Tru64 Unix objects are PIC.
19588 lt_prog_compiler_pic_CXX=
19589 lt_prog_compiler_static_CXX='-non_shared'
19590 ;;
19591 *)
19592 ;;
19593 esac
19594 ;;
19595 lynxos*)
19596 ;;
19597 m88k*)
19598 ;;
19599 mvs*)
19600 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019601 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 lt_prog_compiler_pic_CXX='-W c,exportall'
19603 ;;
19604 *)
19605 ;;
19606 esac
19607 ;;
19608 netbsd*)
19609 ;;
19610 osf3* | osf4* | osf5*)
19611 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019612 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019613 lt_prog_compiler_wl_CXX='--backend -Wl,'
19614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019615 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019616 # Rational C++ 2.4.1
19617 lt_prog_compiler_pic_CXX='-pic'
19618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019619 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019620 # Digital/Compaq C++
19621 lt_prog_compiler_wl_CXX='-Wl,'
19622 # Make sure the PIC flag is empty. It appears that all Alpha
19623 # Linux and Compaq Tru64 Unix objects are PIC.
19624 lt_prog_compiler_pic_CXX=
19625 lt_prog_compiler_static_CXX='-non_shared'
19626 ;;
19627 *)
19628 ;;
19629 esac
19630 ;;
19631 psos*)
19632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019633 solaris*)
19634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019635 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019636 # Sun C++ 4.2, 5.x and Centerline C++
19637 lt_prog_compiler_pic_CXX='-KPIC'
19638 lt_prog_compiler_static_CXX='-Bstatic'
19639 lt_prog_compiler_wl_CXX='-Qoption ld '
19640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019641 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019642 # Green Hills C++ Compiler
19643 lt_prog_compiler_pic_CXX='-PIC'
19644 ;;
19645 *)
19646 ;;
19647 esac
19648 ;;
19649 sunos4*)
19650 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019651 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019652 # Sun C++ 4.x
19653 lt_prog_compiler_pic_CXX='-pic'
19654 lt_prog_compiler_static_CXX='-Bstatic'
19655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019656 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019657 # Lucid
19658 lt_prog_compiler_pic_CXX='-pic'
19659 ;;
19660 *)
19661 ;;
19662 esac
19663 ;;
19664 tandem*)
19665 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019666 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019667 # NonStop-UX NCC 3.20
19668 lt_prog_compiler_pic_CXX='-KPIC'
19669 ;;
19670 *)
19671 ;;
19672 esac
19673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19675 case $cc_basename in
19676 CC*)
19677 lt_prog_compiler_wl_CXX='-Wl,'
19678 lt_prog_compiler_pic_CXX='-KPIC'
19679 lt_prog_compiler_static_CXX='-Bstatic'
19680 ;;
19681 esac
John Criswell47fdd832003-07-14 16:52:07 +000019682 ;;
19683 vxworks*)
19684 ;;
19685 *)
19686 lt_prog_compiler_can_build_shared_CXX=no
19687 ;;
19688 esac
19689 fi
19690
Reid Spencera773bd52006-08-04 18:18:08 +000019691{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19692echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019693
19694#
19695# Check to make sure the PIC flag actually works.
19696#
19697if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019698
Reid Spencera773bd52006-08-04 18:18:08 +000019699{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19700echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019701if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703else
19704 lt_prog_compiler_pic_works_CXX=no
19705 ac_outfile=conftest.$ac_objext
19706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19707 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19708 # Insert the option either (1) after the last *FLAGS variable, or
19709 # (2) before a word containing "conftest.", or (3) at the end.
19710 # Note that $ac_compile itself does not contain backslashes and begins
19711 # with a dollar sign (not a hyphen), so the echo should work correctly.
19712 # The option is referenced via a variable to avoid confusing sed.
19713 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19716 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000019717 (eval echo "\"\$as_me:19717: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019718 (eval "$lt_compile" 2>conftest.err)
19719 ac_status=$?
19720 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000019721 echo "$as_me:19721: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019722 if (exit $ac_status) && test -s "$ac_outfile"; then
19723 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019724 # So say no if there are warnings other than the usual output.
19725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019728 lt_prog_compiler_pic_works_CXX=yes
19729 fi
19730 fi
19731 $rm conftest*
19732
19733fi
Reid Spencera773bd52006-08-04 18:18:08 +000019734{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19735echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019736
19737if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19738 case $lt_prog_compiler_pic_CXX in
19739 "" | " "*) ;;
19740 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19741 esac
19742else
19743 lt_prog_compiler_pic_CXX=
19744 lt_prog_compiler_can_build_shared_CXX=no
19745fi
19746
19747fi
Reid Spencera773bd52006-08-04 18:18:08 +000019748case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019749 # For platforms which do not support PIC, -DPIC is meaningless:
19750 *djgpp*)
19751 lt_prog_compiler_pic_CXX=
19752 ;;
19753 *)
19754 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19755 ;;
19756esac
19757
Reid Spencera773bd52006-08-04 18:18:08 +000019758#
19759# Check to make sure the static flag actually works.
19760#
19761wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19762{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19763echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19764if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766else
19767 lt_prog_compiler_static_works_CXX=no
19768 save_LDFLAGS="$LDFLAGS"
19769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19772 # The linker can only warn and ignore the option if not recognized
19773 # So say no if there are warnings
19774 if test -s conftest.err; then
19775 # Append any errors to the config.log.
19776 cat conftest.err 1>&5
19777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19779 if diff conftest.exp conftest.er2 >/dev/null; then
19780 lt_prog_compiler_static_works_CXX=yes
19781 fi
19782 else
19783 lt_prog_compiler_static_works_CXX=yes
19784 fi
19785 fi
19786 $rm conftest*
19787 LDFLAGS="$save_LDFLAGS"
19788
19789fi
19790{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19791echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19792
19793if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19794 :
19795else
19796 lt_prog_compiler_static_CXX=
19797fi
19798
19799
19800{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19801echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019802if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804else
19805 lt_cv_prog_compiler_c_o_CXX=no
19806 $rm -r conftest 2>/dev/null
19807 mkdir conftest
19808 cd conftest
19809 mkdir out
19810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19811
John Criswell47fdd832003-07-14 16:52:07 +000019812 lt_compiler_flag="-o out/conftest2.$ac_objext"
19813 # Insert the option either (1) after the last *FLAGS variable, or
19814 # (2) before a word containing "conftest.", or (3) at the end.
19815 # Note that $ac_compile itself does not contain backslashes and begins
19816 # with a dollar sign (not a hyphen), so the echo should work correctly.
19817 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19820 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000019821 (eval echo "\"\$as_me:19821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019822 (eval "$lt_compile" 2>out/conftest.err)
19823 ac_status=$?
19824 cat out/conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000019825 echo "$as_me:19825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19827 then
19828 # The compiler can only warn and ignore the option if not recognized
19829 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019833 lt_cv_prog_compiler_c_o_CXX=yes
19834 fi
19835 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019836 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019837 $rm conftest*
19838 # SGI C++ compiler will create directory out/ii_files/ for
19839 # template instantiation
19840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19841 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019842 cd ..
19843 rmdir conftest
19844 $rm conftest*
19845
19846fi
Reid Spencera773bd52006-08-04 18:18:08 +000019847{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19848echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019849
19850
19851hard_links="nottested"
19852if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19853 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19855echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019856 hard_links=yes
19857 $rm conftest*
19858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19859 touch conftest.a
19860 ln conftest.a conftest.b 2>&5 || hard_links=no
19861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019862 { echo "$as_me:$LINENO: result: $hard_links" >&5
19863echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019864 if test "$hard_links" = no; then
19865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19866echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19867 need_locks=warn
19868 fi
19869else
19870 need_locks=no
19871fi
19872
Reid Spencera773bd52006-08-04 18:18:08 +000019873{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19874echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019875
19876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19877 case $host_os in
19878 aix4* | aix5*)
19879 # If we're using GNU nm, then we don't want the "-C" option.
19880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19882 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'
19883 else
19884 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'
19885 fi
19886 ;;
19887 pw32*)
19888 export_symbols_cmds_CXX="$ltdll_cmds"
19889 ;;
19890 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019891 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 +000019892 ;;
19893 *)
19894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19895 ;;
19896 esac
19897
Reid Spencera773bd52006-08-04 18:18:08 +000019898{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19899echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019900test "$ld_shlibs_CXX" = no && can_build_shared=no
19901
John Criswell47fdd832003-07-14 16:52:07 +000019902#
19903# Do we need to explicitly link libc?
19904#
19905case "x$archive_cmds_need_lc_CXX" in
19906x|xyes)
19907 # Assume -lc should be added
19908 archive_cmds_need_lc_CXX=yes
19909
19910 if test "$enable_shared" = yes && test "$GCC" = yes; then
19911 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019912 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019913 # FIXME: we may have to deal with multi-command sequences.
19914 ;;
19915 '$CC '*)
19916 # Test whether the compiler implicitly links with -lc since on some
19917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019921 $rm conftest*
19922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } 2>conftest.err; then
19929 soname=conftest
19930 lib=conftest
19931 libobjs=conftest.$ac_objext
19932 deplibs=
19933 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019934 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019935 compiler_flags=-v
19936 linker_flags=-v
19937 verstring=
19938 output_objdir=.
19939 libname=conftest
19940 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19941 allow_undefined_flag_CXX=
19942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19943 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }
19947 then
19948 archive_cmds_need_lc_CXX=no
19949 else
19950 archive_cmds_need_lc_CXX=yes
19951 fi
19952 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19953 else
19954 cat conftest.err 1>&5
19955 fi
19956 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19958echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019959 ;;
19960 esac
19961 fi
19962 ;;
19963esac
19964
Reid Spencera773bd52006-08-04 18:18:08 +000019965{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19966echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019967library_names_spec=
19968libname_spec='lib$name'
19969soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019971postinstall_cmds=
19972postuninstall_cmds=
19973finish_cmds=
19974finish_eval=
19975shlibpath_var=
19976shlibpath_overrides_runpath=unknown
19977version_type=none
19978dynamic_linker="$host_os ld.so"
19979sys_lib_dlsearch_path_spec="/lib /usr/lib"
19980if test "$GCC" = yes; then
19981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19982 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19983 # if the path contains ";" then we assume it to be the separator
19984 # otherwise default to the standard path separator (i.e. ":") - it is
19985 # assumed that no part of a normal pathname contains ";" but that should
19986 # okay in the real world where ";" in dirpaths is itself problematic.
19987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19988 else
19989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19990 fi
19991else
19992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19993fi
19994need_lib_prefix=unknown
19995hardcode_into_libs=no
19996
19997# when you set need_version to no, make sure it does not cause -set_version
19998# flags to be left without arguments
19999need_version=unknown
20000
20001case $host_os in
20002aix3*)
20003 version_type=linux
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20005 shlibpath_var=LIBPATH
20006
20007 # AIX 3 has no versioning support, so we append a major version to the name.
20008 soname_spec='${libname}${release}${shared_ext}$major'
20009 ;;
20010
20011aix4* | aix5*)
20012 version_type=linux
20013 need_lib_prefix=no
20014 need_version=no
20015 hardcode_into_libs=yes
20016 if test "$host_cpu" = ia64; then
20017 # AIX 5 supports IA64
20018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20019 shlibpath_var=LD_LIBRARY_PATH
20020 else
20021 # With GCC up to 2.95.x, collect2 would create an import file
20022 # for dependence libraries. The import file would start with
20023 # the line `#! .'. This would cause the generated library to
20024 # depend on `.', always an invalid library. This was fixed in
20025 # development snapshots of GCC prior to 3.0.
20026 case $host_os in
20027 aix4 | aix4.[01] | aix4.[01].*)
20028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20029 echo ' yes '
20030 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20031 :
20032 else
20033 can_build_shared=no
20034 fi
20035 ;;
20036 esac
20037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20038 # soname into executable. Probably we can add versioning support to
20039 # collect2, so additional links can be useful in future.
20040 if test "$aix_use_runtimelinking" = yes; then
20041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20042 # instead of lib<name>.a to let people know that these are not
20043 # typical AIX shared libraries.
20044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20045 else
20046 # We preserve .a as extension for shared libraries through AIX4.2
20047 # and later when we are not doing run time linking.
20048 library_names_spec='${libname}${release}.a $libname.a'
20049 soname_spec='${libname}${release}${shared_ext}$major'
20050 fi
20051 shlibpath_var=LIBPATH
20052 fi
20053 ;;
20054
20055amigaos*)
20056 library_names_spec='$libname.ixlibrary $libname.a'
20057 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020058 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 +000020059 ;;
20060
20061beos*)
20062 library_names_spec='${libname}${shared_ext}'
20063 dynamic_linker="$host_os ld.so"
20064 shlibpath_var=LIBRARY_PATH
20065 ;;
20066
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020068 version_type=linux
20069 need_version=no
20070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20071 soname_spec='${libname}${release}${shared_ext}$major'
20072 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20073 shlibpath_var=LD_LIBRARY_PATH
20074 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20075 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20076 # the default ld.so.conf also contains /usr/contrib/lib and
20077 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20078 # libtool to hard-code these into programs
20079 ;;
20080
20081cygwin* | mingw* | pw32*)
20082 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020083 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020084 need_version=no
20085 need_lib_prefix=no
20086
20087 case $GCC,$host_os in
20088 yes,cygwin* | yes,mingw* | yes,pw32*)
20089 library_names_spec='$libname.dll.a'
20090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020091 postinstall_cmds='base_file=`basename \${file}`~
20092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20093 dldir=$destdir/`dirname \$dlpath`~
20094 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020095 $install_prog $dir/$dlname \$dldir/$dlname~
20096 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20098 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020099 $rm \$dlpath'
20100 shlibpath_overrides_runpath=yes
20101
20102 case $host_os in
20103 cygwin*)
20104 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20105 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 +000020106 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020107 ;;
20108 mingw*)
20109 # MinGW DLLs use traditional 'lib' prefix
20110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20112 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20113 # It is most probably a Windows format PATH printed by
20114 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20115 # path with ; separators, and with drive letters. We can handle the
20116 # drive letters (cygwin fileutils understands them), so leave them,
20117 # especially as we might pass files found there to a mingw objdump,
20118 # which wouldn't understand a cygwinified path. Ahh.
20119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20120 else
20121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20122 fi
20123 ;;
20124 pw32*)
20125 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020126 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 +000020127 ;;
20128 esac
20129 ;;
20130
20131 *)
20132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20133 ;;
20134 esac
20135 dynamic_linker='Win32 ld.exe'
20136 # FIXME: first we should search . and the directory the executable is in
20137 shlibpath_var=PATH
20138 ;;
20139
20140darwin* | rhapsody*)
20141 dynamic_linker="$host_os dyld"
20142 version_type=darwin
20143 need_lib_prefix=no
20144 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020145 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020146 soname_spec='${libname}${release}${major}$shared_ext'
20147 shlibpath_overrides_runpath=yes
20148 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020149 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020150 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 if test "$GCC" = yes; then
20152 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"`
20153 else
20154 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020155 fi
20156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20157 ;;
20158
20159dgux*)
20160 version_type=linux
20161 need_lib_prefix=no
20162 need_version=no
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 ;;
20167
20168freebsd1*)
20169 dynamic_linker=no
20170 ;;
20171
Reid Spencer2706f8c2004-09-19 23:53:36 +000020172kfreebsd*-gnu)
20173 version_type=linux
20174 need_lib_prefix=no
20175 need_version=no
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20177 soname_spec='${libname}${release}${shared_ext}$major'
20178 shlibpath_var=LD_LIBRARY_PATH
20179 shlibpath_overrides_runpath=no
20180 hardcode_into_libs=yes
20181 dynamic_linker='GNU ld.so'
20182 ;;
20183
Reid Spencera773bd52006-08-04 18:18:08 +000020184freebsd* | dragonfly*)
20185 # DragonFly does not have aout. When/if they implement a new
20186 # versioning mechanism, adjust this.
20187 if test -x /usr/bin/objformat; then
20188 objformat=`/usr/bin/objformat`
20189 else
20190 case $host_os in
20191 freebsd[123]*) objformat=aout ;;
20192 *) objformat=elf ;;
20193 esac
20194 fi
John Criswell47fdd832003-07-14 16:52:07 +000020195 version_type=freebsd-$objformat
20196 case $version_type in
20197 freebsd-elf*)
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20199 need_version=no
20200 need_lib_prefix=no
20201 ;;
20202 freebsd-*)
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20204 need_version=yes
20205 ;;
20206 esac
20207 shlibpath_var=LD_LIBRARY_PATH
20208 case $host_os in
20209 freebsd2*)
20210 shlibpath_overrides_runpath=yes
20211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020212 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020213 shlibpath_overrides_runpath=yes
20214 hardcode_into_libs=yes
20215 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020218 shlibpath_overrides_runpath=no
20219 hardcode_into_libs=yes
20220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020221 freebsd*) # from 4.6 on
20222 shlibpath_overrides_runpath=yes
20223 hardcode_into_libs=yes
20224 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020225 esac
20226 ;;
20227
20228gnu*)
20229 version_type=linux
20230 need_lib_prefix=no
20231 need_version=no
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 hardcode_into_libs=yes
20236 ;;
20237
20238hpux9* | hpux10* | hpux11*)
20239 # Give a soname corresponding to the major version so that dld.sl refuses to
20240 # link against other versions.
20241 version_type=sunos
20242 need_lib_prefix=no
20243 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020244 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020245 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020246 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.so"
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 if test "X$HPUX_IA64_MODE" = X32; then
20254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20255 else
20256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20257 fi
20258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20259 ;;
20260 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020261 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020262 hardcode_into_libs=yes
20263 dynamic_linker="$host_os dld.sl"
20264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20270 ;;
20271 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020272 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020273 dynamic_linker="$host_os dld.sl"
20274 shlibpath_var=SHLIB_PATH
20275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20278 ;;
20279 esac
20280 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20281 postinstall_cmds='chmod 555 $lib'
20282 ;;
20283
Reid Spencera773bd52006-08-04 18:18:08 +000020284interix3*)
20285 version_type=linux
20286 need_lib_prefix=no
20287 need_version=no
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=no
20293 hardcode_into_libs=yes
20294 ;;
20295
John Criswell47fdd832003-07-14 16:52:07 +000020296irix5* | irix6* | nonstopux*)
20297 case $host_os in
20298 nonstopux*) version_type=nonstopux ;;
20299 *)
20300 if test "$lt_cv_prog_gnu_ld" = yes; then
20301 version_type=linux
20302 else
20303 version_type=irix
20304 fi ;;
20305 esac
20306 need_lib_prefix=no
20307 need_version=no
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20310 case $host_os in
20311 irix5* | nonstopux*)
20312 libsuff= shlibsuff=
20313 ;;
20314 *)
20315 case $LD in # libtool.m4 will add one of these switches to LD
20316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20317 libsuff= shlibsuff= libmagic=32-bit;;
20318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20319 libsuff=32 shlibsuff=N32 libmagic=N32;;
20320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20322 *) libsuff= shlibsuff= libmagic=never-match;;
20323 esac
20324 ;;
20325 esac
20326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20327 shlibpath_overrides_runpath=no
20328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20330 hardcode_into_libs=yes
20331 ;;
20332
20333# No shared lib support for Linux oldld, aout, or coff.
20334linux*oldld* | linux*aout* | linux*coff*)
20335 dynamic_linker=no
20336 ;;
20337
20338# This must be Linux ELF.
20339linux*)
20340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 # This implies no fast_install, which is unacceptable.
20349 # Some rework will be needed to allow for fast_install
20350 # before this can be enabled.
20351 hardcode_into_libs=yes
20352
Reid Spencer2706f8c2004-09-19 23:53:36 +000020353 # Append ld.so.conf contents to the search path
20354 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020355 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 +000020356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20357 fi
20358
John Criswell47fdd832003-07-14 16:52:07 +000020359 # We used to test for /lib/ld.so.1 and disable shared libraries on
20360 # powerpc, because MkLinux only supported shared libraries with the
20361 # GNU dynamic linker. Since this was broken with cross compilers,
20362 # most powerpc-linux boxes support dynamic linking these days and
20363 # people can always --disable-shared, the test was removed, and we
20364 # assume the GNU/Linux dynamic linker is in use.
20365 dynamic_linker='GNU/Linux ld.so'
20366 ;;
20367
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368knetbsd*-gnu)
20369 version_type=linux
20370 need_lib_prefix=no
20371 need_version=no
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 shlibpath_overrides_runpath=no
20376 hardcode_into_libs=yes
20377 dynamic_linker='GNU ld.so'
20378 ;;
20379
John Criswell47fdd832003-07-14 16:52:07 +000020380netbsd*)
20381 version_type=sunos
20382 need_lib_prefix=no
20383 need_version=no
20384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20387 dynamic_linker='NetBSD (a.out) ld.so'
20388 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020390 soname_spec='${libname}${release}${shared_ext}$major'
20391 dynamic_linker='NetBSD ld.elf_so'
20392 fi
20393 shlibpath_var=LD_LIBRARY_PATH
20394 shlibpath_overrides_runpath=yes
20395 hardcode_into_libs=yes
20396 ;;
20397
20398newsos6)
20399 version_type=linux
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=yes
20403 ;;
20404
Reid Spencer2706f8c2004-09-19 23:53:36 +000020405nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020406 version_type=linux
20407 need_lib_prefix=no
20408 need_version=no
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 ;;
20414
20415openbsd*)
20416 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020417 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020418 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20420 case $host_os in
20421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20422 *) need_version=no ;;
20423 esac
John Criswell47fdd832003-07-14 16:52:07 +000020424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20428 case $host_os in
20429 openbsd2.[89] | openbsd2.[89].*)
20430 shlibpath_overrides_runpath=no
20431 ;;
20432 *)
20433 shlibpath_overrides_runpath=yes
20434 ;;
20435 esac
20436 else
20437 shlibpath_overrides_runpath=yes
20438 fi
20439 ;;
20440
20441os2*)
20442 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020443 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020444 need_lib_prefix=no
20445 library_names_spec='$libname${shared_ext} $libname.a'
20446 dynamic_linker='OS/2 ld.exe'
20447 shlibpath_var=LIBPATH
20448 ;;
20449
20450osf3* | osf4* | osf5*)
20451 version_type=osf
20452 need_lib_prefix=no
20453 need_version=no
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20459 ;;
20460
John Criswell47fdd832003-07-14 16:52:07 +000020461solaris*)
20462 version_type=linux
20463 need_lib_prefix=no
20464 need_version=no
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 hardcode_into_libs=yes
20470 # ldd complains unless libraries are executable
20471 postinstall_cmds='chmod +x $lib'
20472 ;;
20473
20474sunos4*)
20475 version_type=sunos
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20478 shlibpath_var=LD_LIBRARY_PATH
20479 shlibpath_overrides_runpath=yes
20480 if test "$with_gnu_ld" = yes; then
20481 need_lib_prefix=no
20482 fi
20483 need_version=yes
20484 ;;
20485
Reid Spencera773bd52006-08-04 18:18:08 +000020486sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020487 version_type=linux
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 case $host_vendor in
20492 sni)
20493 shlibpath_overrides_runpath=no
20494 need_lib_prefix=no
20495 export_dynamic_flag_spec='${wl}-Blargedynsym'
20496 runpath_var=LD_RUN_PATH
20497 ;;
20498 siemens)
20499 need_lib_prefix=no
20500 ;;
20501 motorola)
20502 need_lib_prefix=no
20503 need_version=no
20504 shlibpath_overrides_runpath=no
20505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20506 ;;
20507 esac
20508 ;;
20509
20510sysv4*MP*)
20511 if test -d /usr/nec ;then
20512 version_type=linux
20513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20514 soname_spec='$libname${shared_ext}.$major'
20515 shlibpath_var=LD_LIBRARY_PATH
20516 fi
20517 ;;
20518
Reid Spencera773bd52006-08-04 18:18:08 +000020519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20520 version_type=freebsd-elf
20521 need_lib_prefix=no
20522 need_version=no
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 hardcode_into_libs=yes
20527 if test "$with_gnu_ld" = yes; then
20528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20529 shlibpath_overrides_runpath=no
20530 else
20531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20532 shlibpath_overrides_runpath=yes
20533 case $host_os in
20534 sco3.2v5*)
20535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20536 ;;
20537 esac
20538 fi
20539 sys_lib_dlsearch_path_spec='/usr/lib'
20540 ;;
20541
John Criswell47fdd832003-07-14 16:52:07 +000020542uts4*)
20543 version_type=linux
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545 soname_spec='${libname}${release}${shared_ext}$major'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 ;;
20548
20549*)
20550 dynamic_linker=no
20551 ;;
20552esac
Reid Spencera773bd52006-08-04 18:18:08 +000020553{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20554echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020555test "$dynamic_linker" = no && can_build_shared=no
20556
Reid Spencera773bd52006-08-04 18:18:08 +000020557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20558if test "$GCC" = yes; then
20559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20560fi
20561
20562{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20563echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020564hardcode_action_CXX=
20565if test -n "$hardcode_libdir_flag_spec_CXX" || \
20566 test -n "$runpath_var_CXX" || \
20567 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20568
20569 # We can hardcode non-existant directories.
20570 if test "$hardcode_direct_CXX" != no &&
20571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20572 # have to relink, otherwise we might link with an installed library
20573 # when we should be linking with a yet-to-be-installed one
20574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20575 test "$hardcode_minus_L_CXX" != no; then
20576 # Linking always hardcodes the temporary library directory.
20577 hardcode_action_CXX=relink
20578 else
20579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20580 hardcode_action_CXX=immediate
20581 fi
20582else
20583 # We cannot hardcode anything, or else we can only hardcode existing
20584 # directories.
20585 hardcode_action_CXX=unsupported
20586fi
Reid Spencera773bd52006-08-04 18:18:08 +000020587{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20588echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020589
20590if test "$hardcode_action_CXX" = relink; then
20591 # Fast installation is not supported
20592 enable_fast_install=no
20593elif test "$shlibpath_overrides_runpath" = yes ||
20594 test "$enable_shared" = no; then
20595 # Fast installation is not necessary
20596 enable_fast_install=needless
20597fi
20598
John Criswell47fdd832003-07-14 16:52:07 +000020599
20600# The else clause should only fire when bootstrapping the
20601# libtool distribution, otherwise you forgot to ship ltmain.sh
20602# with your package, and you will get complaints that there are
20603# no rules to generate ltmain.sh.
20604if test -f "$ltmain"; then
20605 # See if we are running on zsh, and set the options which allow our commands through
20606 # without removal of \ escapes.
20607 if test -n "${ZSH_VERSION+set}" ; then
20608 setopt NO_GLOB_SUBST
20609 fi
20610 # Now quote all the things that may contain metacharacters while being
20611 # careful not to overquote the AC_SUBSTed values. We take copies of the
20612 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020613 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 +000020614 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20617 deplibs_check_method reload_flag reload_cmds need_locks \
20618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20619 lt_cv_sys_global_symbol_to_c_name_address \
20620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20621 old_postinstall_cmds old_postuninstall_cmds \
20622 compiler_CXX \
20623 CC_CXX \
20624 LD_CXX \
20625 lt_prog_compiler_wl_CXX \
20626 lt_prog_compiler_pic_CXX \
20627 lt_prog_compiler_static_CXX \
20628 lt_prog_compiler_no_builtin_flag_CXX \
20629 export_dynamic_flag_spec_CXX \
20630 thread_safe_flag_spec_CXX \
20631 whole_archive_flag_spec_CXX \
20632 enable_shared_with_static_runtimes_CXX \
20633 old_archive_cmds_CXX \
20634 old_archive_from_new_cmds_CXX \
20635 predep_objects_CXX \
20636 postdep_objects_CXX \
20637 predeps_CXX \
20638 postdeps_CXX \
20639 compiler_lib_search_path_CXX \
20640 archive_cmds_CXX \
20641 archive_expsym_cmds_CXX \
20642 postinstall_cmds_CXX \
20643 postuninstall_cmds_CXX \
20644 old_archive_from_expsyms_cmds_CXX \
20645 allow_undefined_flag_CXX \
20646 no_undefined_flag_CXX \
20647 export_symbols_cmds_CXX \
20648 hardcode_libdir_flag_spec_CXX \
20649 hardcode_libdir_flag_spec_ld_CXX \
20650 hardcode_libdir_separator_CXX \
20651 hardcode_automatic_CXX \
20652 module_cmds_CXX \
20653 module_expsym_cmds_CXX \
20654 lt_cv_prog_compiler_c_o_CXX \
20655 exclude_expsyms_CXX \
20656 include_expsyms_CXX; do
20657
20658 case $var in
20659 old_archive_cmds_CXX | \
20660 old_archive_from_new_cmds_CXX | \
20661 archive_cmds_CXX | \
20662 archive_expsym_cmds_CXX | \
20663 module_cmds_CXX | \
20664 module_expsym_cmds_CXX | \
20665 old_archive_from_expsyms_cmds_CXX | \
20666 export_symbols_cmds_CXX | \
20667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20668 postinstall_cmds | postuninstall_cmds | \
20669 old_postinstall_cmds | old_postuninstall_cmds | \
20670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20671 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020672 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 +000020673 ;;
20674 *)
20675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20676 ;;
20677 esac
20678 done
20679
20680 case $lt_echo in
20681 *'\$0 --fallback-echo"')
20682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20683 ;;
20684 esac
20685
20686cfgfile="$ofile"
20687
20688 cat <<__EOF__ >> "$cfgfile"
20689# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20690
20691# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20692
20693# Shell to use when invoking shell scripts.
20694SHELL=$lt_SHELL
20695
20696# Whether or not to build shared libraries.
20697build_libtool_libs=$enable_shared
20698
20699# Whether or not to build static libraries.
20700build_old_libs=$enable_static
20701
20702# Whether or not to add -lc for building shared libraries.
20703build_libtool_need_lc=$archive_cmds_need_lc_CXX
20704
20705# Whether or not to disallow shared libs when runtime libs are static
20706allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20707
20708# Whether or not to optimize for fast installation.
20709fast_install=$enable_fast_install
20710
20711# The host system.
20712host_alias=$host_alias
20713host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020714host_os=$host_os
20715
20716# The build system.
20717build_alias=$build_alias
20718build=$build
20719build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020720
20721# An echo program that does not interpret backslashes.
20722echo=$lt_echo
20723
20724# The archiver.
20725AR=$lt_AR
20726AR_FLAGS=$lt_AR_FLAGS
20727
20728# A C compiler.
20729LTCC=$lt_LTCC
20730
Reid Spencera773bd52006-08-04 18:18:08 +000020731# LTCC compiler flags.
20732LTCFLAGS=$lt_LTCFLAGS
20733
John Criswell47fdd832003-07-14 16:52:07 +000020734# A language-specific compiler.
20735CC=$lt_compiler_CXX
20736
20737# Is the compiler the GNU C compiler?
20738with_gcc=$GCC_CXX
20739
20740# An ERE matcher.
20741EGREP=$lt_EGREP
20742
20743# The linker used to build libraries.
20744LD=$lt_LD_CXX
20745
20746# Whether we need hard or soft links.
20747LN_S=$lt_LN_S
20748
20749# A BSD-compatible nm program.
20750NM=$lt_NM
20751
20752# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020753STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020754
20755# Used to examine libraries when file_magic_cmd begins "file"
20756MAGIC_CMD=$MAGIC_CMD
20757
20758# Used on cygwin: DLL creation program.
20759DLLTOOL="$DLLTOOL"
20760
20761# Used on cygwin: object dumper.
20762OBJDUMP="$OBJDUMP"
20763
20764# Used on cygwin: assembler.
20765AS="$AS"
20766
20767# The name of the directory that contains temporary libtool files.
20768objdir=$objdir
20769
20770# How to create reloadable object files.
20771reload_flag=$lt_reload_flag
20772reload_cmds=$lt_reload_cmds
20773
20774# How to pass a linker flag through the compiler.
20775wl=$lt_lt_prog_compiler_wl_CXX
20776
20777# Object file suffix (normally "o").
20778objext="$ac_objext"
20779
20780# Old archive suffix (normally "a").
20781libext="$libext"
20782
20783# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020784shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020785
20786# Executable file suffix (normally "").
20787exeext="$exeext"
20788
20789# Additional compiler flags for building library objects.
20790pic_flag=$lt_lt_prog_compiler_pic_CXX
20791pic_mode=$pic_mode
20792
20793# What is the maximum length of a command?
20794max_cmd_len=$lt_cv_sys_max_cmd_len
20795
20796# Does compiler simultaneously support -c and -o options?
20797compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20798
Reid Spencera773bd52006-08-04 18:18:08 +000020799# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020800need_locks=$lt_need_locks
20801
20802# Do we need the lib prefix for modules?
20803need_lib_prefix=$need_lib_prefix
20804
20805# Do we need a version for libraries?
20806need_version=$need_version
20807
20808# Whether dlopen is supported.
20809dlopen_support=$enable_dlopen
20810
20811# Whether dlopen of programs is supported.
20812dlopen_self=$enable_dlopen_self
20813
20814# Whether dlopen of statically linked programs is supported.
20815dlopen_self_static=$enable_dlopen_self_static
20816
20817# Compiler flag to prevent dynamic linking.
20818link_static_flag=$lt_lt_prog_compiler_static_CXX
20819
20820# Compiler flag to turn off builtin functions.
20821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20822
20823# Compiler flag to allow reflexive dlopens.
20824export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20825
20826# Compiler flag to generate shared objects directly from archives.
20827whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20828
20829# Compiler flag to generate thread-safe objects.
20830thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20831
20832# Library versioning type.
20833version_type=$version_type
20834
20835# Format of library name prefix.
20836libname_spec=$lt_libname_spec
20837
20838# List of archive names. First name is the real one, the rest are links.
20839# The last name is the one that the linker finds with -lNAME.
20840library_names_spec=$lt_library_names_spec
20841
20842# The coded name of the library, if different from the real name.
20843soname_spec=$lt_soname_spec
20844
20845# Commands used to build and install an old-style archive.
20846RANLIB=$lt_RANLIB
20847old_archive_cmds=$lt_old_archive_cmds_CXX
20848old_postinstall_cmds=$lt_old_postinstall_cmds
20849old_postuninstall_cmds=$lt_old_postuninstall_cmds
20850
20851# Create an old-style archive from a shared archive.
20852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20853
20854# Create a temporary old-style archive to link instead of a shared archive.
20855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20856
20857# Commands used to build and install a shared archive.
20858archive_cmds=$lt_archive_cmds_CXX
20859archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20860postinstall_cmds=$lt_postinstall_cmds
20861postuninstall_cmds=$lt_postuninstall_cmds
20862
20863# Commands used to build a loadable module (assumed same as above if empty)
20864module_cmds=$lt_module_cmds_CXX
20865module_expsym_cmds=$lt_module_expsym_cmds_CXX
20866
20867# Commands to strip libraries.
20868old_striplib=$lt_old_striplib
20869striplib=$lt_striplib
20870
20871# Dependencies to place before the objects being linked to create a
20872# shared library.
20873predep_objects=$lt_predep_objects_CXX
20874
20875# Dependencies to place after the objects being linked to create a
20876# shared library.
20877postdep_objects=$lt_postdep_objects_CXX
20878
20879# Dependencies to place before the objects being linked to create a
20880# shared library.
20881predeps=$lt_predeps_CXX
20882
20883# Dependencies to place after the objects being linked to create a
20884# shared library.
20885postdeps=$lt_postdeps_CXX
20886
20887# The library search path used internally by the compiler when linking
20888# a shared library.
20889compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20890
20891# Method to check whether dependent libraries are shared objects.
20892deplibs_check_method=$lt_deplibs_check_method
20893
20894# Command to use when deplibs_check_method == file_magic.
20895file_magic_cmd=$lt_file_magic_cmd
20896
20897# Flag that allows shared libraries with undefined symbols to be built.
20898allow_undefined_flag=$lt_allow_undefined_flag_CXX
20899
20900# Flag that forces no undefined symbols.
20901no_undefined_flag=$lt_no_undefined_flag_CXX
20902
20903# Commands used to finish a libtool library installation in a directory.
20904finish_cmds=$lt_finish_cmds
20905
20906# Same as above, but a single script fragment to be evaled but not shown.
20907finish_eval=$lt_finish_eval
20908
20909# Take the output of nm and produce a listing of raw symbols and C names.
20910global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20911
20912# Transform the output of nm in a proper C declaration
20913global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20914
20915# Transform the output of nm in a C name address pair
20916global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20917
20918# This is the shared library runtime path variable.
20919runpath_var=$runpath_var
20920
20921# This is the shared library path variable.
20922shlibpath_var=$shlibpath_var
20923
20924# Is shlibpath searched before the hard-coded library search path?
20925shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20926
20927# How to hardcode a shared library path into an executable.
20928hardcode_action=$hardcode_action_CXX
20929
20930# Whether we should hardcode library paths into libraries.
20931hardcode_into_libs=$hardcode_into_libs
20932
20933# Flag to hardcode \$libdir into a binary during linking.
20934# This must work even if \$libdir does not exist.
20935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20936
20937# If ld is used when linking, flag to hardcode \$libdir into
20938# a binary during linking. This must work even if \$libdir does
20939# not exist.
20940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20941
20942# Whether we need a single -rpath flag with a separated argument.
20943hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20944
20945# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20946# resulting binary.
20947hardcode_direct=$hardcode_direct_CXX
20948
20949# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20950# resulting binary.
20951hardcode_minus_L=$hardcode_minus_L_CXX
20952
20953# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20954# the resulting binary.
20955hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20956
20957# Set to yes if building a shared library automatically hardcodes DIR into the library
20958# and all subsequent libraries and executables linked against it.
20959hardcode_automatic=$hardcode_automatic_CXX
20960
20961# Variables whose values should be saved in libtool wrapper scripts and
20962# restored at relink time.
20963variables_saved_for_relink="$variables_saved_for_relink"
20964
20965# Whether libtool must link a program against all its dependency libraries.
20966link_all_deplibs=$link_all_deplibs_CXX
20967
20968# Compile-time system search path for libraries
20969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20970
20971# Run-time system search path for libraries
20972sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20973
20974# Fix the shell variable \$srcfile for the compiler.
20975fix_srcfile_path="$fix_srcfile_path_CXX"
20976
20977# Set to yes if exported symbols are required.
20978always_export_symbols=$always_export_symbols_CXX
20979
20980# The commands to list exported symbols.
20981export_symbols_cmds=$lt_export_symbols_cmds_CXX
20982
20983# The commands to extract the exported symbol list from a shared archive.
20984extract_expsyms_cmds=$lt_extract_expsyms_cmds
20985
20986# Symbols that should not be listed in the preloaded symbols.
20987exclude_expsyms=$lt_exclude_expsyms_CXX
20988
20989# Symbols that must always be exported.
20990include_expsyms=$lt_include_expsyms_CXX
20991
20992# ### END LIBTOOL TAG CONFIG: $tagname
20993
20994__EOF__
20995
20996
20997else
20998 # If there is no Makefile yet, we rely on a make rule to execute
20999 # `config.status --recheck' to rerun these tests and create the
21000 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21002 if test -f "$ltmain_in"; then
21003 test -f Makefile && make "$ltmain"
21004 fi
John Criswell47fdd832003-07-14 16:52:07 +000021005fi
21006
21007
21008ac_ext=c
21009ac_cpp='$CPP $CPPFLAGS'
21010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014CC=$lt_save_CC
21015LDCXX=$LD
21016LD=$lt_save_LD
21017GCC=$lt_save_GCC
21018with_gnu_ldcxx=$with_gnu_ld
21019with_gnu_ld=$lt_save_with_gnu_ld
21020lt_cv_path_LDCXX=$lt_cv_path_LD
21021lt_cv_path_LD=$lt_save_path_LD
21022lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21023lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21024
21025 else
21026 tagname=""
21027 fi
21028 ;;
21029
21030 F77)
21031 if test -n "$F77" && test "X$F77" != "Xno"; then
21032
21033ac_ext=f
21034ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21035ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21037
21038
21039archive_cmds_need_lc_F77=no
21040allow_undefined_flag_F77=
21041always_export_symbols_F77=no
21042archive_expsym_cmds_F77=
21043export_dynamic_flag_spec_F77=
21044hardcode_direct_F77=no
21045hardcode_libdir_flag_spec_F77=
21046hardcode_libdir_flag_spec_ld_F77=
21047hardcode_libdir_separator_F77=
21048hardcode_minus_L_F77=no
21049hardcode_automatic_F77=no
21050module_cmds_F77=
21051module_expsym_cmds_F77=
21052link_all_deplibs_F77=unknown
21053old_archive_cmds_F77=$old_archive_cmds
21054no_undefined_flag_F77=
21055whole_archive_flag_spec_F77=
21056enable_shared_with_static_runtimes_F77=no
21057
21058# Source file extension for f77 test sources.
21059ac_ext=f
21060
21061# Object file extension for compiled f77 test sources.
21062objext=o
21063objext_F77=$objext
21064
21065# Code to be used in simple compile tests
21066lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21067
21068# Code to be used in simple link tests
21069lt_simple_link_test_code=" program t\n end\n"
21070
21071# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21072
21073# If no C compiler was specified, use CC.
21074LTCC=${LTCC-"$CC"}
21075
Reid Spencera773bd52006-08-04 18:18:08 +000021076# If no C compiler flags were specified, use CFLAGS.
21077LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21078
John Criswell47fdd832003-07-14 16:52:07 +000021079# Allow CC to be a program name with arguments.
21080compiler=$CC
21081
21082
Reid Spencera773bd52006-08-04 18:18:08 +000021083# save warnings/boilerplate of simple test code
21084ac_outfile=conftest.$ac_objext
21085printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21087_lt_compiler_boilerplate=`cat conftest.err`
21088$rm conftest*
21089
21090ac_outfile=conftest.$ac_objext
21091printf "$lt_simple_link_test_code" >conftest.$ac_ext
21092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21093_lt_linker_boilerplate=`cat conftest.err`
21094$rm conftest*
21095
21096
John Criswell47fdd832003-07-14 16:52:07 +000021097# Allow CC to be a program name with arguments.
21098lt_save_CC="$CC"
21099CC=${F77-"f77"}
21100compiler=$CC
21101compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021102for cc_temp in $compiler""; do
21103 case $cc_temp in
21104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21106 \-*) ;;
21107 *) break;;
21108 esac
21109done
21110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021111
John Criswell47fdd832003-07-14 16:52:07 +000021112
Reid Spencera773bd52006-08-04 18:18:08 +000021113{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21114echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21115{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21116echo "${ECHO_T}$can_build_shared" >&6; }
21117
21118{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21119echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021120test "$can_build_shared" = "no" && enable_shared=no
21121
21122# On AIX, shared libraries and static libraries use the same namespace, and
21123# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021124case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021125aix3*)
21126 test "$enable_shared" = yes && enable_static=no
21127 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021129 postinstall_cmds='$RANLIB $lib'
21130 fi
21131 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021132aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21134 test "$enable_shared" = yes && enable_static=no
21135 fi
John Criswell47fdd832003-07-14 16:52:07 +000021136 ;;
21137esac
Reid Spencera773bd52006-08-04 18:18:08 +000021138{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21139echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021140
Reid Spencera773bd52006-08-04 18:18:08 +000021141{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21142echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021143# Make sure either enable_shared or enable_static is yes.
21144test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021145{ echo "$as_me:$LINENO: result: $enable_static" >&5
21146echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021147
21148GCC_F77="$G77"
21149LD_F77="$LD"
21150
21151lt_prog_compiler_wl_F77=
21152lt_prog_compiler_pic_F77=
21153lt_prog_compiler_static_F77=
21154
Reid Spencera773bd52006-08-04 18:18:08 +000021155{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021157
21158 if test "$GCC" = yes; then
21159 lt_prog_compiler_wl_F77='-Wl,'
21160 lt_prog_compiler_static_F77='-static'
21161
21162 case $host_os in
21163 aix*)
21164 # All AIX code is PIC.
21165 if test "$host_cpu" = ia64; then
21166 # AIX 5 now supports IA64 processor
21167 lt_prog_compiler_static_F77='-Bstatic'
21168 fi
21169 ;;
21170
21171 amigaos*)
21172 # FIXME: we need at least 68020 code to build shared libraries, but
21173 # adding the `-m68020' flag to GCC prevents building anything better,
21174 # like `-m68040'.
21175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21176 ;;
21177
21178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21179 # PIC is the default for these OSes.
21180 ;;
21181
21182 mingw* | pw32* | os2*)
21183 # This hack is so that the source file can tell whether it is being
21184 # built for inclusion in a dll (and should export symbols for example).
21185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21186 ;;
21187
21188 darwin* | rhapsody*)
21189 # PIC is the default on this platform
21190 # Common symbols not allowed in MH_DYLIB files
21191 lt_prog_compiler_pic_F77='-fno-common'
21192 ;;
21193
Reid Spencera773bd52006-08-04 18:18:08 +000021194 interix3*)
21195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21196 # Instead, we relocate shared libraries at runtime.
21197 ;;
21198
John Criswell47fdd832003-07-14 16:52:07 +000021199 msdosdjgpp*)
21200 # Just because we use GCC doesn't mean we suddenly get shared libraries
21201 # on systems that don't support them.
21202 lt_prog_compiler_can_build_shared_F77=no
21203 enable_shared=no
21204 ;;
21205
21206 sysv4*MP*)
21207 if test -d /usr/nec; then
21208 lt_prog_compiler_pic_F77=-Kconform_pic
21209 fi
21210 ;;
21211
21212 hpux*)
21213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21214 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021215 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021216 hppa*64*|ia64*)
21217 # +Z the default
21218 ;;
21219 *)
21220 lt_prog_compiler_pic_F77='-fPIC'
21221 ;;
21222 esac
21223 ;;
21224
21225 *)
21226 lt_prog_compiler_pic_F77='-fPIC'
21227 ;;
21228 esac
21229 else
21230 # PORTME Check for flag to pass linker flags through the system compiler.
21231 case $host_os in
21232 aix*)
21233 lt_prog_compiler_wl_F77='-Wl,'
21234 if test "$host_cpu" = ia64; then
21235 # AIX 5 now supports IA64 processor
21236 lt_prog_compiler_static_F77='-Bstatic'
21237 else
21238 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21239 fi
21240 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021241 darwin*)
21242 # PIC is the default on this platform
21243 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021244 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021245 xlc*)
21246 lt_prog_compiler_pic_F77='-qnocommon'
21247 lt_prog_compiler_wl_F77='-Wl,'
21248 ;;
21249 esac
21250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021251
21252 mingw* | pw32* | os2*)
21253 # This hack is so that the source file can tell whether it is being
21254 # built for inclusion in a dll (and should export symbols for example).
21255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21256 ;;
21257
21258 hpux9* | hpux10* | hpux11*)
21259 lt_prog_compiler_wl_F77='-Wl,'
21260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21261 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021262 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021263 hppa*64*|ia64*)
21264 # +Z the default
21265 ;;
21266 *)
21267 lt_prog_compiler_pic_F77='+Z'
21268 ;;
21269 esac
21270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21272 ;;
21273
21274 irix5* | irix6* | nonstopux*)
21275 lt_prog_compiler_wl_F77='-Wl,'
21276 # PIC (with -KPIC) is the default.
21277 lt_prog_compiler_static_F77='-non_shared'
21278 ;;
21279
21280 newsos6)
21281 lt_prog_compiler_pic_F77='-KPIC'
21282 lt_prog_compiler_static_F77='-Bstatic'
21283 ;;
21284
21285 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021286 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021287 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021288 lt_prog_compiler_wl_F77='-Wl,'
21289 lt_prog_compiler_pic_F77='-KPIC'
21290 lt_prog_compiler_static_F77='-static'
21291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021292 pgcc* | pgf77* | pgf90* | pgf95*)
21293 # Portland Group compilers (*not* the Pentium gcc compiler,
21294 # which looks to be a dead project)
21295 lt_prog_compiler_wl_F77='-Wl,'
21296 lt_prog_compiler_pic_F77='-fpic'
21297 lt_prog_compiler_static_F77='-Bstatic'
21298 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021299 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021300 lt_prog_compiler_wl_F77='-Wl,'
21301 # All Alpha code is PIC.
21302 lt_prog_compiler_static_F77='-non_shared'
21303 ;;
21304 esac
21305 ;;
21306
21307 osf3* | osf4* | osf5*)
21308 lt_prog_compiler_wl_F77='-Wl,'
21309 # All OSF/1 code is PIC.
21310 lt_prog_compiler_static_F77='-non_shared'
21311 ;;
21312
John Criswell47fdd832003-07-14 16:52:07 +000021313 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021314 lt_prog_compiler_pic_F77='-KPIC'
21315 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021316 case $cc_basename in
21317 f77* | f90* | f95*)
21318 lt_prog_compiler_wl_F77='-Qoption ld ';;
21319 *)
21320 lt_prog_compiler_wl_F77='-Wl,';;
21321 esac
John Criswell47fdd832003-07-14 16:52:07 +000021322 ;;
21323
21324 sunos4*)
21325 lt_prog_compiler_wl_F77='-Qoption ld '
21326 lt_prog_compiler_pic_F77='-PIC'
21327 lt_prog_compiler_static_F77='-Bstatic'
21328 ;;
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021331 lt_prog_compiler_wl_F77='-Wl,'
21332 lt_prog_compiler_pic_F77='-KPIC'
21333 lt_prog_compiler_static_F77='-Bstatic'
21334 ;;
21335
21336 sysv4*MP*)
21337 if test -d /usr/nec ;then
21338 lt_prog_compiler_pic_F77='-Kconform_pic'
21339 lt_prog_compiler_static_F77='-Bstatic'
21340 fi
21341 ;;
21342
Reid Spencera773bd52006-08-04 18:18:08 +000021343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 lt_prog_compiler_pic_F77='-KPIC'
21346 lt_prog_compiler_static_F77='-Bstatic'
21347 ;;
21348
21349 unicos*)
21350 lt_prog_compiler_wl_F77='-Wl,'
21351 lt_prog_compiler_can_build_shared_F77=no
21352 ;;
21353
John Criswell47fdd832003-07-14 16:52:07 +000021354 uts4*)
21355 lt_prog_compiler_pic_F77='-pic'
21356 lt_prog_compiler_static_F77='-Bstatic'
21357 ;;
21358
21359 *)
21360 lt_prog_compiler_can_build_shared_F77=no
21361 ;;
21362 esac
21363 fi
21364
Reid Spencera773bd52006-08-04 18:18:08 +000021365{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21366echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021367
21368#
21369# Check to make sure the PIC flag actually works.
21370#
21371if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021372
Reid Spencera773bd52006-08-04 18:18:08 +000021373{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21374echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021375if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21377else
21378 lt_prog_compiler_pic_works_F77=no
21379 ac_outfile=conftest.$ac_objext
21380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21382 # Insert the option either (1) after the last *FLAGS variable, or
21383 # (2) before a word containing "conftest.", or (3) at the end.
21384 # Note that $ac_compile itself does not contain backslashes and begins
21385 # with a dollar sign (not a hyphen), so the echo should work correctly.
21386 # The option is referenced via a variable to avoid confusing sed.
21387 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21390 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000021391 (eval echo "\"\$as_me:21391: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021392 (eval "$lt_compile" 2>conftest.err)
21393 ac_status=$?
21394 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021395 echo "$as_me:21395: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021396 if (exit $ac_status) && test -s "$ac_outfile"; then
21397 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021398 # So say no if there are warnings other than the usual output.
21399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021402 lt_prog_compiler_pic_works_F77=yes
21403 fi
21404 fi
21405 $rm conftest*
21406
21407fi
Reid Spencera773bd52006-08-04 18:18:08 +000021408{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21409echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021410
21411if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21412 case $lt_prog_compiler_pic_F77 in
21413 "" | " "*) ;;
21414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21415 esac
21416else
21417 lt_prog_compiler_pic_F77=
21418 lt_prog_compiler_can_build_shared_F77=no
21419fi
21420
21421fi
Reid Spencera773bd52006-08-04 18:18:08 +000021422case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021423 # For platforms which do not support PIC, -DPIC is meaningless:
21424 *djgpp*)
21425 lt_prog_compiler_pic_F77=
21426 ;;
21427 *)
21428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21429 ;;
21430esac
21431
Reid Spencera773bd52006-08-04 18:18:08 +000021432#
21433# Check to make sure the static flag actually works.
21434#
21435wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21436{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21437echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21438if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21440else
21441 lt_prog_compiler_static_works_F77=no
21442 save_LDFLAGS="$LDFLAGS"
21443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21446 # The linker can only warn and ignore the option if not recognized
21447 # So say no if there are warnings
21448 if test -s conftest.err; then
21449 # Append any errors to the config.log.
21450 cat conftest.err 1>&5
21451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21453 if diff conftest.exp conftest.er2 >/dev/null; then
21454 lt_prog_compiler_static_works_F77=yes
21455 fi
21456 else
21457 lt_prog_compiler_static_works_F77=yes
21458 fi
21459 fi
21460 $rm conftest*
21461 LDFLAGS="$save_LDFLAGS"
21462
21463fi
21464{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21465echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21466
21467if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21468 :
21469else
21470 lt_prog_compiler_static_F77=
21471fi
21472
21473
21474{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21475echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021476if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479 lt_cv_prog_compiler_c_o_F77=no
21480 $rm -r conftest 2>/dev/null
21481 mkdir conftest
21482 cd conftest
21483 mkdir out
21484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21485
John Criswell47fdd832003-07-14 16:52:07 +000021486 lt_compiler_flag="-o out/conftest2.$ac_objext"
21487 # Insert the option either (1) after the last *FLAGS variable, or
21488 # (2) before a word containing "conftest.", or (3) at the end.
21489 # Note that $ac_compile itself does not contain backslashes and begins
21490 # with a dollar sign (not a hyphen), so the echo should work correctly.
21491 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21494 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000021495 (eval echo "\"\$as_me:21495: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021496 (eval "$lt_compile" 2>out/conftest.err)
21497 ac_status=$?
21498 cat out/conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021499 echo "$as_me:21499: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21501 then
21502 # The compiler can only warn and ignore the option if not recognized
21503 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021507 lt_cv_prog_compiler_c_o_F77=yes
21508 fi
21509 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021510 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021511 $rm conftest*
21512 # SGI C++ compiler will create directory out/ii_files/ for
21513 # template instantiation
21514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21515 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021516 cd ..
21517 rmdir conftest
21518 $rm conftest*
21519
21520fi
Reid Spencera773bd52006-08-04 18:18:08 +000021521{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21522echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021523
21524
21525hard_links="nottested"
21526if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21527 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021528 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21529echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021530 hard_links=yes
21531 $rm conftest*
21532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21533 touch conftest.a
21534 ln conftest.a conftest.b 2>&5 || hard_links=no
21535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021536 { echo "$as_me:$LINENO: result: $hard_links" >&5
21537echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021538 if test "$hard_links" = no; then
21539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21540echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21541 need_locks=warn
21542 fi
21543else
21544 need_locks=no
21545fi
21546
Reid Spencera773bd52006-08-04 18:18:08 +000021547{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21548echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021549
21550 runpath_var=
21551 allow_undefined_flag_F77=
21552 enable_shared_with_static_runtimes_F77=no
21553 archive_cmds_F77=
21554 archive_expsym_cmds_F77=
21555 old_archive_From_new_cmds_F77=
21556 old_archive_from_expsyms_cmds_F77=
21557 export_dynamic_flag_spec_F77=
21558 whole_archive_flag_spec_F77=
21559 thread_safe_flag_spec_F77=
21560 hardcode_libdir_flag_spec_F77=
21561 hardcode_libdir_flag_spec_ld_F77=
21562 hardcode_libdir_separator_F77=
21563 hardcode_direct_F77=no
21564 hardcode_minus_L_F77=no
21565 hardcode_shlibpath_var_F77=unsupported
21566 link_all_deplibs_F77=unknown
21567 hardcode_automatic_F77=no
21568 module_cmds_F77=
21569 module_expsym_cmds_F77=
21570 always_export_symbols_F77=no
21571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21572 # include_expsyms should be a list of space-separated symbols to be *always*
21573 # included in the symbol list
21574 include_expsyms_F77=
21575 # exclude_expsyms can be an extended regexp of symbols to exclude
21576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21578 # as well as any symbol that contains `d'.
21579 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21581 # platforms (ab)use it in PIC code, but their linkers get confused if
21582 # the symbol is explicitly referenced. Since portable code cannot
21583 # rely on this symbol name, it's probably fine to never include it in
21584 # preloaded symbol tables.
21585 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021586 # Just being paranoid about ensuring that cc_basename is set.
21587 for cc_temp in $compiler""; do
21588 case $cc_temp in
21589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21591 \-*) ;;
21592 *) break;;
21593 esac
21594done
21595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021596
21597 case $host_os in
21598 cygwin* | mingw* | pw32*)
21599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21600 # When not using gcc, we currently assume that we are using
21601 # Microsoft Visual C++.
21602 if test "$GCC" != yes; then
21603 with_gnu_ld=no
21604 fi
21605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021606 interix*)
21607 # we just hope/assume this is gcc and not c89 (= MSVC++)
21608 with_gnu_ld=yes
21609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021610 openbsd*)
21611 with_gnu_ld=no
21612 ;;
21613 esac
21614
21615 ld_shlibs_F77=yes
21616 if test "$with_gnu_ld" = yes; then
21617 # If archive_cmds runs LD, not CC, wlarc should be empty
21618 wlarc='${wl}'
21619
Reid Spencera773bd52006-08-04 18:18:08 +000021620 # Set some defaults for GNU ld with shared library support. These
21621 # are reset later if shared libraries are not supported. Putting them
21622 # here allows them to be overridden if necessary.
21623 runpath_var=LD_RUN_PATH
21624 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21625 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21626 # ancient GNU ld didn't support --whole-archive et. al.
21627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21628 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21629 else
21630 whole_archive_flag_spec_F77=
21631 fi
21632 supports_anon_versioning=no
21633 case `$LD -v 2>/dev/null` in
21634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21637 *\ 2.11.*) ;; # other 2.11 versions
21638 *) supports_anon_versioning=yes ;;
21639 esac
21640
John Criswell47fdd832003-07-14 16:52:07 +000021641 # See if GNU ld supports shared libraries.
21642 case $host_os in
21643 aix3* | aix4* | aix5*)
21644 # On AIX/PPC, the GNU linker is very broken
21645 if test "$host_cpu" != ia64; then
21646 ld_shlibs_F77=no
21647 cat <<EOF 1>&2
21648
21649*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21650*** to be unable to reliably create shared libraries on AIX.
21651*** Therefore, libtool is disabling shared libraries support. If you
21652*** really care for shared libraries, you may want to modify your PATH
21653*** so that a non-GNU linker is found, and then restart.
21654
21655EOF
21656 fi
21657 ;;
21658
21659 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021660 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 +000021661 hardcode_libdir_flag_spec_F77='-L$libdir'
21662 hardcode_minus_L_F77=yes
21663
21664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21665 # that the semantics of dynamic libraries on AmigaOS, at least up
21666 # to version 4, is to share data among multiple programs linked
21667 # with the same dynamic library. Since this doesn't match the
21668 # behavior of shared libraries on other platforms, we can't use
21669 # them.
21670 ld_shlibs_F77=no
21671 ;;
21672
21673 beos*)
21674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21675 allow_undefined_flag_F77=unsupported
21676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21677 # support --undefined. This deserves some investigation. FIXME
21678 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21679 else
21680 ld_shlibs_F77=no
21681 fi
21682 ;;
21683
21684 cygwin* | mingw* | pw32*)
21685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21686 # as there is no search path for DLLs.
21687 hardcode_libdir_flag_spec_F77='-L$libdir'
21688 allow_undefined_flag_F77=unsupported
21689 always_export_symbols_F77=no
21690 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021691 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 +000021692
21693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021694 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 +000021695 # If the export-symbols file already is a .def file (1st line
21696 # is EXPORTS), use it as is; otherwise, prepend...
21697 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21698 cp $export_symbols $output_objdir/$soname.def;
21699 else
21700 echo EXPORTS > $output_objdir/$soname.def;
21701 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021702 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021703 $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 +000021704 else
Reid Spencera773bd52006-08-04 18:18:08 +000021705 ld_shlibs_F77=no
21706 fi
21707 ;;
21708
21709 interix3*)
21710 hardcode_direct_F77=no
21711 hardcode_shlibpath_var_F77=no
21712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21713 export_dynamic_flag_spec_F77='${wl}-E'
21714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21715 # Instead, shared libraries are loaded at an image base (0x10000000 by
21716 # default) and relocated if they conflict, which is a slow very memory
21717 # consuming and fragmenting process. To avoid this, we pick a random,
21718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21720 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'
21721 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'
21722 ;;
21723
21724 linux*)
21725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21726 tmp_addflag=
21727 case $cc_basename,$host_cpu in
21728 pgcc*) # Portland Group C compiler
21729 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'
21730 tmp_addflag=' $pic_flag'
21731 ;;
21732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21733 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'
21734 tmp_addflag=' $pic_flag -Mnomain' ;;
21735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21736 tmp_addflag=' -i_dynamic' ;;
21737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21738 tmp_addflag=' -i_dynamic -nofor_main' ;;
21739 ifc* | ifort*) # Intel Fortran compiler
21740 tmp_addflag=' -nofor_main' ;;
21741 esac
21742 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743
21744 if test $supports_anon_versioning = yes; then
21745 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21747 $echo "local: *; };" >> $output_objdir/$libname.ver~
21748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21749 fi
21750 else
21751 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021752 fi
21753 ;;
21754
21755 netbsd*)
21756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21757 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21758 wlarc=
21759 else
21760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21762 fi
21763 ;;
21764
Reid Spencera773bd52006-08-04 18:18:08 +000021765 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21767 ld_shlibs_F77=no
21768 cat <<EOF 1>&2
21769
21770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21771*** create shared libraries on Solaris systems. Therefore, libtool
21772*** is disabling shared libraries support. We urge you to upgrade GNU
21773*** binutils to release 2.9.1 or newer. Another option is to modify
21774*** your PATH or compiler configuration so that the native linker is
21775*** used, and then restart.
21776
21777EOF
21778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21779 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21780 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21781 else
21782 ld_shlibs_F77=no
21783 fi
21784 ;;
21785
Reid Spencera773bd52006-08-04 18:18:08 +000021786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21787 case `$LD -v 2>&1` in
21788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21789 ld_shlibs_F77=no
21790 cat <<_LT_EOF 1>&2
21791
21792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21793*** reliably create shared libraries on SCO systems. Therefore, libtool
21794*** is disabling shared libraries support. We urge you to upgrade GNU
21795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21796*** your PATH or compiler configuration so that the native linker is
21797*** used, and then restart.
21798
21799_LT_EOF
21800 ;;
21801 *)
21802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21804 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21805 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21806 else
21807 ld_shlibs_F77=no
21808 fi
21809 ;;
21810 esac
21811 ;;
21812
John Criswell47fdd832003-07-14 16:52:07 +000021813 sunos4*)
21814 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21815 wlarc=
21816 hardcode_direct_F77=yes
21817 hardcode_shlibpath_var_F77=no
21818 ;;
21819
21820 *)
21821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21823 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21824 else
21825 ld_shlibs_F77=no
21826 fi
21827 ;;
21828 esac
21829
Reid Spencera773bd52006-08-04 18:18:08 +000021830 if test "$ld_shlibs_F77" = no; then
21831 runpath_var=
21832 hardcode_libdir_flag_spec_F77=
21833 export_dynamic_flag_spec_F77=
21834 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021835 fi
21836 else
21837 # PORTME fill in a description of your system's linker (not GNU ld)
21838 case $host_os in
21839 aix3*)
21840 allow_undefined_flag_F77=unsupported
21841 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021842 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 +000021843 # Note: this linker hardcodes the directories in LIBPATH if there
21844 # are no directories specified by -L.
21845 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021847 # Neither direct hardcoding nor static linking is supported with a
21848 # broken collect2.
21849 hardcode_direct_F77=unsupported
21850 fi
21851 ;;
21852
21853 aix4* | aix5*)
21854 if test "$host_cpu" = ia64; then
21855 # On IA64, the linker does run time linking by default, so we don't
21856 # have to do anything special.
21857 aix_use_runtimelinking=no
21858 exp_sym_flag='-Bexport'
21859 no_entry_flag=""
21860 else
21861 # If we're using GNU nm, then we don't want the "-C" option.
21862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21864 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'
21865 else
21866 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'
21867 fi
21868 aix_use_runtimelinking=no
21869
21870 # Test if we are trying to use run time linking or normal
21871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21872 # need to do runtime linking.
21873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21874 for ld_flag in $LDFLAGS; do
21875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21876 aix_use_runtimelinking=yes
21877 break
21878 fi
21879 done
Reid Spencera773bd52006-08-04 18:18:08 +000021880 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021881 esac
21882
21883 exp_sym_flag='-bexport'
21884 no_entry_flag='-bnoentry'
21885 fi
21886
21887 # When large executables or shared objects are built, AIX ld can
21888 # have problems creating the table of contents. If linking a library
21889 # or program results in "error TOC overflow" add -mminimal-toc to
21890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21892
21893 archive_cmds_F77=''
21894 hardcode_direct_F77=yes
21895 hardcode_libdir_separator_F77=':'
21896 link_all_deplibs_F77=yes
21897
21898 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021899 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021900 # We only want to do this on AIX 4.2 and lower, the check
21901 # below for broken collect2 doesn't work under 4.3+
21902 collect2name=`${CC} -print-prog-name=collect2`
21903 if test -f "$collect2name" && \
21904 strings "$collect2name" | grep resolve_lib_name >/dev/null
21905 then
21906 # We have reworked collect2
21907 hardcode_direct_F77=yes
21908 else
21909 # We have old collect2
21910 hardcode_direct_F77=unsupported
21911 # It fails to find uninstalled libraries when the uninstalled
21912 # path is not listed in the libpath. Setting hardcode_minus_L
21913 # to unsupported forces relinking
21914 hardcode_minus_L_F77=yes
21915 hardcode_libdir_flag_spec_F77='-L$libdir'
21916 hardcode_libdir_separator_F77=
21917 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021918 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021919 esac
21920 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021921 if test "$aix_use_runtimelinking" = yes; then
21922 shared_flag="$shared_flag "'${wl}-G'
21923 fi
John Criswell47fdd832003-07-14 16:52:07 +000021924 else
21925 # not using gcc
21926 if test "$host_cpu" = ia64; then
21927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21928 # chokes on -Wl,-G. The following line is correct:
21929 shared_flag='-G'
21930 else
Reid Spencera773bd52006-08-04 18:18:08 +000021931 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021932 shared_flag='${wl}-G'
21933 else
21934 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021935 fi
John Criswell47fdd832003-07-14 16:52:07 +000021936 fi
21937 fi
21938
21939 # It seems that -bexpall does not export symbols beginning with
21940 # underscore (_), so it is better to generate a list of symbols to export.
21941 always_export_symbols_F77=yes
21942 if test "$aix_use_runtimelinking" = yes; then
21943 # Warning - without using the other runtime loading flags (-brtl),
21944 # -berok will link without error, but may produce a broken library.
21945 allow_undefined_flag_F77='-berok'
21946 # Determine the default libpath from the value encoded in an empty executable.
21947 cat >conftest.$ac_ext <<_ACEOF
21948 program main
21949
21950 end
21951_ACEOF
21952rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021953if { (ac_try="$ac_link"
21954case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21957esac
21958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21967 { (case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970esac
21971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_try") 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; } &&
21976 { ac_try='test -s conftest$ac_exeext'
21977 { (case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980esac
21981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_try") 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021986
21987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21988}'`
21989# Check for a 64-bit object if we didn't find anything.
21990if 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; }
21991}'`; fi
21992else
21993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021994sed 's/^/| /' conftest.$ac_ext >&5
21995
Reid Spencera773bd52006-08-04 18:18:08 +000021996
John Criswell47fdd832003-07-14 16:52:07 +000021997fi
Reid Spencera773bd52006-08-04 18:18:08 +000021998
Bill Wendlingebcceee2009-04-18 11:20:33 +000021999rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022000 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022001if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22002
22003 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022004 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 +000022005 else
22006 if test "$host_cpu" = ia64; then
22007 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22008 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022009 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 +000022010 else
22011 # Determine the default libpath from the value encoded in an empty executable.
22012 cat >conftest.$ac_ext <<_ACEOF
22013 program main
22014
22015 end
22016_ACEOF
22017rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022018if { (ac_try="$ac_link"
22019case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22022esac
22023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022026 grep -v '^ *+' conftest.er1 >conftest.err
22027 rm -f conftest.er1
22028 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022030 (exit $ac_status); } &&
22031 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22032 { (case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22035esac
22036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_try") 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045esac
22046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022051
22052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22053}'`
22054# Check for a 64-bit object if we didn't find anything.
22055if 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; }
22056}'`; fi
22057else
22058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022059sed 's/^/| /' conftest.$ac_ext >&5
22060
Reid Spencera773bd52006-08-04 18:18:08 +000022061
John Criswell47fdd832003-07-14 16:52:07 +000022062fi
Reid Spencera773bd52006-08-04 18:18:08 +000022063
Bill Wendlingebcceee2009-04-18 11:20:33 +000022064rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022065 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22067
22068 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22069 # Warning - without using the other run time loading flags,
22070 # -berok will link without error, but may produce a broken library.
22071 no_undefined_flag_F77=' ${wl}-bernotok'
22072 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022073 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022074 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022075 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022076 # This is similar to how AIX traditionally builds its shared libraries.
22077 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 +000022078 fi
22079 fi
22080 ;;
22081
22082 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022083 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 +000022084 hardcode_libdir_flag_spec_F77='-L$libdir'
22085 hardcode_minus_L_F77=yes
22086 # see comment about different semantics on the GNU ld section
22087 ld_shlibs_F77=no
22088 ;;
22089
Reid Spencer2706f8c2004-09-19 23:53:36 +000022090 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022091 export_dynamic_flag_spec_F77=-rdynamic
22092 ;;
22093
22094 cygwin* | mingw* | pw32*)
22095 # When not using gcc, we currently assume that we are using
22096 # Microsoft Visual C++.
22097 # hardcode_libdir_flag_spec is actually meaningless, as there is
22098 # no search path for DLLs.
22099 hardcode_libdir_flag_spec_F77=' '
22100 allow_undefined_flag_F77=unsupported
22101 # Tell ltmain to make .lib files, not .a files.
22102 libext=lib
22103 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022104 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022105 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022106 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 +000022107 # The linker will automatically build a .lib file if we build a DLL.
22108 old_archive_From_new_cmds_F77='true'
22109 # FIXME: Should let the user specify the lib program.
22110 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022111 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022112 enable_shared_with_static_runtimes_F77=yes
22113 ;;
22114
22115 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022116 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022117 rhapsody* | darwin1.[012])
22118 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22119 ;;
22120 *) # Darwin 1.3 on
22121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22122 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22123 else
22124 case ${MACOSX_DEPLOYMENT_TARGET} in
22125 10.[012])
22126 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22127 ;;
22128 10.*)
22129 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22130 ;;
22131 esac
22132 fi
22133 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022134 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022135 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022136 hardcode_direct_F77=no
22137 hardcode_automatic_F77=yes
22138 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022139 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022140 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022141 if test "$GCC" = yes ; then
22142 output_verbose_link_cmd='echo'
22143 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22144 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022145 # 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 +000022146 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}'
22147 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 +000022148 else
Reid Spencera773bd52006-08-04 18:18:08 +000022149 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022150 xlc*)
22151 output_verbose_link_cmd='echo'
22152 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22153 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022154 # 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 +000022155 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}'
22156 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 +000022157 ;;
22158 *)
22159 ld_shlibs_F77=no
22160 ;;
22161 esac
John Criswell47fdd832003-07-14 16:52:07 +000022162 fi
22163 ;;
22164
22165 dgux*)
22166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_libdir_flag_spec_F77='-L$libdir'
22168 hardcode_shlibpath_var_F77=no
22169 ;;
22170
22171 freebsd1*)
22172 ld_shlibs_F77=no
22173 ;;
22174
22175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22176 # support. Future versions do this automatically, but an explicit c++rt0.o
22177 # does not break anything, and helps significantly (at the cost of a little
22178 # extra space).
22179 freebsd2.2*)
22180 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22181 hardcode_libdir_flag_spec_F77='-R$libdir'
22182 hardcode_direct_F77=yes
22183 hardcode_shlibpath_var_F77=no
22184 ;;
22185
22186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22187 freebsd2*)
22188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22189 hardcode_direct_F77=yes
22190 hardcode_minus_L_F77=yes
22191 hardcode_shlibpath_var_F77=no
22192 ;;
22193
22194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022195 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022196 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22197 hardcode_libdir_flag_spec_F77='-R$libdir'
22198 hardcode_direct_F77=yes
22199 hardcode_shlibpath_var_F77=no
22200 ;;
22201
22202 hpux9*)
22203 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022204 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 +000022205 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022206 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 +000022207 fi
22208 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209 hardcode_libdir_separator_F77=:
22210 hardcode_direct_F77=yes
22211
22212 # hardcode_minus_L: Not really in the search PATH,
22213 # but as the default location of the library.
22214 hardcode_minus_L_F77=yes
22215 export_dynamic_flag_spec_F77='${wl}-E'
22216 ;;
22217
Reid Spencera773bd52006-08-04 18:18:08 +000022218 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022220 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22221 else
22222 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22223 fi
22224 if test "$with_gnu_ld" = no; then
22225 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226 hardcode_libdir_separator_F77=:
22227
22228 hardcode_direct_F77=yes
22229 export_dynamic_flag_spec_F77='${wl}-E'
22230
22231 # hardcode_minus_L: Not really in the search PATH,
22232 # but as the default location of the library.
22233 hardcode_minus_L_F77=yes
22234 fi
22235 ;;
22236
22237 hpux11*)
22238 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22239 case $host_cpu in
22240 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022241 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022243 ia64*)
22244 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022246 *)
22247 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22248 ;;
22249 esac
22250 else
Reid Spencera773bd52006-08-04 18:18:08 +000022251 case $host_cpu in
22252 hppa*64*)
22253 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22254 ;;
22255 ia64*)
22256 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022257 ;;
22258 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022259 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 +000022260 ;;
22261 esac
22262 fi
22263 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022264 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22265 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022266
Reid Spencera773bd52006-08-04 18:18:08 +000022267 case $host_cpu in
22268 hppa*64*|ia64*)
22269 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22270 hardcode_direct_F77=no
22271 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022272 ;;
22273 *)
John Criswell47fdd832003-07-14 16:52:07 +000022274 hardcode_direct_F77=yes
22275 export_dynamic_flag_spec_F77='${wl}-E'
22276
22277 # hardcode_minus_L: Not really in the search PATH,
22278 # but as the default location of the library.
22279 hardcode_minus_L_F77=yes
22280 ;;
22281 esac
22282 fi
22283 ;;
22284
22285 irix5* | irix6* | nonstopux*)
22286 if test "$GCC" = yes; then
22287 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'
22288 else
22289 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'
22290 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22291 fi
22292 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22293 hardcode_libdir_separator_F77=:
22294 link_all_deplibs_F77=yes
22295 ;;
22296
22297 netbsd*)
22298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22300 else
22301 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22302 fi
22303 hardcode_libdir_flag_spec_F77='-R$libdir'
22304 hardcode_direct_F77=yes
22305 hardcode_shlibpath_var_F77=no
22306 ;;
22307
22308 newsos6)
22309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22310 hardcode_direct_F77=yes
22311 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22312 hardcode_libdir_separator_F77=:
22313 hardcode_shlibpath_var_F77=no
22314 ;;
22315
22316 openbsd*)
22317 hardcode_direct_F77=yes
22318 hardcode_shlibpath_var_F77=no
22319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22320 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022321 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 +000022322 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22323 export_dynamic_flag_spec_F77='${wl}-E'
22324 else
22325 case $host_os in
22326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22327 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22328 hardcode_libdir_flag_spec_F77='-R$libdir'
22329 ;;
22330 *)
22331 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333 ;;
22334 esac
22335 fi
22336 ;;
22337
22338 os2*)
22339 hardcode_libdir_flag_spec_F77='-L$libdir'
22340 hardcode_minus_L_F77=yes
22341 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022342 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 +000022343 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22344 ;;
22345
22346 osf3*)
22347 if test "$GCC" = yes; then
22348 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22349 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'
22350 else
22351 allow_undefined_flag_F77=' -expect_unresolved \*'
22352 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'
22353 fi
22354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22355 hardcode_libdir_separator_F77=:
22356 ;;
22357
22358 osf4* | osf5*) # as osf3* with the addition of -msym flag
22359 if test "$GCC" = yes; then
22360 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22361 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'
22362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22363 else
22364 allow_undefined_flag_F77=' -expect_unresolved \*'
22365 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 +000022366 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 +000022367 $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 +000022368
John Criswell47fdd832003-07-14 16:52:07 +000022369 # Both c and cxx compiler support -rpath directly
22370 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22371 fi
22372 hardcode_libdir_separator_F77=:
22373 ;;
22374
John Criswell47fdd832003-07-14 16:52:07 +000022375 solaris*)
22376 no_undefined_flag_F77=' -z text'
22377 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022378 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022379 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022380 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381 $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 +000022382 else
Reid Spencera773bd52006-08-04 18:18:08 +000022383 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022384 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022385 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22386 $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 +000022387 fi
22388 hardcode_libdir_flag_spec_F77='-R$libdir'
22389 hardcode_shlibpath_var_F77=no
22390 case $host_os in
22391 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022392 *)
22393 # The compiler driver will combine linker options so we
22394 # cannot just pass the convience library names through
22395 # without $wl, iff we do not link with $LD.
22396 # Luckily, gcc supports the same syntax we need for Sun Studio.
22397 # Supported since Solaris 2.6 (maybe 2.5.1?)
22398 case $wlarc in
22399 '')
22400 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22401 *)
22402 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' ;;
22403 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022404 esac
22405 link_all_deplibs_F77=yes
22406 ;;
22407
22408 sunos4*)
22409 if test "x$host_vendor" = xsequent; then
22410 # Use $CC to link under sequent, because it throws in some extra .o
22411 # files that make .init and .fini sections work.
22412 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22413 else
22414 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22415 fi
22416 hardcode_libdir_flag_spec_F77='-L$libdir'
22417 hardcode_direct_F77=yes
22418 hardcode_minus_L_F77=yes
22419 hardcode_shlibpath_var_F77=no
22420 ;;
22421
22422 sysv4)
22423 case $host_vendor in
22424 sni)
22425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426 hardcode_direct_F77=yes # is this really true???
22427 ;;
22428 siemens)
22429 ## LD is ld it makes a PLAMLIB
22430 ## CC just makes a GrossModule.
22431 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22432 reload_cmds_F77='$CC -r -o $output$reload_objs'
22433 hardcode_direct_F77=no
22434 ;;
22435 motorola)
22436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22438 ;;
22439 esac
22440 runpath_var='LD_RUN_PATH'
22441 hardcode_shlibpath_var_F77=no
22442 ;;
22443
22444 sysv4.3*)
22445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22446 hardcode_shlibpath_var_F77=no
22447 export_dynamic_flag_spec_F77='-Bexport'
22448 ;;
22449
22450 sysv4*MP*)
22451 if test -d /usr/nec; then
22452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22453 hardcode_shlibpath_var_F77=no
22454 runpath_var=LD_RUN_PATH
22455 hardcode_runpath_var=yes
22456 ld_shlibs_F77=yes
22457 fi
22458 ;;
22459
Reid Spencera773bd52006-08-04 18:18:08 +000022460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22461 no_undefined_flag_F77='${wl}-z,text'
22462 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022463 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022464 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022465
John Criswell47fdd832003-07-14 16:52:07 +000022466 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022467 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22468 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 +000022469 else
Reid Spencera773bd52006-08-04 18:18:08 +000022470 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22471 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 +000022472 fi
John Criswell47fdd832003-07-14 16:52:07 +000022473 ;;
22474
Reid Spencera773bd52006-08-04 18:18:08 +000022475 sysv5* | sco3.2v5* | sco5v6*)
22476 # Note: We can NOT use -z defs as we might desire, because we do not
22477 # link with -lc, and that would cause any symbols used from libc to
22478 # always be unresolved, which means just about no library would
22479 # ever link correctly. If we're not using GNU ld we use -z text
22480 # though, which does catch some bad symbols but isn't as heavy-handed
22481 # as -z defs.
22482 no_undefined_flag_F77='${wl}-z,text'
22483 allow_undefined_flag_F77='${wl}-z,nodefs'
22484 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022485 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022486 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22487 hardcode_libdir_separator_F77=':'
22488 link_all_deplibs_F77=yes
22489 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022490 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022491
22492 if test "$GCC" = yes; then
22493 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22494 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22495 else
22496 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22497 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22498 fi
John Criswell47fdd832003-07-14 16:52:07 +000022499 ;;
22500
22501 uts4*)
22502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22503 hardcode_libdir_flag_spec_F77='-L$libdir'
22504 hardcode_shlibpath_var_F77=no
22505 ;;
22506
22507 *)
22508 ld_shlibs_F77=no
22509 ;;
22510 esac
22511 fi
22512
Reid Spencera773bd52006-08-04 18:18:08 +000022513{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22514echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022515test "$ld_shlibs_F77" = no && can_build_shared=no
22516
John Criswell47fdd832003-07-14 16:52:07 +000022517#
22518# Do we need to explicitly link libc?
22519#
22520case "x$archive_cmds_need_lc_F77" in
22521x|xyes)
22522 # Assume -lc should be added
22523 archive_cmds_need_lc_F77=yes
22524
22525 if test "$enable_shared" = yes && test "$GCC" = yes; then
22526 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022527 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022528 # FIXME: we may have to deal with multi-command sequences.
22529 ;;
22530 '$CC '*)
22531 # Test whether the compiler implicitly links with -lc since on some
22532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22533 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022534 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22535echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022536 $rm conftest*
22537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22538
22539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540 (eval $ac_compile) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } 2>conftest.err; then
22544 soname=conftest
22545 lib=conftest
22546 libobjs=conftest.$ac_objext
22547 deplibs=
22548 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022549 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022550 compiler_flags=-v
22551 linker_flags=-v
22552 verstring=
22553 output_objdir=.
22554 libname=conftest
22555 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22556 allow_undefined_flag_F77=
22557 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22558 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }
22562 then
22563 archive_cmds_need_lc_F77=no
22564 else
22565 archive_cmds_need_lc_F77=yes
22566 fi
22567 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22568 else
22569 cat conftest.err 1>&5
22570 fi
22571 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022572 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22573echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022574 ;;
22575 esac
22576 fi
22577 ;;
22578esac
22579
Reid Spencera773bd52006-08-04 18:18:08 +000022580{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22581echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022582library_names_spec=
22583libname_spec='lib$name'
22584soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022585shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022586postinstall_cmds=
22587postuninstall_cmds=
22588finish_cmds=
22589finish_eval=
22590shlibpath_var=
22591shlibpath_overrides_runpath=unknown
22592version_type=none
22593dynamic_linker="$host_os ld.so"
22594sys_lib_dlsearch_path_spec="/lib /usr/lib"
22595if test "$GCC" = yes; then
22596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22597 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22598 # if the path contains ";" then we assume it to be the separator
22599 # otherwise default to the standard path separator (i.e. ":") - it is
22600 # assumed that no part of a normal pathname contains ";" but that should
22601 # okay in the real world where ";" in dirpaths is itself problematic.
22602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22603 else
22604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22605 fi
22606else
22607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22608fi
22609need_lib_prefix=unknown
22610hardcode_into_libs=no
22611
22612# when you set need_version to no, make sure it does not cause -set_version
22613# flags to be left without arguments
22614need_version=unknown
22615
22616case $host_os in
22617aix3*)
22618 version_type=linux
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22620 shlibpath_var=LIBPATH
22621
22622 # AIX 3 has no versioning support, so we append a major version to the name.
22623 soname_spec='${libname}${release}${shared_ext}$major'
22624 ;;
22625
22626aix4* | aix5*)
22627 version_type=linux
22628 need_lib_prefix=no
22629 need_version=no
22630 hardcode_into_libs=yes
22631 if test "$host_cpu" = ia64; then
22632 # AIX 5 supports IA64
22633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22634 shlibpath_var=LD_LIBRARY_PATH
22635 else
22636 # With GCC up to 2.95.x, collect2 would create an import file
22637 # for dependence libraries. The import file would start with
22638 # the line `#! .'. This would cause the generated library to
22639 # depend on `.', always an invalid library. This was fixed in
22640 # development snapshots of GCC prior to 3.0.
22641 case $host_os in
22642 aix4 | aix4.[01] | aix4.[01].*)
22643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22644 echo ' yes '
22645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22646 :
22647 else
22648 can_build_shared=no
22649 fi
22650 ;;
22651 esac
22652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22653 # soname into executable. Probably we can add versioning support to
22654 # collect2, so additional links can be useful in future.
22655 if test "$aix_use_runtimelinking" = yes; then
22656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22657 # instead of lib<name>.a to let people know that these are not
22658 # typical AIX shared libraries.
22659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22660 else
22661 # We preserve .a as extension for shared libraries through AIX4.2
22662 # and later when we are not doing run time linking.
22663 library_names_spec='${libname}${release}.a $libname.a'
22664 soname_spec='${libname}${release}${shared_ext}$major'
22665 fi
22666 shlibpath_var=LIBPATH
22667 fi
22668 ;;
22669
22670amigaos*)
22671 library_names_spec='$libname.ixlibrary $libname.a'
22672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022673 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 +000022674 ;;
22675
22676beos*)
22677 library_names_spec='${libname}${shared_ext}'
22678 dynamic_linker="$host_os ld.so"
22679 shlibpath_var=LIBRARY_PATH
22680 ;;
22681
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022683 version_type=linux
22684 need_version=no
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22691 # the default ld.so.conf also contains /usr/contrib/lib and
22692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22693 # libtool to hard-code these into programs
22694 ;;
22695
22696cygwin* | mingw* | pw32*)
22697 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022698 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022699 need_version=no
22700 need_lib_prefix=no
22701
22702 case $GCC,$host_os in
22703 yes,cygwin* | yes,mingw* | yes,pw32*)
22704 library_names_spec='$libname.dll.a'
22705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022706 postinstall_cmds='base_file=`basename \${file}`~
22707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22708 dldir=$destdir/`dirname \$dlpath`~
22709 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022710 $install_prog $dir/$dlname \$dldir/$dlname~
22711 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22713 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022714 $rm \$dlpath'
22715 shlibpath_overrides_runpath=yes
22716
22717 case $host_os in
22718 cygwin*)
22719 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22720 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 +000022721 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022722 ;;
22723 mingw*)
22724 # MinGW DLLs use traditional 'lib' prefix
22725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22727 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22728 # It is most probably a Windows format PATH printed by
22729 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22730 # path with ; separators, and with drive letters. We can handle the
22731 # drive letters (cygwin fileutils understands them), so leave them,
22732 # especially as we might pass files found there to a mingw objdump,
22733 # which wouldn't understand a cygwinified path. Ahh.
22734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22735 else
22736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22737 fi
22738 ;;
22739 pw32*)
22740 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022741 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 +000022742 ;;
22743 esac
22744 ;;
22745
22746 *)
22747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22748 ;;
22749 esac
22750 dynamic_linker='Win32 ld.exe'
22751 # FIXME: first we should search . and the directory the executable is in
22752 shlibpath_var=PATH
22753 ;;
22754
22755darwin* | rhapsody*)
22756 dynamic_linker="$host_os dyld"
22757 version_type=darwin
22758 need_lib_prefix=no
22759 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022760 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022761 soname_spec='${libname}${release}${major}$shared_ext'
22762 shlibpath_overrides_runpath=yes
22763 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022764 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022765 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766 if test "$GCC" = yes; then
22767 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"`
22768 else
22769 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022770 fi
22771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22772 ;;
22773
22774dgux*)
22775 version_type=linux
22776 need_lib_prefix=no
22777 need_version=no
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22779 soname_spec='${libname}${release}${shared_ext}$major'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 ;;
22782
22783freebsd1*)
22784 dynamic_linker=no
22785 ;;
22786
Reid Spencer2706f8c2004-09-19 23:53:36 +000022787kfreebsd*-gnu)
22788 version_type=linux
22789 need_lib_prefix=no
22790 need_version=no
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 shlibpath_overrides_runpath=no
22795 hardcode_into_libs=yes
22796 dynamic_linker='GNU ld.so'
22797 ;;
22798
Reid Spencera773bd52006-08-04 18:18:08 +000022799freebsd* | dragonfly*)
22800 # DragonFly does not have aout. When/if they implement a new
22801 # versioning mechanism, adjust this.
22802 if test -x /usr/bin/objformat; then
22803 objformat=`/usr/bin/objformat`
22804 else
22805 case $host_os in
22806 freebsd[123]*) objformat=aout ;;
22807 *) objformat=elf ;;
22808 esac
22809 fi
John Criswell47fdd832003-07-14 16:52:07 +000022810 version_type=freebsd-$objformat
22811 case $version_type in
22812 freebsd-elf*)
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22814 need_version=no
22815 need_lib_prefix=no
22816 ;;
22817 freebsd-*)
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22819 need_version=yes
22820 ;;
22821 esac
22822 shlibpath_var=LD_LIBRARY_PATH
22823 case $host_os in
22824 freebsd2*)
22825 shlibpath_overrides_runpath=yes
22826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022827 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022828 shlibpath_overrides_runpath=yes
22829 hardcode_into_libs=yes
22830 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022833 shlibpath_overrides_runpath=no
22834 hardcode_into_libs=yes
22835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022836 freebsd*) # from 4.6 on
22837 shlibpath_overrides_runpath=yes
22838 hardcode_into_libs=yes
22839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022840 esac
22841 ;;
22842
22843gnu*)
22844 version_type=linux
22845 need_lib_prefix=no
22846 need_version=no
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 hardcode_into_libs=yes
22851 ;;
22852
22853hpux9* | hpux10* | hpux11*)
22854 # Give a soname corresponding to the major version so that dld.sl refuses to
22855 # link against other versions.
22856 version_type=sunos
22857 need_lib_prefix=no
22858 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022859 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022860 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022861 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022862 hardcode_into_libs=yes
22863 dynamic_linker="$host_os dld.so"
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 if test "X$HPUX_IA64_MODE" = X32; then
22869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22870 else
22871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22872 fi
22873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22874 ;;
22875 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022876 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022877 hardcode_into_libs=yes
22878 dynamic_linker="$host_os dld.sl"
22879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882 soname_spec='${libname}${release}${shared_ext}$major'
22883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22885 ;;
22886 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022888 dynamic_linker="$host_os dld.sl"
22889 shlibpath_var=SHLIB_PATH
22890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22893 ;;
22894 esac
22895 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22896 postinstall_cmds='chmod 555 $lib'
22897 ;;
22898
Reid Spencera773bd52006-08-04 18:18:08 +000022899interix3*)
22900 version_type=linux
22901 need_lib_prefix=no
22902 need_version=no
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22904 soname_spec='${libname}${release}${shared_ext}$major'
22905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=no
22908 hardcode_into_libs=yes
22909 ;;
22910
John Criswell47fdd832003-07-14 16:52:07 +000022911irix5* | irix6* | nonstopux*)
22912 case $host_os in
22913 nonstopux*) version_type=nonstopux ;;
22914 *)
22915 if test "$lt_cv_prog_gnu_ld" = yes; then
22916 version_type=linux
22917 else
22918 version_type=irix
22919 fi ;;
22920 esac
22921 need_lib_prefix=no
22922 need_version=no
22923 soname_spec='${libname}${release}${shared_ext}$major'
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22925 case $host_os in
22926 irix5* | nonstopux*)
22927 libsuff= shlibsuff=
22928 ;;
22929 *)
22930 case $LD in # libtool.m4 will add one of these switches to LD
22931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22932 libsuff= shlibsuff= libmagic=32-bit;;
22933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22934 libsuff=32 shlibsuff=N32 libmagic=N32;;
22935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22937 *) libsuff= shlibsuff= libmagic=never-match;;
22938 esac
22939 ;;
22940 esac
22941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22942 shlibpath_overrides_runpath=no
22943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22945 hardcode_into_libs=yes
22946 ;;
22947
22948# No shared lib support for Linux oldld, aout, or coff.
22949linux*oldld* | linux*aout* | linux*coff*)
22950 dynamic_linker=no
22951 ;;
22952
22953# This must be Linux ELF.
22954linux*)
22955 version_type=linux
22956 need_lib_prefix=no
22957 need_version=no
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22961 shlibpath_var=LD_LIBRARY_PATH
22962 shlibpath_overrides_runpath=no
22963 # This implies no fast_install, which is unacceptable.
22964 # Some rework will be needed to allow for fast_install
22965 # before this can be enabled.
22966 hardcode_into_libs=yes
22967
Reid Spencer2706f8c2004-09-19 23:53:36 +000022968 # Append ld.so.conf contents to the search path
22969 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022970 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 +000022971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22972 fi
22973
John Criswell47fdd832003-07-14 16:52:07 +000022974 # We used to test for /lib/ld.so.1 and disable shared libraries on
22975 # powerpc, because MkLinux only supported shared libraries with the
22976 # GNU dynamic linker. Since this was broken with cross compilers,
22977 # most powerpc-linux boxes support dynamic linking these days and
22978 # people can always --disable-shared, the test was removed, and we
22979 # assume the GNU/Linux dynamic linker is in use.
22980 dynamic_linker='GNU/Linux ld.so'
22981 ;;
22982
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983knetbsd*-gnu)
22984 version_type=linux
22985 need_lib_prefix=no
22986 need_version=no
22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22988 soname_spec='${libname}${release}${shared_ext}$major'
22989 shlibpath_var=LD_LIBRARY_PATH
22990 shlibpath_overrides_runpath=no
22991 hardcode_into_libs=yes
22992 dynamic_linker='GNU ld.so'
22993 ;;
22994
John Criswell47fdd832003-07-14 16:52:07 +000022995netbsd*)
22996 version_type=sunos
22997 need_lib_prefix=no
22998 need_version=no
22999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23002 dynamic_linker='NetBSD (a.out) ld.so'
23003 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023005 soname_spec='${libname}${release}${shared_ext}$major'
23006 dynamic_linker='NetBSD ld.elf_so'
23007 fi
23008 shlibpath_var=LD_LIBRARY_PATH
23009 shlibpath_overrides_runpath=yes
23010 hardcode_into_libs=yes
23011 ;;
23012
23013newsos6)
23014 version_type=linux
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016 shlibpath_var=LD_LIBRARY_PATH
23017 shlibpath_overrides_runpath=yes
23018 ;;
23019
Reid Spencer2706f8c2004-09-19 23:53:36 +000023020nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023021 version_type=linux
23022 need_lib_prefix=no
23023 need_version=no
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025 soname_spec='${libname}${release}${shared_ext}$major'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23028 ;;
23029
23030openbsd*)
23031 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023032 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023033 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23035 case $host_os in
23036 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23037 *) need_version=no ;;
23038 esac
John Criswell47fdd832003-07-14 16:52:07 +000023039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23043 case $host_os in
23044 openbsd2.[89] | openbsd2.[89].*)
23045 shlibpath_overrides_runpath=no
23046 ;;
23047 *)
23048 shlibpath_overrides_runpath=yes
23049 ;;
23050 esac
23051 else
23052 shlibpath_overrides_runpath=yes
23053 fi
23054 ;;
23055
23056os2*)
23057 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023058 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023059 need_lib_prefix=no
23060 library_names_spec='$libname${shared_ext} $libname.a'
23061 dynamic_linker='OS/2 ld.exe'
23062 shlibpath_var=LIBPATH
23063 ;;
23064
23065osf3* | osf4* | osf5*)
23066 version_type=osf
23067 need_lib_prefix=no
23068 need_version=no
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23071 shlibpath_var=LD_LIBRARY_PATH
23072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23074 ;;
23075
John Criswell47fdd832003-07-14 16:52:07 +000023076solaris*)
23077 version_type=linux
23078 need_lib_prefix=no
23079 need_version=no
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 shlibpath_var=LD_LIBRARY_PATH
23083 shlibpath_overrides_runpath=yes
23084 hardcode_into_libs=yes
23085 # ldd complains unless libraries are executable
23086 postinstall_cmds='chmod +x $lib'
23087 ;;
23088
23089sunos4*)
23090 version_type=sunos
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23093 shlibpath_var=LD_LIBRARY_PATH
23094 shlibpath_overrides_runpath=yes
23095 if test "$with_gnu_ld" = yes; then
23096 need_lib_prefix=no
23097 fi
23098 need_version=yes
23099 ;;
23100
Reid Spencera773bd52006-08-04 18:18:08 +000023101sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023102 version_type=linux
23103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104 soname_spec='${libname}${release}${shared_ext}$major'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 case $host_vendor in
23107 sni)
23108 shlibpath_overrides_runpath=no
23109 need_lib_prefix=no
23110 export_dynamic_flag_spec='${wl}-Blargedynsym'
23111 runpath_var=LD_RUN_PATH
23112 ;;
23113 siemens)
23114 need_lib_prefix=no
23115 ;;
23116 motorola)
23117 need_lib_prefix=no
23118 need_version=no
23119 shlibpath_overrides_runpath=no
23120 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23121 ;;
23122 esac
23123 ;;
23124
23125sysv4*MP*)
23126 if test -d /usr/nec ;then
23127 version_type=linux
23128 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23129 soname_spec='$libname${shared_ext}.$major'
23130 shlibpath_var=LD_LIBRARY_PATH
23131 fi
23132 ;;
23133
Reid Spencera773bd52006-08-04 18:18:08 +000023134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23135 version_type=freebsd-elf
23136 need_lib_prefix=no
23137 need_version=no
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 hardcode_into_libs=yes
23142 if test "$with_gnu_ld" = yes; then
23143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23144 shlibpath_overrides_runpath=no
23145 else
23146 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23147 shlibpath_overrides_runpath=yes
23148 case $host_os in
23149 sco3.2v5*)
23150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23151 ;;
23152 esac
23153 fi
23154 sys_lib_dlsearch_path_spec='/usr/lib'
23155 ;;
23156
John Criswell47fdd832003-07-14 16:52:07 +000023157uts4*)
23158 version_type=linux
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160 soname_spec='${libname}${release}${shared_ext}$major'
23161 shlibpath_var=LD_LIBRARY_PATH
23162 ;;
23163
23164*)
23165 dynamic_linker=no
23166 ;;
23167esac
Reid Spencera773bd52006-08-04 18:18:08 +000023168{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23169echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023170test "$dynamic_linker" = no && can_build_shared=no
23171
Reid Spencera773bd52006-08-04 18:18:08 +000023172variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23173if test "$GCC" = yes; then
23174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23175fi
23176
23177{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23178echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023179hardcode_action_F77=
23180if test -n "$hardcode_libdir_flag_spec_F77" || \
23181 test -n "$runpath_var_F77" || \
23182 test "X$hardcode_automatic_F77" = "Xyes" ; then
23183
23184 # We can hardcode non-existant directories.
23185 if test "$hardcode_direct_F77" != no &&
23186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23187 # have to relink, otherwise we might link with an installed library
23188 # when we should be linking with a yet-to-be-installed one
23189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23190 test "$hardcode_minus_L_F77" != no; then
23191 # Linking always hardcodes the temporary library directory.
23192 hardcode_action_F77=relink
23193 else
23194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23195 hardcode_action_F77=immediate
23196 fi
23197else
23198 # We cannot hardcode anything, or else we can only hardcode existing
23199 # directories.
23200 hardcode_action_F77=unsupported
23201fi
Reid Spencera773bd52006-08-04 18:18:08 +000023202{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23203echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023204
23205if test "$hardcode_action_F77" = relink; then
23206 # Fast installation is not supported
23207 enable_fast_install=no
23208elif test "$shlibpath_overrides_runpath" = yes ||
23209 test "$enable_shared" = no; then
23210 # Fast installation is not necessary
23211 enable_fast_install=needless
23212fi
23213
John Criswell47fdd832003-07-14 16:52:07 +000023214
23215# The else clause should only fire when bootstrapping the
23216# libtool distribution, otherwise you forgot to ship ltmain.sh
23217# with your package, and you will get complaints that there are
23218# no rules to generate ltmain.sh.
23219if test -f "$ltmain"; then
23220 # See if we are running on zsh, and set the options which allow our commands through
23221 # without removal of \ escapes.
23222 if test -n "${ZSH_VERSION+set}" ; then
23223 setopt NO_GLOB_SUBST
23224 fi
23225 # Now quote all the things that may contain metacharacters while being
23226 # careful not to overquote the AC_SUBSTed values. We take copies of the
23227 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023228 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 +000023229 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023230 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23231 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23232 deplibs_check_method reload_flag reload_cmds need_locks \
23233 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23234 lt_cv_sys_global_symbol_to_c_name_address \
23235 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23236 old_postinstall_cmds old_postuninstall_cmds \
23237 compiler_F77 \
23238 CC_F77 \
23239 LD_F77 \
23240 lt_prog_compiler_wl_F77 \
23241 lt_prog_compiler_pic_F77 \
23242 lt_prog_compiler_static_F77 \
23243 lt_prog_compiler_no_builtin_flag_F77 \
23244 export_dynamic_flag_spec_F77 \
23245 thread_safe_flag_spec_F77 \
23246 whole_archive_flag_spec_F77 \
23247 enable_shared_with_static_runtimes_F77 \
23248 old_archive_cmds_F77 \
23249 old_archive_from_new_cmds_F77 \
23250 predep_objects_F77 \
23251 postdep_objects_F77 \
23252 predeps_F77 \
23253 postdeps_F77 \
23254 compiler_lib_search_path_F77 \
23255 archive_cmds_F77 \
23256 archive_expsym_cmds_F77 \
23257 postinstall_cmds_F77 \
23258 postuninstall_cmds_F77 \
23259 old_archive_from_expsyms_cmds_F77 \
23260 allow_undefined_flag_F77 \
23261 no_undefined_flag_F77 \
23262 export_symbols_cmds_F77 \
23263 hardcode_libdir_flag_spec_F77 \
23264 hardcode_libdir_flag_spec_ld_F77 \
23265 hardcode_libdir_separator_F77 \
23266 hardcode_automatic_F77 \
23267 module_cmds_F77 \
23268 module_expsym_cmds_F77 \
23269 lt_cv_prog_compiler_c_o_F77 \
23270 exclude_expsyms_F77 \
23271 include_expsyms_F77; do
23272
23273 case $var in
23274 old_archive_cmds_F77 | \
23275 old_archive_from_new_cmds_F77 | \
23276 archive_cmds_F77 | \
23277 archive_expsym_cmds_F77 | \
23278 module_cmds_F77 | \
23279 module_expsym_cmds_F77 | \
23280 old_archive_from_expsyms_cmds_F77 | \
23281 export_symbols_cmds_F77 | \
23282 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23283 postinstall_cmds | postuninstall_cmds | \
23284 old_postinstall_cmds | old_postuninstall_cmds | \
23285 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23286 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023287 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 +000023288 ;;
23289 *)
23290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23291 ;;
23292 esac
23293 done
23294
23295 case $lt_echo in
23296 *'\$0 --fallback-echo"')
23297 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23298 ;;
23299 esac
23300
23301cfgfile="$ofile"
23302
23303 cat <<__EOF__ >> "$cfgfile"
23304# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23305
23306# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23307
23308# Shell to use when invoking shell scripts.
23309SHELL=$lt_SHELL
23310
23311# Whether or not to build shared libraries.
23312build_libtool_libs=$enable_shared
23313
23314# Whether or not to build static libraries.
23315build_old_libs=$enable_static
23316
23317# Whether or not to add -lc for building shared libraries.
23318build_libtool_need_lc=$archive_cmds_need_lc_F77
23319
23320# Whether or not to disallow shared libs when runtime libs are static
23321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23322
23323# Whether or not to optimize for fast installation.
23324fast_install=$enable_fast_install
23325
23326# The host system.
23327host_alias=$host_alias
23328host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023329host_os=$host_os
23330
23331# The build system.
23332build_alias=$build_alias
23333build=$build
23334build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023335
23336# An echo program that does not interpret backslashes.
23337echo=$lt_echo
23338
23339# The archiver.
23340AR=$lt_AR
23341AR_FLAGS=$lt_AR_FLAGS
23342
23343# A C compiler.
23344LTCC=$lt_LTCC
23345
Reid Spencera773bd52006-08-04 18:18:08 +000023346# LTCC compiler flags.
23347LTCFLAGS=$lt_LTCFLAGS
23348
John Criswell47fdd832003-07-14 16:52:07 +000023349# A language-specific compiler.
23350CC=$lt_compiler_F77
23351
23352# Is the compiler the GNU C compiler?
23353with_gcc=$GCC_F77
23354
23355# An ERE matcher.
23356EGREP=$lt_EGREP
23357
23358# The linker used to build libraries.
23359LD=$lt_LD_F77
23360
23361# Whether we need hard or soft links.
23362LN_S=$lt_LN_S
23363
23364# A BSD-compatible nm program.
23365NM=$lt_NM
23366
23367# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023368STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023369
23370# Used to examine libraries when file_magic_cmd begins "file"
23371MAGIC_CMD=$MAGIC_CMD
23372
23373# Used on cygwin: DLL creation program.
23374DLLTOOL="$DLLTOOL"
23375
23376# Used on cygwin: object dumper.
23377OBJDUMP="$OBJDUMP"
23378
23379# Used on cygwin: assembler.
23380AS="$AS"
23381
23382# The name of the directory that contains temporary libtool files.
23383objdir=$objdir
23384
23385# How to create reloadable object files.
23386reload_flag=$lt_reload_flag
23387reload_cmds=$lt_reload_cmds
23388
23389# How to pass a linker flag through the compiler.
23390wl=$lt_lt_prog_compiler_wl_F77
23391
23392# Object file suffix (normally "o").
23393objext="$ac_objext"
23394
23395# Old archive suffix (normally "a").
23396libext="$libext"
23397
23398# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023399shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023400
23401# Executable file suffix (normally "").
23402exeext="$exeext"
23403
23404# Additional compiler flags for building library objects.
23405pic_flag=$lt_lt_prog_compiler_pic_F77
23406pic_mode=$pic_mode
23407
23408# What is the maximum length of a command?
23409max_cmd_len=$lt_cv_sys_max_cmd_len
23410
23411# Does compiler simultaneously support -c and -o options?
23412compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23413
Reid Spencera773bd52006-08-04 18:18:08 +000023414# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023415need_locks=$lt_need_locks
23416
23417# Do we need the lib prefix for modules?
23418need_lib_prefix=$need_lib_prefix
23419
23420# Do we need a version for libraries?
23421need_version=$need_version
23422
23423# Whether dlopen is supported.
23424dlopen_support=$enable_dlopen
23425
23426# Whether dlopen of programs is supported.
23427dlopen_self=$enable_dlopen_self
23428
23429# Whether dlopen of statically linked programs is supported.
23430dlopen_self_static=$enable_dlopen_self_static
23431
23432# Compiler flag to prevent dynamic linking.
23433link_static_flag=$lt_lt_prog_compiler_static_F77
23434
23435# Compiler flag to turn off builtin functions.
23436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23437
23438# Compiler flag to allow reflexive dlopens.
23439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23440
23441# Compiler flag to generate shared objects directly from archives.
23442whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23443
23444# Compiler flag to generate thread-safe objects.
23445thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23446
23447# Library versioning type.
23448version_type=$version_type
23449
23450# Format of library name prefix.
23451libname_spec=$lt_libname_spec
23452
23453# List of archive names. First name is the real one, the rest are links.
23454# The last name is the one that the linker finds with -lNAME.
23455library_names_spec=$lt_library_names_spec
23456
23457# The coded name of the library, if different from the real name.
23458soname_spec=$lt_soname_spec
23459
23460# Commands used to build and install an old-style archive.
23461RANLIB=$lt_RANLIB
23462old_archive_cmds=$lt_old_archive_cmds_F77
23463old_postinstall_cmds=$lt_old_postinstall_cmds
23464old_postuninstall_cmds=$lt_old_postuninstall_cmds
23465
23466# Create an old-style archive from a shared archive.
23467old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23468
23469# Create a temporary old-style archive to link instead of a shared archive.
23470old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23471
23472# Commands used to build and install a shared archive.
23473archive_cmds=$lt_archive_cmds_F77
23474archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23475postinstall_cmds=$lt_postinstall_cmds
23476postuninstall_cmds=$lt_postuninstall_cmds
23477
23478# Commands used to build a loadable module (assumed same as above if empty)
23479module_cmds=$lt_module_cmds_F77
23480module_expsym_cmds=$lt_module_expsym_cmds_F77
23481
23482# Commands to strip libraries.
23483old_striplib=$lt_old_striplib
23484striplib=$lt_striplib
23485
23486# Dependencies to place before the objects being linked to create a
23487# shared library.
23488predep_objects=$lt_predep_objects_F77
23489
23490# Dependencies to place after the objects being linked to create a
23491# shared library.
23492postdep_objects=$lt_postdep_objects_F77
23493
23494# Dependencies to place before the objects being linked to create a
23495# shared library.
23496predeps=$lt_predeps_F77
23497
23498# Dependencies to place after the objects being linked to create a
23499# shared library.
23500postdeps=$lt_postdeps_F77
23501
23502# The library search path used internally by the compiler when linking
23503# a shared library.
23504compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23505
23506# Method to check whether dependent libraries are shared objects.
23507deplibs_check_method=$lt_deplibs_check_method
23508
23509# Command to use when deplibs_check_method == file_magic.
23510file_magic_cmd=$lt_file_magic_cmd
23511
23512# Flag that allows shared libraries with undefined symbols to be built.
23513allow_undefined_flag=$lt_allow_undefined_flag_F77
23514
23515# Flag that forces no undefined symbols.
23516no_undefined_flag=$lt_no_undefined_flag_F77
23517
23518# Commands used to finish a libtool library installation in a directory.
23519finish_cmds=$lt_finish_cmds
23520
23521# Same as above, but a single script fragment to be evaled but not shown.
23522finish_eval=$lt_finish_eval
23523
23524# Take the output of nm and produce a listing of raw symbols and C names.
23525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23526
23527# Transform the output of nm in a proper C declaration
23528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23529
23530# Transform the output of nm in a C name address pair
23531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23532
23533# This is the shared library runtime path variable.
23534runpath_var=$runpath_var
23535
23536# This is the shared library path variable.
23537shlibpath_var=$shlibpath_var
23538
23539# Is shlibpath searched before the hard-coded library search path?
23540shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23541
23542# How to hardcode a shared library path into an executable.
23543hardcode_action=$hardcode_action_F77
23544
23545# Whether we should hardcode library paths into libraries.
23546hardcode_into_libs=$hardcode_into_libs
23547
23548# Flag to hardcode \$libdir into a binary during linking.
23549# This must work even if \$libdir does not exist.
23550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23551
23552# If ld is used when linking, flag to hardcode \$libdir into
23553# a binary during linking. This must work even if \$libdir does
23554# not exist.
23555hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23556
23557# Whether we need a single -rpath flag with a separated argument.
23558hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23559
23560# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23561# resulting binary.
23562hardcode_direct=$hardcode_direct_F77
23563
23564# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23565# resulting binary.
23566hardcode_minus_L=$hardcode_minus_L_F77
23567
23568# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23569# the resulting binary.
23570hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23571
23572# Set to yes if building a shared library automatically hardcodes DIR into the library
23573# and all subsequent libraries and executables linked against it.
23574hardcode_automatic=$hardcode_automatic_F77
23575
23576# Variables whose values should be saved in libtool wrapper scripts and
23577# restored at relink time.
23578variables_saved_for_relink="$variables_saved_for_relink"
23579
23580# Whether libtool must link a program against all its dependency libraries.
23581link_all_deplibs=$link_all_deplibs_F77
23582
23583# Compile-time system search path for libraries
23584sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23585
23586# Run-time system search path for libraries
23587sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23588
23589# Fix the shell variable \$srcfile for the compiler.
23590fix_srcfile_path="$fix_srcfile_path_F77"
23591
23592# Set to yes if exported symbols are required.
23593always_export_symbols=$always_export_symbols_F77
23594
23595# The commands to list exported symbols.
23596export_symbols_cmds=$lt_export_symbols_cmds_F77
23597
23598# The commands to extract the exported symbol list from a shared archive.
23599extract_expsyms_cmds=$lt_extract_expsyms_cmds
23600
23601# Symbols that should not be listed in the preloaded symbols.
23602exclude_expsyms=$lt_exclude_expsyms_F77
23603
23604# Symbols that must always be exported.
23605include_expsyms=$lt_include_expsyms_F77
23606
23607# ### END LIBTOOL TAG CONFIG: $tagname
23608
23609__EOF__
23610
23611
23612else
23613 # If there is no Makefile yet, we rely on a make rule to execute
23614 # `config.status --recheck' to rerun these tests and create the
23615 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023616 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23617 if test -f "$ltmain_in"; then
23618 test -f Makefile && make "$ltmain"
23619 fi
John Criswell47fdd832003-07-14 16:52:07 +000023620fi
23621
23622
23623ac_ext=c
23624ac_cpp='$CPP $CPPFLAGS'
23625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627ac_compiler_gnu=$ac_cv_c_compiler_gnu
23628
23629CC="$lt_save_CC"
23630
23631 else
23632 tagname=""
23633 fi
23634 ;;
23635
23636 GCJ)
23637 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023638 ac_ext=c
23639ac_cpp='$CPP $CPPFLAGS'
23640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23642ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023643
23644
23645# Source file extension for Java test sources.
23646ac_ext=java
23647
23648# Object file extension for compiled Java test sources.
23649objext=o
23650objext_GCJ=$objext
23651
23652# Code to be used in simple compile tests
23653lt_simple_compile_test_code="class foo {}\n"
23654
23655# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023656lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023657
23658# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23659
23660# If no C compiler was specified, use CC.
23661LTCC=${LTCC-"$CC"}
23662
Reid Spencera773bd52006-08-04 18:18:08 +000023663# If no C compiler flags were specified, use CFLAGS.
23664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23665
John Criswell47fdd832003-07-14 16:52:07 +000023666# Allow CC to be a program name with arguments.
23667compiler=$CC
23668
23669
Reid Spencera773bd52006-08-04 18:18:08 +000023670# save warnings/boilerplate of simple test code
23671ac_outfile=conftest.$ac_objext
23672printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23673eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23674_lt_compiler_boilerplate=`cat conftest.err`
23675$rm conftest*
23676
23677ac_outfile=conftest.$ac_objext
23678printf "$lt_simple_link_test_code" >conftest.$ac_ext
23679eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23680_lt_linker_boilerplate=`cat conftest.err`
23681$rm conftest*
23682
23683
John Criswell47fdd832003-07-14 16:52:07 +000023684# Allow CC to be a program name with arguments.
23685lt_save_CC="$CC"
23686CC=${GCJ-"gcj"}
23687compiler=$CC
23688compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023689for cc_temp in $compiler""; do
23690 case $cc_temp in
23691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23693 \-*) ;;
23694 *) break;;
23695 esac
23696done
23697cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23698
John Criswell47fdd832003-07-14 16:52:07 +000023699
23700# GCJ did not exist at the time GCC didn't implicitly link libc in.
23701archive_cmds_need_lc_GCJ=no
23702
Reid Spencera773bd52006-08-04 18:18:08 +000023703old_archive_cmds_GCJ=$old_archive_cmds
23704
John Criswell47fdd832003-07-14 16:52:07 +000023705
23706lt_prog_compiler_no_builtin_flag_GCJ=
23707
23708if test "$GCC" = yes; then
23709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23710
Reid Spencer2706f8c2004-09-19 23:53:36 +000023711
Reid Spencera773bd52006-08-04 18:18:08 +000023712{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23713echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023714if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23716else
23717 lt_cv_prog_compiler_rtti_exceptions=no
23718 ac_outfile=conftest.$ac_objext
23719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23720 lt_compiler_flag="-fno-rtti -fno-exceptions"
23721 # Insert the option either (1) after the last *FLAGS variable, or
23722 # (2) before a word containing "conftest.", or (3) at the end.
23723 # Note that $ac_compile itself does not contain backslashes and begins
23724 # with a dollar sign (not a hyphen), so the echo should work correctly.
23725 # The option is referenced via a variable to avoid confusing sed.
23726 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23729 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000023730 (eval echo "\"\$as_me:23730: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023731 (eval "$lt_compile" 2>conftest.err)
23732 ac_status=$?
23733 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000023734 echo "$as_me:23734: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023735 if (exit $ac_status) && test -s "$ac_outfile"; then
23736 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023737 # So say no if there are warnings other than the usual output.
23738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023741 lt_cv_prog_compiler_rtti_exceptions=yes
23742 fi
23743 fi
23744 $rm conftest*
23745
23746fi
Reid Spencera773bd52006-08-04 18:18:08 +000023747{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23748echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023749
23750if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23751 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23752else
23753 :
23754fi
23755
23756fi
23757
23758lt_prog_compiler_wl_GCJ=
23759lt_prog_compiler_pic_GCJ=
23760lt_prog_compiler_static_GCJ=
23761
Reid Spencera773bd52006-08-04 18:18:08 +000023762{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23763echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023764
23765 if test "$GCC" = yes; then
23766 lt_prog_compiler_wl_GCJ='-Wl,'
23767 lt_prog_compiler_static_GCJ='-static'
23768
23769 case $host_os in
23770 aix*)
23771 # All AIX code is PIC.
23772 if test "$host_cpu" = ia64; then
23773 # AIX 5 now supports IA64 processor
23774 lt_prog_compiler_static_GCJ='-Bstatic'
23775 fi
23776 ;;
23777
23778 amigaos*)
23779 # FIXME: we need at least 68020 code to build shared libraries, but
23780 # adding the `-m68020' flag to GCC prevents building anything better,
23781 # like `-m68040'.
23782 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23783 ;;
23784
23785 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23786 # PIC is the default for these OSes.
23787 ;;
23788
23789 mingw* | pw32* | os2*)
23790 # This hack is so that the source file can tell whether it is being
23791 # built for inclusion in a dll (and should export symbols for example).
23792 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23793 ;;
23794
23795 darwin* | rhapsody*)
23796 # PIC is the default on this platform
23797 # Common symbols not allowed in MH_DYLIB files
23798 lt_prog_compiler_pic_GCJ='-fno-common'
23799 ;;
23800
Reid Spencera773bd52006-08-04 18:18:08 +000023801 interix3*)
23802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23803 # Instead, we relocate shared libraries at runtime.
23804 ;;
23805
John Criswell47fdd832003-07-14 16:52:07 +000023806 msdosdjgpp*)
23807 # Just because we use GCC doesn't mean we suddenly get shared libraries
23808 # on systems that don't support them.
23809 lt_prog_compiler_can_build_shared_GCJ=no
23810 enable_shared=no
23811 ;;
23812
23813 sysv4*MP*)
23814 if test -d /usr/nec; then
23815 lt_prog_compiler_pic_GCJ=-Kconform_pic
23816 fi
23817 ;;
23818
23819 hpux*)
23820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23821 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023822 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023823 hppa*64*|ia64*)
23824 # +Z the default
23825 ;;
23826 *)
23827 lt_prog_compiler_pic_GCJ='-fPIC'
23828 ;;
23829 esac
23830 ;;
23831
23832 *)
23833 lt_prog_compiler_pic_GCJ='-fPIC'
23834 ;;
23835 esac
23836 else
23837 # PORTME Check for flag to pass linker flags through the system compiler.
23838 case $host_os in
23839 aix*)
23840 lt_prog_compiler_wl_GCJ='-Wl,'
23841 if test "$host_cpu" = ia64; then
23842 # AIX 5 now supports IA64 processor
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23844 else
23845 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23846 fi
23847 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023848 darwin*)
23849 # PIC is the default on this platform
23850 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023851 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023852 xlc*)
23853 lt_prog_compiler_pic_GCJ='-qnocommon'
23854 lt_prog_compiler_wl_GCJ='-Wl,'
23855 ;;
23856 esac
23857 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023858
23859 mingw* | pw32* | os2*)
23860 # This hack is so that the source file can tell whether it is being
23861 # built for inclusion in a dll (and should export symbols for example).
23862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23863 ;;
23864
23865 hpux9* | hpux10* | hpux11*)
23866 lt_prog_compiler_wl_GCJ='-Wl,'
23867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23868 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023869 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023870 hppa*64*|ia64*)
23871 # +Z the default
23872 ;;
23873 *)
23874 lt_prog_compiler_pic_GCJ='+Z'
23875 ;;
23876 esac
23877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23879 ;;
23880
23881 irix5* | irix6* | nonstopux*)
23882 lt_prog_compiler_wl_GCJ='-Wl,'
23883 # PIC (with -KPIC) is the default.
23884 lt_prog_compiler_static_GCJ='-non_shared'
23885 ;;
23886
23887 newsos6)
23888 lt_prog_compiler_pic_GCJ='-KPIC'
23889 lt_prog_compiler_static_GCJ='-Bstatic'
23890 ;;
23891
23892 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023893 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023894 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023895 lt_prog_compiler_wl_GCJ='-Wl,'
23896 lt_prog_compiler_pic_GCJ='-KPIC'
23897 lt_prog_compiler_static_GCJ='-static'
23898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023899 pgcc* | pgf77* | pgf90* | pgf95*)
23900 # Portland Group compilers (*not* the Pentium gcc compiler,
23901 # which looks to be a dead project)
23902 lt_prog_compiler_wl_GCJ='-Wl,'
23903 lt_prog_compiler_pic_GCJ='-fpic'
23904 lt_prog_compiler_static_GCJ='-Bstatic'
23905 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023906 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023907 lt_prog_compiler_wl_GCJ='-Wl,'
23908 # All Alpha code is PIC.
23909 lt_prog_compiler_static_GCJ='-non_shared'
23910 ;;
23911 esac
23912 ;;
23913
23914 osf3* | osf4* | osf5*)
23915 lt_prog_compiler_wl_GCJ='-Wl,'
23916 # All OSF/1 code is PIC.
23917 lt_prog_compiler_static_GCJ='-non_shared'
23918 ;;
23919
John Criswell47fdd832003-07-14 16:52:07 +000023920 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023921 lt_prog_compiler_pic_GCJ='-KPIC'
23922 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023923 case $cc_basename in
23924 f77* | f90* | f95*)
23925 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23926 *)
23927 lt_prog_compiler_wl_GCJ='-Wl,';;
23928 esac
John Criswell47fdd832003-07-14 16:52:07 +000023929 ;;
23930
23931 sunos4*)
23932 lt_prog_compiler_wl_GCJ='-Qoption ld '
23933 lt_prog_compiler_pic_GCJ='-PIC'
23934 lt_prog_compiler_static_GCJ='-Bstatic'
23935 ;;
23936
Reid Spencera773bd52006-08-04 18:18:08 +000023937 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023938 lt_prog_compiler_wl_GCJ='-Wl,'
23939 lt_prog_compiler_pic_GCJ='-KPIC'
23940 lt_prog_compiler_static_GCJ='-Bstatic'
23941 ;;
23942
23943 sysv4*MP*)
23944 if test -d /usr/nec ;then
23945 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
23947 fi
23948 ;;
23949
Reid Spencera773bd52006-08-04 18:18:08 +000023950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 lt_prog_compiler_pic_GCJ='-KPIC'
23953 lt_prog_compiler_static_GCJ='-Bstatic'
23954 ;;
23955
23956 unicos*)
23957 lt_prog_compiler_wl_GCJ='-Wl,'
23958 lt_prog_compiler_can_build_shared_GCJ=no
23959 ;;
23960
John Criswell47fdd832003-07-14 16:52:07 +000023961 uts4*)
23962 lt_prog_compiler_pic_GCJ='-pic'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23964 ;;
23965
23966 *)
23967 lt_prog_compiler_can_build_shared_GCJ=no
23968 ;;
23969 esac
23970 fi
23971
Reid Spencera773bd52006-08-04 18:18:08 +000023972{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23973echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023974
23975#
23976# Check to make sure the PIC flag actually works.
23977#
23978if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023979
Reid Spencera773bd52006-08-04 18:18:08 +000023980{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23981echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023982if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23984else
23985 lt_prog_compiler_pic_works_GCJ=no
23986 ac_outfile=conftest.$ac_objext
23987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23988 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23989 # Insert the option either (1) after the last *FLAGS variable, or
23990 # (2) before a word containing "conftest.", or (3) at the end.
23991 # Note that $ac_compile itself does not contain backslashes and begins
23992 # with a dollar sign (not a hyphen), so the echo should work correctly.
23993 # The option is referenced via a variable to avoid confusing sed.
23994 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23997 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000023998 (eval echo "\"\$as_me:23998: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023999 (eval "$lt_compile" 2>conftest.err)
24000 ac_status=$?
24001 cat conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024002 echo "$as_me:24002: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024003 if (exit $ac_status) && test -s "$ac_outfile"; then
24004 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024005 # So say no if there are warnings other than the usual output.
24006 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024009 lt_prog_compiler_pic_works_GCJ=yes
24010 fi
24011 fi
24012 $rm conftest*
24013
24014fi
Reid Spencera773bd52006-08-04 18:18:08 +000024015{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24016echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024017
24018if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24019 case $lt_prog_compiler_pic_GCJ in
24020 "" | " "*) ;;
24021 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24022 esac
24023else
24024 lt_prog_compiler_pic_GCJ=
24025 lt_prog_compiler_can_build_shared_GCJ=no
24026fi
24027
24028fi
Reid Spencera773bd52006-08-04 18:18:08 +000024029case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024030 # For platforms which do not support PIC, -DPIC is meaningless:
24031 *djgpp*)
24032 lt_prog_compiler_pic_GCJ=
24033 ;;
24034 *)
24035 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24036 ;;
24037esac
24038
Reid Spencera773bd52006-08-04 18:18:08 +000024039#
24040# Check to make sure the static flag actually works.
24041#
24042wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24043{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24044echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24045if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047else
24048 lt_prog_compiler_static_works_GCJ=no
24049 save_LDFLAGS="$LDFLAGS"
24050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24051 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24053 # The linker can only warn and ignore the option if not recognized
24054 # So say no if there are warnings
24055 if test -s conftest.err; then
24056 # Append any errors to the config.log.
24057 cat conftest.err 1>&5
24058 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24060 if diff conftest.exp conftest.er2 >/dev/null; then
24061 lt_prog_compiler_static_works_GCJ=yes
24062 fi
24063 else
24064 lt_prog_compiler_static_works_GCJ=yes
24065 fi
24066 fi
24067 $rm conftest*
24068 LDFLAGS="$save_LDFLAGS"
24069
24070fi
24071{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24072echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24073
24074if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24075 :
24076else
24077 lt_prog_compiler_static_GCJ=
24078fi
24079
24080
24081{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24082echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024083if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086 lt_cv_prog_compiler_c_o_GCJ=no
24087 $rm -r conftest 2>/dev/null
24088 mkdir conftest
24089 cd conftest
24090 mkdir out
24091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24092
John Criswell47fdd832003-07-14 16:52:07 +000024093 lt_compiler_flag="-o out/conftest2.$ac_objext"
24094 # Insert the option either (1) after the last *FLAGS variable, or
24095 # (2) before a word containing "conftest.", or (3) at the end.
24096 # Note that $ac_compile itself does not contain backslashes and begins
24097 # with a dollar sign (not a hyphen), so the echo should work correctly.
24098 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24101 -e 's:$: $lt_compiler_flag:'`
Bill Wendlingebcceee2009-04-18 11:20:33 +000024102 (eval echo "\"\$as_me:24102: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024103 (eval "$lt_compile" 2>out/conftest.err)
24104 ac_status=$?
24105 cat out/conftest.err >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024106 echo "$as_me:24106: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24108 then
24109 # The compiler can only warn and ignore the option if not recognized
24110 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024111 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024114 lt_cv_prog_compiler_c_o_GCJ=yes
24115 fi
24116 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024117 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024118 $rm conftest*
24119 # SGI C++ compiler will create directory out/ii_files/ for
24120 # template instantiation
24121 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24122 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024123 cd ..
24124 rmdir conftest
24125 $rm conftest*
24126
24127fi
Reid Spencera773bd52006-08-04 18:18:08 +000024128{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24129echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024130
24131
24132hard_links="nottested"
24133if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24134 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024135 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24136echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024137 hard_links=yes
24138 $rm conftest*
24139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24140 touch conftest.a
24141 ln conftest.a conftest.b 2>&5 || hard_links=no
24142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024143 { echo "$as_me:$LINENO: result: $hard_links" >&5
24144echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024145 if test "$hard_links" = no; then
24146 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24147echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24148 need_locks=warn
24149 fi
24150else
24151 need_locks=no
24152fi
24153
Reid Spencera773bd52006-08-04 18:18:08 +000024154{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24155echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024156
24157 runpath_var=
24158 allow_undefined_flag_GCJ=
24159 enable_shared_with_static_runtimes_GCJ=no
24160 archive_cmds_GCJ=
24161 archive_expsym_cmds_GCJ=
24162 old_archive_From_new_cmds_GCJ=
24163 old_archive_from_expsyms_cmds_GCJ=
24164 export_dynamic_flag_spec_GCJ=
24165 whole_archive_flag_spec_GCJ=
24166 thread_safe_flag_spec_GCJ=
24167 hardcode_libdir_flag_spec_GCJ=
24168 hardcode_libdir_flag_spec_ld_GCJ=
24169 hardcode_libdir_separator_GCJ=
24170 hardcode_direct_GCJ=no
24171 hardcode_minus_L_GCJ=no
24172 hardcode_shlibpath_var_GCJ=unsupported
24173 link_all_deplibs_GCJ=unknown
24174 hardcode_automatic_GCJ=no
24175 module_cmds_GCJ=
24176 module_expsym_cmds_GCJ=
24177 always_export_symbols_GCJ=no
24178 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24179 # include_expsyms should be a list of space-separated symbols to be *always*
24180 # included in the symbol list
24181 include_expsyms_GCJ=
24182 # exclude_expsyms can be an extended regexp of symbols to exclude
24183 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24185 # as well as any symbol that contains `d'.
24186 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24188 # platforms (ab)use it in PIC code, but their linkers get confused if
24189 # the symbol is explicitly referenced. Since portable code cannot
24190 # rely on this symbol name, it's probably fine to never include it in
24191 # preloaded symbol tables.
24192 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024193 # Just being paranoid about ensuring that cc_basename is set.
24194 for cc_temp in $compiler""; do
24195 case $cc_temp in
24196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24198 \-*) ;;
24199 *) break;;
24200 esac
24201done
24202cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024203
24204 case $host_os in
24205 cygwin* | mingw* | pw32*)
24206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24207 # When not using gcc, we currently assume that we are using
24208 # Microsoft Visual C++.
24209 if test "$GCC" != yes; then
24210 with_gnu_ld=no
24211 fi
24212 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024213 interix*)
24214 # we just hope/assume this is gcc and not c89 (= MSVC++)
24215 with_gnu_ld=yes
24216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024217 openbsd*)
24218 with_gnu_ld=no
24219 ;;
24220 esac
24221
24222 ld_shlibs_GCJ=yes
24223 if test "$with_gnu_ld" = yes; then
24224 # If archive_cmds runs LD, not CC, wlarc should be empty
24225 wlarc='${wl}'
24226
Reid Spencera773bd52006-08-04 18:18:08 +000024227 # Set some defaults for GNU ld with shared library support. These
24228 # are reset later if shared libraries are not supported. Putting them
24229 # here allows them to be overridden if necessary.
24230 runpath_var=LD_RUN_PATH
24231 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24232 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24233 # ancient GNU ld didn't support --whole-archive et. al.
24234 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24235 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24236 else
24237 whole_archive_flag_spec_GCJ=
24238 fi
24239 supports_anon_versioning=no
24240 case `$LD -v 2>/dev/null` in
24241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24244 *\ 2.11.*) ;; # other 2.11 versions
24245 *) supports_anon_versioning=yes ;;
24246 esac
24247
John Criswell47fdd832003-07-14 16:52:07 +000024248 # See if GNU ld supports shared libraries.
24249 case $host_os in
24250 aix3* | aix4* | aix5*)
24251 # On AIX/PPC, the GNU linker is very broken
24252 if test "$host_cpu" != ia64; then
24253 ld_shlibs_GCJ=no
24254 cat <<EOF 1>&2
24255
24256*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24257*** to be unable to reliably create shared libraries on AIX.
24258*** Therefore, libtool is disabling shared libraries support. If you
24259*** really care for shared libraries, you may want to modify your PATH
24260*** so that a non-GNU linker is found, and then restart.
24261
24262EOF
24263 fi
24264 ;;
24265
24266 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024267 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 +000024268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24269 hardcode_minus_L_GCJ=yes
24270
24271 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24272 # that the semantics of dynamic libraries on AmigaOS, at least up
24273 # to version 4, is to share data among multiple programs linked
24274 # with the same dynamic library. Since this doesn't match the
24275 # behavior of shared libraries on other platforms, we can't use
24276 # them.
24277 ld_shlibs_GCJ=no
24278 ;;
24279
24280 beos*)
24281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24282 allow_undefined_flag_GCJ=unsupported
24283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24284 # support --undefined. This deserves some investigation. FIXME
24285 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24286 else
24287 ld_shlibs_GCJ=no
24288 fi
24289 ;;
24290
24291 cygwin* | mingw* | pw32*)
24292 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24293 # as there is no search path for DLLs.
24294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24295 allow_undefined_flag_GCJ=unsupported
24296 always_export_symbols_GCJ=no
24297 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024298 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 +000024299
24300 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024301 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 +000024302 # If the export-symbols file already is a .def file (1st line
24303 # is EXPORTS), use it as is; otherwise, prepend...
24304 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24305 cp $export_symbols $output_objdir/$soname.def;
24306 else
24307 echo EXPORTS > $output_objdir/$soname.def;
24308 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024309 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024310 $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 +000024311 else
Reid Spencera773bd52006-08-04 18:18:08 +000024312 ld_shlibs_GCJ=no
24313 fi
24314 ;;
24315
24316 interix3*)
24317 hardcode_direct_GCJ=no
24318 hardcode_shlibpath_var_GCJ=no
24319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24320 export_dynamic_flag_spec_GCJ='${wl}-E'
24321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24322 # Instead, shared libraries are loaded at an image base (0x10000000 by
24323 # default) and relocated if they conflict, which is a slow very memory
24324 # consuming and fragmenting process. To avoid this, we pick a random,
24325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24327 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'
24328 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'
24329 ;;
24330
24331 linux*)
24332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24333 tmp_addflag=
24334 case $cc_basename,$host_cpu in
24335 pgcc*) # Portland Group C compiler
24336 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'
24337 tmp_addflag=' $pic_flag'
24338 ;;
24339 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24340 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'
24341 tmp_addflag=' $pic_flag -Mnomain' ;;
24342 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24343 tmp_addflag=' -i_dynamic' ;;
24344 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24345 tmp_addflag=' -i_dynamic -nofor_main' ;;
24346 ifc* | ifort*) # Intel Fortran compiler
24347 tmp_addflag=' -nofor_main' ;;
24348 esac
24349 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24350
24351 if test $supports_anon_versioning = yes; then
24352 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24354 $echo "local: *; };" >> $output_objdir/$libname.ver~
24355 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24356 fi
24357 else
24358 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024359 fi
24360 ;;
24361
24362 netbsd*)
24363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24364 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24365 wlarc=
24366 else
24367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24369 fi
24370 ;;
24371
Reid Spencera773bd52006-08-04 18:18:08 +000024372 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024373 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24374 ld_shlibs_GCJ=no
24375 cat <<EOF 1>&2
24376
24377*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24378*** create shared libraries on Solaris systems. Therefore, libtool
24379*** is disabling shared libraries support. We urge you to upgrade GNU
24380*** binutils to release 2.9.1 or newer. Another option is to modify
24381*** your PATH or compiler configuration so that the native linker is
24382*** used, and then restart.
24383
24384EOF
24385 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24388 else
24389 ld_shlibs_GCJ=no
24390 fi
24391 ;;
24392
Reid Spencera773bd52006-08-04 18:18:08 +000024393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24394 case `$LD -v 2>&1` in
24395 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24396 ld_shlibs_GCJ=no
24397 cat <<_LT_EOF 1>&2
24398
24399*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24400*** reliably create shared libraries on SCO systems. Therefore, libtool
24401*** is disabling shared libraries support. We urge you to upgrade GNU
24402*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24403*** your PATH or compiler configuration so that the native linker is
24404*** used, and then restart.
24405
24406_LT_EOF
24407 ;;
24408 *)
24409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24412 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24413 else
24414 ld_shlibs_GCJ=no
24415 fi
24416 ;;
24417 esac
24418 ;;
24419
John Criswell47fdd832003-07-14 16:52:07 +000024420 sunos4*)
24421 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24422 wlarc=
24423 hardcode_direct_GCJ=yes
24424 hardcode_shlibpath_var_GCJ=no
24425 ;;
24426
24427 *)
24428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24430 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24431 else
24432 ld_shlibs_GCJ=no
24433 fi
24434 ;;
24435 esac
24436
Reid Spencera773bd52006-08-04 18:18:08 +000024437 if test "$ld_shlibs_GCJ" = no; then
24438 runpath_var=
24439 hardcode_libdir_flag_spec_GCJ=
24440 export_dynamic_flag_spec_GCJ=
24441 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024442 fi
24443 else
24444 # PORTME fill in a description of your system's linker (not GNU ld)
24445 case $host_os in
24446 aix3*)
24447 allow_undefined_flag_GCJ=unsupported
24448 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024449 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 +000024450 # Note: this linker hardcodes the directories in LIBPATH if there
24451 # are no directories specified by -L.
24452 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024454 # Neither direct hardcoding nor static linking is supported with a
24455 # broken collect2.
24456 hardcode_direct_GCJ=unsupported
24457 fi
24458 ;;
24459
24460 aix4* | aix5*)
24461 if test "$host_cpu" = ia64; then
24462 # On IA64, the linker does run time linking by default, so we don't
24463 # have to do anything special.
24464 aix_use_runtimelinking=no
24465 exp_sym_flag='-Bexport'
24466 no_entry_flag=""
24467 else
24468 # If we're using GNU nm, then we don't want the "-C" option.
24469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24471 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'
24472 else
24473 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'
24474 fi
24475 aix_use_runtimelinking=no
24476
24477 # Test if we are trying to use run time linking or normal
24478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24479 # need to do runtime linking.
24480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24481 for ld_flag in $LDFLAGS; do
24482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24483 aix_use_runtimelinking=yes
24484 break
24485 fi
24486 done
Reid Spencera773bd52006-08-04 18:18:08 +000024487 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024488 esac
24489
24490 exp_sym_flag='-bexport'
24491 no_entry_flag='-bnoentry'
24492 fi
24493
24494 # When large executables or shared objects are built, AIX ld can
24495 # have problems creating the table of contents. If linking a library
24496 # or program results in "error TOC overflow" add -mminimal-toc to
24497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24499
24500 archive_cmds_GCJ=''
24501 hardcode_direct_GCJ=yes
24502 hardcode_libdir_separator_GCJ=':'
24503 link_all_deplibs_GCJ=yes
24504
24505 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024506 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024507 # We only want to do this on AIX 4.2 and lower, the check
24508 # below for broken collect2 doesn't work under 4.3+
24509 collect2name=`${CC} -print-prog-name=collect2`
24510 if test -f "$collect2name" && \
24511 strings "$collect2name" | grep resolve_lib_name >/dev/null
24512 then
24513 # We have reworked collect2
24514 hardcode_direct_GCJ=yes
24515 else
24516 # We have old collect2
24517 hardcode_direct_GCJ=unsupported
24518 # It fails to find uninstalled libraries when the uninstalled
24519 # path is not listed in the libpath. Setting hardcode_minus_L
24520 # to unsupported forces relinking
24521 hardcode_minus_L_GCJ=yes
24522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24523 hardcode_libdir_separator_GCJ=
24524 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024525 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024526 esac
24527 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024528 if test "$aix_use_runtimelinking" = yes; then
24529 shared_flag="$shared_flag "'${wl}-G'
24530 fi
John Criswell47fdd832003-07-14 16:52:07 +000024531 else
24532 # not using gcc
24533 if test "$host_cpu" = ia64; then
24534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24535 # chokes on -Wl,-G. The following line is correct:
24536 shared_flag='-G'
24537 else
Reid Spencera773bd52006-08-04 18:18:08 +000024538 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024539 shared_flag='${wl}-G'
24540 else
24541 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024542 fi
John Criswell47fdd832003-07-14 16:52:07 +000024543 fi
24544 fi
24545
24546 # It seems that -bexpall does not export symbols beginning with
24547 # underscore (_), so it is better to generate a list of symbols to export.
24548 always_export_symbols_GCJ=yes
24549 if test "$aix_use_runtimelinking" = yes; then
24550 # Warning - without using the other runtime loading flags (-brtl),
24551 # -berok will link without error, but may produce a broken library.
24552 allow_undefined_flag_GCJ='-berok'
24553 # Determine the default libpath from the value encoded in an empty executable.
24554 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024555/* confdefs.h. */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024560
John Criswell47fdd832003-07-14 16:52:07 +000024561int
24562main ()
24563{
24564
24565 ;
24566 return 0;
24567}
24568_ACEOF
24569rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024570if { (ac_try="$ac_link"
24571case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574esac
24575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584 { (case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24587esac
24588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_try") 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; } &&
24593 { ac_try='test -s conftest$ac_exeext'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597esac
24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024603
24604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24605}'`
24606# Check for a 64-bit object if we didn't find anything.
24607if 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; }
24608}'`; fi
24609else
24610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024611sed 's/^/| /' conftest.$ac_ext >&5
24612
Reid Spencera773bd52006-08-04 18:18:08 +000024613
John Criswell47fdd832003-07-14 16:52:07 +000024614fi
Reid Spencera773bd52006-08-04 18:18:08 +000024615
Bill Wendlingebcceee2009-04-18 11:20:33 +000024616rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024617 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24619
24620 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024621 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 +000024622 else
24623 if test "$host_cpu" = ia64; then
24624 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24625 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024626 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 +000024627 else
24628 # Determine the default libpath from the value encoded in an empty executable.
24629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024630/* confdefs.h. */
24631_ACEOF
24632cat confdefs.h >>conftest.$ac_ext
24633cat >>conftest.$ac_ext <<_ACEOF
24634/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024635
John Criswell47fdd832003-07-14 16:52:07 +000024636int
24637main ()
24638{
24639
24640 ;
24641 return 0;
24642}
24643_ACEOF
24644rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024645if { (ac_try="$ac_link"
24646case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24649esac
24650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024653 grep -v '^ *+' conftest.er1 >conftest.err
24654 rm -f conftest.er1
24655 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024657 (exit $ac_status); } &&
24658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24659 { (case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24662esac
24663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_try") 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; } &&
24668 { ac_try='test -s conftest$ac_exeext'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672esac
24673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024678
24679aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24680}'`
24681# Check for a 64-bit object if we didn't find anything.
24682if 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; }
24683}'`; fi
24684else
24685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024686sed 's/^/| /' conftest.$ac_ext >&5
24687
Reid Spencera773bd52006-08-04 18:18:08 +000024688
John Criswell47fdd832003-07-14 16:52:07 +000024689fi
Reid Spencera773bd52006-08-04 18:18:08 +000024690
Bill Wendlingebcceee2009-04-18 11:20:33 +000024691rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024692 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24694
24695 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24696 # Warning - without using the other run time loading flags,
24697 # -berok will link without error, but may produce a broken library.
24698 no_undefined_flag_GCJ=' ${wl}-bernotok'
24699 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024700 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024701 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024702 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024703 # This is similar to how AIX traditionally builds its shared libraries.
24704 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 +000024705 fi
24706 fi
24707 ;;
24708
24709 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024710 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 +000024711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24712 hardcode_minus_L_GCJ=yes
24713 # see comment about different semantics on the GNU ld section
24714 ld_shlibs_GCJ=no
24715 ;;
24716
Reid Spencer2706f8c2004-09-19 23:53:36 +000024717 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024718 export_dynamic_flag_spec_GCJ=-rdynamic
24719 ;;
24720
24721 cygwin* | mingw* | pw32*)
24722 # When not using gcc, we currently assume that we are using
24723 # Microsoft Visual C++.
24724 # hardcode_libdir_flag_spec is actually meaningless, as there is
24725 # no search path for DLLs.
24726 hardcode_libdir_flag_spec_GCJ=' '
24727 allow_undefined_flag_GCJ=unsupported
24728 # Tell ltmain to make .lib files, not .a files.
24729 libext=lib
24730 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024731 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024732 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024733 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 +000024734 # The linker will automatically build a .lib file if we build a DLL.
24735 old_archive_From_new_cmds_GCJ='true'
24736 # FIXME: Should let the user specify the lib program.
24737 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024738 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024739 enable_shared_with_static_runtimes_GCJ=yes
24740 ;;
24741
24742 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024743 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024744 rhapsody* | darwin1.[012])
24745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24746 ;;
24747 *) # Darwin 1.3 on
24748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24750 else
24751 case ${MACOSX_DEPLOYMENT_TARGET} in
24752 10.[012])
24753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24754 ;;
24755 10.*)
24756 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24757 ;;
24758 esac
24759 fi
24760 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024761 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024762 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024763 hardcode_direct_GCJ=no
24764 hardcode_automatic_GCJ=yes
24765 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024766 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024767 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024768 if test "$GCC" = yes ; then
24769 output_verbose_link_cmd='echo'
24770 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24771 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024772 # 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 +000024773 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}'
24774 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 +000024775 else
Reid Spencera773bd52006-08-04 18:18:08 +000024776 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024777 xlc*)
24778 output_verbose_link_cmd='echo'
24779 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24780 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024781 # 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 +000024782 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}'
24783 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 +000024784 ;;
24785 *)
24786 ld_shlibs_GCJ=no
24787 ;;
24788 esac
John Criswell47fdd832003-07-14 16:52:07 +000024789 fi
24790 ;;
24791
24792 dgux*)
24793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24795 hardcode_shlibpath_var_GCJ=no
24796 ;;
24797
24798 freebsd1*)
24799 ld_shlibs_GCJ=no
24800 ;;
24801
24802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24803 # support. Future versions do this automatically, but an explicit c++rt0.o
24804 # does not break anything, and helps significantly (at the cost of a little
24805 # extra space).
24806 freebsd2.2*)
24807 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809 hardcode_direct_GCJ=yes
24810 hardcode_shlibpath_var_GCJ=no
24811 ;;
24812
24813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24814 freebsd2*)
24815 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24816 hardcode_direct_GCJ=yes
24817 hardcode_minus_L_GCJ=yes
24818 hardcode_shlibpath_var_GCJ=no
24819 ;;
24820
24821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024822 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024823 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24825 hardcode_direct_GCJ=yes
24826 hardcode_shlibpath_var_GCJ=no
24827 ;;
24828
24829 hpux9*)
24830 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024831 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 +000024832 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024833 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 +000024834 fi
24835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836 hardcode_libdir_separator_GCJ=:
24837 hardcode_direct_GCJ=yes
24838
24839 # hardcode_minus_L: Not really in the search PATH,
24840 # but as the default location of the library.
24841 hardcode_minus_L_GCJ=yes
24842 export_dynamic_flag_spec_GCJ='${wl}-E'
24843 ;;
24844
Reid Spencera773bd52006-08-04 18:18:08 +000024845 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024847 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24848 else
24849 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24850 fi
24851 if test "$with_gnu_ld" = no; then
24852 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853 hardcode_libdir_separator_GCJ=:
24854
24855 hardcode_direct_GCJ=yes
24856 export_dynamic_flag_spec_GCJ='${wl}-E'
24857
24858 # hardcode_minus_L: Not really in the search PATH,
24859 # but as the default location of the library.
24860 hardcode_minus_L_GCJ=yes
24861 fi
24862 ;;
24863
24864 hpux11*)
24865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24866 case $host_cpu in
24867 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024868 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024870 ia64*)
24871 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024873 *)
24874 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24875 ;;
24876 esac
24877 else
Reid Spencera773bd52006-08-04 18:18:08 +000024878 case $host_cpu in
24879 hppa*64*)
24880 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24881 ;;
24882 ia64*)
24883 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024884 ;;
24885 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024886 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 +000024887 ;;
24888 esac
24889 fi
24890 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024891 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24892 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024893
Reid Spencera773bd52006-08-04 18:18:08 +000024894 case $host_cpu in
24895 hppa*64*|ia64*)
24896 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24897 hardcode_direct_GCJ=no
24898 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024899 ;;
24900 *)
John Criswell47fdd832003-07-14 16:52:07 +000024901 hardcode_direct_GCJ=yes
24902 export_dynamic_flag_spec_GCJ='${wl}-E'
24903
24904 # hardcode_minus_L: Not really in the search PATH,
24905 # but as the default location of the library.
24906 hardcode_minus_L_GCJ=yes
24907 ;;
24908 esac
24909 fi
24910 ;;
24911
24912 irix5* | irix6* | nonstopux*)
24913 if test "$GCC" = yes; then
24914 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'
24915 else
24916 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'
24917 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24918 fi
24919 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24920 hardcode_libdir_separator_GCJ=:
24921 link_all_deplibs_GCJ=yes
24922 ;;
24923
24924 netbsd*)
24925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24926 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24927 else
24928 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24929 fi
24930 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24931 hardcode_direct_GCJ=yes
24932 hardcode_shlibpath_var_GCJ=no
24933 ;;
24934
24935 newsos6)
24936 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24937 hardcode_direct_GCJ=yes
24938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24939 hardcode_libdir_separator_GCJ=:
24940 hardcode_shlibpath_var_GCJ=no
24941 ;;
24942
24943 openbsd*)
24944 hardcode_direct_GCJ=yes
24945 hardcode_shlibpath_var_GCJ=no
24946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24947 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024948 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 +000024949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24950 export_dynamic_flag_spec_GCJ='${wl}-E'
24951 else
24952 case $host_os in
24953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24956 ;;
24957 *)
24958 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960 ;;
24961 esac
24962 fi
24963 ;;
24964
24965 os2*)
24966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24967 hardcode_minus_L_GCJ=yes
24968 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024969 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 +000024970 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24971 ;;
24972
24973 osf3*)
24974 if test "$GCC" = yes; then
24975 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24976 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'
24977 else
24978 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24979 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'
24980 fi
24981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24982 hardcode_libdir_separator_GCJ=:
24983 ;;
24984
24985 osf4* | osf5*) # as osf3* with the addition of -msym flag
24986 if test "$GCC" = yes; then
24987 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24988 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'
24989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24990 else
24991 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24992 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 +000024993 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 +000024994 $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 +000024995
John Criswell47fdd832003-07-14 16:52:07 +000024996 # Both c and cxx compiler support -rpath directly
24997 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24998 fi
24999 hardcode_libdir_separator_GCJ=:
25000 ;;
25001
John Criswell47fdd832003-07-14 16:52:07 +000025002 solaris*)
25003 no_undefined_flag_GCJ=' -z text'
25004 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025005 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025006 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025007 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25008 $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 +000025009 else
Reid Spencera773bd52006-08-04 18:18:08 +000025010 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025011 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025012 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25013 $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 +000025014 fi
25015 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25016 hardcode_shlibpath_var_GCJ=no
25017 case $host_os in
25018 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025019 *)
25020 # The compiler driver will combine linker options so we
25021 # cannot just pass the convience library names through
25022 # without $wl, iff we do not link with $LD.
25023 # Luckily, gcc supports the same syntax we need for Sun Studio.
25024 # Supported since Solaris 2.6 (maybe 2.5.1?)
25025 case $wlarc in
25026 '')
25027 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25028 *)
25029 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' ;;
25030 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025031 esac
25032 link_all_deplibs_GCJ=yes
25033 ;;
25034
25035 sunos4*)
25036 if test "x$host_vendor" = xsequent; then
25037 # Use $CC to link under sequent, because it throws in some extra .o
25038 # files that make .init and .fini sections work.
25039 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25040 else
25041 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25042 fi
25043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25044 hardcode_direct_GCJ=yes
25045 hardcode_minus_L_GCJ=yes
25046 hardcode_shlibpath_var_GCJ=no
25047 ;;
25048
25049 sysv4)
25050 case $host_vendor in
25051 sni)
25052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25053 hardcode_direct_GCJ=yes # is this really true???
25054 ;;
25055 siemens)
25056 ## LD is ld it makes a PLAMLIB
25057 ## CC just makes a GrossModule.
25058 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25059 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25060 hardcode_direct_GCJ=no
25061 ;;
25062 motorola)
25063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25065 ;;
25066 esac
25067 runpath_var='LD_RUN_PATH'
25068 hardcode_shlibpath_var_GCJ=no
25069 ;;
25070
25071 sysv4.3*)
25072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25073 hardcode_shlibpath_var_GCJ=no
25074 export_dynamic_flag_spec_GCJ='-Bexport'
25075 ;;
25076
25077 sysv4*MP*)
25078 if test -d /usr/nec; then
25079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25080 hardcode_shlibpath_var_GCJ=no
25081 runpath_var=LD_RUN_PATH
25082 hardcode_runpath_var=yes
25083 ld_shlibs_GCJ=yes
25084 fi
25085 ;;
25086
Reid Spencera773bd52006-08-04 18:18:08 +000025087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25088 no_undefined_flag_GCJ='${wl}-z,text'
25089 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025090 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025091 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025092
John Criswell47fdd832003-07-14 16:52:07 +000025093 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025094 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25095 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 +000025096 else
Reid Spencera773bd52006-08-04 18:18:08 +000025097 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25098 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 +000025099 fi
John Criswell47fdd832003-07-14 16:52:07 +000025100 ;;
25101
Reid Spencera773bd52006-08-04 18:18:08 +000025102 sysv5* | sco3.2v5* | sco5v6*)
25103 # Note: We can NOT use -z defs as we might desire, because we do not
25104 # link with -lc, and that would cause any symbols used from libc to
25105 # always be unresolved, which means just about no library would
25106 # ever link correctly. If we're not using GNU ld we use -z text
25107 # though, which does catch some bad symbols but isn't as heavy-handed
25108 # as -z defs.
25109 no_undefined_flag_GCJ='${wl}-z,text'
25110 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25111 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025112 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025113 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25114 hardcode_libdir_separator_GCJ=':'
25115 link_all_deplibs_GCJ=yes
25116 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025117 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025118
25119 if test "$GCC" = yes; then
25120 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25121 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25122 else
25123 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25124 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25125 fi
John Criswell47fdd832003-07-14 16:52:07 +000025126 ;;
25127
25128 uts4*)
25129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25131 hardcode_shlibpath_var_GCJ=no
25132 ;;
25133
25134 *)
25135 ld_shlibs_GCJ=no
25136 ;;
25137 esac
25138 fi
25139
Reid Spencera773bd52006-08-04 18:18:08 +000025140{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25141echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025142test "$ld_shlibs_GCJ" = no && can_build_shared=no
25143
John Criswell47fdd832003-07-14 16:52:07 +000025144#
25145# Do we need to explicitly link libc?
25146#
25147case "x$archive_cmds_need_lc_GCJ" in
25148x|xyes)
25149 # Assume -lc should be added
25150 archive_cmds_need_lc_GCJ=yes
25151
25152 if test "$enable_shared" = yes && test "$GCC" = yes; then
25153 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025154 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025155 # FIXME: we may have to deal with multi-command sequences.
25156 ;;
25157 '$CC '*)
25158 # Test whether the compiler implicitly links with -lc since on some
25159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25160 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025161 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25162echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025163 $rm conftest*
25164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25165
25166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25167 (eval $ac_compile) 2>&5
25168 ac_status=$?
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } 2>conftest.err; then
25171 soname=conftest
25172 lib=conftest
25173 libobjs=conftest.$ac_objext
25174 deplibs=
25175 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025176 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025177 compiler_flags=-v
25178 linker_flags=-v
25179 verstring=
25180 output_objdir=.
25181 libname=conftest
25182 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25183 allow_undefined_flag_GCJ=
25184 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25185 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }
25189 then
25190 archive_cmds_need_lc_GCJ=no
25191 else
25192 archive_cmds_need_lc_GCJ=yes
25193 fi
25194 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25195 else
25196 cat conftest.err 1>&5
25197 fi
25198 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025199 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25200echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025201 ;;
25202 esac
25203 fi
25204 ;;
25205esac
25206
Reid Spencera773bd52006-08-04 18:18:08 +000025207{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25208echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025209library_names_spec=
25210libname_spec='lib$name'
25211soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025212shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025213postinstall_cmds=
25214postuninstall_cmds=
25215finish_cmds=
25216finish_eval=
25217shlibpath_var=
25218shlibpath_overrides_runpath=unknown
25219version_type=none
25220dynamic_linker="$host_os ld.so"
25221sys_lib_dlsearch_path_spec="/lib /usr/lib"
25222if test "$GCC" = yes; then
25223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25224 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25225 # if the path contains ";" then we assume it to be the separator
25226 # otherwise default to the standard path separator (i.e. ":") - it is
25227 # assumed that no part of a normal pathname contains ";" but that should
25228 # okay in the real world where ";" in dirpaths is itself problematic.
25229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25230 else
25231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25232 fi
25233else
25234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25235fi
25236need_lib_prefix=unknown
25237hardcode_into_libs=no
25238
25239# when you set need_version to no, make sure it does not cause -set_version
25240# flags to be left without arguments
25241need_version=unknown
25242
25243case $host_os in
25244aix3*)
25245 version_type=linux
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25247 shlibpath_var=LIBPATH
25248
25249 # AIX 3 has no versioning support, so we append a major version to the name.
25250 soname_spec='${libname}${release}${shared_ext}$major'
25251 ;;
25252
25253aix4* | aix5*)
25254 version_type=linux
25255 need_lib_prefix=no
25256 need_version=no
25257 hardcode_into_libs=yes
25258 if test "$host_cpu" = ia64; then
25259 # AIX 5 supports IA64
25260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25261 shlibpath_var=LD_LIBRARY_PATH
25262 else
25263 # With GCC up to 2.95.x, collect2 would create an import file
25264 # for dependence libraries. The import file would start with
25265 # the line `#! .'. This would cause the generated library to
25266 # depend on `.', always an invalid library. This was fixed in
25267 # development snapshots of GCC prior to 3.0.
25268 case $host_os in
25269 aix4 | aix4.[01] | aix4.[01].*)
25270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25271 echo ' yes '
25272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25273 :
25274 else
25275 can_build_shared=no
25276 fi
25277 ;;
25278 esac
25279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25280 # soname into executable. Probably we can add versioning support to
25281 # collect2, so additional links can be useful in future.
25282 if test "$aix_use_runtimelinking" = yes; then
25283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25284 # instead of lib<name>.a to let people know that these are not
25285 # typical AIX shared libraries.
25286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25287 else
25288 # We preserve .a as extension for shared libraries through AIX4.2
25289 # and later when we are not doing run time linking.
25290 library_names_spec='${libname}${release}.a $libname.a'
25291 soname_spec='${libname}${release}${shared_ext}$major'
25292 fi
25293 shlibpath_var=LIBPATH
25294 fi
25295 ;;
25296
25297amigaos*)
25298 library_names_spec='$libname.ixlibrary $libname.a'
25299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025300 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 +000025301 ;;
25302
25303beos*)
25304 library_names_spec='${libname}${shared_ext}'
25305 dynamic_linker="$host_os ld.so"
25306 shlibpath_var=LIBRARY_PATH
25307 ;;
25308
Reid Spencer2706f8c2004-09-19 23:53:36 +000025309bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025310 version_type=linux
25311 need_version=no
25312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25313 soname_spec='${libname}${release}${shared_ext}$major'
25314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25315 shlibpath_var=LD_LIBRARY_PATH
25316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25318 # the default ld.so.conf also contains /usr/contrib/lib and
25319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25320 # libtool to hard-code these into programs
25321 ;;
25322
25323cygwin* | mingw* | pw32*)
25324 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025325 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025326 need_version=no
25327 need_lib_prefix=no
25328
25329 case $GCC,$host_os in
25330 yes,cygwin* | yes,mingw* | yes,pw32*)
25331 library_names_spec='$libname.dll.a'
25332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025333 postinstall_cmds='base_file=`basename \${file}`~
25334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25335 dldir=$destdir/`dirname \$dlpath`~
25336 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025337 $install_prog $dir/$dlname \$dldir/$dlname~
25338 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25340 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025341 $rm \$dlpath'
25342 shlibpath_overrides_runpath=yes
25343
25344 case $host_os in
25345 cygwin*)
25346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25347 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 +000025348 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025349 ;;
25350 mingw*)
25351 # MinGW DLLs use traditional 'lib' prefix
25352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25354 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25355 # It is most probably a Windows format PATH printed by
25356 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25357 # path with ; separators, and with drive letters. We can handle the
25358 # drive letters (cygwin fileutils understands them), so leave them,
25359 # especially as we might pass files found there to a mingw objdump,
25360 # which wouldn't understand a cygwinified path. Ahh.
25361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25362 else
25363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25364 fi
25365 ;;
25366 pw32*)
25367 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025368 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 +000025369 ;;
25370 esac
25371 ;;
25372
25373 *)
25374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25375 ;;
25376 esac
25377 dynamic_linker='Win32 ld.exe'
25378 # FIXME: first we should search . and the directory the executable is in
25379 shlibpath_var=PATH
25380 ;;
25381
25382darwin* | rhapsody*)
25383 dynamic_linker="$host_os dyld"
25384 version_type=darwin
25385 need_lib_prefix=no
25386 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025387 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025388 soname_spec='${libname}${release}${major}$shared_ext'
25389 shlibpath_overrides_runpath=yes
25390 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025391 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025392 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025393 if test "$GCC" = yes; then
25394 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"`
25395 else
25396 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025397 fi
25398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25399 ;;
25400
25401dgux*)
25402 version_type=linux
25403 need_lib_prefix=no
25404 need_version=no
25405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25406 soname_spec='${libname}${release}${shared_ext}$major'
25407 shlibpath_var=LD_LIBRARY_PATH
25408 ;;
25409
25410freebsd1*)
25411 dynamic_linker=no
25412 ;;
25413
Reid Spencer2706f8c2004-09-19 23:53:36 +000025414kfreebsd*-gnu)
25415 version_type=linux
25416 need_lib_prefix=no
25417 need_version=no
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25419 soname_spec='${libname}${release}${shared_ext}$major'
25420 shlibpath_var=LD_LIBRARY_PATH
25421 shlibpath_overrides_runpath=no
25422 hardcode_into_libs=yes
25423 dynamic_linker='GNU ld.so'
25424 ;;
25425
Reid Spencera773bd52006-08-04 18:18:08 +000025426freebsd* | dragonfly*)
25427 # DragonFly does not have aout. When/if they implement a new
25428 # versioning mechanism, adjust this.
25429 if test -x /usr/bin/objformat; then
25430 objformat=`/usr/bin/objformat`
25431 else
25432 case $host_os in
25433 freebsd[123]*) objformat=aout ;;
25434 *) objformat=elf ;;
25435 esac
25436 fi
John Criswell47fdd832003-07-14 16:52:07 +000025437 version_type=freebsd-$objformat
25438 case $version_type in
25439 freebsd-elf*)
25440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25441 need_version=no
25442 need_lib_prefix=no
25443 ;;
25444 freebsd-*)
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25446 need_version=yes
25447 ;;
25448 esac
25449 shlibpath_var=LD_LIBRARY_PATH
25450 case $host_os in
25451 freebsd2*)
25452 shlibpath_overrides_runpath=yes
25453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025454 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025455 shlibpath_overrides_runpath=yes
25456 hardcode_into_libs=yes
25457 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025460 shlibpath_overrides_runpath=no
25461 hardcode_into_libs=yes
25462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025463 freebsd*) # from 4.6 on
25464 shlibpath_overrides_runpath=yes
25465 hardcode_into_libs=yes
25466 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025467 esac
25468 ;;
25469
25470gnu*)
25471 version_type=linux
25472 need_lib_prefix=no
25473 need_version=no
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 hardcode_into_libs=yes
25478 ;;
25479
25480hpux9* | hpux10* | hpux11*)
25481 # Give a soname corresponding to the major version so that dld.sl refuses to
25482 # link against other versions.
25483 version_type=sunos
25484 need_lib_prefix=no
25485 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025486 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025487 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025488 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025489 hardcode_into_libs=yes
25490 dynamic_linker="$host_os dld.so"
25491 shlibpath_var=LD_LIBRARY_PATH
25492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 soname_spec='${libname}${release}${shared_ext}$major'
25495 if test "X$HPUX_IA64_MODE" = X32; then
25496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25497 else
25498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25499 fi
25500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25501 ;;
25502 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025503 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025504 hardcode_into_libs=yes
25505 dynamic_linker="$host_os dld.sl"
25506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509 soname_spec='${libname}${release}${shared_ext}$major'
25510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25512 ;;
25513 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025514 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025515 dynamic_linker="$host_os dld.sl"
25516 shlibpath_var=SHLIB_PATH
25517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519 soname_spec='${libname}${release}${shared_ext}$major'
25520 ;;
25521 esac
25522 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25523 postinstall_cmds='chmod 555 $lib'
25524 ;;
25525
Reid Spencera773bd52006-08-04 18:18:08 +000025526interix3*)
25527 version_type=linux
25528 need_lib_prefix=no
25529 need_version=no
25530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25531 soname_spec='${libname}${release}${shared_ext}$major'
25532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 shlibpath_overrides_runpath=no
25535 hardcode_into_libs=yes
25536 ;;
25537
John Criswell47fdd832003-07-14 16:52:07 +000025538irix5* | irix6* | nonstopux*)
25539 case $host_os in
25540 nonstopux*) version_type=nonstopux ;;
25541 *)
25542 if test "$lt_cv_prog_gnu_ld" = yes; then
25543 version_type=linux
25544 else
25545 version_type=irix
25546 fi ;;
25547 esac
25548 need_lib_prefix=no
25549 need_version=no
25550 soname_spec='${libname}${release}${shared_ext}$major'
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25552 case $host_os in
25553 irix5* | nonstopux*)
25554 libsuff= shlibsuff=
25555 ;;
25556 *)
25557 case $LD in # libtool.m4 will add one of these switches to LD
25558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25559 libsuff= shlibsuff= libmagic=32-bit;;
25560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25561 libsuff=32 shlibsuff=N32 libmagic=N32;;
25562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25564 *) libsuff= shlibsuff= libmagic=never-match;;
25565 esac
25566 ;;
25567 esac
25568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25569 shlibpath_overrides_runpath=no
25570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25572 hardcode_into_libs=yes
25573 ;;
25574
25575# No shared lib support for Linux oldld, aout, or coff.
25576linux*oldld* | linux*aout* | linux*coff*)
25577 dynamic_linker=no
25578 ;;
25579
25580# This must be Linux ELF.
25581linux*)
25582 version_type=linux
25583 need_lib_prefix=no
25584 need_version=no
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25588 shlibpath_var=LD_LIBRARY_PATH
25589 shlibpath_overrides_runpath=no
25590 # This implies no fast_install, which is unacceptable.
25591 # Some rework will be needed to allow for fast_install
25592 # before this can be enabled.
25593 hardcode_into_libs=yes
25594
Reid Spencer2706f8c2004-09-19 23:53:36 +000025595 # Append ld.so.conf contents to the search path
25596 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025597 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 +000025598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25599 fi
25600
John Criswell47fdd832003-07-14 16:52:07 +000025601 # We used to test for /lib/ld.so.1 and disable shared libraries on
25602 # powerpc, because MkLinux only supported shared libraries with the
25603 # GNU dynamic linker. Since this was broken with cross compilers,
25604 # most powerpc-linux boxes support dynamic linking these days and
25605 # people can always --disable-shared, the test was removed, and we
25606 # assume the GNU/Linux dynamic linker is in use.
25607 dynamic_linker='GNU/Linux ld.so'
25608 ;;
25609
Reid Spencer2706f8c2004-09-19 23:53:36 +000025610knetbsd*-gnu)
25611 version_type=linux
25612 need_lib_prefix=no
25613 need_version=no
25614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25615 soname_spec='${libname}${release}${shared_ext}$major'
25616 shlibpath_var=LD_LIBRARY_PATH
25617 shlibpath_overrides_runpath=no
25618 hardcode_into_libs=yes
25619 dynamic_linker='GNU ld.so'
25620 ;;
25621
John Criswell47fdd832003-07-14 16:52:07 +000025622netbsd*)
25623 version_type=sunos
25624 need_lib_prefix=no
25625 need_version=no
25626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25629 dynamic_linker='NetBSD (a.out) ld.so'
25630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025632 soname_spec='${libname}${release}${shared_ext}$major'
25633 dynamic_linker='NetBSD ld.elf_so'
25634 fi
25635 shlibpath_var=LD_LIBRARY_PATH
25636 shlibpath_overrides_runpath=yes
25637 hardcode_into_libs=yes
25638 ;;
25639
25640newsos6)
25641 version_type=linux
25642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25643 shlibpath_var=LD_LIBRARY_PATH
25644 shlibpath_overrides_runpath=yes
25645 ;;
25646
Reid Spencer2706f8c2004-09-19 23:53:36 +000025647nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025648 version_type=linux
25649 need_lib_prefix=no
25650 need_version=no
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652 soname_spec='${libname}${release}${shared_ext}$major'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 shlibpath_overrides_runpath=yes
25655 ;;
25656
25657openbsd*)
25658 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025659 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025660 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25662 case $host_os in
25663 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25664 *) need_version=no ;;
25665 esac
John Criswell47fdd832003-07-14 16:52:07 +000025666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25668 shlibpath_var=LD_LIBRARY_PATH
25669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25670 case $host_os in
25671 openbsd2.[89] | openbsd2.[89].*)
25672 shlibpath_overrides_runpath=no
25673 ;;
25674 *)
25675 shlibpath_overrides_runpath=yes
25676 ;;
25677 esac
25678 else
25679 shlibpath_overrides_runpath=yes
25680 fi
25681 ;;
25682
25683os2*)
25684 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025685 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025686 need_lib_prefix=no
25687 library_names_spec='$libname${shared_ext} $libname.a'
25688 dynamic_linker='OS/2 ld.exe'
25689 shlibpath_var=LIBPATH
25690 ;;
25691
25692osf3* | osf4* | osf5*)
25693 version_type=osf
25694 need_lib_prefix=no
25695 need_version=no
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25698 shlibpath_var=LD_LIBRARY_PATH
25699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25701 ;;
25702
John Criswell47fdd832003-07-14 16:52:07 +000025703solaris*)
25704 version_type=linux
25705 need_lib_prefix=no
25706 need_version=no
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708 soname_spec='${libname}${release}${shared_ext}$major'
25709 shlibpath_var=LD_LIBRARY_PATH
25710 shlibpath_overrides_runpath=yes
25711 hardcode_into_libs=yes
25712 # ldd complains unless libraries are executable
25713 postinstall_cmds='chmod +x $lib'
25714 ;;
25715
25716sunos4*)
25717 version_type=sunos
25718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25720 shlibpath_var=LD_LIBRARY_PATH
25721 shlibpath_overrides_runpath=yes
25722 if test "$with_gnu_ld" = yes; then
25723 need_lib_prefix=no
25724 fi
25725 need_version=yes
25726 ;;
25727
Reid Spencera773bd52006-08-04 18:18:08 +000025728sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025729 version_type=linux
25730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731 soname_spec='${libname}${release}${shared_ext}$major'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 case $host_vendor in
25734 sni)
25735 shlibpath_overrides_runpath=no
25736 need_lib_prefix=no
25737 export_dynamic_flag_spec='${wl}-Blargedynsym'
25738 runpath_var=LD_RUN_PATH
25739 ;;
25740 siemens)
25741 need_lib_prefix=no
25742 ;;
25743 motorola)
25744 need_lib_prefix=no
25745 need_version=no
25746 shlibpath_overrides_runpath=no
25747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25748 ;;
25749 esac
25750 ;;
25751
25752sysv4*MP*)
25753 if test -d /usr/nec ;then
25754 version_type=linux
25755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25756 soname_spec='$libname${shared_ext}.$major'
25757 shlibpath_var=LD_LIBRARY_PATH
25758 fi
25759 ;;
25760
Reid Spencera773bd52006-08-04 18:18:08 +000025761sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25762 version_type=freebsd-elf
25763 need_lib_prefix=no
25764 need_version=no
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 hardcode_into_libs=yes
25769 if test "$with_gnu_ld" = yes; then
25770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25771 shlibpath_overrides_runpath=no
25772 else
25773 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25774 shlibpath_overrides_runpath=yes
25775 case $host_os in
25776 sco3.2v5*)
25777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25778 ;;
25779 esac
25780 fi
25781 sys_lib_dlsearch_path_spec='/usr/lib'
25782 ;;
25783
John Criswell47fdd832003-07-14 16:52:07 +000025784uts4*)
25785 version_type=linux
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787 soname_spec='${libname}${release}${shared_ext}$major'
25788 shlibpath_var=LD_LIBRARY_PATH
25789 ;;
25790
25791*)
25792 dynamic_linker=no
25793 ;;
25794esac
Reid Spencera773bd52006-08-04 18:18:08 +000025795{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25796echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025797test "$dynamic_linker" = no && can_build_shared=no
25798
Reid Spencera773bd52006-08-04 18:18:08 +000025799variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25800if test "$GCC" = yes; then
25801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25802fi
25803
25804{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25805echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025806hardcode_action_GCJ=
25807if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25808 test -n "$runpath_var_GCJ" || \
25809 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25810
25811 # We can hardcode non-existant directories.
25812 if test "$hardcode_direct_GCJ" != no &&
25813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25814 # have to relink, otherwise we might link with an installed library
25815 # when we should be linking with a yet-to-be-installed one
25816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25817 test "$hardcode_minus_L_GCJ" != no; then
25818 # Linking always hardcodes the temporary library directory.
25819 hardcode_action_GCJ=relink
25820 else
25821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25822 hardcode_action_GCJ=immediate
25823 fi
25824else
25825 # We cannot hardcode anything, or else we can only hardcode existing
25826 # directories.
25827 hardcode_action_GCJ=unsupported
25828fi
Reid Spencera773bd52006-08-04 18:18:08 +000025829{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25830echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025831
25832if test "$hardcode_action_GCJ" = relink; then
25833 # Fast installation is not supported
25834 enable_fast_install=no
25835elif test "$shlibpath_overrides_runpath" = yes ||
25836 test "$enable_shared" = no; then
25837 # Fast installation is not necessary
25838 enable_fast_install=needless
25839fi
25840
John Criswell47fdd832003-07-14 16:52:07 +000025841
25842# The else clause should only fire when bootstrapping the
25843# libtool distribution, otherwise you forgot to ship ltmain.sh
25844# with your package, and you will get complaints that there are
25845# no rules to generate ltmain.sh.
25846if test -f "$ltmain"; then
25847 # See if we are running on zsh, and set the options which allow our commands through
25848 # without removal of \ escapes.
25849 if test -n "${ZSH_VERSION+set}" ; then
25850 setopt NO_GLOB_SUBST
25851 fi
25852 # Now quote all the things that may contain metacharacters while being
25853 # careful not to overquote the AC_SUBSTed values. We take copies of the
25854 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025855 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 +000025856 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25859 deplibs_check_method reload_flag reload_cmds need_locks \
25860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25861 lt_cv_sys_global_symbol_to_c_name_address \
25862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25863 old_postinstall_cmds old_postuninstall_cmds \
25864 compiler_GCJ \
25865 CC_GCJ \
25866 LD_GCJ \
25867 lt_prog_compiler_wl_GCJ \
25868 lt_prog_compiler_pic_GCJ \
25869 lt_prog_compiler_static_GCJ \
25870 lt_prog_compiler_no_builtin_flag_GCJ \
25871 export_dynamic_flag_spec_GCJ \
25872 thread_safe_flag_spec_GCJ \
25873 whole_archive_flag_spec_GCJ \
25874 enable_shared_with_static_runtimes_GCJ \
25875 old_archive_cmds_GCJ \
25876 old_archive_from_new_cmds_GCJ \
25877 predep_objects_GCJ \
25878 postdep_objects_GCJ \
25879 predeps_GCJ \
25880 postdeps_GCJ \
25881 compiler_lib_search_path_GCJ \
25882 archive_cmds_GCJ \
25883 archive_expsym_cmds_GCJ \
25884 postinstall_cmds_GCJ \
25885 postuninstall_cmds_GCJ \
25886 old_archive_from_expsyms_cmds_GCJ \
25887 allow_undefined_flag_GCJ \
25888 no_undefined_flag_GCJ \
25889 export_symbols_cmds_GCJ \
25890 hardcode_libdir_flag_spec_GCJ \
25891 hardcode_libdir_flag_spec_ld_GCJ \
25892 hardcode_libdir_separator_GCJ \
25893 hardcode_automatic_GCJ \
25894 module_cmds_GCJ \
25895 module_expsym_cmds_GCJ \
25896 lt_cv_prog_compiler_c_o_GCJ \
25897 exclude_expsyms_GCJ \
25898 include_expsyms_GCJ; do
25899
25900 case $var in
25901 old_archive_cmds_GCJ | \
25902 old_archive_from_new_cmds_GCJ | \
25903 archive_cmds_GCJ | \
25904 archive_expsym_cmds_GCJ | \
25905 module_cmds_GCJ | \
25906 module_expsym_cmds_GCJ | \
25907 old_archive_from_expsyms_cmds_GCJ | \
25908 export_symbols_cmds_GCJ | \
25909 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25910 postinstall_cmds | postuninstall_cmds | \
25911 old_postinstall_cmds | old_postuninstall_cmds | \
25912 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25913 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025914 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 +000025915 ;;
25916 *)
25917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25918 ;;
25919 esac
25920 done
25921
25922 case $lt_echo in
25923 *'\$0 --fallback-echo"')
25924 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25925 ;;
25926 esac
25927
25928cfgfile="$ofile"
25929
25930 cat <<__EOF__ >> "$cfgfile"
25931# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25932
25933# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25934
25935# Shell to use when invoking shell scripts.
25936SHELL=$lt_SHELL
25937
25938# Whether or not to build shared libraries.
25939build_libtool_libs=$enable_shared
25940
25941# Whether or not to build static libraries.
25942build_old_libs=$enable_static
25943
25944# Whether or not to add -lc for building shared libraries.
25945build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25946
25947# Whether or not to disallow shared libs when runtime libs are static
25948allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25949
25950# Whether or not to optimize for fast installation.
25951fast_install=$enable_fast_install
25952
25953# The host system.
25954host_alias=$host_alias
25955host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025956host_os=$host_os
25957
25958# The build system.
25959build_alias=$build_alias
25960build=$build
25961build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025962
25963# An echo program that does not interpret backslashes.
25964echo=$lt_echo
25965
25966# The archiver.
25967AR=$lt_AR
25968AR_FLAGS=$lt_AR_FLAGS
25969
25970# A C compiler.
25971LTCC=$lt_LTCC
25972
Reid Spencera773bd52006-08-04 18:18:08 +000025973# LTCC compiler flags.
25974LTCFLAGS=$lt_LTCFLAGS
25975
John Criswell47fdd832003-07-14 16:52:07 +000025976# A language-specific compiler.
25977CC=$lt_compiler_GCJ
25978
25979# Is the compiler the GNU C compiler?
25980with_gcc=$GCC_GCJ
25981
25982# An ERE matcher.
25983EGREP=$lt_EGREP
25984
25985# The linker used to build libraries.
25986LD=$lt_LD_GCJ
25987
25988# Whether we need hard or soft links.
25989LN_S=$lt_LN_S
25990
25991# A BSD-compatible nm program.
25992NM=$lt_NM
25993
25994# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025996
25997# Used to examine libraries when file_magic_cmd begins "file"
25998MAGIC_CMD=$MAGIC_CMD
25999
26000# Used on cygwin: DLL creation program.
26001DLLTOOL="$DLLTOOL"
26002
26003# Used on cygwin: object dumper.
26004OBJDUMP="$OBJDUMP"
26005
26006# Used on cygwin: assembler.
26007AS="$AS"
26008
26009# The name of the directory that contains temporary libtool files.
26010objdir=$objdir
26011
26012# How to create reloadable object files.
26013reload_flag=$lt_reload_flag
26014reload_cmds=$lt_reload_cmds
26015
26016# How to pass a linker flag through the compiler.
26017wl=$lt_lt_prog_compiler_wl_GCJ
26018
26019# Object file suffix (normally "o").
26020objext="$ac_objext"
26021
26022# Old archive suffix (normally "a").
26023libext="$libext"
26024
26025# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026026shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026027
26028# Executable file suffix (normally "").
26029exeext="$exeext"
26030
26031# Additional compiler flags for building library objects.
26032pic_flag=$lt_lt_prog_compiler_pic_GCJ
26033pic_mode=$pic_mode
26034
26035# What is the maximum length of a command?
26036max_cmd_len=$lt_cv_sys_max_cmd_len
26037
26038# Does compiler simultaneously support -c and -o options?
26039compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26040
Reid Spencera773bd52006-08-04 18:18:08 +000026041# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026042need_locks=$lt_need_locks
26043
26044# Do we need the lib prefix for modules?
26045need_lib_prefix=$need_lib_prefix
26046
26047# Do we need a version for libraries?
26048need_version=$need_version
26049
26050# Whether dlopen is supported.
26051dlopen_support=$enable_dlopen
26052
26053# Whether dlopen of programs is supported.
26054dlopen_self=$enable_dlopen_self
26055
26056# Whether dlopen of statically linked programs is supported.
26057dlopen_self_static=$enable_dlopen_self_static
26058
26059# Compiler flag to prevent dynamic linking.
26060link_static_flag=$lt_lt_prog_compiler_static_GCJ
26061
26062# Compiler flag to turn off builtin functions.
26063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26064
26065# Compiler flag to allow reflexive dlopens.
26066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26067
26068# Compiler flag to generate shared objects directly from archives.
26069whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26070
26071# Compiler flag to generate thread-safe objects.
26072thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26073
26074# Library versioning type.
26075version_type=$version_type
26076
26077# Format of library name prefix.
26078libname_spec=$lt_libname_spec
26079
26080# List of archive names. First name is the real one, the rest are links.
26081# The last name is the one that the linker finds with -lNAME.
26082library_names_spec=$lt_library_names_spec
26083
26084# The coded name of the library, if different from the real name.
26085soname_spec=$lt_soname_spec
26086
26087# Commands used to build and install an old-style archive.
26088RANLIB=$lt_RANLIB
26089old_archive_cmds=$lt_old_archive_cmds_GCJ
26090old_postinstall_cmds=$lt_old_postinstall_cmds
26091old_postuninstall_cmds=$lt_old_postuninstall_cmds
26092
26093# Create an old-style archive from a shared archive.
26094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26095
26096# Create a temporary old-style archive to link instead of a shared archive.
26097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26098
26099# Commands used to build and install a shared archive.
26100archive_cmds=$lt_archive_cmds_GCJ
26101archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26102postinstall_cmds=$lt_postinstall_cmds
26103postuninstall_cmds=$lt_postuninstall_cmds
26104
26105# Commands used to build a loadable module (assumed same as above if empty)
26106module_cmds=$lt_module_cmds_GCJ
26107module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26108
26109# Commands to strip libraries.
26110old_striplib=$lt_old_striplib
26111striplib=$lt_striplib
26112
26113# Dependencies to place before the objects being linked to create a
26114# shared library.
26115predep_objects=$lt_predep_objects_GCJ
26116
26117# Dependencies to place after the objects being linked to create a
26118# shared library.
26119postdep_objects=$lt_postdep_objects_GCJ
26120
26121# Dependencies to place before the objects being linked to create a
26122# shared library.
26123predeps=$lt_predeps_GCJ
26124
26125# Dependencies to place after the objects being linked to create a
26126# shared library.
26127postdeps=$lt_postdeps_GCJ
26128
26129# The library search path used internally by the compiler when linking
26130# a shared library.
26131compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26132
26133# Method to check whether dependent libraries are shared objects.
26134deplibs_check_method=$lt_deplibs_check_method
26135
26136# Command to use when deplibs_check_method == file_magic.
26137file_magic_cmd=$lt_file_magic_cmd
26138
26139# Flag that allows shared libraries with undefined symbols to be built.
26140allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26141
26142# Flag that forces no undefined symbols.
26143no_undefined_flag=$lt_no_undefined_flag_GCJ
26144
26145# Commands used to finish a libtool library installation in a directory.
26146finish_cmds=$lt_finish_cmds
26147
26148# Same as above, but a single script fragment to be evaled but not shown.
26149finish_eval=$lt_finish_eval
26150
26151# Take the output of nm and produce a listing of raw symbols and C names.
26152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26153
26154# Transform the output of nm in a proper C declaration
26155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26156
26157# Transform the output of nm in a C name address pair
26158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26159
26160# This is the shared library runtime path variable.
26161runpath_var=$runpath_var
26162
26163# This is the shared library path variable.
26164shlibpath_var=$shlibpath_var
26165
26166# Is shlibpath searched before the hard-coded library search path?
26167shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26168
26169# How to hardcode a shared library path into an executable.
26170hardcode_action=$hardcode_action_GCJ
26171
26172# Whether we should hardcode library paths into libraries.
26173hardcode_into_libs=$hardcode_into_libs
26174
26175# Flag to hardcode \$libdir into a binary during linking.
26176# This must work even if \$libdir does not exist.
26177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26178
26179# If ld is used when linking, flag to hardcode \$libdir into
26180# a binary during linking. This must work even if \$libdir does
26181# not exist.
26182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26183
26184# Whether we need a single -rpath flag with a separated argument.
26185hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26186
26187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26188# resulting binary.
26189hardcode_direct=$hardcode_direct_GCJ
26190
26191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26192# resulting binary.
26193hardcode_minus_L=$hardcode_minus_L_GCJ
26194
26195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26196# the resulting binary.
26197hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26198
26199# Set to yes if building a shared library automatically hardcodes DIR into the library
26200# and all subsequent libraries and executables linked against it.
26201hardcode_automatic=$hardcode_automatic_GCJ
26202
26203# Variables whose values should be saved in libtool wrapper scripts and
26204# restored at relink time.
26205variables_saved_for_relink="$variables_saved_for_relink"
26206
26207# Whether libtool must link a program against all its dependency libraries.
26208link_all_deplibs=$link_all_deplibs_GCJ
26209
26210# Compile-time system search path for libraries
26211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26212
26213# Run-time system search path for libraries
26214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26215
26216# Fix the shell variable \$srcfile for the compiler.
26217fix_srcfile_path="$fix_srcfile_path_GCJ"
26218
26219# Set to yes if exported symbols are required.
26220always_export_symbols=$always_export_symbols_GCJ
26221
26222# The commands to list exported symbols.
26223export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26224
26225# The commands to extract the exported symbol list from a shared archive.
26226extract_expsyms_cmds=$lt_extract_expsyms_cmds
26227
26228# Symbols that should not be listed in the preloaded symbols.
26229exclude_expsyms=$lt_exclude_expsyms_GCJ
26230
26231# Symbols that must always be exported.
26232include_expsyms=$lt_include_expsyms_GCJ
26233
26234# ### END LIBTOOL TAG CONFIG: $tagname
26235
26236__EOF__
26237
26238
26239else
26240 # If there is no Makefile yet, we rely on a make rule to execute
26241 # `config.status --recheck' to rerun these tests and create the
26242 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26244 if test -f "$ltmain_in"; then
26245 test -f Makefile && make "$ltmain"
26246 fi
John Criswell47fdd832003-07-14 16:52:07 +000026247fi
26248
26249
26250ac_ext=c
26251ac_cpp='$CPP $CPPFLAGS'
26252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255
26256CC="$lt_save_CC"
26257
26258 else
26259 tagname=""
26260 fi
26261 ;;
26262
26263 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026264 ac_ext=c
26265ac_cpp='$CPP $CPPFLAGS'
26266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026269
26270
26271# Source file extension for RC test sources.
26272ac_ext=rc
26273
26274# Object file extension for compiled RC test sources.
26275objext=o
26276objext_RC=$objext
26277
26278# Code to be used in simple compile tests
26279lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26280
26281# Code to be used in simple link tests
26282lt_simple_link_test_code="$lt_simple_compile_test_code"
26283
26284# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26285
26286# If no C compiler was specified, use CC.
26287LTCC=${LTCC-"$CC"}
26288
Reid Spencera773bd52006-08-04 18:18:08 +000026289# If no C compiler flags were specified, use CFLAGS.
26290LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26291
John Criswell47fdd832003-07-14 16:52:07 +000026292# Allow CC to be a program name with arguments.
26293compiler=$CC
26294
26295
Reid Spencera773bd52006-08-04 18:18:08 +000026296# save warnings/boilerplate of simple test code
26297ac_outfile=conftest.$ac_objext
26298printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26299eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26300_lt_compiler_boilerplate=`cat conftest.err`
26301$rm conftest*
26302
26303ac_outfile=conftest.$ac_objext
26304printf "$lt_simple_link_test_code" >conftest.$ac_ext
26305eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26306_lt_linker_boilerplate=`cat conftest.err`
26307$rm conftest*
26308
26309
John Criswell47fdd832003-07-14 16:52:07 +000026310# Allow CC to be a program name with arguments.
26311lt_save_CC="$CC"
26312CC=${RC-"windres"}
26313compiler=$CC
26314compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026315for cc_temp in $compiler""; do
26316 case $cc_temp in
26317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26319 \-*) ;;
26320 *) break;;
26321 esac
26322done
26323cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26324
John Criswell47fdd832003-07-14 16:52:07 +000026325lt_cv_prog_compiler_c_o_RC=yes
26326
26327# The else clause should only fire when bootstrapping the
26328# libtool distribution, otherwise you forgot to ship ltmain.sh
26329# with your package, and you will get complaints that there are
26330# no rules to generate ltmain.sh.
26331if test -f "$ltmain"; then
26332 # See if we are running on zsh, and set the options which allow our commands through
26333 # without removal of \ escapes.
26334 if test -n "${ZSH_VERSION+set}" ; then
26335 setopt NO_GLOB_SUBST
26336 fi
26337 # Now quote all the things that may contain metacharacters while being
26338 # careful not to overquote the AC_SUBSTed values. We take copies of the
26339 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026340 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 +000026341 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26344 deplibs_check_method reload_flag reload_cmds need_locks \
26345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26346 lt_cv_sys_global_symbol_to_c_name_address \
26347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26348 old_postinstall_cmds old_postuninstall_cmds \
26349 compiler_RC \
26350 CC_RC \
26351 LD_RC \
26352 lt_prog_compiler_wl_RC \
26353 lt_prog_compiler_pic_RC \
26354 lt_prog_compiler_static_RC \
26355 lt_prog_compiler_no_builtin_flag_RC \
26356 export_dynamic_flag_spec_RC \
26357 thread_safe_flag_spec_RC \
26358 whole_archive_flag_spec_RC \
26359 enable_shared_with_static_runtimes_RC \
26360 old_archive_cmds_RC \
26361 old_archive_from_new_cmds_RC \
26362 predep_objects_RC \
26363 postdep_objects_RC \
26364 predeps_RC \
26365 postdeps_RC \
26366 compiler_lib_search_path_RC \
26367 archive_cmds_RC \
26368 archive_expsym_cmds_RC \
26369 postinstall_cmds_RC \
26370 postuninstall_cmds_RC \
26371 old_archive_from_expsyms_cmds_RC \
26372 allow_undefined_flag_RC \
26373 no_undefined_flag_RC \
26374 export_symbols_cmds_RC \
26375 hardcode_libdir_flag_spec_RC \
26376 hardcode_libdir_flag_spec_ld_RC \
26377 hardcode_libdir_separator_RC \
26378 hardcode_automatic_RC \
26379 module_cmds_RC \
26380 module_expsym_cmds_RC \
26381 lt_cv_prog_compiler_c_o_RC \
26382 exclude_expsyms_RC \
26383 include_expsyms_RC; do
26384
26385 case $var in
26386 old_archive_cmds_RC | \
26387 old_archive_from_new_cmds_RC | \
26388 archive_cmds_RC | \
26389 archive_expsym_cmds_RC | \
26390 module_cmds_RC | \
26391 module_expsym_cmds_RC | \
26392 old_archive_from_expsyms_cmds_RC | \
26393 export_symbols_cmds_RC | \
26394 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26395 postinstall_cmds | postuninstall_cmds | \
26396 old_postinstall_cmds | old_postuninstall_cmds | \
26397 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26398 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026399 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 +000026400 ;;
26401 *)
26402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26403 ;;
26404 esac
26405 done
26406
26407 case $lt_echo in
26408 *'\$0 --fallback-echo"')
26409 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26410 ;;
26411 esac
26412
26413cfgfile="$ofile"
26414
26415 cat <<__EOF__ >> "$cfgfile"
26416# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26417
26418# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26419
26420# Shell to use when invoking shell scripts.
26421SHELL=$lt_SHELL
26422
26423# Whether or not to build shared libraries.
26424build_libtool_libs=$enable_shared
26425
26426# Whether or not to build static libraries.
26427build_old_libs=$enable_static
26428
26429# Whether or not to add -lc for building shared libraries.
26430build_libtool_need_lc=$archive_cmds_need_lc_RC
26431
26432# Whether or not to disallow shared libs when runtime libs are static
26433allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26434
26435# Whether or not to optimize for fast installation.
26436fast_install=$enable_fast_install
26437
26438# The host system.
26439host_alias=$host_alias
26440host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026441host_os=$host_os
26442
26443# The build system.
26444build_alias=$build_alias
26445build=$build
26446build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026447
26448# An echo program that does not interpret backslashes.
26449echo=$lt_echo
26450
26451# The archiver.
26452AR=$lt_AR
26453AR_FLAGS=$lt_AR_FLAGS
26454
26455# A C compiler.
26456LTCC=$lt_LTCC
26457
Reid Spencera773bd52006-08-04 18:18:08 +000026458# LTCC compiler flags.
26459LTCFLAGS=$lt_LTCFLAGS
26460
John Criswell47fdd832003-07-14 16:52:07 +000026461# A language-specific compiler.
26462CC=$lt_compiler_RC
26463
26464# Is the compiler the GNU C compiler?
26465with_gcc=$GCC_RC
26466
26467# An ERE matcher.
26468EGREP=$lt_EGREP
26469
26470# The linker used to build libraries.
26471LD=$lt_LD_RC
26472
26473# Whether we need hard or soft links.
26474LN_S=$lt_LN_S
26475
26476# A BSD-compatible nm program.
26477NM=$lt_NM
26478
26479# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026480STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026481
26482# Used to examine libraries when file_magic_cmd begins "file"
26483MAGIC_CMD=$MAGIC_CMD
26484
26485# Used on cygwin: DLL creation program.
26486DLLTOOL="$DLLTOOL"
26487
26488# Used on cygwin: object dumper.
26489OBJDUMP="$OBJDUMP"
26490
26491# Used on cygwin: assembler.
26492AS="$AS"
26493
26494# The name of the directory that contains temporary libtool files.
26495objdir=$objdir
26496
26497# How to create reloadable object files.
26498reload_flag=$lt_reload_flag
26499reload_cmds=$lt_reload_cmds
26500
26501# How to pass a linker flag through the compiler.
26502wl=$lt_lt_prog_compiler_wl_RC
26503
26504# Object file suffix (normally "o").
26505objext="$ac_objext"
26506
26507# Old archive suffix (normally "a").
26508libext="$libext"
26509
26510# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026511shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026512
26513# Executable file suffix (normally "").
26514exeext="$exeext"
26515
26516# Additional compiler flags for building library objects.
26517pic_flag=$lt_lt_prog_compiler_pic_RC
26518pic_mode=$pic_mode
26519
26520# What is the maximum length of a command?
26521max_cmd_len=$lt_cv_sys_max_cmd_len
26522
26523# Does compiler simultaneously support -c and -o options?
26524compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26525
Reid Spencera773bd52006-08-04 18:18:08 +000026526# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026527need_locks=$lt_need_locks
26528
26529# Do we need the lib prefix for modules?
26530need_lib_prefix=$need_lib_prefix
26531
26532# Do we need a version for libraries?
26533need_version=$need_version
26534
26535# Whether dlopen is supported.
26536dlopen_support=$enable_dlopen
26537
26538# Whether dlopen of programs is supported.
26539dlopen_self=$enable_dlopen_self
26540
26541# Whether dlopen of statically linked programs is supported.
26542dlopen_self_static=$enable_dlopen_self_static
26543
26544# Compiler flag to prevent dynamic linking.
26545link_static_flag=$lt_lt_prog_compiler_static_RC
26546
26547# Compiler flag to turn off builtin functions.
26548no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26549
26550# Compiler flag to allow reflexive dlopens.
26551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26552
26553# Compiler flag to generate shared objects directly from archives.
26554whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26555
26556# Compiler flag to generate thread-safe objects.
26557thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26558
26559# Library versioning type.
26560version_type=$version_type
26561
26562# Format of library name prefix.
26563libname_spec=$lt_libname_spec
26564
26565# List of archive names. First name is the real one, the rest are links.
26566# The last name is the one that the linker finds with -lNAME.
26567library_names_spec=$lt_library_names_spec
26568
26569# The coded name of the library, if different from the real name.
26570soname_spec=$lt_soname_spec
26571
26572# Commands used to build and install an old-style archive.
26573RANLIB=$lt_RANLIB
26574old_archive_cmds=$lt_old_archive_cmds_RC
26575old_postinstall_cmds=$lt_old_postinstall_cmds
26576old_postuninstall_cmds=$lt_old_postuninstall_cmds
26577
26578# Create an old-style archive from a shared archive.
26579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26580
26581# Create a temporary old-style archive to link instead of a shared archive.
26582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26583
26584# Commands used to build and install a shared archive.
26585archive_cmds=$lt_archive_cmds_RC
26586archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26587postinstall_cmds=$lt_postinstall_cmds
26588postuninstall_cmds=$lt_postuninstall_cmds
26589
26590# Commands used to build a loadable module (assumed same as above if empty)
26591module_cmds=$lt_module_cmds_RC
26592module_expsym_cmds=$lt_module_expsym_cmds_RC
26593
26594# Commands to strip libraries.
26595old_striplib=$lt_old_striplib
26596striplib=$lt_striplib
26597
26598# Dependencies to place before the objects being linked to create a
26599# shared library.
26600predep_objects=$lt_predep_objects_RC
26601
26602# Dependencies to place after the objects being linked to create a
26603# shared library.
26604postdep_objects=$lt_postdep_objects_RC
26605
26606# Dependencies to place before the objects being linked to create a
26607# shared library.
26608predeps=$lt_predeps_RC
26609
26610# Dependencies to place after the objects being linked to create a
26611# shared library.
26612postdeps=$lt_postdeps_RC
26613
26614# The library search path used internally by the compiler when linking
26615# a shared library.
26616compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26617
26618# Method to check whether dependent libraries are shared objects.
26619deplibs_check_method=$lt_deplibs_check_method
26620
26621# Command to use when deplibs_check_method == file_magic.
26622file_magic_cmd=$lt_file_magic_cmd
26623
26624# Flag that allows shared libraries with undefined symbols to be built.
26625allow_undefined_flag=$lt_allow_undefined_flag_RC
26626
26627# Flag that forces no undefined symbols.
26628no_undefined_flag=$lt_no_undefined_flag_RC
26629
26630# Commands used to finish a libtool library installation in a directory.
26631finish_cmds=$lt_finish_cmds
26632
26633# Same as above, but a single script fragment to be evaled but not shown.
26634finish_eval=$lt_finish_eval
26635
26636# Take the output of nm and produce a listing of raw symbols and C names.
26637global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26638
26639# Transform the output of nm in a proper C declaration
26640global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26641
26642# Transform the output of nm in a C name address pair
26643global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26644
26645# This is the shared library runtime path variable.
26646runpath_var=$runpath_var
26647
26648# This is the shared library path variable.
26649shlibpath_var=$shlibpath_var
26650
26651# Is shlibpath searched before the hard-coded library search path?
26652shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26653
26654# How to hardcode a shared library path into an executable.
26655hardcode_action=$hardcode_action_RC
26656
26657# Whether we should hardcode library paths into libraries.
26658hardcode_into_libs=$hardcode_into_libs
26659
26660# Flag to hardcode \$libdir into a binary during linking.
26661# This must work even if \$libdir does not exist.
26662hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26663
26664# If ld is used when linking, flag to hardcode \$libdir into
26665# a binary during linking. This must work even if \$libdir does
26666# not exist.
26667hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26668
26669# Whether we need a single -rpath flag with a separated argument.
26670hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26671
26672# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26673# resulting binary.
26674hardcode_direct=$hardcode_direct_RC
26675
26676# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26677# resulting binary.
26678hardcode_minus_L=$hardcode_minus_L_RC
26679
26680# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26681# the resulting binary.
26682hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26683
26684# Set to yes if building a shared library automatically hardcodes DIR into the library
26685# and all subsequent libraries and executables linked against it.
26686hardcode_automatic=$hardcode_automatic_RC
26687
26688# Variables whose values should be saved in libtool wrapper scripts and
26689# restored at relink time.
26690variables_saved_for_relink="$variables_saved_for_relink"
26691
26692# Whether libtool must link a program against all its dependency libraries.
26693link_all_deplibs=$link_all_deplibs_RC
26694
26695# Compile-time system search path for libraries
26696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26697
26698# Run-time system search path for libraries
26699sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26700
26701# Fix the shell variable \$srcfile for the compiler.
26702fix_srcfile_path="$fix_srcfile_path_RC"
26703
26704# Set to yes if exported symbols are required.
26705always_export_symbols=$always_export_symbols_RC
26706
26707# The commands to list exported symbols.
26708export_symbols_cmds=$lt_export_symbols_cmds_RC
26709
26710# The commands to extract the exported symbol list from a shared archive.
26711extract_expsyms_cmds=$lt_extract_expsyms_cmds
26712
26713# Symbols that should not be listed in the preloaded symbols.
26714exclude_expsyms=$lt_exclude_expsyms_RC
26715
26716# Symbols that must always be exported.
26717include_expsyms=$lt_include_expsyms_RC
26718
26719# ### END LIBTOOL TAG CONFIG: $tagname
26720
26721__EOF__
26722
26723
26724else
26725 # If there is no Makefile yet, we rely on a make rule to execute
26726 # `config.status --recheck' to rerun these tests and create the
26727 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026728 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26729 if test -f "$ltmain_in"; then
26730 test -f Makefile && make "$ltmain"
26731 fi
John Criswell47fdd832003-07-14 16:52:07 +000026732fi
26733
26734
26735ac_ext=c
26736ac_cpp='$CPP $CPPFLAGS'
26737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26739ac_compiler_gnu=$ac_cv_c_compiler_gnu
26740
26741CC="$lt_save_CC"
26742
26743 ;;
26744
26745 *)
26746 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26747echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26748 { (exit 1); exit 1; }; }
26749 ;;
26750 esac
26751
26752 # Append the new tag name to the list of available tags.
26753 if test -n "$tagname" ; then
26754 available_tags="$available_tags $tagname"
26755 fi
26756 fi
26757 done
26758 IFS="$lt_save_ifs"
26759
26760 # Now substitute the updated list of available tags.
26761 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26762 mv "${ofile}T" "$ofile"
26763 chmod +x "$ofile"
26764 else
26765 rm -f "${ofile}T"
26766 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26767echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26768 { (exit 1); exit 1; }; }
26769 fi
26770fi
John Criswell7a73b802003-06-30 21:59:07 +000026771
26772
26773
26774# This can be used to rebuild libtool when needed
26775LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26776
26777# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026778LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026779
26780# Prevent multiple expansion
26781
26782
26783
John Criswell47fdd832003-07-14 16:52:07 +000026784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026801
Reid Spencer582a23c2004-12-29 07:07:57 +000026802if test "$lt_cv_dlopen_self" = "yes" ; then
26803
26804cat >>confdefs.h <<\_ACEOF
26805#define CAN_DLOPEN_SELF 1
26806_ACEOF
26807
26808fi
26809
Reid Spencer7931a782004-12-27 06:15:02 +000026810if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026811 LLVMGCC="llvm-gcc${EXEEXT}"
26812 LLVMGXX="llvm-g++${EXEEXT}"
26813 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26814set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026817if test "${ac_cv_path_LLVMGCC+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
26820 case $LLVMGCC in
26821 [\\/]* | ?:[\\/]*)
26822 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26823 ;;
26824 *)
26825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26826for as_dir in $PATH
26827do
26828 IFS=$as_save_IFS
26829 test -z "$as_dir" && as_dir=.
26830 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026831 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 +000026832 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26834 break 2
26835 fi
26836done
26837done
Reid Spencera773bd52006-08-04 18:18:08 +000026838IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026839
Reid Spencer59473af2004-12-25 07:31:29 +000026840 ;;
26841esac
26842fi
26843LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026844if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026845 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26846echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026847else
Reid Spencera773bd52006-08-04 18:18:08 +000026848 { echo "$as_me:$LINENO: result: no" >&5
26849echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026850fi
26851
Reid Spencera773bd52006-08-04 18:18:08 +000026852
Reid Spencerc84492c2005-06-02 22:34:49 +000026853 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26854set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026857if test "${ac_cv_path_LLVMGXX+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859else
26860 case $LLVMGXX in
26861 [\\/]* | ?:[\\/]*)
26862 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26863 ;;
26864 *)
26865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26866for as_dir in $PATH
26867do
26868 IFS=$as_save_IFS
26869 test -z "$as_dir" && as_dir=.
26870 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026871 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 +000026872 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26874 break 2
26875 fi
26876done
26877done
Reid Spencera773bd52006-08-04 18:18:08 +000026878IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026879
Reid Spencer59473af2004-12-25 07:31:29 +000026880 ;;
26881esac
26882fi
26883LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026884if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026885 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26886echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026887else
Reid Spencera773bd52006-08-04 18:18:08 +000026888 { echo "$as_me:$LINENO: result: no" >&5
26889echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026890fi
26891
Reid Spencera773bd52006-08-04 18:18:08 +000026892
Reid Spencer59473af2004-12-25 07:31:29 +000026893else
Devang Patel5d28b882007-12-04 22:54:47 +000026894 if test -z "$LLVMGCC"; then
26895 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26896 fi
26897 if test -z "$LLVMGXX"; then
26898 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26899 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026900 LLVMGCC=$LLVMGCC
26901
26902 LLVMGXX=$LLVMGXX
26903
26904fi
26905
Reid Spencera773bd52006-08-04 18:18:08 +000026906{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26907echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026908
Reid Spencer86901802004-12-08 23:07:27 +000026909ICC=no
26910IXX=no
26911case $CC in
26912 icc*|icpc*)
26913 ICC=yes
26914 IXX=yes
26915 ;;
26916 *)
26917 ;;
26918esac
26919
Duraid Madina937c60a2006-02-15 07:57:42 +000026920if test "$GCC" != "yes" && test "$ICC" != "yes"
26921then
26922 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26923echo "$as_me: error: gcc|icc required but not found" >&2;}
26924 { (exit 1); exit 1; }; }
26925fi
26926
26927if test "$GXX" != "yes" && test "$IXX" != "yes"
26928then
26929 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26930echo "$as_me: error: g++|icc required but not found" >&2;}
26931 { (exit 1); exit 1; }; }
26932fi
26933
Reid Spencer86901802004-12-08 23:07:27 +000026934if test "$GCC" = "yes"
26935then
Chris Lattner399c7c72008-02-05 19:43:53 +000026936 cat >conftest.$ac_ext <<_ACEOF
26937#if !defined(__GNUC__) || __GNUC__ < 3
26938#error Unsupported GCC version
26939#endif
26940
26941_ACEOF
26942rm -f conftest.$ac_objext
26943if { (ac_try="$ac_compile"
26944case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26947esac
26948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_compile") 2>conftest.er1
26950 ac_status=$?
26951 grep -v '^ *+' conftest.er1 >conftest.err
26952 rm -f conftest.er1
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000026955 (exit $ac_status); } &&
26956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26957 { (case "(($ac_try" in
26958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959 *) ac_try_echo=$ac_try;;
26960esac
26961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962 (eval "$ac_try") 2>&5
26963 ac_status=$?
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; } &&
26966 { ac_try='test -s conftest.$ac_objext'
26967 { (case "(($ac_try" in
26968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969 *) ac_try_echo=$ac_try;;
26970esac
26971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972 (eval "$ac_try") 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000026976 :
26977else
26978 echo "$as_me: failed program was:" >&5
26979sed 's/^/| /' conftest.$ac_ext >&5
26980
26981 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026982echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26983 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026984fi
26985
26986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026987fi
26988
26989if test -z "$llvm_cv_gnu_make_command"
26990then
26991 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26992echo "$as_me: error: GNU Make required but not found" >&2;}
26993 { (exit 1); exit 1; }; }
26994fi
26995
Reid Spencera773bd52006-08-04 18:18:08 +000026996{ echo "$as_me:$LINENO: result: ok" >&5
26997echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026998
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026999
John Criswell7a73b802003-06-30 21:59:07 +000027000
Reid Spencera773bd52006-08-04 18:18:08 +000027001{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27002echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027003if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005else
27006 ac_check_lib_save_LIBS=$LIBS
27007LIBS="-lelf $LIBS"
27008cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027009/* confdefs.h. */
27010_ACEOF
27011cat confdefs.h >>conftest.$ac_ext
27012cat >>conftest.$ac_ext <<_ACEOF
27013/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027014
Reid Spencera773bd52006-08-04 18:18:08 +000027015/* Override any GCC internal prototype to avoid an error.
27016 Use char because int might match the return type of a GCC
27017 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027018#ifdef __cplusplus
27019extern "C"
27020#endif
John Criswell7a73b802003-06-30 21:59:07 +000027021char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027022int
27023main ()
27024{
Reid Spencera773bd52006-08-04 18:18:08 +000027025return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027026 ;
27027 return 0;
27028}
27029_ACEOF
27030rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027031if { (ac_try="$ac_link"
27032case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27035esac
27036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027039 grep -v '^ *+' conftest.er1 >conftest.err
27040 rm -f conftest.er1
27041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027043 (exit $ac_status); } &&
27044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048esac
27049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; } &&
27054 { ac_try='test -s conftest$ac_exeext'
27055 { (case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27058esac
27059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_try") 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027064 ac_cv_lib_elf_elf_begin=yes
27065else
27066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027067sed 's/^/| /' conftest.$ac_ext >&5
27068
Reid Spencera773bd52006-08-04 18:18:08 +000027069 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027070fi
Reid Spencera773bd52006-08-04 18:18:08 +000027071
Bill Wendlingebcceee2009-04-18 11:20:33 +000027072rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027073 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027074LIBS=$ac_check_lib_save_LIBS
27075fi
Reid Spencera773bd52006-08-04 18:18:08 +000027076{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27077echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027078if test $ac_cv_lib_elf_elf_begin = yes; then
27079 cat >>confdefs.h <<_ACEOF
27080#define HAVE_LIBELF 1
27081_ACEOF
27082
27083 LIBS="-lelf $LIBS"
27084
27085fi
27086
27087
Reid Spencera773bd52006-08-04 18:18:08 +000027088{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27089echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027090if test "${ac_cv_lib_m_sin+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27092else
27093 ac_check_lib_save_LIBS=$LIBS
27094LIBS="-lm $LIBS"
27095cat >conftest.$ac_ext <<_ACEOF
27096/* confdefs.h. */
27097_ACEOF
27098cat confdefs.h >>conftest.$ac_ext
27099cat >>conftest.$ac_ext <<_ACEOF
27100/* end confdefs.h. */
27101
Reid Spencera773bd52006-08-04 18:18:08 +000027102/* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027105#ifdef __cplusplus
27106extern "C"
27107#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027108char sin ();
27109int
27110main ()
27111{
Reid Spencera773bd52006-08-04 18:18:08 +000027112return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027118if { (ac_try="$ac_link"
27119case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27135esac
27136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145esac
27146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027151 ac_cv_lib_m_sin=yes
27152else
27153 echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
Reid Spencera773bd52006-08-04 18:18:08 +000027156 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027157fi
Reid Spencera773bd52006-08-04 18:18:08 +000027158
Bill Wendlingebcceee2009-04-18 11:20:33 +000027159rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027160 conftest$ac_exeext conftest.$ac_ext
27161LIBS=$ac_check_lib_save_LIBS
27162fi
Reid Spencera773bd52006-08-04 18:18:08 +000027163{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27164echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027165if test $ac_cv_lib_m_sin = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167#define HAVE_LIBM 1
27168_ACEOF
27169
27170 LIBS="-lm $LIBS"
27171
27172fi
27173
Jeff Cohen28783c32007-01-12 18:22:38 +000027174if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027175
Reid Spencera773bd52006-08-04 18:18:08 +000027176{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27177echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027178if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
27182LIBS="-limagehlp $LIBS"
27183cat >conftest.$ac_ext <<_ACEOF
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
27189
Reid Spencer48fdf912006-06-01 19:03:21 +000027190
Reid Spencer484fc8e2006-06-01 16:55:59 +000027191int
27192main ()
27193{
Reid Spencera773bd52006-08-04 18:18:08 +000027194return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027195 ;
27196 return 0;
27197}
27198_ACEOF
27199rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027200if { (ac_try="$ac_link"
27201case "(($ac_try" in
27202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203 *) ac_try_echo=$ac_try;;
27204esac
27205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027207 ac_status=$?
27208 grep -v '^ *+' conftest.er1 >conftest.err
27209 rm -f conftest.er1
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027212 (exit $ac_status); } &&
27213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214 { (case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27217esac
27218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest$ac_exeext'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27227esac
27228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027233 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027234else
27235 echo "$as_me: failed program was:" >&5
27236sed 's/^/| /' conftest.$ac_ext >&5
27237
Reid Spencera773bd52006-08-04 18:18:08 +000027238 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027239fi
Reid Spencera773bd52006-08-04 18:18:08 +000027240
Bill Wendlingebcceee2009-04-18 11:20:33 +000027241rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027242 conftest$ac_exeext conftest.$ac_ext
27243LIBS=$ac_check_lib_save_LIBS
27244fi
Reid Spencera773bd52006-08-04 18:18:08 +000027245{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27246echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027247if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027248 cat >>confdefs.h <<_ACEOF
27249#define HAVE_LIBIMAGEHLP 1
27250_ACEOF
27251
27252 LIBS="-limagehlp $LIBS"
27253
27254fi
27255
27256
Reid Spencera773bd52006-08-04 18:18:08 +000027257{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27258echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027259if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261else
27262 ac_check_lib_save_LIBS=$LIBS
27263LIBS="-lpsapi $LIBS"
27264cat >conftest.$ac_ext <<_ACEOF
27265/* confdefs.h. */
27266_ACEOF
27267cat confdefs.h >>conftest.$ac_ext
27268cat >>conftest.$ac_ext <<_ACEOF
27269/* end confdefs.h. */
27270
Reid Spencer48fdf912006-06-01 19:03:21 +000027271
Reid Spencer484fc8e2006-06-01 16:55:59 +000027272int
27273main ()
27274{
Reid Spencera773bd52006-08-04 18:18:08 +000027275return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027276 ;
27277 return 0;
27278}
27279_ACEOF
27280rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027281if { (ac_try="$ac_link"
27282case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27285esac
27286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27298esac
27299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest$ac_exeext'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27308esac
27309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027314 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027315else
27316 echo "$as_me: failed program was:" >&5
27317sed 's/^/| /' conftest.$ac_ext >&5
27318
Reid Spencera773bd52006-08-04 18:18:08 +000027319 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027320fi
Reid Spencera773bd52006-08-04 18:18:08 +000027321
Bill Wendlingebcceee2009-04-18 11:20:33 +000027322rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027323 conftest$ac_exeext conftest.$ac_ext
27324LIBS=$ac_check_lib_save_LIBS
27325fi
Reid Spencera773bd52006-08-04 18:18:08 +000027326{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27327echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027328if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027329 cat >>confdefs.h <<_ACEOF
27330#define HAVE_LIBPSAPI 1
27331_ACEOF
27332
27333 LIBS="-lpsapi $LIBS"
27334
27335fi
27336
27337fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027338
Reid Spencera773bd52006-08-04 18:18:08 +000027339{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027341if test "${ac_cv_search_dlopen+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27343else
27344 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027345cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027351
Reid Spencera773bd52006-08-04 18:18:08 +000027352/* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027355#ifdef __cplusplus
27356extern "C"
27357#endif
John Criswell7a73b802003-06-30 21:59:07 +000027358char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027359int
27360main ()
27361{
Reid Spencera773bd52006-08-04 18:18:08 +000027362return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027363 ;
27364 return 0;
27365}
27366_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027367for ac_lib in '' dl; do
27368 if test -z "$ac_lib"; then
27369 ac_res="none required"
27370 else
27371 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027373 fi
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375if { (ac_try="$ac_link"
27376case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27379esac
27380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027383 grep -v '^ *+' conftest.er1 >conftest.err
27384 rm -f conftest.er1
27385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27392esac
27393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27402esac
27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027408 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027409else
27410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027411sed 's/^/| /' conftest.$ac_ext >&5
27412
Reid Spencera773bd52006-08-04 18:18:08 +000027413
John Criswell7a73b802003-06-30 21:59:07 +000027414fi
Reid Spencera773bd52006-08-04 18:18:08 +000027415
Bill Wendlingebcceee2009-04-18 11:20:33 +000027416rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027417 conftest$ac_exeext
27418 if test "${ac_cv_search_dlopen+set}" = set; then
27419 break
John Criswell7a73b802003-06-30 21:59:07 +000027420fi
Reid Spencera773bd52006-08-04 18:18:08 +000027421done
27422if test "${ac_cv_search_dlopen+set}" = set; then
27423 :
27424else
27425 ac_cv_search_dlopen=no
27426fi
27427rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027428LIBS=$ac_func_search_save_LIBS
27429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432ac_res=$ac_cv_search_dlopen
27433if test "$ac_res" != no; then
27434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027435
27436cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027437#define HAVE_DLOPEN 1
27438_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027439
27440else
Brian Gaekec45be042003-10-07 06:01:34 +000027441 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027443fi
27444
27445
Nick Lewycky267fddb2009-04-13 04:26:27 +000027446{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27447echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27448if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027451 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027452cat >conftest.$ac_ext <<_ACEOF
27453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
27458
27459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27462#ifdef __cplusplus
27463extern "C"
27464#endif
27465char ffi_call ();
27466int
27467main ()
27468{
27469return ffi_call ();
27470 ;
27471 return 0;
27472}
27473_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027474for ac_lib in '' ffi; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27477 else
27478 ac_res=-l$ac_lib
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27480 fi
27481 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027482if { (ac_try="$ac_link"
27483case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27489 ac_status=$?
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499esac
27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509esac
27510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027515 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027516else
27517 echo "$as_me: failed program was:" >&5
27518sed 's/^/| /' conftest.$ac_ext >&5
27519
Nick Lewycky267fddb2009-04-13 04:26:27 +000027520
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027521fi
27522
Bill Wendlingebcceee2009-04-18 11:20:33 +000027523rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027524 conftest$ac_exeext
27525 if test "${ac_cv_search_ffi_call+set}" = set; then
27526 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027527fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027528done
27529if test "${ac_cv_search_ffi_call+set}" = set; then
27530 :
27531else
27532 ac_cv_search_ffi_call=no
27533fi
27534rm conftest.$ac_ext
27535LIBS=$ac_func_search_save_LIBS
27536fi
27537{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27538echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27539ac_res=$ac_cv_search_ffi_call
27540if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27542
27543cat >>confdefs.h <<\_ACEOF
27544#define HAVE_FFI_CALL 1
27545_ACEOF
27546
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027547else
27548 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27549echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27550fi
27551
27552
Reid Spencera773bd52006-08-04 18:18:08 +000027553{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27554echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027555if test "${ac_cv_search_mallinfo+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27557else
27558 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027559cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027560/* confdefs.h. */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027565
Reid Spencera773bd52006-08-04 18:18:08 +000027566/* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027569#ifdef __cplusplus
27570extern "C"
27571#endif
John Criswell7a73b802003-06-30 21:59:07 +000027572char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027573int
27574main ()
27575{
Reid Spencera773bd52006-08-04 18:18:08 +000027576return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027577 ;
27578 return 0;
27579}
27580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027581for ac_lib in '' malloc; do
27582 if test -z "$ac_lib"; then
27583 ac_res="none required"
27584 else
27585 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027587 fi
27588 rm -f conftest.$ac_objext conftest$ac_exeext
27589if { (ac_try="$ac_link"
27590case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27593esac
27594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027597 grep -v '^ *+' conftest.er1 >conftest.err
27598 rm -f conftest.er1
27599 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027601 (exit $ac_status); } &&
27602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27603 { (case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27606esac
27607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608 (eval "$ac_try") 2>&5
27609 ac_status=$?
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } &&
27612 { ac_try='test -s conftest$ac_exeext'
27613 { (case "(($ac_try" in
27614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615 *) ac_try_echo=$ac_try;;
27616esac
27617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618 (eval "$ac_try") 2>&5
27619 ac_status=$?
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027622 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027623else
27624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027625sed 's/^/| /' conftest.$ac_ext >&5
27626
Reid Spencera773bd52006-08-04 18:18:08 +000027627
John Criswell7a73b802003-06-30 21:59:07 +000027628fi
Reid Spencera773bd52006-08-04 18:18:08 +000027629
Bill Wendlingebcceee2009-04-18 11:20:33 +000027630rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027631 conftest$ac_exeext
27632 if test "${ac_cv_search_mallinfo+set}" = set; then
27633 break
John Criswell7a73b802003-06-30 21:59:07 +000027634fi
Reid Spencera773bd52006-08-04 18:18:08 +000027635done
27636if test "${ac_cv_search_mallinfo+set}" = set; then
27637 :
27638else
27639 ac_cv_search_mallinfo=no
27640fi
27641rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027642LIBS=$ac_func_search_save_LIBS
27643fi
Reid Spencera773bd52006-08-04 18:18:08 +000027644{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27645echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27646ac_res=$ac_cv_search_mallinfo
27647if test "$ac_res" != no; then
27648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027649
27650cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027651#define HAVE_MALLINFO 1
27652_ACEOF
27653
27654fi
27655
27656
Reid Spencer0a262ba2005-08-24 10:07:20 +000027657if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027658
Reid Spencera773bd52006-08-04 18:18:08 +000027659{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27660echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027661if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663else
27664 ac_check_lib_save_LIBS=$LIBS
27665LIBS="-lpthread $LIBS"
27666cat >conftest.$ac_ext <<_ACEOF
27667/* confdefs.h. */
27668_ACEOF
27669cat confdefs.h >>conftest.$ac_ext
27670cat >>conftest.$ac_ext <<_ACEOF
27671/* end confdefs.h. */
27672
Reid Spencera773bd52006-08-04 18:18:08 +000027673/* Override any GCC internal prototype to avoid an error.
27674 Use char because int might match the return type of a GCC
27675 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027676#ifdef __cplusplus
27677extern "C"
27678#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027679char pthread_mutex_init ();
27680int
27681main ()
27682{
Reid Spencera773bd52006-08-04 18:18:08 +000027683return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027684 ;
27685 return 0;
27686}
27687_ACEOF
27688rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027689if { (ac_try="$ac_link"
27690case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27693esac
27694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027696 ac_status=$?
27697 grep -v '^ *+' conftest.er1 >conftest.err
27698 rm -f conftest.er1
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27703 { (case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27706esac
27707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_try") 2>&5
27709 ac_status=$?
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest$ac_exeext'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27716esac
27717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_try") 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027722 ac_cv_lib_pthread_pthread_mutex_init=yes
27723else
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
Reid Spencera773bd52006-08-04 18:18:08 +000027727 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027728fi
Reid Spencera773bd52006-08-04 18:18:08 +000027729
Bill Wendlingebcceee2009-04-18 11:20:33 +000027730rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027731 conftest$ac_exeext conftest.$ac_ext
27732LIBS=$ac_check_lib_save_LIBS
27733fi
Reid Spencera773bd52006-08-04 18:18:08 +000027734{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27735echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027736if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27737 cat >>confdefs.h <<_ACEOF
27738#define HAVE_LIBPTHREAD 1
27739_ACEOF
27740
27741 LIBS="-lpthread $LIBS"
27742
27743fi
27744
Reid Spencera773bd52006-08-04 18:18:08 +000027745 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27746echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027747if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027751cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027752/* confdefs.h. */
27753_ACEOF
27754cat confdefs.h >>conftest.$ac_ext
27755cat >>conftest.$ac_ext <<_ACEOF
27756/* end confdefs.h. */
27757
Reid Spencera773bd52006-08-04 18:18:08 +000027758/* Override any GCC internal prototype to avoid an error.
27759 Use char because int might match the return type of a GCC
27760 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027761#ifdef __cplusplus
27762extern "C"
27763#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027764char pthread_mutex_lock ();
27765int
27766main ()
27767{
Reid Spencera773bd52006-08-04 18:18:08 +000027768return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027769 ;
27770 return 0;
27771}
27772_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027773for ac_lib in '' pthread; do
27774 if test -z "$ac_lib"; then
27775 ac_res="none required"
27776 else
27777 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027779 fi
27780 rm -f conftest.$ac_objext conftest$ac_exeext
27781if { (ac_try="$ac_link"
27782case "(($ac_try" in
27783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784 *) ac_try_echo=$ac_try;;
27785esac
27786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027789 grep -v '^ *+' conftest.er1 >conftest.err
27790 rm -f conftest.er1
27791 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27795 { (case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27798esac
27799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_try") 2>&5
27801 ac_status=$?
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; } &&
27804 { ac_try='test -s conftest$ac_exeext'
27805 { (case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27808esac
27809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_try") 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027814 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027815else
27816 echo "$as_me: failed program was:" >&5
27817sed 's/^/| /' conftest.$ac_ext >&5
27818
Reid Spencera773bd52006-08-04 18:18:08 +000027819
Brian Gaeke5f268f72003-12-05 19:29:01 +000027820fi
Reid Spencera773bd52006-08-04 18:18:08 +000027821
Bill Wendlingebcceee2009-04-18 11:20:33 +000027822rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027823 conftest$ac_exeext
27824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27825 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027826fi
Reid Spencera773bd52006-08-04 18:18:08 +000027827done
27828if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27829 :
27830else
27831 ac_cv_search_pthread_mutex_lock=no
27832fi
27833rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027834LIBS=$ac_func_search_save_LIBS
27835fi
Reid Spencera773bd52006-08-04 18:18:08 +000027836{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27837echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27838ac_res=$ac_cv_search_pthread_mutex_lock
27839if test "$ac_res" != no; then
27840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027841
John Criswell40468462004-09-24 21:19:06 +000027842cat >>confdefs.h <<\_ACEOF
27843#define HAVE_PTHREAD_MUTEX_LOCK 1
27844_ACEOF
27845
27846fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027847
Reid Spencer0a262ba2005-08-24 10:07:20 +000027848fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027849
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027850
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027851# Check whether --with-udis86 was given.
27852if test "${with_udis86+set}" = set; then
27853 withval=$with_udis86;
27854 USE_UDIS86=1
27855
27856 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027857 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027858 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27859 esac
27860
27861{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27862echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27863if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27865else
27866 ac_check_lib_save_LIBS=$LIBS
27867LIBS="-ludis86 $LIBS"
27868cat >conftest.$ac_ext <<_ACEOF
27869/* confdefs.h. */
27870_ACEOF
27871cat confdefs.h >>conftest.$ac_ext
27872cat >>conftest.$ac_ext <<_ACEOF
27873/* end confdefs.h. */
27874
27875/* Override any GCC internal prototype to avoid an error.
27876 Use char because int might match the return type of a GCC
27877 builtin and then its argument prototype would still apply. */
27878#ifdef __cplusplus
27879extern "C"
27880#endif
27881char ud_init ();
27882int
27883main ()
27884{
27885return ud_init ();
27886 ;
27887 return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (ac_try="$ac_link"
27892case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27895esac
27896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_link") 2>conftest.er1
27898 ac_status=$?
27899 grep -v '^ *+' conftest.er1 >conftest.err
27900 rm -f conftest.er1
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027903 (exit $ac_status); } &&
27904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905 { (case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27908esac
27909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_try") 2>&5
27911 ac_status=$?
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest$ac_exeext'
27915 { (case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27918esac
27919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_try") 2>&5
27921 ac_status=$?
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027924 ac_cv_lib_udis86_ud_init=yes
27925else
27926 echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929 ac_cv_lib_udis86_ud_init=no
27930fi
27931
Bill Wendlingebcceee2009-04-18 11:20:33 +000027932rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027933 conftest$ac_exeext conftest.$ac_ext
27934LIBS=$ac_check_lib_save_LIBS
27935fi
27936{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27937echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27938if test $ac_cv_lib_udis86_ud_init = yes; then
27939 cat >>confdefs.h <<_ACEOF
27940#define HAVE_LIBUDIS86 1
27941_ACEOF
27942
27943 LIBS="-ludis86 $LIBS"
27944
27945else
27946
27947 echo "Error! You need to have libudis86 around."
27948 exit -1
27949
27950fi
27951
27952
27953else
27954 USE_UDIS86=0
27955
27956fi
27957
27958
27959cat >>confdefs.h <<_ACEOF
27960#define USE_UDIS86 $USE_UDIS86
27961_ACEOF
27962
27963
27964
Reid Spencer59473af2004-12-25 07:31:29 +000027965
27966
27967
27968
27969
27970ac_header_dirent=no
27971for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27972 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027973{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27974echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027976 echo $ECHO_N "(cached) $ECHO_C" >&6
27977else
27978 cat >conftest.$ac_ext <<_ACEOF
27979/* confdefs.h. */
27980_ACEOF
27981cat confdefs.h >>conftest.$ac_ext
27982cat >>conftest.$ac_ext <<_ACEOF
27983/* end confdefs.h. */
27984#include <sys/types.h>
27985#include <$ac_hdr>
27986
27987int
27988main ()
27989{
27990if ((DIR *) 0)
27991return 0;
27992 ;
27993 return 0;
27994}
27995_ACEOF
27996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027997if { (ac_try="$ac_compile"
27998case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001esac
28002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28014esac
28015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_try") 2>&5
28017 ac_status=$?
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; } &&
28020 { ac_try='test -s conftest.$ac_objext'
28021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28024esac
28025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
28027 ac_status=$?
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028030 eval "$as_ac_Header=yes"
28031else
28032 echo "$as_me: failed program was:" >&5
28033sed 's/^/| /' conftest.$ac_ext >&5
28034
Reid Spencera773bd52006-08-04 18:18:08 +000028035 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028036fi
Reid Spencera773bd52006-08-04 18:18:08 +000028037
28038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028039fi
Reid Spencera773bd52006-08-04 18:18:08 +000028040ac_res=`eval echo '${'$as_ac_Header'}'`
28041 { echo "$as_me:$LINENO: result: $ac_res" >&5
28042echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028043if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044 cat >>confdefs.h <<_ACEOF
28045#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28046_ACEOF
28047
28048ac_header_dirent=$ac_hdr; break
28049fi
28050
28051done
28052# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28053if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028054 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28055echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028056if test "${ac_cv_search_opendir+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28058else
28059 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028060cat >conftest.$ac_ext <<_ACEOF
28061/* confdefs.h. */
28062_ACEOF
28063cat confdefs.h >>conftest.$ac_ext
28064cat >>conftest.$ac_ext <<_ACEOF
28065/* end confdefs.h. */
28066
Reid Spencera773bd52006-08-04 18:18:08 +000028067/* Override any GCC internal prototype to avoid an error.
28068 Use char because int might match the return type of a GCC
28069 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028070#ifdef __cplusplus
28071extern "C"
28072#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028073char opendir ();
28074int
28075main ()
28076{
Reid Spencera773bd52006-08-04 18:18:08 +000028077return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028078 ;
28079 return 0;
28080}
28081_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028082for ac_lib in '' dir; do
28083 if test -z "$ac_lib"; then
28084 ac_res="none required"
28085 else
28086 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028088 fi
28089 rm -f conftest.$ac_objext conftest$ac_exeext
28090if { (ac_try="$ac_link"
28091case "(($ac_try" in
28092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093 *) ac_try_echo=$ac_try;;
28094esac
28095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028097 ac_status=$?
28098 grep -v '^ *+' conftest.er1 >conftest.err
28099 rm -f conftest.er1
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028102 (exit $ac_status); } &&
28103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28104 { (case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28107esac
28108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_try") 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; } &&
28113 { ac_try='test -s conftest$ac_exeext'
28114 { (case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28117esac
28118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_try") 2>&5
28120 ac_status=$?
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028123 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028124else
28125 echo "$as_me: failed program was:" >&5
28126sed 's/^/| /' conftest.$ac_ext >&5
28127
Reid Spencera773bd52006-08-04 18:18:08 +000028128
Reid Spencer59473af2004-12-25 07:31:29 +000028129fi
Reid Spencera773bd52006-08-04 18:18:08 +000028130
Bill Wendlingebcceee2009-04-18 11:20:33 +000028131rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028132 conftest$ac_exeext
28133 if test "${ac_cv_search_opendir+set}" = set; then
28134 break
Reid Spencer59473af2004-12-25 07:31:29 +000028135fi
Reid Spencera773bd52006-08-04 18:18:08 +000028136done
28137if test "${ac_cv_search_opendir+set}" = set; then
28138 :
28139else
28140 ac_cv_search_opendir=no
28141fi
28142rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028143LIBS=$ac_func_search_save_LIBS
28144fi
Reid Spencera773bd52006-08-04 18:18:08 +000028145{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28146echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28147ac_res=$ac_cv_search_opendir
28148if test "$ac_res" != no; then
28149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028150
28151fi
28152
28153else
Reid Spencera773bd52006-08-04 18:18:08 +000028154 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28155echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028156if test "${ac_cv_search_opendir+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028160cat >conftest.$ac_ext <<_ACEOF
28161/* confdefs.h. */
28162_ACEOF
28163cat confdefs.h >>conftest.$ac_ext
28164cat >>conftest.$ac_ext <<_ACEOF
28165/* end confdefs.h. */
28166
Reid Spencera773bd52006-08-04 18:18:08 +000028167/* Override any GCC internal prototype to avoid an error.
28168 Use char because int might match the return type of a GCC
28169 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028170#ifdef __cplusplus
28171extern "C"
28172#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028173char opendir ();
28174int
28175main ()
28176{
Reid Spencera773bd52006-08-04 18:18:08 +000028177return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028178 ;
28179 return 0;
28180}
28181_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028182for ac_lib in '' x; do
28183 if test -z "$ac_lib"; then
28184 ac_res="none required"
28185 else
28186 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028188 fi
28189 rm -f conftest.$ac_objext conftest$ac_exeext
28190if { (ac_try="$ac_link"
28191case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28194esac
28195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028197 ac_status=$?
28198 grep -v '^ *+' conftest.er1 >conftest.err
28199 rm -f conftest.er1
28200 cat conftest.err >&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028202 (exit $ac_status); } &&
28203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28204 { (case "(($ac_try" in
28205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206 *) ac_try_echo=$ac_try;;
28207esac
28208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209 (eval "$ac_try") 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest$ac_exeext'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217esac
28218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028223 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028224else
28225 echo "$as_me: failed program was:" >&5
28226sed 's/^/| /' conftest.$ac_ext >&5
28227
Reid Spencera773bd52006-08-04 18:18:08 +000028228
Reid Spencer59473af2004-12-25 07:31:29 +000028229fi
Reid Spencera773bd52006-08-04 18:18:08 +000028230
Bill Wendlingebcceee2009-04-18 11:20:33 +000028231rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028232 conftest$ac_exeext
28233 if test "${ac_cv_search_opendir+set}" = set; then
28234 break
Reid Spencer59473af2004-12-25 07:31:29 +000028235fi
Reid Spencera773bd52006-08-04 18:18:08 +000028236done
28237if test "${ac_cv_search_opendir+set}" = set; then
28238 :
28239else
28240 ac_cv_search_opendir=no
28241fi
28242rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028243LIBS=$ac_func_search_save_LIBS
28244fi
Reid Spencera773bd52006-08-04 18:18:08 +000028245{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28246echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28247ac_res=$ac_cv_search_opendir
28248if test "$ac_res" != no; then
28249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028250
28251fi
28252
28253fi
28254
Reid Spencera773bd52006-08-04 18:18:08 +000028255{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28256echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028257if test "${ac_cv_header_mmap_anon+set}" = set; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28259else
28260 ac_ext=c
28261ac_cpp='$CPP $CPPFLAGS'
28262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264ac_compiler_gnu=$ac_cv_c_compiler_gnu
28265
28266 cat >conftest.$ac_ext <<_ACEOF
28267/* confdefs.h. */
28268_ACEOF
28269cat confdefs.h >>conftest.$ac_ext
28270cat >>conftest.$ac_ext <<_ACEOF
28271/* end confdefs.h. */
28272#include <sys/mman.h>
28273#include <unistd.h>
28274#include <fcntl.h>
28275int
28276main ()
28277{
28278mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28279 ;
28280 return 0;
28281}
28282_ACEOF
28283rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028284if { (ac_try="$ac_compile"
28285case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28288esac
28289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028291 ac_status=$?
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028296 (exit $ac_status); } &&
28297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298 { (case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28301esac
28302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest.$ac_objext'
28308 { (case "(($ac_try" in
28309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310 *) ac_try_echo=$ac_try;;
28311esac
28312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313 (eval "$ac_try") 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028317 ac_cv_header_mmap_anon=yes
28318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
Reid Spencera773bd52006-08-04 18:18:08 +000028322 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028323fi
Reid Spencera773bd52006-08-04 18:18:08 +000028324
28325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028326 ac_ext=c
28327ac_cpp='$CPP $CPPFLAGS'
28328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330ac_compiler_gnu=$ac_cv_c_compiler_gnu
28331
28332
28333fi
Reid Spencera773bd52006-08-04 18:18:08 +000028334{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28335echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028336if test "$ac_cv_header_mmap_anon" = yes; then
28337
28338cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028339#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028340_ACEOF
28341
28342fi
28343
Reid Spencera773bd52006-08-04 18:18:08 +000028344{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28345echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028346if test "${ac_cv_header_stat_broken+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28348else
28349 cat >conftest.$ac_ext <<_ACEOF
28350/* confdefs.h. */
28351_ACEOF
28352cat confdefs.h >>conftest.$ac_ext
28353cat >>conftest.$ac_ext <<_ACEOF
28354/* end confdefs.h. */
28355#include <sys/types.h>
28356#include <sys/stat.h>
28357
Reid Spencera773bd52006-08-04 18:18:08 +000028358#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028359# if S_ISBLK (S_IFDIR)
28360You lose.
28361# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028362#endif
28363
Reid Spencera773bd52006-08-04 18:18:08 +000028364#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028365# if S_ISBLK (S_IFCHR)
28366You lose.
28367# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028368#endif
28369
Reid Spencera773bd52006-08-04 18:18:08 +000028370#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028371# if S_ISLNK (S_IFREG)
28372You lose.
28373# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028374#endif
28375
Reid Spencera773bd52006-08-04 18:18:08 +000028376#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028377# if S_ISSOCK (S_IFREG)
28378You lose.
28379# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028380#endif
28381
28382_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28384 $EGREP "You lose" >/dev/null 2>&1; then
28385 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028386else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028387 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028388fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028389rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028390
Reid Spencer59473af2004-12-25 07:31:29 +000028391fi
Reid Spencera773bd52006-08-04 18:18:08 +000028392{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28393echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028394if test $ac_cv_header_stat_broken = yes; then
28395
28396cat >>confdefs.h <<\_ACEOF
28397#define STAT_MACROS_BROKEN 1
28398_ACEOF
28399
28400fi
28401
Reid Spencera773bd52006-08-04 18:18:08 +000028402{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28403echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028404if test "${ac_cv_header_stdc+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28406else
28407 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028408/* confdefs.h. */
28409_ACEOF
28410cat confdefs.h >>conftest.$ac_ext
28411cat >>conftest.$ac_ext <<_ACEOF
28412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028413#include <stdlib.h>
28414#include <stdarg.h>
28415#include <string.h>
28416#include <float.h>
28417
John Criswell0c38eaf2003-09-10 15:17:25 +000028418int
28419main ()
28420{
28421
28422 ;
28423 return 0;
28424}
John Criswell7a73b802003-06-30 21:59:07 +000028425_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028426rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028427if { (ac_try="$ac_compile"
28428case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431esac
28432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028439 (exit $ac_status); } &&
28440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28441 { (case "(($ac_try" in
28442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443 *) ac_try_echo=$ac_try;;
28444esac
28445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446 (eval "$ac_try") 2>&5
28447 ac_status=$?
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; } &&
28450 { ac_try='test -s conftest.$ac_objext'
28451 { (case "(($ac_try" in
28452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453 *) ac_try_echo=$ac_try;;
28454esac
28455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456 (eval "$ac_try") 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028460 ac_cv_header_stdc=yes
28461else
28462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028463sed 's/^/| /' conftest.$ac_ext >&5
28464
Reid Spencera773bd52006-08-04 18:18:08 +000028465 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028466fi
Reid Spencera773bd52006-08-04 18:18:08 +000028467
28468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028469
28470if test $ac_cv_header_stdc = yes; then
28471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028478#include <string.h>
28479
28480_ACEOF
28481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028482 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028483 :
28484else
28485 ac_cv_header_stdc=no
28486fi
28487rm -f conftest*
28488
28489fi
28490
28491if test $ac_cv_header_stdc = yes; then
28492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028494/* confdefs.h. */
28495_ACEOF
28496cat confdefs.h >>conftest.$ac_ext
28497cat >>conftest.$ac_ext <<_ACEOF
28498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028499#include <stdlib.h>
28500
28501_ACEOF
28502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028503 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028504 :
28505else
28506 ac_cv_header_stdc=no
28507fi
28508rm -f conftest*
28509
28510fi
28511
28512if test $ac_cv_header_stdc = yes; then
28513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28514 if test "$cross_compiling" = yes; then
28515 :
28516else
28517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028518/* confdefs.h. */
28519_ACEOF
28520cat confdefs.h >>conftest.$ac_ext
28521cat >>conftest.$ac_ext <<_ACEOF
28522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028523#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028524#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028525#if ((' ' & 0x0FF) == 0x020)
28526# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28527# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28528#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028529# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028530 (('a' <= (c) && (c) <= 'i') \
28531 || ('j' <= (c) && (c) <= 'r') \
28532 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28534#endif
28535
28536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28537int
28538main ()
28539{
28540 int i;
28541 for (i = 0; i < 256; i++)
28542 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028543 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028544 return 2;
28545 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028546}
28547_ACEOF
28548rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028549if { (ac_try="$ac_link"
28550case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28553esac
28554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028559 { (case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28562esac
28563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 :
28569else
28570 echo "$as_me: program exited with status $ac_status" >&5
28571echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028572sed 's/^/| /' conftest.$ac_ext >&5
28573
John Criswell7a73b802003-06-30 21:59:07 +000028574( exit $ac_status )
28575ac_cv_header_stdc=no
28576fi
Reid Spencera773bd52006-08-04 18:18:08 +000028577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28578fi
28579
28580
John Criswell7a73b802003-06-30 21:59:07 +000028581fi
28582fi
Reid Spencera773bd52006-08-04 18:18:08 +000028583{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28584echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028585if test $ac_cv_header_stdc = yes; then
28586
28587cat >>confdefs.h <<\_ACEOF
28588#define STDC_HEADERS 1
28589_ACEOF
28590
28591fi
28592
Reid Spencera773bd52006-08-04 18:18:08 +000028593{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28594echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028595if test "${ac_cv_header_sys_wait_h+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28597else
28598 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028599/* confdefs.h. */
28600_ACEOF
28601cat confdefs.h >>conftest.$ac_ext
28602cat >>conftest.$ac_ext <<_ACEOF
28603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028604#include <sys/types.h>
28605#include <sys/wait.h>
28606#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028607# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028608#endif
28609#ifndef WIFEXITED
28610# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28611#endif
28612
John Criswell7a73b802003-06-30 21:59:07 +000028613int
28614main ()
28615{
28616 int s;
28617 wait (&s);
28618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28619 ;
28620 return 0;
28621}
28622_ACEOF
28623rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028624if { (ac_try="$ac_compile"
28625case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28628esac
28629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028632 grep -v '^ *+' conftest.er1 >conftest.err
28633 rm -f conftest.er1
28634 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28638 { (case "(($ac_try" in
28639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640 *) ac_try_echo=$ac_try;;
28641esac
28642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643 (eval "$ac_try") 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest.$ac_objext'
28648 { (case "(($ac_try" in
28649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650 *) ac_try_echo=$ac_try;;
28651esac
28652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653 (eval "$ac_try") 2>&5
28654 ac_status=$?
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028657 ac_cv_header_sys_wait_h=yes
28658else
28659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028660sed 's/^/| /' conftest.$ac_ext >&5
28661
Reid Spencera773bd52006-08-04 18:18:08 +000028662 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028663fi
Reid Spencera773bd52006-08-04 18:18:08 +000028664
28665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028666fi
Reid Spencera773bd52006-08-04 18:18:08 +000028667{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28668echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028669if test $ac_cv_header_sys_wait_h = yes; then
28670
28671cat >>confdefs.h <<\_ACEOF
28672#define HAVE_SYS_WAIT_H 1
28673_ACEOF
28674
28675fi
28676
Reid Spencera773bd52006-08-04 18:18:08 +000028677{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28678echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028679if test "${ac_cv_header_time+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
28682 cat >conftest.$ac_ext <<_ACEOF
28683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028688#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028689#include <sys/time.h>
28690#include <time.h>
28691
28692int
28693main ()
28694{
28695if ((struct tm *) 0)
28696return 0;
28697 ;
28698 return 0;
28699}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028700_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028701rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028702if { (ac_try="$ac_compile"
28703case "(($ac_try" in
28704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705 *) ac_try_echo=$ac_try;;
28706esac
28707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028709 ac_status=$?
28710 grep -v '^ *+' conftest.er1 >conftest.err
28711 rm -f conftest.er1
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28716 { (case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28719esac
28720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_try") 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest.$ac_objext'
28726 { (case "(($ac_try" in
28727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728 *) ac_try_echo=$ac_try;;
28729esac
28730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731 (eval "$ac_try") 2>&5
28732 ac_status=$?
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028735 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028736else
28737 echo "$as_me: failed program was:" >&5
28738sed 's/^/| /' conftest.$ac_ext >&5
28739
Reid Spencera773bd52006-08-04 18:18:08 +000028740 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028741fi
Reid Spencera773bd52006-08-04 18:18:08 +000028742
28743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028744fi
Reid Spencera773bd52006-08-04 18:18:08 +000028745{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28746echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028747if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028748
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028749cat >>confdefs.h <<\_ACEOF
28750#define TIME_WITH_SYS_TIME 1
28751_ACEOF
28752
28753fi
28754
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028755
Reid Spencer59473af2004-12-25 07:31:29 +000028756
28757
28758
28759
28760
28761
28762for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28763do
28764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028769 echo $ECHO_N "(cached) $ECHO_C" >&6
28770fi
Reid Spencera773bd52006-08-04 18:18:08 +000028771ac_res=`eval echo '${'$as_ac_Header'}'`
28772 { echo "$as_me:$LINENO: result: $ac_res" >&5
28773echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028774else
28775 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028776{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028778cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028779/* confdefs.h. */
28780_ACEOF
28781cat confdefs.h >>conftest.$ac_ext
28782cat >>conftest.$ac_ext <<_ACEOF
28783/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028784$ac_includes_default
28785#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028786_ACEOF
28787rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028788if { (ac_try="$ac_compile"
28789case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28792esac
28793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028795 ac_status=$?
28796 grep -v '^ *+' conftest.er1 >conftest.err
28797 rm -f conftest.er1
28798 cat conftest.err >&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028800 (exit $ac_status); } &&
28801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28802 { (case "(($ac_try" in
28803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804 *) ac_try_echo=$ac_try;;
28805esac
28806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807 (eval "$ac_try") 2>&5
28808 ac_status=$?
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest.$ac_objext'
28812 { (case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28815esac
28816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_try") 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028821 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028822else
28823 echo "$as_me: failed program was:" >&5
28824sed 's/^/| /' conftest.$ac_ext >&5
28825
Reid Spencera773bd52006-08-04 18:18:08 +000028826 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028827fi
Reid Spencera773bd52006-08-04 18:18:08 +000028828
28829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28830{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28831echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028832
Reid Spencer59473af2004-12-25 07:31:29 +000028833# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028834{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028836cat >conftest.$ac_ext <<_ACEOF
28837/* confdefs.h. */
28838_ACEOF
28839cat confdefs.h >>conftest.$ac_ext
28840cat >>conftest.$ac_ext <<_ACEOF
28841/* end confdefs.h. */
28842#include <$ac_header>
28843_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028844if { (ac_try="$ac_cpp conftest.$ac_ext"
28845case "(($ac_try" in
28846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847 *) ac_try_echo=$ac_try;;
28848esac
28849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028851 ac_status=$?
28852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028856 (exit $ac_status); } >/dev/null; then
28857 if test -s conftest.err; then
28858 ac_cpp_err=$ac_c_preproc_warn_flag
28859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28860 else
28861 ac_cpp_err=
28862 fi
28863else
28864 ac_cpp_err=yes
28865fi
28866if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028867 ac_header_preproc=yes
28868else
28869 echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872 ac_header_preproc=no
28873fi
Reid Spencera773bd52006-08-04 18:18:08 +000028874
Reid Spencer59473af2004-12-25 07:31:29 +000028875rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028876{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28877echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028878
28879# So? What about this header?
28880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28881 yes:no: )
28882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28886 ac_header_preproc=yes
28887 ;;
28888 no:yes:* )
28889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028901 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028902## ----------------------------------- ##
28903## Report this to llvmbugs@cs.uiuc.edu ##
28904## ----------------------------------- ##
28905_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028906 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028907 ;;
28908esac
Reid Spencera773bd52006-08-04 18:18:08 +000028909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028912 echo $ECHO_N "(cached) $ECHO_C" >&6
28913else
28914 eval "$as_ac_Header=\$ac_header_preproc"
28915fi
Reid Spencera773bd52006-08-04 18:18:08 +000028916ac_res=`eval echo '${'$as_ac_Header'}'`
28917 { echo "$as_me:$LINENO: result: $ac_res" >&5
28918echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028919
28920fi
Reid Spencer59473af2004-12-25 07:31:29 +000028921if test `eval echo '${'$as_ac_Header'}'` = yes; then
28922 cat >>confdefs.h <<_ACEOF
28923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028924_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028925
28926fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028927
Reid Spencer59473af2004-12-25 07:31:29 +000028928done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028929
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028930
28931
Reid Spencer59473af2004-12-25 07:31:29 +000028932
28933
28934
28935
Reid Spencercdb08a32006-06-05 16:11:07 +000028936for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028937do
28938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028943 echo $ECHO_N "(cached) $ECHO_C" >&6
28944fi
Reid Spencera773bd52006-08-04 18:18:08 +000028945ac_res=`eval echo '${'$as_ac_Header'}'`
28946 { echo "$as_me:$LINENO: result: $ac_res" >&5
28947echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028948else
28949 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028952cat >conftest.$ac_ext <<_ACEOF
28953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
28958$ac_includes_default
28959#include <$ac_header>
28960_ACEOF
28961rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028962if { (ac_try="$ac_compile"
28963case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28966esac
28967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028969 ac_status=$?
28970 grep -v '^ *+' conftest.er1 >conftest.err
28971 rm -f conftest.er1
28972 cat conftest.err >&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028974 (exit $ac_status); } &&
28975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28976 { (case "(($ac_try" in
28977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978 *) ac_try_echo=$ac_try;;
28979esac
28980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28981 (eval "$ac_try") 2>&5
28982 ac_status=$?
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; } &&
28985 { ac_try='test -s conftest.$ac_objext'
28986 { (case "(($ac_try" in
28987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28988 *) ac_try_echo=$ac_try;;
28989esac
28990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28991 (eval "$ac_try") 2>&5
28992 ac_status=$?
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028995 ac_header_compiler=yes
28996else
28997 echo "$as_me: failed program was:" >&5
28998sed 's/^/| /' conftest.$ac_ext >&5
28999
Reid Spencera773bd52006-08-04 18:18:08 +000029000 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029001fi
Reid Spencera773bd52006-08-04 18:18:08 +000029002
29003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29005echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029006
29007# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029010cat >conftest.$ac_ext <<_ACEOF
29011/* confdefs.h. */
29012_ACEOF
29013cat confdefs.h >>conftest.$ac_ext
29014cat >>conftest.$ac_ext <<_ACEOF
29015/* end confdefs.h. */
29016#include <$ac_header>
29017_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029018if { (ac_try="$ac_cpp conftest.$ac_ext"
29019case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29022esac
29023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029025 ac_status=$?
29026 grep -v '^ *+' conftest.er1 >conftest.err
29027 rm -f conftest.er1
29028 cat conftest.err >&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029030 (exit $ac_status); } >/dev/null; then
29031 if test -s conftest.err; then
29032 ac_cpp_err=$ac_c_preproc_warn_flag
29033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29034 else
29035 ac_cpp_err=
29036 fi
29037else
29038 ac_cpp_err=yes
29039fi
29040if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029041 ac_header_preproc=yes
29042else
29043 echo "$as_me: failed program was:" >&5
29044sed 's/^/| /' conftest.$ac_ext >&5
29045
29046 ac_header_preproc=no
29047fi
Reid Spencera773bd52006-08-04 18:18:08 +000029048
Reid Spencer59473af2004-12-25 07:31:29 +000029049rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029050{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29051echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029052
29053# So? What about this header?
29054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29055 yes:no: )
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29060 ac_header_preproc=yes
29061 ;;
29062 no:yes:* )
29063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029075 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029076## ----------------------------------- ##
29077## Report this to llvmbugs@cs.uiuc.edu ##
29078## ----------------------------------- ##
29079_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029080 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029081 ;;
29082esac
Reid Spencera773bd52006-08-04 18:18:08 +000029083{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029086 echo $ECHO_N "(cached) $ECHO_C" >&6
29087else
29088 eval "$as_ac_Header=\$ac_header_preproc"
29089fi
Reid Spencera773bd52006-08-04 18:18:08 +000029090ac_res=`eval echo '${'$as_ac_Header'}'`
29091 { echo "$as_me:$LINENO: result: $ac_res" >&5
29092echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029093
29094fi
29095if test `eval echo '${'$as_ac_Header'}'` = yes; then
29096 cat >>confdefs.h <<_ACEOF
29097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29098_ACEOF
29099
29100fi
29101
29102done
29103
29104
Reid Spencerbe3e4192007-08-17 05:45:26 +000029105for ac_header in windows.h
29106do
29107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29113fi
29114ac_res=`eval echo '${'$as_ac_Header'}'`
29115 { echo "$as_me:$LINENO: result: $ac_res" >&5
29116echo "${ECHO_T}$ac_res" >&6; }
29117else
29118 # Is the header compilable?
29119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29121cat >conftest.$ac_ext <<_ACEOF
29122/* confdefs.h. */
29123_ACEOF
29124cat confdefs.h >>conftest.$ac_ext
29125cat >>conftest.$ac_ext <<_ACEOF
29126/* end confdefs.h. */
29127$ac_includes_default
29128#include <$ac_header>
29129_ACEOF
29130rm -f conftest.$ac_objext
29131if { (ac_try="$ac_compile"
29132case "(($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_compile") 2>conftest.er1
29138 ac_status=$?
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029143 (exit $ac_status); } &&
29144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145 { (case "(($ac_try" in
29146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147 *) ac_try_echo=$ac_try;;
29148esac
29149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150 (eval "$ac_try") 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; } &&
29154 { ac_try='test -s conftest.$ac_objext'
29155 { (case "(($ac_try" in
29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157 *) ac_try_echo=$ac_try;;
29158esac
29159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160 (eval "$ac_try") 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029164 ac_header_compiler=yes
29165else
29166 echo "$as_me: failed program was:" >&5
29167sed 's/^/| /' conftest.$ac_ext >&5
29168
29169 ac_header_compiler=no
29170fi
29171
29172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174echo "${ECHO_T}$ac_header_compiler" >&6; }
29175
29176# Is the header present?
29177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29179cat >conftest.$ac_ext <<_ACEOF
29180/* confdefs.h. */
29181_ACEOF
29182cat confdefs.h >>conftest.$ac_ext
29183cat >>conftest.$ac_ext <<_ACEOF
29184/* end confdefs.h. */
29185#include <$ac_header>
29186_ACEOF
29187if { (ac_try="$ac_cpp conftest.$ac_ext"
29188case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191esac
29192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194 ac_status=$?
29195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029199 (exit $ac_status); } >/dev/null; then
29200 if test -s conftest.err; then
29201 ac_cpp_err=$ac_c_preproc_warn_flag
29202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29203 else
29204 ac_cpp_err=
29205 fi
29206else
29207 ac_cpp_err=yes
29208fi
29209if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029210 ac_header_preproc=yes
29211else
29212 echo "$as_me: failed program was:" >&5
29213sed 's/^/| /' conftest.$ac_ext >&5
29214
29215 ac_header_preproc=no
29216fi
29217
29218rm -f conftest.err conftest.$ac_ext
29219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220echo "${ECHO_T}$ac_header_preproc" >&6; }
29221
29222# So? What about this header?
29223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29224 yes:no: )
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229 ac_header_preproc=yes
29230 ;;
29231 no:yes:* )
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29244 ( cat <<\_ASBOX
29245## ----------------------------------- ##
29246## Report this to llvmbugs@cs.uiuc.edu ##
29247## ----------------------------------- ##
29248_ASBOX
29249 ) | sed "s/^/$as_me: WARNING: /" >&2
29250 ;;
29251esac
29252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257 eval "$as_ac_Header=\$ac_header_preproc"
29258fi
29259ac_res=`eval echo '${'$as_ac_Header'}'`
29260 { echo "$as_me:$LINENO: result: $ac_res" >&5
29261echo "${ECHO_T}$ac_res" >&6; }
29262
29263fi
29264if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29267_ACEOF
29268
29269fi
29270
29271done
Reid Spencer59473af2004-12-25 07:31:29 +000029272
29273
29274
29275
Reid Spencerbe3e4192007-08-17 05:45:26 +000029276
29277for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029278do
29279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029284 echo $ECHO_N "(cached) $ECHO_C" >&6
29285fi
Reid Spencera773bd52006-08-04 18:18:08 +000029286ac_res=`eval echo '${'$as_ac_Header'}'`
29287 { echo "$as_me:$LINENO: result: $ac_res" >&5
29288echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029289else
29290 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029293cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029300#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029301_ACEOF
29302rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029303if { (ac_try="$ac_compile"
29304case "(($ac_try" in
29305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306 *) ac_try_echo=$ac_try;;
29307esac
29308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029315 (exit $ac_status); } &&
29316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317 { (case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29320esac
29321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
29327 { (case "(($ac_try" in
29328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29329 *) ac_try_echo=$ac_try;;
29330esac
29331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332 (eval "$ac_try") 2>&5
29333 ac_status=$?
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029336 ac_header_compiler=yes
29337else
29338 echo "$as_me: failed program was:" >&5
29339sed 's/^/| /' conftest.$ac_ext >&5
29340
Reid Spencera773bd52006-08-04 18:18:08 +000029341 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029342fi
Reid Spencera773bd52006-08-04 18:18:08 +000029343
29344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29346echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029347
29348# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029349{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029351cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029352/* confdefs.h. */
29353_ACEOF
29354cat confdefs.h >>conftest.$ac_ext
29355cat >>conftest.$ac_ext <<_ACEOF
29356/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029357#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029358_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029359if { (ac_try="$ac_cpp conftest.$ac_ext"
29360case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29363esac
29364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029366 ac_status=$?
29367 grep -v '^ *+' conftest.er1 >conftest.err
29368 rm -f conftest.er1
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029371 (exit $ac_status); } >/dev/null; then
29372 if test -s conftest.err; then
29373 ac_cpp_err=$ac_c_preproc_warn_flag
29374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29375 else
29376 ac_cpp_err=
29377 fi
29378else
29379 ac_cpp_err=yes
29380fi
29381if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029382 ac_header_preproc=yes
29383else
29384 echo "$as_me: failed program was:" >&5
29385sed 's/^/| /' conftest.$ac_ext >&5
29386
29387 ac_header_preproc=no
29388fi
Reid Spencera773bd52006-08-04 18:18:08 +000029389
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029390rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029391{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29392echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029393
29394# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29396 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029401 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029402 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029403 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029416 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029417## ----------------------------------- ##
29418## Report this to llvmbugs@cs.uiuc.edu ##
29419## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029420_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029421 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029422 ;;
29423esac
Reid Spencera773bd52006-08-04 18:18:08 +000029424{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029427 echo $ECHO_N "(cached) $ECHO_C" >&6
29428else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029429 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029430fi
Reid Spencera773bd52006-08-04 18:18:08 +000029431ac_res=`eval echo '${'$as_ac_Header'}'`
29432 { echo "$as_me:$LINENO: result: $ac_res" >&5
29433echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029434
29435fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029436if test `eval echo '${'$as_ac_Header'}'` = yes; then
29437 cat >>confdefs.h <<_ACEOF
29438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029439_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029440
29441fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029443done
29444
John Criswell7ed43ad2004-07-19 16:12:29 +000029445
Reid Spencercdb08a32006-06-05 16:11:07 +000029446
Reid Spencera6d990a2006-09-14 06:17:21 +000029447
29448for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029449do
29450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029455 echo $ECHO_N "(cached) $ECHO_C" >&6
29456fi
Reid Spencera773bd52006-08-04 18:18:08 +000029457ac_res=`eval echo '${'$as_ac_Header'}'`
29458 { echo "$as_me:$LINENO: result: $ac_res" >&5
29459echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029460else
29461 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029464cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470$ac_includes_default
29471#include <$ac_header>
29472_ACEOF
29473rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029474if { (ac_try="$ac_compile"
29475case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478esac
29479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029481 ac_status=$?
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29491esac
29492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
29498 { (case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501esac
29502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_try") 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029507 ac_header_compiler=yes
29508else
29509 echo "$as_me: failed program was:" >&5
29510sed 's/^/| /' conftest.$ac_ext >&5
29511
Reid Spencera773bd52006-08-04 18:18:08 +000029512 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029513fi
Reid Spencera773bd52006-08-04 18:18:08 +000029514
29515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029518
29519# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029520{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029522cat >conftest.$ac_ext <<_ACEOF
29523/* confdefs.h. */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h. */
29528#include <$ac_header>
29529_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029530if { (ac_try="$ac_cpp conftest.$ac_ext"
29531case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29534esac
29535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029537 ac_status=$?
29538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029542 (exit $ac_status); } >/dev/null; then
29543 if test -s conftest.err; then
29544 ac_cpp_err=$ac_c_preproc_warn_flag
29545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29546 else
29547 ac_cpp_err=
29548 fi
29549else
29550 ac_cpp_err=yes
29551fi
29552if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029553 ac_header_preproc=yes
29554else
29555 echo "$as_me: failed program was:" >&5
29556sed 's/^/| /' conftest.$ac_ext >&5
29557
29558 ac_header_preproc=no
29559fi
Reid Spencera773bd52006-08-04 18:18:08 +000029560
Chris Lattner0b142592005-11-14 06:57:34 +000029561rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029562{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29563echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029564
29565# So? What about this header?
29566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29567 yes:no: )
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29572 ac_header_preproc=yes
29573 ;;
29574 no:yes:* )
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029587 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029588## ----------------------------------- ##
29589## Report this to llvmbugs@cs.uiuc.edu ##
29590## ----------------------------------- ##
29591_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029592 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029593 ;;
29594esac
Reid Spencera773bd52006-08-04 18:18:08 +000029595{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029598 echo $ECHO_N "(cached) $ECHO_C" >&6
29599else
29600 eval "$as_ac_Header=\$ac_header_preproc"
29601fi
Reid Spencera773bd52006-08-04 18:18:08 +000029602ac_res=`eval echo '${'$as_ac_Header'}'`
29603 { echo "$as_me:$LINENO: result: $ac_res" >&5
29604echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029605
29606fi
29607if test `eval echo '${'$as_ac_Header'}'` = yes; then
29608 cat >>confdefs.h <<_ACEOF
29609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29610_ACEOF
29611
29612fi
29613
29614done
29615
Reid Spencer0a262ba2005-08-24 10:07:20 +000029616if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029617
29618for ac_header in pthread.h
29619do
29620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029627ac_res=`eval echo '${'$as_ac_Header'}'`
29628 { echo "$as_me:$LINENO: result: $ac_res" >&5
29629echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029630else
29631 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029632{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029634cat >conftest.$ac_ext <<_ACEOF
29635/* confdefs.h. */
29636_ACEOF
29637cat confdefs.h >>conftest.$ac_ext
29638cat >>conftest.$ac_ext <<_ACEOF
29639/* end confdefs.h. */
29640$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029641#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029642_ACEOF
29643rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029644if { (ac_try="$ac_compile"
29645case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648esac
29649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029651 ac_status=$?
29652 grep -v '^ *+' conftest.er1 >conftest.err
29653 rm -f conftest.er1
29654 cat conftest.err >&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029656 (exit $ac_status); } &&
29657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29658 { (case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29661esac
29662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_try") 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; } &&
29667 { ac_try='test -s conftest.$ac_objext'
29668 { (case "(($ac_try" in
29669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670 *) ac_try_echo=$ac_try;;
29671esac
29672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673 (eval "$ac_try") 2>&5
29674 ac_status=$?
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029677 ac_header_compiler=yes
29678else
29679 echo "$as_me: failed program was:" >&5
29680sed 's/^/| /' conftest.$ac_ext >&5
29681
Reid Spencera773bd52006-08-04 18:18:08 +000029682 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029683fi
Reid Spencera773bd52006-08-04 18:18:08 +000029684
29685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29687echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029688
29689# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029692cat >conftest.$ac_ext <<_ACEOF
29693/* confdefs.h. */
29694_ACEOF
29695cat confdefs.h >>conftest.$ac_ext
29696cat >>conftest.$ac_ext <<_ACEOF
29697/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029698#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029700if { (ac_try="$ac_cpp conftest.$ac_ext"
29701case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29704esac
29705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029707 ac_status=$?
29708 grep -v '^ *+' conftest.er1 >conftest.err
29709 rm -f conftest.er1
29710 cat conftest.err >&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029712 (exit $ac_status); } >/dev/null; then
29713 if test -s conftest.err; then
29714 ac_cpp_err=$ac_c_preproc_warn_flag
29715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29716 else
29717 ac_cpp_err=
29718 fi
29719else
29720 ac_cpp_err=yes
29721fi
29722if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029723 ac_header_preproc=yes
29724else
29725 echo "$as_me: failed program was:" >&5
29726sed 's/^/| /' conftest.$ac_ext >&5
29727
29728 ac_header_preproc=no
29729fi
Reid Spencera773bd52006-08-04 18:18:08 +000029730
Reid Spencer0a262ba2005-08-24 10:07:20 +000029731rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29733echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029734
29735# So? What about this header?
29736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29737 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029742 ac_header_preproc=yes
29743 ;;
29744 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029757 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029758## ----------------------------------- ##
29759## Report this to llvmbugs@cs.uiuc.edu ##
29760## ----------------------------------- ##
29761_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029762 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029763 ;;
29764esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029765{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029768 echo $ECHO_N "(cached) $ECHO_C" >&6
29769else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029770 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029771fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029772ac_res=`eval echo '${'$as_ac_Header'}'`
29773 { echo "$as_me:$LINENO: result: $ac_res" >&5
29774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029775
29776fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029777if test `eval echo '${'$as_ac_Header'}'` = yes; then
29778 cat >>confdefs.h <<_ACEOF
29779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29780_ACEOF
29781 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029782
29783else
29784 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029785
29786fi
29787
Reid Spencerbe3e4192007-08-17 05:45:26 +000029788done
Reid Spencer1000b732006-12-01 00:37:14 +000029789
29790else
29791 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029792
29793fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029794
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029795
29796
29797for ac_header in ffi.h ffi/ffi.h
29798do
29799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805fi
29806ac_res=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808echo "${ECHO_T}$ac_res" >&6; }
29809else
29810 # Is the header compilable?
29811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29813cat >conftest.$ac_ext <<_ACEOF
29814/* confdefs.h. */
29815_ACEOF
29816cat confdefs.h >>conftest.$ac_ext
29817cat >>conftest.$ac_ext <<_ACEOF
29818/* end confdefs.h. */
29819$ac_includes_default
29820#include <$ac_header>
29821_ACEOF
29822rm -f conftest.$ac_objext
29823if { (ac_try="$ac_compile"
29824case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
29830 ac_status=$?
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029835 (exit $ac_status); } &&
29836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
29847 { (case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029856 ac_header_compiler=yes
29857else
29858 echo "$as_me: failed program was:" >&5
29859sed 's/^/| /' conftest.$ac_ext >&5
29860
29861 ac_header_compiler=no
29862fi
29863
29864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866echo "${ECHO_T}$ac_header_compiler" >&6; }
29867
29868# Is the header present?
29869{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29871cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
29877#include <$ac_header>
29878_ACEOF
29879if { (ac_try="$ac_cpp conftest.$ac_ext"
29880case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883esac
29884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029891 (exit $ac_status); } >/dev/null; then
29892 if test -s conftest.err; then
29893 ac_cpp_err=$ac_c_preproc_warn_flag
29894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895 else
29896 ac_cpp_err=
29897 fi
29898else
29899 ac_cpp_err=yes
29900fi
29901if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029902 ac_header_preproc=yes
29903else
29904 echo "$as_me: failed program was:" >&5
29905sed 's/^/| /' conftest.$ac_ext >&5
29906
29907 ac_header_preproc=no
29908fi
29909
29910rm -f conftest.err conftest.$ac_ext
29911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912echo "${ECHO_T}$ac_header_preproc" >&6; }
29913
29914# So? What about this header?
29915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 yes:no: )
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921 ac_header_preproc=yes
29922 ;;
29923 no:yes:* )
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29936 ( cat <<\_ASBOX
29937## ----------------------------------- ##
29938## Report this to llvmbugs@cs.uiuc.edu ##
29939## ----------------------------------- ##
29940_ASBOX
29941 ) | sed "s/^/$as_me: WARNING: /" >&2
29942 ;;
29943esac
29944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29947 echo $ECHO_N "(cached) $ECHO_C" >&6
29948else
29949 eval "$as_ac_Header=\$ac_header_preproc"
29950fi
29951ac_res=`eval echo '${'$as_ac_Header'}'`
29952 { echo "$as_me:$LINENO: result: $ac_res" >&5
29953echo "${ECHO_T}$ac_res" >&6; }
29954
29955fi
29956if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29959_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029960
29961fi
29962
29963done
29964
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029965
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029966
Reid Spencer8085cff2005-01-16 02:58:39 +000029967
Reid Spencerb2ed05262006-11-03 18:04:08 +000029968 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29969echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29970if test "${ac_cv_huge_val_sanity+set}" = set; then
29971 echo $ECHO_N "(cached) $ECHO_C" >&6
29972else
29973
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029974 ac_ext=cpp
29975ac_cpp='$CXXCPP $CPPFLAGS'
29976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029979
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029980 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029981 if test "$cross_compiling" = yes; then
29982 ac_cv_huge_val_sanity=yes
29983else
29984 cat >conftest.$ac_ext <<_ACEOF
29985/* confdefs.h. */
29986_ACEOF
29987cat confdefs.h >>conftest.$ac_ext
29988cat >>conftest.$ac_ext <<_ACEOF
29989/* end confdefs.h. */
29990#include <math.h>
29991int
29992main ()
29993{
29994double x = HUGE_VAL; return x != x;
29995 ;
29996 return 0;
29997}
29998_ACEOF
29999rm -f conftest$ac_exeext
30000if { (ac_try="$ac_link"
30001case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30004esac
30005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_link") 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_huge_val_sanity=yes
30020else
30021 echo "$as_me: program exited with status $ac_status" >&5
30022echo "$as_me: failed program was:" >&5
30023sed 's/^/| /' conftest.$ac_ext >&5
30024
30025( exit $ac_status )
30026ac_cv_huge_val_sanity=no
30027fi
30028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30029fi
30030
30031
30032 ac_ext=c
30033ac_cpp='$CPP $CPPFLAGS'
30034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30036ac_compiler_gnu=$ac_cv_c_compiler_gnu
30037
30038
30039fi
30040{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30041echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30042 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30043
30044
Reid Spencera773bd52006-08-04 18:18:08 +000030045{ echo "$as_me:$LINENO: checking for pid_t" >&5
30046echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030047if test "${ac_cv_type_pid_t+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
30050 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030051/* confdefs.h. */
30052_ACEOF
30053cat confdefs.h >>conftest.$ac_ext
30054cat >>conftest.$ac_ext <<_ACEOF
30055/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030056$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030057typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030058int
30059main ()
30060{
Reid Spencera773bd52006-08-04 18:18:08 +000030061if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030062 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030063if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030064 return 0;
30065 ;
30066 return 0;
30067}
30068_ACEOF
30069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030070if { (ac_try="$ac_compile"
30071case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30087esac
30088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030103 ac_cv_type_pid_t=yes
30104else
30105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030106sed 's/^/| /' conftest.$ac_ext >&5
30107
Reid Spencera773bd52006-08-04 18:18:08 +000030108 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030109fi
Reid Spencera773bd52006-08-04 18:18:08 +000030110
30111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030112fi
Reid Spencera773bd52006-08-04 18:18:08 +000030113{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30114echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030115if test $ac_cv_type_pid_t = yes; then
30116 :
30117else
30118
30119cat >>confdefs.h <<_ACEOF
30120#define pid_t int
30121_ACEOF
30122
30123fi
30124
Reid Spencera773bd52006-08-04 18:18:08 +000030125{ echo "$as_me:$LINENO: checking for size_t" >&5
30126echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030127if test "${ac_cv_type_size_t+set}" = set; then
30128 echo $ECHO_N "(cached) $ECHO_C" >&6
30129else
30130 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030131/* confdefs.h. */
30132_ACEOF
30133cat confdefs.h >>conftest.$ac_ext
30134cat >>conftest.$ac_ext <<_ACEOF
30135/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030136$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030137typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030138int
30139main ()
30140{
Reid Spencera773bd52006-08-04 18:18:08 +000030141if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030142 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030143if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030144 return 0;
30145 ;
30146 return 0;
30147}
30148_ACEOF
30149rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030150if { (ac_try="$ac_compile"
30151case "(($ac_try" in
30152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30153 *) ac_try_echo=$ac_try;;
30154esac
30155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30156 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030157 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030158 grep -v '^ *+' conftest.er1 >conftest.err
30159 rm -f conftest.er1
30160 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030162 (exit $ac_status); } &&
30163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30164 { (case "(($ac_try" in
30165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166 *) ac_try_echo=$ac_try;;
30167esac
30168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169 (eval "$ac_try") 2>&5
30170 ac_status=$?
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; } &&
30173 { ac_try='test -s conftest.$ac_objext'
30174 { (case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_try") 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030183 ac_cv_type_size_t=yes
30184else
30185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030186sed 's/^/| /' conftest.$ac_ext >&5
30187
Reid Spencera773bd52006-08-04 18:18:08 +000030188 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030189fi
Reid Spencera773bd52006-08-04 18:18:08 +000030190
30191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030192fi
Reid Spencera773bd52006-08-04 18:18:08 +000030193{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30194echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030195if test $ac_cv_type_size_t = yes; then
30196 :
30197else
30198
30199cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030200#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030201_ACEOF
30202
30203fi
30204
Reid Spencera773bd52006-08-04 18:18:08 +000030205{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30206echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207if test "${ac_cv_type_signal+set}" = set; then
30208 echo $ECHO_N "(cached) $ECHO_C" >&6
30209else
30210 cat >conftest.$ac_ext <<_ACEOF
30211/* confdefs.h. */
30212_ACEOF
30213cat confdefs.h >>conftest.$ac_ext
30214cat >>conftest.$ac_ext <<_ACEOF
30215/* end confdefs.h. */
30216#include <sys/types.h>
30217#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030218
30219int
30220main ()
30221{
Reid Spencera773bd52006-08-04 18:18:08 +000030222return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030223 ;
30224 return 0;
30225}
30226_ACEOF
30227rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030228if { (ac_try="$ac_compile"
30229case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30232esac
30233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030235 ac_status=$?
30236 grep -v '^ *+' conftest.er1 >conftest.err
30237 rm -f conftest.er1
30238 cat conftest.err >&5
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030240 (exit $ac_status); } &&
30241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242 { (case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30245esac
30246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_try") 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30255esac
30256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_try") 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030261 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262else
30263 echo "$as_me: failed program was:" >&5
30264sed 's/^/| /' conftest.$ac_ext >&5
30265
Reid Spencera773bd52006-08-04 18:18:08 +000030266 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030267fi
Reid Spencera773bd52006-08-04 18:18:08 +000030268
30269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030270fi
Reid Spencera773bd52006-08-04 18:18:08 +000030271{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30272echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030273
30274cat >>confdefs.h <<_ACEOF
30275#define RETSIGTYPE $ac_cv_type_signal
30276_ACEOF
30277
30278
Reid Spencera773bd52006-08-04 18:18:08 +000030279{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30280echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030281if test "${ac_cv_struct_tm+set}" = set; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30283else
30284 cat >conftest.$ac_ext <<_ACEOF
30285/* confdefs.h. */
30286_ACEOF
30287cat confdefs.h >>conftest.$ac_ext
30288cat >>conftest.$ac_ext <<_ACEOF
30289/* end confdefs.h. */
30290#include <sys/types.h>
30291#include <time.h>
30292
30293int
30294main ()
30295{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030296struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030302if { (ac_try="$ac_compile"
30303case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30306esac
30307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030309 ac_status=$?
30310 grep -v '^ *+' conftest.er1 >conftest.err
30311 rm -f conftest.er1
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30319esac
30320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
30326 { (case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_try") 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030335 ac_cv_struct_tm=time.h
30336else
30337 echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
Reid Spencera773bd52006-08-04 18:18:08 +000030340 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030341fi
Reid Spencera773bd52006-08-04 18:18:08 +000030342
30343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030344fi
Reid Spencera773bd52006-08-04 18:18:08 +000030345{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30346echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030347if test $ac_cv_struct_tm = sys/time.h; then
30348
30349cat >>confdefs.h <<\_ACEOF
30350#define TM_IN_SYS_TIME 1
30351_ACEOF
30352
30353fi
30354
Reid Spencera773bd52006-08-04 18:18:08 +000030355{ echo "$as_me:$LINENO: checking for int64_t" >&5
30356echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030357if test "${ac_cv_type_int64_t+set}" = set; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30359else
30360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030361/* confdefs.h. */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030366$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030367typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030368int
30369main ()
30370{
Reid Spencera773bd52006-08-04 18:18:08 +000030371if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030372 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030373if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030374 return 0;
30375 ;
30376 return 0;
30377}
30378_ACEOF
30379rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030380if { (ac_try="$ac_compile"
30381case "(($ac_try" in
30382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383 *) ac_try_echo=$ac_try;;
30384esac
30385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30386 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030388 grep -v '^ *+' conftest.er1 >conftest.err
30389 rm -f conftest.er1
30390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030392 (exit $ac_status); } &&
30393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30394 { (case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30397esac
30398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_try") 2>&5
30400 ac_status=$?
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); }; } &&
30403 { ac_try='test -s conftest.$ac_objext'
30404 { (case "(($ac_try" in
30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406 *) ac_try_echo=$ac_try;;
30407esac
30408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_try") 2>&5
30410 ac_status=$?
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030413 ac_cv_type_int64_t=yes
30414else
30415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030416sed 's/^/| /' conftest.$ac_ext >&5
30417
Reid Spencera773bd52006-08-04 18:18:08 +000030418 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030419fi
Reid Spencera773bd52006-08-04 18:18:08 +000030420
30421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030422fi
Reid Spencera773bd52006-08-04 18:18:08 +000030423{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30424echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030425if test $ac_cv_type_int64_t = yes; then
30426
30427cat >>confdefs.h <<_ACEOF
30428#define HAVE_INT64_T 1
30429_ACEOF
30430
30431
30432else
30433 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30434echo "$as_me: error: Type int64_t required but not found" >&2;}
30435 { (exit 1); exit 1; }; }
30436fi
30437
Reid Spencera773bd52006-08-04 18:18:08 +000030438{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30439echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030440if test "${ac_cv_type_uint64_t+set}" = set; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30442else
30443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030444/* confdefs.h. */
30445_ACEOF
30446cat confdefs.h >>conftest.$ac_ext
30447cat >>conftest.$ac_ext <<_ACEOF
30448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030449$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030450typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030451int
30452main ()
30453{
Reid Spencera773bd52006-08-04 18:18:08 +000030454if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030455 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030456if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030457 return 0;
30458 ;
30459 return 0;
30460}
30461_ACEOF
30462rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030463if { (ac_try="$ac_compile"
30464case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30467esac
30468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030471 grep -v '^ *+' conftest.er1 >conftest.err
30472 rm -f conftest.er1
30473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030475 (exit $ac_status); } &&
30476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30477 { (case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30480esac
30481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482 (eval "$ac_try") 2>&5
30483 ac_status=$?
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); }; } &&
30486 { ac_try='test -s conftest.$ac_objext'
30487 { (case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30490esac
30491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_try") 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030496 ac_cv_type_uint64_t=yes
30497else
30498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030499sed 's/^/| /' conftest.$ac_ext >&5
30500
Reid Spencera773bd52006-08-04 18:18:08 +000030501 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030502fi
Reid Spencera773bd52006-08-04 18:18:08 +000030503
30504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030505fi
Reid Spencera773bd52006-08-04 18:18:08 +000030506{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30507echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030508if test $ac_cv_type_uint64_t = yes; then
30509
30510cat >>confdefs.h <<_ACEOF
30511#define HAVE_UINT64_T 1
30512_ACEOF
30513
30514
30515else
Reid Spencera773bd52006-08-04 18:18:08 +000030516 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30517echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030518if test "${ac_cv_type_u_int64_t+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30520else
30521 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030522/* confdefs.h. */
30523_ACEOF
30524cat confdefs.h >>conftest.$ac_ext
30525cat >>conftest.$ac_ext <<_ACEOF
30526/* end confdefs.h. */
30527$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030528typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030529int
30530main ()
30531{
Reid Spencera773bd52006-08-04 18:18:08 +000030532if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030533 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030534if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030535 return 0;
30536 ;
30537 return 0;
30538}
30539_ACEOF
30540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030541if { (ac_try="$ac_compile"
30542case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30545esac
30546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030549 grep -v '^ *+' conftest.er1 >conftest.err
30550 rm -f conftest.er1
30551 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030553 (exit $ac_status); } &&
30554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30555 { (case "(($ac_try" in
30556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557 *) ac_try_echo=$ac_try;;
30558esac
30559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560 (eval "$ac_try") 2>&5
30561 ac_status=$?
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563 (exit $ac_status); }; } &&
30564 { ac_try='test -s conftest.$ac_objext'
30565 { (case "(($ac_try" in
30566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567 *) ac_try_echo=$ac_try;;
30568esac
30569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570 (eval "$ac_try") 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030574 ac_cv_type_u_int64_t=yes
30575else
30576 echo "$as_me: failed program was:" >&5
30577sed 's/^/| /' conftest.$ac_ext >&5
30578
Reid Spencera773bd52006-08-04 18:18:08 +000030579 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030580fi
Reid Spencera773bd52006-08-04 18:18:08 +000030581
30582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030583fi
Reid Spencera773bd52006-08-04 18:18:08 +000030584{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30585echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030586if test $ac_cv_type_u_int64_t = yes; then
30587
30588cat >>confdefs.h <<_ACEOF
30589#define HAVE_U_INT64_T 1
30590_ACEOF
30591
30592
Misha Brukmanceca9042004-09-02 23:02:30 +000030593else
30594 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30595echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30596 { (exit 1); exit 1; }; }
30597fi
30598
John Criswell679ff312004-09-02 18:44:44 +000030599fi
30600
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030601
30602
30603
30604
30605
30606
30607
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030608
30609
Reid Spencerdf3be822006-01-23 08:15:53 +000030610for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030611do
30612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030613{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30615if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030616 echo $ECHO_N "(cached) $ECHO_C" >&6
30617else
30618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030619/* confdefs.h. */
30620_ACEOF
30621cat confdefs.h >>conftest.$ac_ext
30622cat >>conftest.$ac_ext <<_ACEOF
30623/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30626#define $ac_func innocuous_$ac_func
30627
30628/* System header to define __stub macros and hopefully few prototypes,
30629 which can conflict with char $ac_func (); below.
30630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631 <limits.h> exists even on freestanding compilers. */
30632
30633#ifdef __STDC__
30634# include <limits.h>
30635#else
30636# include <assert.h>
30637#endif
30638
30639#undef $ac_func
30640
Reid Spencera773bd52006-08-04 18:18:08 +000030641/* Override any GCC internal prototype to avoid an error.
30642 Use char because int might match the return type of a GCC
30643 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030644#ifdef __cplusplus
30645extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030646#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030647char $ac_func ();
30648/* The GNU C library defines this for functions which it implements
30649 to always fail with ENOSYS. Some functions are actually named
30650 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030651#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030652choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030653#endif
John Criswell7a73b802003-06-30 21:59:07 +000030654
John Criswell7a73b802003-06-30 21:59:07 +000030655int
30656main ()
30657{
Reid Spencera773bd52006-08-04 18:18:08 +000030658return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030659 ;
30660 return 0;
30661}
30662_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030663rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030664if { (ac_try="$ac_link"
30665case "(($ac_try" in
30666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667 *) ac_try_echo=$ac_try;;
30668esac
30669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30670 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030672 grep -v '^ *+' conftest.er1 >conftest.err
30673 rm -f conftest.er1
30674 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030676 (exit $ac_status); } &&
30677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30678 { (case "(($ac_try" in
30679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680 *) ac_try_echo=$ac_try;;
30681esac
30682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683 (eval "$ac_try") 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest$ac_exeext'
30688 { (case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30691esac
30692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_try") 2>&5
30694 ac_status=$?
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030697 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030698else
30699 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030700sed 's/^/| /' conftest.$ac_ext >&5
30701
Reid Spencera773bd52006-08-04 18:18:08 +000030702 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030703fi
Reid Spencera773bd52006-08-04 18:18:08 +000030704
Bill Wendlingebcceee2009-04-18 11:20:33 +000030705rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030707fi
Reid Spencera773bd52006-08-04 18:18:08 +000030708ac_res=`eval echo '${'$as_ac_var'}'`
30709 { echo "$as_me:$LINENO: result: $ac_res" >&5
30710echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711if test `eval echo '${'$as_ac_var'}'` = yes; then
30712 cat >>confdefs.h <<_ACEOF
30713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030714_ACEOF
30715
30716fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717done
John Criswell7a73b802003-06-30 21:59:07 +000030718
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030719
30720
30721
Reid Spencer6af3d262004-12-15 04:01:48 +000030722
Reid Spencer96cf5872007-07-13 10:05:30 +000030723for ac_func in powf fmodf strtof round
30724do
30725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30729 echo $ECHO_N "(cached) $ECHO_C" >&6
30730else
30731 cat >conftest.$ac_ext <<_ACEOF
30732/* confdefs.h. */
30733_ACEOF
30734cat confdefs.h >>conftest.$ac_ext
30735cat >>conftest.$ac_ext <<_ACEOF
30736/* end confdefs.h. */
30737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30739#define $ac_func innocuous_$ac_func
30740
30741/* System header to define __stub macros and hopefully few prototypes,
30742 which can conflict with char $ac_func (); below.
30743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30744 <limits.h> exists even on freestanding compilers. */
30745
30746#ifdef __STDC__
30747# include <limits.h>
30748#else
30749# include <assert.h>
30750#endif
30751
30752#undef $ac_func
30753
30754/* Override any GCC internal prototype to avoid an error.
30755 Use char because int might match the return type of a GCC
30756 builtin and then its argument prototype would still apply. */
30757#ifdef __cplusplus
30758extern "C"
30759#endif
30760char $ac_func ();
30761/* The GNU C library defines this for functions which it implements
30762 to always fail with ENOSYS. Some functions are actually named
30763 something starting with __ and the normal name is an alias. */
30764#if defined __stub_$ac_func || defined __stub___$ac_func
30765choke me
30766#endif
30767
30768int
30769main ()
30770{
30771return $ac_func ();
30772 ;
30773 return 0;
30774}
30775_ACEOF
30776rm -f conftest.$ac_objext conftest$ac_exeext
30777if { (ac_try="$ac_link"
30778case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30781esac
30782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783 (eval "$ac_link") 2>conftest.er1
30784 ac_status=$?
30785 grep -v '^ *+' conftest.er1 >conftest.err
30786 rm -f conftest.er1
30787 cat conftest.err >&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030789 (exit $ac_status); } &&
30790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30791 { (case "(($ac_try" in
30792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30793 *) ac_try_echo=$ac_try;;
30794esac
30795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30796 (eval "$ac_try") 2>&5
30797 ac_status=$?
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); }; } &&
30800 { ac_try='test -s conftest$ac_exeext'
30801 { (case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30804esac
30805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_try") 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030810 eval "$as_ac_var=yes"
30811else
30812 echo "$as_me: failed program was:" >&5
30813sed 's/^/| /' conftest.$ac_ext >&5
30814
30815 eval "$as_ac_var=no"
30816fi
30817
Bill Wendlingebcceee2009-04-18 11:20:33 +000030818rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030819 conftest$ac_exeext conftest.$ac_ext
30820fi
30821ac_res=`eval echo '${'$as_ac_var'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823echo "${ECHO_T}$ac_res" >&6; }
30824if test `eval echo '${'$as_ac_var'}'` = yes; then
30825 cat >>confdefs.h <<_ACEOF
30826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30827_ACEOF
30828
30829fi
30830done
30831
30832
30833
30834
30835
Reid Spencer6af3d262004-12-15 04:01:48 +000030836
Reid Spencerb90645c2007-02-16 19:17:20 +000030837for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30838do
30839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30840{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30842if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30844else
30845 cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
30851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30853#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030854
Reid Spencerb90645c2007-02-16 19:17:20 +000030855/* System header to define __stub macros and hopefully few prototypes,
30856 which can conflict with char $ac_func (); below.
30857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30858 <limits.h> exists even on freestanding compilers. */
30859
30860#ifdef __STDC__
30861# include <limits.h>
30862#else
30863# include <assert.h>
30864#endif
30865
30866#undef $ac_func
30867
30868/* Override any GCC internal prototype to avoid an error.
30869 Use char because int might match the return type of a GCC
30870 builtin and then its argument prototype would still apply. */
30871#ifdef __cplusplus
30872extern "C"
30873#endif
30874char $ac_func ();
30875/* The GNU C library defines this for functions which it implements
30876 to always fail with ENOSYS. Some functions are actually named
30877 something starting with __ and the normal name is an alias. */
30878#if defined __stub_$ac_func || defined __stub___$ac_func
30879choke me
30880#endif
30881
30882int
30883main ()
30884{
30885return $ac_func ();
30886 ;
30887 return 0;
30888}
30889_ACEOF
30890rm -f conftest.$ac_objext conftest$ac_exeext
30891if { (ac_try="$ac_link"
30892case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30895esac
30896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_link") 2>conftest.er1
30898 ac_status=$?
30899 grep -v '^ *+' conftest.er1 >conftest.err
30900 rm -f conftest.er1
30901 cat conftest.err >&5
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030903 (exit $ac_status); } &&
30904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30905 { (case "(($ac_try" in
30906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907 *) ac_try_echo=$ac_try;;
30908esac
30909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910 (eval "$ac_try") 2>&5
30911 ac_status=$?
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; } &&
30914 { ac_try='test -s conftest$ac_exeext'
30915 { (case "(($ac_try" in
30916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917 *) ac_try_echo=$ac_try;;
30918esac
30919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920 (eval "$ac_try") 2>&5
30921 ac_status=$?
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030924 eval "$as_ac_var=yes"
30925else
30926 echo "$as_me: failed program was:" >&5
30927sed 's/^/| /' conftest.$ac_ext >&5
30928
30929 eval "$as_ac_var=no"
30930fi
30931
Bill Wendlingebcceee2009-04-18 11:20:33 +000030932rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030933 conftest$ac_exeext conftest.$ac_ext
30934fi
30935ac_res=`eval echo '${'$as_ac_var'}'`
30936 { echo "$as_me:$LINENO: result: $ac_res" >&5
30937echo "${ECHO_T}$ac_res" >&6; }
30938if test `eval echo '${'$as_ac_var'}'` = yes; then
30939 cat >>confdefs.h <<_ACEOF
30940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30941_ACEOF
30942
30943fi
30944done
30945
30946
30947
30948
30949for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030950do
30951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030955 echo $ECHO_N "(cached) $ECHO_C" >&6
30956else
30957 cat >conftest.$ac_ext <<_ACEOF
30958/* confdefs.h. */
30959_ACEOF
30960cat confdefs.h >>conftest.$ac_ext
30961cat >>conftest.$ac_ext <<_ACEOF
30962/* end confdefs.h. */
30963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30965#define $ac_func innocuous_$ac_func
30966
30967/* System header to define __stub macros and hopefully few prototypes,
30968 which can conflict with char $ac_func (); below.
30969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30970 <limits.h> exists even on freestanding compilers. */
30971
30972#ifdef __STDC__
30973# include <limits.h>
30974#else
30975# include <assert.h>
30976#endif
30977
30978#undef $ac_func
30979
Reid Spencera773bd52006-08-04 18:18:08 +000030980/* Override any GCC internal prototype to avoid an error.
30981 Use char because int might match the return type of a GCC
30982 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030983#ifdef __cplusplus
30984extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030985#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030986char $ac_func ();
30987/* The GNU C library defines this for functions which it implements
30988 to always fail with ENOSYS. Some functions are actually named
30989 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030990#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030991choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030992#endif
30993
30994int
30995main ()
30996{
Reid Spencera773bd52006-08-04 18:18:08 +000030997return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030998 ;
30999 return 0;
31000}
31001_ACEOF
31002rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031003if { (ac_try="$ac_link"
31004case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31007esac
31008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031010 ac_status=$?
31011 grep -v '^ *+' conftest.er1 >conftest.err
31012 rm -f conftest.er1
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031015 (exit $ac_status); } &&
31016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31017 { (case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31020esac
31021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_try") 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; } &&
31026 { ac_try='test -s conftest$ac_exeext'
31027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31030esac
31031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031036 eval "$as_ac_var=yes"
31037else
31038 echo "$as_me: failed program was:" >&5
31039sed 's/^/| /' conftest.$ac_ext >&5
31040
Reid Spencera773bd52006-08-04 18:18:08 +000031041 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031042fi
Reid Spencera773bd52006-08-04 18:18:08 +000031043
Bill Wendlingebcceee2009-04-18 11:20:33 +000031044rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031045 conftest$ac_exeext conftest.$ac_ext
31046fi
Reid Spencera773bd52006-08-04 18:18:08 +000031047ac_res=`eval echo '${'$as_ac_var'}'`
31048 { echo "$as_me:$LINENO: result: $ac_res" >&5
31049echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031050if test `eval echo '${'$as_ac_var'}'` = yes; then
31051 cat >>confdefs.h <<_ACEOF
31052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31053_ACEOF
31054
31055fi
31056done
31057
31058
31059
31060
31061
31062
31063
31064
31065for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031066do
31067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031071 echo $ECHO_N "(cached) $ECHO_C" >&6
31072else
31073 cat >conftest.$ac_ext <<_ACEOF
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
31079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31081#define $ac_func innocuous_$ac_func
31082
31083/* System header to define __stub macros and hopefully few prototypes,
31084 which can conflict with char $ac_func (); below.
31085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086 <limits.h> exists even on freestanding compilers. */
31087
31088#ifdef __STDC__
31089# include <limits.h>
31090#else
31091# include <assert.h>
31092#endif
31093
31094#undef $ac_func
31095
Reid Spencera773bd52006-08-04 18:18:08 +000031096/* Override any GCC internal prototype to avoid an error.
31097 Use char because int might match the return type of a GCC
31098 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031099#ifdef __cplusplus
31100extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031101#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031102char $ac_func ();
31103/* The GNU C library defines this for functions which it implements
31104 to always fail with ENOSYS. Some functions are actually named
31105 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031106#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031107choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031108#endif
31109
31110int
31111main ()
31112{
Reid Spencera773bd52006-08-04 18:18:08 +000031113return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031114 ;
31115 return 0;
31116}
31117_ACEOF
31118rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031119if { (ac_try="$ac_link"
31120case "(($ac_try" in
31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31123esac
31124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031126 ac_status=$?
31127 grep -v '^ *+' conftest.er1 >conftest.err
31128 rm -f conftest.er1
31129 cat conftest.err >&5
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031131 (exit $ac_status); } &&
31132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31133 { (case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31136esac
31137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_try") 2>&5
31139 ac_status=$?
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; } &&
31142 { ac_try='test -s conftest$ac_exeext'
31143 { (case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146esac
31147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_try") 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031152 eval "$as_ac_var=yes"
31153else
31154 echo "$as_me: failed program was:" >&5
31155sed 's/^/| /' conftest.$ac_ext >&5
31156
Reid Spencera773bd52006-08-04 18:18:08 +000031157 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031158fi
Reid Spencera773bd52006-08-04 18:18:08 +000031159
Bill Wendlingebcceee2009-04-18 11:20:33 +000031160rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031161 conftest$ac_exeext conftest.$ac_ext
31162fi
Reid Spencera773bd52006-08-04 18:18:08 +000031163ac_res=`eval echo '${'$as_ac_var'}'`
31164 { echo "$as_me:$LINENO: result: $ac_res" >&5
31165echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031166if test `eval echo '${'$as_ac_var'}'` = yes; then
31167 cat >>confdefs.h <<_ACEOF
31168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31169_ACEOF
31170
31171fi
31172done
31173
31174
Reid Spencerba46ca32004-12-31 05:49:15 +000031175
31176
Chris Lattner0b142592005-11-14 06:57:34 +000031177
Chris Lattner511f11d2005-11-14 07:25:50 +000031178for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031179do
31180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031184 echo $ECHO_N "(cached) $ECHO_C" >&6
31185else
31186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031187/* confdefs.h. */
31188_ACEOF
31189cat confdefs.h >>conftest.$ac_ext
31190cat >>conftest.$ac_ext <<_ACEOF
31191/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31194#define $ac_func innocuous_$ac_func
31195
31196/* System header to define __stub macros and hopefully few prototypes,
31197 which can conflict with char $ac_func (); below.
31198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31199 <limits.h> exists even on freestanding compilers. */
31200
31201#ifdef __STDC__
31202# include <limits.h>
31203#else
31204# include <assert.h>
31205#endif
31206
31207#undef $ac_func
31208
Reid Spencera773bd52006-08-04 18:18:08 +000031209/* Override any GCC internal prototype to avoid an error.
31210 Use char because int might match the return type of a GCC
31211 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212#ifdef __cplusplus
31213extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215char $ac_func ();
31216/* The GNU C library defines this for functions which it implements
31217 to always fail with ENOSYS. Some functions are actually named
31218 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031219#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031221#endif
John Criswell7a73b802003-06-30 21:59:07 +000031222
John Criswell7a73b802003-06-30 21:59:07 +000031223int
31224main ()
31225{
Reid Spencera773bd52006-08-04 18:18:08 +000031226return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031227 ;
31228 return 0;
31229}
31230_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031231rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031232if { (ac_try="$ac_link"
31233case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236esac
31237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031240 grep -v '^ *+' conftest.er1 >conftest.err
31241 rm -f conftest.er1
31242 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031244 (exit $ac_status); } &&
31245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31249esac
31250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; } &&
31255 { ac_try='test -s conftest$ac_exeext'
31256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31259esac
31260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
31262 ac_status=$?
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031265 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031266else
31267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031268sed 's/^/| /' conftest.$ac_ext >&5
31269
Reid Spencera773bd52006-08-04 18:18:08 +000031270 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031271fi
Reid Spencera773bd52006-08-04 18:18:08 +000031272
Bill Wendlingebcceee2009-04-18 11:20:33 +000031273rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031275fi
Reid Spencera773bd52006-08-04 18:18:08 +000031276ac_res=`eval echo '${'$as_ac_var'}'`
31277 { echo "$as_me:$LINENO: result: $ac_res" >&5
31278echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279if test `eval echo '${'$as_ac_var'}'` = yes; then
31280 cat >>confdefs.h <<_ACEOF
31281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031282_ACEOF
31283
31284fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031285done
John Criswell7a73b802003-06-30 21:59:07 +000031286
Reid Spencercdb08a32006-06-05 16:11:07 +000031287
31288
31289
31290
Reid Spencerafa22e22006-12-10 23:29:19 +000031291for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031292do
31293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031294{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31296if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031297 echo $ECHO_N "(cached) $ECHO_C" >&6
31298else
31299 cat >conftest.$ac_ext <<_ACEOF
31300/* confdefs.h. */
31301_ACEOF
31302cat confdefs.h >>conftest.$ac_ext
31303cat >>conftest.$ac_ext <<_ACEOF
31304/* end confdefs.h. */
31305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31307#define $ac_func innocuous_$ac_func
31308
31309/* System header to define __stub macros and hopefully few prototypes,
31310 which can conflict with char $ac_func (); below.
31311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31312 <limits.h> exists even on freestanding compilers. */
31313
31314#ifdef __STDC__
31315# include <limits.h>
31316#else
31317# include <assert.h>
31318#endif
31319
31320#undef $ac_func
31321
Reid Spencera773bd52006-08-04 18:18:08 +000031322/* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031325#ifdef __cplusplus
31326extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031327#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031328char $ac_func ();
31329/* The GNU C library defines this for functions which it implements
31330 to always fail with ENOSYS. Some functions are actually named
31331 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031332#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031333choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031334#endif
31335
31336int
31337main ()
31338{
Reid Spencera773bd52006-08-04 18:18:08 +000031339return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031340 ;
31341 return 0;
31342}
31343_ACEOF
31344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031345if { (ac_try="$ac_link"
31346case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31349esac
31350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031352 ac_status=$?
31353 grep -v '^ *+' conftest.er1 >conftest.err
31354 rm -f conftest.er1
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest$ac_exeext'
31369 { (case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31372esac
31373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_try") 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031378 eval "$as_ac_var=yes"
31379else
31380 echo "$as_me: failed program was:" >&5
31381sed 's/^/| /' conftest.$ac_ext >&5
31382
Reid Spencera773bd52006-08-04 18:18:08 +000031383 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031384fi
Reid Spencera773bd52006-08-04 18:18:08 +000031385
Bill Wendlingebcceee2009-04-18 11:20:33 +000031386rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031387 conftest$ac_exeext conftest.$ac_ext
31388fi
Reid Spencera773bd52006-08-04 18:18:08 +000031389ac_res=`eval echo '${'$as_ac_var'}'`
31390 { echo "$as_me:$LINENO: result: $ac_res" >&5
31391echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031392if test `eval echo '${'$as_ac_var'}'` = yes; then
31393 cat >>confdefs.h <<_ACEOF
31394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31395_ACEOF
31396
31397fi
31398done
31399
Reid Spencera773bd52006-08-04 18:18:08 +000031400{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31401echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031402if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031403 echo $ECHO_N "(cached) $ECHO_C" >&6
31404else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031405 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031406ac_cpp='$CPP $CPPFLAGS'
31407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31409ac_compiler_gnu=$ac_cv_c_compiler_gnu
31410
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031411 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031412 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031413else
31414 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031415
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031416 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031417_ACEOF
31418cat confdefs.h >>conftest.$ac_ext
31419cat >>conftest.$ac_ext <<_ACEOF
31420/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031421
John Criswella0137d32003-10-13 16:22:01 +000031422#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423#include <stdlib.h>
31424
John Criswella0137d32003-10-13 16:22:01 +000031425int
31426main ()
31427{
31428
Reid Spencer2706f8c2004-09-19 23:53:36 +000031429volatile double A, B;
31430char Buffer[100];
31431A = 1;
31432A /= 10.0;
31433sprintf(Buffer, "%a", A);
31434B = atof(Buffer);
31435if (A != B)
31436 return (1);
31437if (A != 0x1.999999999999ap-4)
31438 return (1);
31439return (0);
John Criswella0137d32003-10-13 16:22:01 +000031440 ;
31441 return 0;
31442}
31443_ACEOF
31444rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031445if { (ac_try="$ac_link"
31446case "(($ac_try" in
31447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448 *) ac_try_echo=$ac_try;;
31449esac
31450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031452 ac_status=$?
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458esac
31459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031464 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031465else
31466 echo "$as_me: program exited with status $ac_status" >&5
31467echo "$as_me: failed program was:" >&5
31468sed 's/^/| /' conftest.$ac_ext >&5
31469
31470( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031471llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031472fi
Reid Spencera773bd52006-08-04 18:18:08 +000031473rm -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 +000031474fi
Reid Spencera773bd52006-08-04 18:18:08 +000031475
31476
Reid Spencer2706f8c2004-09-19 23:53:36 +000031477 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031478ac_cpp='$CPP $CPPFLAGS'
31479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31481ac_compiler_gnu=$ac_cv_c_compiler_gnu
31482
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483fi
Reid Spencera773bd52006-08-04 18:18:08 +000031484{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31485echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031486 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031487
31488cat >>confdefs.h <<\_ACEOF
31489#define HAVE_PRINTF_A 1
31490_ACEOF
31491
Reid Spencer2706f8c2004-09-19 23:53:36 +000031492 fi
John Criswella0137d32003-10-13 16:22:01 +000031493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031494# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31495# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031496{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31497echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031498if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031499 echo $ECHO_N "(cached) $ECHO_C" >&6
31500else
John Criswell0021c312004-02-13 21:57:29 +000031501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031502/* confdefs.h. */
31503_ACEOF
31504cat confdefs.h >>conftest.$ac_ext
31505cat >>conftest.$ac_ext <<_ACEOF
31506/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031507#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031508int
31509main ()
31510{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031511char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031512 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031513 ;
31514 return 0;
31515}
31516_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031517rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031518if { (ac_try="$ac_link"
31519case "(($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_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031530 (exit $ac_status); } &&
31531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest$ac_exeext'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31545esac
31546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031551 ac_cv_working_alloca_h=yes
31552else
31553 echo "$as_me: failed program was:" >&5
31554sed 's/^/| /' conftest.$ac_ext >&5
31555
Reid Spencera773bd52006-08-04 18:18:08 +000031556 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031557fi
Reid Spencera773bd52006-08-04 18:18:08 +000031558
Bill Wendlingebcceee2009-04-18 11:20:33 +000031559rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031560 conftest$ac_exeext conftest.$ac_ext
31561fi
Reid Spencera773bd52006-08-04 18:18:08 +000031562{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31563echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031564if test $ac_cv_working_alloca_h = yes; then
31565
31566cat >>confdefs.h <<\_ACEOF
31567#define HAVE_ALLOCA_H 1
31568_ACEOF
31569
31570fi
31571
Reid Spencera773bd52006-08-04 18:18:08 +000031572{ echo "$as_me:$LINENO: checking for alloca" >&5
31573echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574if test "${ac_cv_func_alloca_works+set}" = set; then
31575 echo $ECHO_N "(cached) $ECHO_C" >&6
31576else
31577 cat >conftest.$ac_ext <<_ACEOF
31578/* confdefs.h. */
31579_ACEOF
31580cat confdefs.h >>conftest.$ac_ext
31581cat >>conftest.$ac_ext <<_ACEOF
31582/* end confdefs.h. */
31583#ifdef __GNUC__
31584# define alloca __builtin_alloca
31585#else
31586# ifdef _MSC_VER
31587# include <malloc.h>
31588# define alloca _alloca
31589# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031590# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031591# include <alloca.h>
31592# else
31593# ifdef _AIX
31594 #pragma alloca
31595# else
31596# ifndef alloca /* predefined by HP cc +Olibcalls */
31597char *alloca ();
31598# endif
31599# endif
31600# endif
31601# endif
31602#endif
31603
31604int
31605main ()
31606{
31607char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031608 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031609 ;
31610 return 0;
31611}
31612_ACEOF
31613rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031614if { (ac_try="$ac_link"
31615case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31618esac
31619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031621 ac_status=$?
31622 grep -v '^ *+' conftest.er1 >conftest.err
31623 rm -f conftest.er1
31624 cat conftest.err >&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031626 (exit $ac_status); } &&
31627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31628 { (case "(($ac_try" in
31629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630 *) ac_try_echo=$ac_try;;
31631esac
31632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633 (eval "$ac_try") 2>&5
31634 ac_status=$?
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; } &&
31637 { ac_try='test -s conftest$ac_exeext'
31638 { (case "(($ac_try" in
31639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31641esac
31642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_try") 2>&5
31644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031647 ac_cv_func_alloca_works=yes
31648else
31649 echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
Reid Spencera773bd52006-08-04 18:18:08 +000031652 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031653fi
Reid Spencera773bd52006-08-04 18:18:08 +000031654
Bill Wendlingebcceee2009-04-18 11:20:33 +000031655rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031656 conftest$ac_exeext conftest.$ac_ext
31657fi
Reid Spencera773bd52006-08-04 18:18:08 +000031658{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31659echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031660
31661if test $ac_cv_func_alloca_works = yes; then
31662
31663cat >>confdefs.h <<\_ACEOF
31664#define HAVE_ALLOCA 1
31665_ACEOF
31666
31667else
31668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31669# that cause trouble. Some versions do not even contain alloca or
31670# contain a buggy version. If you still want to use their alloca,
31671# use ar to extract alloca.o from them instead of compiling alloca.c.
31672
Reid Spencera773bd52006-08-04 18:18:08 +000031673ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031674
31675cat >>confdefs.h <<\_ACEOF
31676#define C_ALLOCA 1
31677_ACEOF
31678
31679
Reid Spencera773bd52006-08-04 18:18:08 +000031680{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31681echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031682if test "${ac_cv_os_cray+set}" = set; then
31683 echo $ECHO_N "(cached) $ECHO_C" >&6
31684else
31685 cat >conftest.$ac_ext <<_ACEOF
31686/* confdefs.h. */
31687_ACEOF
31688cat confdefs.h >>conftest.$ac_ext
31689cat >>conftest.$ac_ext <<_ACEOF
31690/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031691#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692webecray
31693#else
31694wenotbecray
31695#endif
31696
31697_ACEOF
31698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31699 $EGREP "webecray" >/dev/null 2>&1; then
31700 ac_cv_os_cray=yes
31701else
31702 ac_cv_os_cray=no
31703fi
31704rm -f conftest*
31705
31706fi
Reid Spencera773bd52006-08-04 18:18:08 +000031707{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31708echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709if test $ac_cv_os_cray = yes; then
31710 for ac_func in _getb67 GETB67 getb67; do
31711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
31723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31725#define $ac_func innocuous_$ac_func
31726
31727/* System header to define __stub macros and hopefully few prototypes,
31728 which can conflict with char $ac_func (); below.
31729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730 <limits.h> exists even on freestanding compilers. */
31731
31732#ifdef __STDC__
31733# include <limits.h>
31734#else
31735# include <assert.h>
31736#endif
31737
31738#undef $ac_func
31739
Reid Spencera773bd52006-08-04 18:18:08 +000031740/* Override any GCC internal prototype to avoid an error.
31741 Use char because int might match the return type of a GCC
31742 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031743#ifdef __cplusplus
31744extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031746char $ac_func ();
31747/* The GNU C library defines this for functions which it implements
31748 to always fail with ENOSYS. Some functions are actually named
31749 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031750#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031751choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031752#endif
31753
31754int
31755main ()
31756{
Reid Spencera773bd52006-08-04 18:18:08 +000031757return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031758 ;
31759 return 0;
31760}
31761_ACEOF
31762rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031763if { (ac_try="$ac_link"
31764case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31767esac
31768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770 ac_status=$?
31771 grep -v '^ *+' conftest.er1 >conftest.err
31772 rm -f conftest.er1
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031775 (exit $ac_status); } &&
31776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31777 { (case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31780esac
31781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_try") 2>&5
31783 ac_status=$?
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest$ac_exeext'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790esac
31791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31793 ac_status=$?
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031796 eval "$as_ac_var=yes"
31797else
31798 echo "$as_me: failed program was:" >&5
31799sed 's/^/| /' conftest.$ac_ext >&5
31800
Reid Spencera773bd52006-08-04 18:18:08 +000031801 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031802fi
Reid Spencera773bd52006-08-04 18:18:08 +000031803
Bill Wendlingebcceee2009-04-18 11:20:33 +000031804rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031805 conftest$ac_exeext conftest.$ac_ext
31806fi
Reid Spencera773bd52006-08-04 18:18:08 +000031807ac_res=`eval echo '${'$as_ac_var'}'`
31808 { echo "$as_me:$LINENO: result: $ac_res" >&5
31809echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031810if test `eval echo '${'$as_ac_var'}'` = yes; then
31811
31812cat >>confdefs.h <<_ACEOF
31813#define CRAY_STACKSEG_END $ac_func
31814_ACEOF
31815
31816 break
31817fi
31818
31819 done
31820fi
31821
Reid Spencera773bd52006-08-04 18:18:08 +000031822{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31823echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031824if test "${ac_cv_c_stack_direction+set}" = set; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826else
31827 if test "$cross_compiling" = yes; then
31828 ac_cv_c_stack_direction=0
31829else
31830 cat >conftest.$ac_ext <<_ACEOF
31831/* confdefs.h. */
31832_ACEOF
31833cat confdefs.h >>conftest.$ac_ext
31834cat >>conftest.$ac_ext <<_ACEOF
31835/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031836$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031837int
31838find_stack_direction ()
31839{
31840 static char *addr = 0;
31841 auto char dummy;
31842 if (addr == 0)
31843 {
31844 addr = &dummy;
31845 return find_stack_direction ();
31846 }
John Criswell0021c312004-02-13 21:57:29 +000031847 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031848 return (&dummy > addr) ? 1 : -1;
31849}
John Criswell0021c312004-02-13 21:57:29 +000031850
John Criswell0021c312004-02-13 21:57:29 +000031851int
31852main ()
31853{
Reid Spencera773bd52006-08-04 18:18:08 +000031854 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031855}
31856_ACEOF
31857rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031858if { (ac_try="$ac_link"
31859case "(($ac_try" in
31860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861 *) ac_try_echo=$ac_try;;
31862esac
31863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31864 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031865 ac_status=$?
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031868 { (case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31871esac
31872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031874 ac_status=$?
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031877 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031878else
31879 echo "$as_me: program exited with status $ac_status" >&5
31880echo "$as_me: failed program was:" >&5
31881sed 's/^/| /' conftest.$ac_ext >&5
31882
31883( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031884ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031885fi
Reid Spencera773bd52006-08-04 18:18:08 +000031886rm -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 +000031887fi
Reid Spencera773bd52006-08-04 18:18:08 +000031888
31889
John Criswell0021c312004-02-13 21:57:29 +000031890fi
Reid Spencera773bd52006-08-04 18:18:08 +000031891{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31892echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031893
31894cat >>confdefs.h <<_ACEOF
31895#define STACK_DIRECTION $ac_cv_c_stack_direction
31896_ACEOF
31897
31898
John Criswell0021c312004-02-13 21:57:29 +000031899fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031900
31901
Reid Spencera773bd52006-08-04 18:18:08 +000031902{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31903echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904if test "${ac_cv_func_rand48+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
Reid Spencera773bd52006-08-04 18:18:08 +000031907 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031908ac_cpp='$CXXCPP $CPPFLAGS'
31909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31912
31913 cat >conftest.$ac_ext <<_ACEOF
31914/* confdefs.h. */
31915_ACEOF
31916cat confdefs.h >>conftest.$ac_ext
31917cat >>conftest.$ac_ext <<_ACEOF
31918/* end confdefs.h. */
31919#include <stdlib.h>
31920int
31921main ()
31922{
31923srand48(0);lrand48();drand48();
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031929if { (ac_try="$ac_compile"
31930case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31933esac
31934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031936 ac_status=$?
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031941 (exit $ac_status); } &&
31942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31943 { (case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31946esac
31947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_try") 2>&5
31949 ac_status=$?
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); }; } &&
31952 { ac_try='test -s conftest.$ac_objext'
31953 { (case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31956esac
31957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_try") 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031962 ac_cv_func_rand48=yes
31963else
31964 echo "$as_me: failed program was:" >&5
31965sed 's/^/| /' conftest.$ac_ext >&5
31966
Reid Spencera773bd52006-08-04 18:18:08 +000031967 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031968fi
Reid Spencera773bd52006-08-04 18:18:08 +000031969
31970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031971 ac_ext=c
31972ac_cpp='$CPP $CPPFLAGS'
31973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31975ac_compiler_gnu=$ac_cv_c_compiler_gnu
31976
31977fi
Reid Spencera773bd52006-08-04 18:18:08 +000031978{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31979echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031980
31981if test "$ac_cv_func_rand48" = "yes" ; then
31982
31983cat >>confdefs.h <<\_ACEOF
31984#define HAVE_RAND48 1
31985_ACEOF
31986
31987fi
John Criswell0021c312004-02-13 21:57:29 +000031988
31989
Reid Spencera773bd52006-08-04 18:18:08 +000031990{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31991echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031992if test "${ac_cv_cxx_namespaces+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31994else
Reid Spencera773bd52006-08-04 18:18:08 +000031995 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031996ac_cpp='$CXXCPP $CPPFLAGS'
31997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32000
32001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032002/* confdefs.h. */
32003_ACEOF
32004cat confdefs.h >>conftest.$ac_ext
32005cat >>conftest.$ac_ext <<_ACEOF
32006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032007namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032008int
32009main ()
32010{
32011using namespace Outer::Inner; return i;
32012 ;
32013 return 0;
32014}
32015_ACEOF
32016rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032017if { (ac_try="$ac_compile"
32018case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32021esac
32022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032025 grep -v '^ *+' conftest.er1 >conftest.err
32026 rm -f conftest.er1
32027 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032029 (exit $ac_status); } &&
32030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031 { (case "(($ac_try" in
32032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033 *) ac_try_echo=$ac_try;;
32034esac
32035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036 (eval "$ac_try") 2>&5
32037 ac_status=$?
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; } &&
32040 { ac_try='test -s conftest.$ac_objext'
32041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044esac
32045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
32047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032050 ac_cv_cxx_namespaces=yes
32051else
32052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032053sed 's/^/| /' conftest.$ac_ext >&5
32054
Reid Spencera773bd52006-08-04 18:18:08 +000032055 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032056fi
Reid Spencera773bd52006-08-04 18:18:08 +000032057
32058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032059 ac_ext=c
32060ac_cpp='$CPP $CPPFLAGS'
32061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063ac_compiler_gnu=$ac_cv_c_compiler_gnu
32064
32065
32066fi
Reid Spencera773bd52006-08-04 18:18:08 +000032067{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32068echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032069if test "$ac_cv_cxx_namespaces" = yes; then
32070
32071cat >>confdefs.h <<\_ACEOF
32072#define HAVE_NAMESPACES
32073_ACEOF
32074
32075fi
32076
Reid Spencera773bd52006-08-04 18:18:08 +000032077{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32078echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032079if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32081else
32082
Reid Spencera773bd52006-08-04 18:18:08 +000032083 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032084ac_cpp='$CXXCPP $CPPFLAGS'
32085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32088
32089 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032090/* confdefs.h. */
32091_ACEOF
32092cat confdefs.h >>conftest.$ac_ext
32093cat >>conftest.$ac_ext <<_ACEOF
32094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032095#include <iterator>
32096#ifdef HAVE_NAMESPACES
32097using namespace std;
32098#endif
John Criswell7a73b802003-06-30 21:59:07 +000032099int
32100main ()
32101{
32102iterator<int,int,int> t; return 0;
32103 ;
32104 return 0;
32105}
32106_ACEOF
32107rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032108if { (ac_try="$ac_compile"
32109case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32112esac
32113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032116 grep -v '^ *+' conftest.er1 >conftest.err
32117 rm -f conftest.er1
32118 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032120 (exit $ac_status); } &&
32121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032141 ac_cv_cxx_have_std_iterator=yes
32142else
32143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032144sed 's/^/| /' conftest.$ac_ext >&5
32145
Reid Spencera773bd52006-08-04 18:18:08 +000032146 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032147fi
Reid Spencera773bd52006-08-04 18:18:08 +000032148
32149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032150 ac_ext=c
32151ac_cpp='$CPP $CPPFLAGS'
32152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154ac_compiler_gnu=$ac_cv_c_compiler_gnu
32155
32156
32157fi
Reid Spencera773bd52006-08-04 18:18:08 +000032158{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32159echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032160if test "$ac_cv_cxx_have_std_iterator" = yes
32161then
John Criswell40468462004-09-24 21:19:06 +000032162
32163cat >>confdefs.h <<\_ACEOF
32164#define HAVE_STD_ITERATOR 1
32165_ACEOF
32166
32167else
32168
32169cat >>confdefs.h <<\_ACEOF
32170#define HAVE_STD_ITERATOR 0
32171_ACEOF
32172
John Criswell7a73b802003-06-30 21:59:07 +000032173fi
32174
Reid Spencera773bd52006-08-04 18:18:08 +000032175{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32176echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032177if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32179else
32180
Reid Spencera773bd52006-08-04 18:18:08 +000032181 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032182ac_cpp='$CXXCPP $CPPFLAGS'
32183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32186
32187 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032188/* confdefs.h. */
32189_ACEOF
32190cat confdefs.h >>conftest.$ac_ext
32191cat >>conftest.$ac_ext <<_ACEOF
32192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032193#include <iterator>
32194#ifdef HAVE_NAMESPACES
32195using namespace std;
32196#endif
John Criswell7a73b802003-06-30 21:59:07 +000032197int
32198main ()
32199{
John Criswellc78022e2003-07-29 19:11:58 +000032200bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032201 ;
32202 return 0;
32203}
32204_ACEOF
32205rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032206if { (ac_try="$ac_compile"
32207case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32210esac
32211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032214 grep -v '^ *+' conftest.er1 >conftest.err
32215 rm -f conftest.er1
32216 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032218 (exit $ac_status); } &&
32219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32220 { (case "(($ac_try" in
32221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32222 *) ac_try_echo=$ac_try;;
32223esac
32224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32225 (eval "$ac_try") 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; } &&
32229 { ac_try='test -s conftest.$ac_objext'
32230 { (case "(($ac_try" in
32231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232 *) ac_try_echo=$ac_try;;
32233esac
32234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235 (eval "$ac_try") 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032239 ac_cv_cxx_have_bi_iterator=yes
32240else
32241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032242sed 's/^/| /' conftest.$ac_ext >&5
32243
Reid Spencera773bd52006-08-04 18:18:08 +000032244 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032245fi
Reid Spencera773bd52006-08-04 18:18:08 +000032246
32247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032248 ac_ext=c
32249ac_cpp='$CPP $CPPFLAGS'
32250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32252ac_compiler_gnu=$ac_cv_c_compiler_gnu
32253
32254
32255fi
Reid Spencera773bd52006-08-04 18:18:08 +000032256{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32257echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032258if test "$ac_cv_cxx_have_bi_iterator" = yes
32259then
John Criswell40468462004-09-24 21:19:06 +000032260
32261cat >>confdefs.h <<\_ACEOF
32262#define HAVE_BI_ITERATOR 1
32263_ACEOF
32264
32265else
32266
32267cat >>confdefs.h <<\_ACEOF
32268#define HAVE_BI_ITERATOR 0
32269_ACEOF
32270
John Criswell7a73b802003-06-30 21:59:07 +000032271fi
32272
Reid Spencera773bd52006-08-04 18:18:08 +000032273{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32274echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032275if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32277else
32278
Reid Spencera773bd52006-08-04 18:18:08 +000032279 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032280ac_cpp='$CXXCPP $CPPFLAGS'
32281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32284
32285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032286/* confdefs.h. */
32287_ACEOF
32288cat confdefs.h >>conftest.$ac_ext
32289cat >>conftest.$ac_ext <<_ACEOF
32290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032291#include <iterator>
32292#ifdef HAVE_NAMESPACES
32293using namespace std;
32294#endif
John Criswell7a73b802003-06-30 21:59:07 +000032295int
32296main ()
32297{
John Criswellc78022e2003-07-29 19:11:58 +000032298forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032299 ;
32300 return 0;
32301}
32302_ACEOF
32303rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032304if { (ac_try="$ac_compile"
32305case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32308esac
32309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032316 (exit $ac_status); } &&
32317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32321esac
32322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest.$ac_objext'
32328 { (case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32331esac
32332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_try") 2>&5
32334 ac_status=$?
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032337 ac_cv_cxx_have_fwd_iterator=yes
32338else
32339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032340sed 's/^/| /' conftest.$ac_ext >&5
32341
Reid Spencera773bd52006-08-04 18:18:08 +000032342 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032343fi
Reid Spencera773bd52006-08-04 18:18:08 +000032344
32345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032346 ac_ext=c
32347ac_cpp='$CPP $CPPFLAGS'
32348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350ac_compiler_gnu=$ac_cv_c_compiler_gnu
32351
32352
32353fi
Reid Spencera773bd52006-08-04 18:18:08 +000032354{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32355echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032356if test "$ac_cv_cxx_have_fwd_iterator" = yes
32357then
John Criswell40468462004-09-24 21:19:06 +000032358
32359cat >>confdefs.h <<\_ACEOF
32360#define HAVE_FWD_ITERATOR 1
32361_ACEOF
32362
32363else
32364
32365cat >>confdefs.h <<\_ACEOF
32366#define HAVE_FWD_ITERATOR 0
32367_ACEOF
32368
John Criswell7a73b802003-06-30 21:59:07 +000032369fi
32370
32371
Reid Spencera773bd52006-08-04 18:18:08 +000032372{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32373echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032374if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32375 echo $ECHO_N "(cached) $ECHO_C" >&6
32376else
Reid Spencera773bd52006-08-04 18:18:08 +000032377 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032378ac_cpp='$CXXCPP $CPPFLAGS'
32379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32382
Reid Spencerabec8f92004-10-27 23:03:44 +000032383 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032384/* confdefs.h. */
32385_ACEOF
32386cat confdefs.h >>conftest.$ac_ext
32387cat >>conftest.$ac_ext <<_ACEOF
32388/* end confdefs.h. */
32389#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032390int
32391main ()
32392{
32393float f; isnan(f);
32394 ;
32395 return 0;
32396}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032397_ACEOF
32398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032399if { (ac_try="$ac_compile"
32400case "(($ac_try" in
32401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32403esac
32404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032407 grep -v '^ *+' conftest.er1 >conftest.err
32408 rm -f conftest.er1
32409 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032411 (exit $ac_status); } &&
32412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32413 { (case "(($ac_try" in
32414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32415 *) ac_try_echo=$ac_try;;
32416esac
32417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32418 (eval "$ac_try") 2>&5
32419 ac_status=$?
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; } &&
32422 { ac_try='test -s conftest.$ac_objext'
32423 { (case "(($ac_try" in
32424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425 *) ac_try_echo=$ac_try;;
32426esac
32427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428 (eval "$ac_try") 2>&5
32429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032432 ac_cv_func_isnan_in_math_h=yes
32433else
32434 echo "$as_me: failed program was:" >&5
32435sed 's/^/| /' conftest.$ac_ext >&5
32436
Reid Spencera773bd52006-08-04 18:18:08 +000032437 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032438fi
Reid Spencera773bd52006-08-04 18:18:08 +000032439
32440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032441 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032442ac_cpp='$CPP $CPPFLAGS'
32443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32445ac_compiler_gnu=$ac_cv_c_compiler_gnu
32446
32447fi
Reid Spencera773bd52006-08-04 18:18:08 +000032448{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32449echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032450
32451
32452if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032453
32454cat >>confdefs.h <<\_ACEOF
32455#define HAVE_ISNAN_IN_MATH_H 1
32456_ACEOF
32457
Reid Spencerabec8f92004-10-27 23:03:44 +000032458fi
32459
Reid Spencera773bd52006-08-04 18:18:08 +000032460{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32461echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032462if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464else
Reid Spencera773bd52006-08-04 18:18:08 +000032465 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032466ac_cpp='$CXXCPP $CPPFLAGS'
32467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32470
Reid Spencerabec8f92004-10-27 23:03:44 +000032471 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032472/* confdefs.h. */
32473_ACEOF
32474cat confdefs.h >>conftest.$ac_ext
32475cat >>conftest.$ac_ext <<_ACEOF
32476/* end confdefs.h. */
32477#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032478int
32479main ()
32480{
32481float f; isnan(f);
32482 ;
32483 return 0;
32484}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032485_ACEOF
32486rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032487if { (ac_try="$ac_compile"
32488case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32491esac
32492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032494 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32504esac
32505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32514esac
32515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032520 ac_cv_func_isnan_in_cmath=yes
32521else
32522 echo "$as_me: failed program was:" >&5
32523sed 's/^/| /' conftest.$ac_ext >&5
32524
Reid Spencera773bd52006-08-04 18:18:08 +000032525 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032526fi
Reid Spencera773bd52006-08-04 18:18:08 +000032527
32528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032529 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032530ac_cpp='$CPP $CPPFLAGS'
32531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533ac_compiler_gnu=$ac_cv_c_compiler_gnu
32534
32535fi
Reid Spencera773bd52006-08-04 18:18:08 +000032536{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32537echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032538
32539if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032540
32541cat >>confdefs.h <<\_ACEOF
32542#define HAVE_ISNAN_IN_CMATH 1
32543_ACEOF
32544
Reid Spencerabec8f92004-10-27 23:03:44 +000032545fi
32546
Reid Spencera773bd52006-08-04 18:18:08 +000032547{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32548echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032549if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32551else
Reid Spencera773bd52006-08-04 18:18:08 +000032552 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032553ac_cpp='$CXXCPP $CPPFLAGS'
32554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32557
Reid Spencerabec8f92004-10-27 23:03:44 +000032558 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032559/* confdefs.h. */
32560_ACEOF
32561cat confdefs.h >>conftest.$ac_ext
32562cat >>conftest.$ac_ext <<_ACEOF
32563/* end confdefs.h. */
32564#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032565int
32566main ()
32567{
32568float f; std::isnan(f);
32569 ;
32570 return 0;
32571}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032572_ACEOF
32573rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032574if { (ac_try="$ac_compile"
32575case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32578esac
32579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32591esac
32592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest.$ac_objext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32601esac
32602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032607 ac_cv_func_std_isnan_in_cmath=yes
32608else
32609 echo "$as_me: failed program was:" >&5
32610sed 's/^/| /' conftest.$ac_ext >&5
32611
Reid Spencera773bd52006-08-04 18:18:08 +000032612 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032613fi
Reid Spencera773bd52006-08-04 18:18:08 +000032614
32615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032616 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032617ac_cpp='$CPP $CPPFLAGS'
32618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620ac_compiler_gnu=$ac_cv_c_compiler_gnu
32621
32622fi
Reid Spencera773bd52006-08-04 18:18:08 +000032623{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32624echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032625
32626if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032627
32628cat >>confdefs.h <<\_ACEOF
32629#define HAVE_STD_ISNAN_IN_CMATH 1
32630_ACEOF
32631
Reid Spencerabec8f92004-10-27 23:03:44 +000032632fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032633
32634
Reid Spencera773bd52006-08-04 18:18:08 +000032635{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32636echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032637if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32638 echo $ECHO_N "(cached) $ECHO_C" >&6
32639else
Reid Spencera773bd52006-08-04 18:18:08 +000032640 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032641ac_cpp='$CXXCPP $CPPFLAGS'
32642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32645
Reid Spencerabec8f92004-10-27 23:03:44 +000032646 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032647/* confdefs.h. */
32648_ACEOF
32649cat confdefs.h >>conftest.$ac_ext
32650cat >>conftest.$ac_ext <<_ACEOF
32651/* end confdefs.h. */
32652#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032653int
32654main ()
32655{
32656float f; isinf(f);
32657 ;
32658 return 0;
32659}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032660_ACEOF
32661rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032662if { (ac_try="$ac_compile"
32663case "(($ac_try" in
32664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665 *) ac_try_echo=$ac_try;;
32666esac
32667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32668 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032670 grep -v '^ *+' conftest.er1 >conftest.err
32671 rm -f conftest.er1
32672 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032674 (exit $ac_status); } &&
32675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32676 { (case "(($ac_try" in
32677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32678 *) ac_try_echo=$ac_try;;
32679esac
32680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681 (eval "$ac_try") 2>&5
32682 ac_status=$?
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; } &&
32685 { ac_try='test -s conftest.$ac_objext'
32686 { (case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32689esac
32690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_try") 2>&5
32692 ac_status=$?
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032695 ac_cv_func_isinf_in_math_h=yes
32696else
32697 echo "$as_me: failed program was:" >&5
32698sed 's/^/| /' conftest.$ac_ext >&5
32699
Reid Spencera773bd52006-08-04 18:18:08 +000032700 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032701fi
Reid Spencera773bd52006-08-04 18:18:08 +000032702
32703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032704 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032705ac_cpp='$CPP $CPPFLAGS'
32706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32708ac_compiler_gnu=$ac_cv_c_compiler_gnu
32709
32710fi
Reid Spencera773bd52006-08-04 18:18:08 +000032711{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32712echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032713
32714if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032715
32716cat >>confdefs.h <<\_ACEOF
32717#define HAVE_ISINF_IN_MATH_H 1
32718_ACEOF
32719
Reid Spencerabec8f92004-10-27 23:03:44 +000032720fi
32721
Reid Spencera773bd52006-08-04 18:18:08 +000032722{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32723echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032724if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726else
Reid Spencera773bd52006-08-04 18:18:08 +000032727 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032728ac_cpp='$CXXCPP $CPPFLAGS'
32729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
Reid Spencerabec8f92004-10-27 23:03:44 +000032733 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032734/* confdefs.h. */
32735_ACEOF
32736cat confdefs.h >>conftest.$ac_ext
32737cat >>conftest.$ac_ext <<_ACEOF
32738/* end confdefs.h. */
32739#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032740int
32741main ()
32742{
32743float f; isinf(f);
32744 ;
32745 return 0;
32746}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032747_ACEOF
32748rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032749if { (ac_try="$ac_compile"
32750case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32753esac
32754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032757 grep -v '^ *+' conftest.er1 >conftest.err
32758 rm -f conftest.er1
32759 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032761 (exit $ac_status); } &&
32762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32763 { (case "(($ac_try" in
32764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765 *) ac_try_echo=$ac_try;;
32766esac
32767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768 (eval "$ac_try") 2>&5
32769 ac_status=$?
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; } &&
32772 { ac_try='test -s conftest.$ac_objext'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32776esac
32777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032782 ac_cv_func_isinf_in_cmath=yes
32783else
32784 echo "$as_me: failed program was:" >&5
32785sed 's/^/| /' conftest.$ac_ext >&5
32786
Reid Spencera773bd52006-08-04 18:18:08 +000032787 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032788fi
Reid Spencera773bd52006-08-04 18:18:08 +000032789
32790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032791 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032792ac_cpp='$CPP $CPPFLAGS'
32793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32795ac_compiler_gnu=$ac_cv_c_compiler_gnu
32796
32797fi
Reid Spencera773bd52006-08-04 18:18:08 +000032798{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32799echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032800
32801if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032802
32803cat >>confdefs.h <<\_ACEOF
32804#define HAVE_ISINF_IN_CMATH 1
32805_ACEOF
32806
Reid Spencerabec8f92004-10-27 23:03:44 +000032807fi
32808
Reid Spencera773bd52006-08-04 18:18:08 +000032809{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32810echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032811if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32813else
Reid Spencera773bd52006-08-04 18:18:08 +000032814 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032815ac_cpp='$CXXCPP $CPPFLAGS'
32816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32819
Reid Spencerabec8f92004-10-27 23:03:44 +000032820 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032821/* confdefs.h. */
32822_ACEOF
32823cat confdefs.h >>conftest.$ac_ext
32824cat >>conftest.$ac_ext <<_ACEOF
32825/* end confdefs.h. */
32826#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032827int
32828main ()
32829{
32830float f; std::isinf(f)}
32831 ;
32832 return 0;
32833}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032834_ACEOF
32835rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032836if { (ac_try="$ac_compile"
32837case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32840esac
32841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032844 grep -v '^ *+' conftest.er1 >conftest.err
32845 rm -f conftest.er1
32846 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032848 (exit $ac_status); } &&
32849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32850 { (case "(($ac_try" in
32851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852 *) ac_try_echo=$ac_try;;
32853esac
32854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855 (eval "$ac_try") 2>&5
32856 ac_status=$?
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; } &&
32859 { ac_try='test -s conftest.$ac_objext'
32860 { (case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32863esac
32864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_try") 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032869 ac_cv_func_std_isinf_in_cmath=yes
32870else
32871 echo "$as_me: failed program was:" >&5
32872sed 's/^/| /' conftest.$ac_ext >&5
32873
Reid Spencera773bd52006-08-04 18:18:08 +000032874 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032875fi
Reid Spencera773bd52006-08-04 18:18:08 +000032876
32877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032878 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032879ac_cpp='$CPP $CPPFLAGS'
32880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882ac_compiler_gnu=$ac_cv_c_compiler_gnu
32883
32884fi
Reid Spencera773bd52006-08-04 18:18:08 +000032885{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32886echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032887
32888if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032889
32890cat >>confdefs.h <<\_ACEOF
32891#define HAVE_STD_ISINF_IN_CMATH 1
32892_ACEOF
32893
Reid Spencerabec8f92004-10-27 23:03:44 +000032894fi
32895
Reid Spencera773bd52006-08-04 18:18:08 +000032896{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32897echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032898if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32899 echo $ECHO_N "(cached) $ECHO_C" >&6
32900else
Reid Spencera773bd52006-08-04 18:18:08 +000032901 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032902ac_cpp='$CXXCPP $CPPFLAGS'
32903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32906
Reid Spencerabec8f92004-10-27 23:03:44 +000032907 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032908/* confdefs.h. */
32909_ACEOF
32910cat confdefs.h >>conftest.$ac_ext
32911cat >>conftest.$ac_ext <<_ACEOF
32912/* end confdefs.h. */
32913#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032914int
32915main ()
32916{
32917float f; finite(f);
32918 ;
32919 return 0;
32920}
Brian Gaeked59a6472004-07-21 03:33:58 +000032921_ACEOF
32922rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032923if { (ac_try="$ac_compile"
32924case "(($ac_try" in
32925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926 *) ac_try_echo=$ac_try;;
32927esac
32928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032931 grep -v '^ *+' conftest.er1 >conftest.err
32932 rm -f conftest.er1
32933 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032935 (exit $ac_status); } &&
32936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32937 { (case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32940esac
32941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_try") 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest.$ac_objext'
32947 { (case "(($ac_try" in
32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949 *) ac_try_echo=$ac_try;;
32950esac
32951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952 (eval "$ac_try") 2>&5
32953 ac_status=$?
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032956 ac_cv_func_finite_in_ieeefp_h=yes
32957else
32958 echo "$as_me: failed program was:" >&5
32959sed 's/^/| /' conftest.$ac_ext >&5
32960
Reid Spencera773bd52006-08-04 18:18:08 +000032961 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032962fi
Reid Spencera773bd52006-08-04 18:18:08 +000032963
32964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032965 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032966ac_cpp='$CPP $CPPFLAGS'
32967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969ac_compiler_gnu=$ac_cv_c_compiler_gnu
32970
32971fi
Reid Spencera773bd52006-08-04 18:18:08 +000032972{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32973echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032974
Brian Gaeke6802b552004-10-28 05:06:45 +000032975if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032976
32977cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032978#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032979_ACEOF
32980
Reid Spencerabec8f92004-10-27 23:03:44 +000032981fi
32982
32983
32984
Reid Spencer30fe5262007-01-20 07:48:49 +000032985if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032986
32987
32988for ac_header in stdlib.h unistd.h
32989do
32990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996fi
Reid Spencera773bd52006-08-04 18:18:08 +000032997ac_res=`eval echo '${'$as_ac_Header'}'`
32998 { echo "$as_me:$LINENO: result: $ac_res" >&5
32999echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033000else
33001 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033004cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033005/* confdefs.h. */
33006_ACEOF
33007cat confdefs.h >>conftest.$ac_ext
33008cat >>conftest.$ac_ext <<_ACEOF
33009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033010$ac_includes_default
33011#include <$ac_header>
33012_ACEOF
33013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033014if { (ac_try="$ac_compile"
33015case "(($ac_try" in
33016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017 *) ac_try_echo=$ac_try;;
33018esac
33019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033022 grep -v '^ *+' conftest.er1 >conftest.err
33023 rm -f conftest.er1
33024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033026 (exit $ac_status); } &&
33027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33028 { (case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33031esac
33032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33034 ac_status=$?
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; } &&
33037 { ac_try='test -s conftest.$ac_objext'
33038 { (case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33041esac
33042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_try") 2>&5
33044 ac_status=$?
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033047 ac_header_compiler=yes
33048else
33049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033050sed 's/^/| /' conftest.$ac_ext >&5
33051
Reid Spencera773bd52006-08-04 18:18:08 +000033052 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033053fi
Reid Spencera773bd52006-08-04 18:18:08 +000033054
33055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33057echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033058
33059# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033062cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033063/* confdefs.h. */
33064_ACEOF
33065cat confdefs.h >>conftest.$ac_ext
33066cat >>conftest.$ac_ext <<_ACEOF
33067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033068#include <$ac_header>
33069_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033070if { (ac_try="$ac_cpp conftest.$ac_ext"
33071case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033077 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033078 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033079 rm -f conftest.er1
33080 cat conftest.err >&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033082 (exit $ac_status); } >/dev/null; then
33083 if test -s conftest.err; then
33084 ac_cpp_err=$ac_c_preproc_warn_flag
33085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33086 else
33087 ac_cpp_err=
33088 fi
33089else
33090 ac_cpp_err=yes
33091fi
33092if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033093 ac_header_preproc=yes
33094else
33095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033096sed 's/^/| /' conftest.$ac_ext >&5
33097
John Criswell7a73b802003-06-30 21:59:07 +000033098 ac_header_preproc=no
33099fi
Reid Spencera773bd52006-08-04 18:18:08 +000033100
John Criswell7a73b802003-06-30 21:59:07 +000033101rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033104
33105# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33107 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033113 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033114 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033127 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033128## ----------------------------------- ##
33129## Report this to llvmbugs@cs.uiuc.edu ##
33130## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033131_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033132 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033133 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033134esac
Reid Spencera773bd52006-08-04 18:18:08 +000033135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033138 echo $ECHO_N "(cached) $ECHO_C" >&6
33139else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033140 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033141fi
Reid Spencera773bd52006-08-04 18:18:08 +000033142ac_res=`eval echo '${'$as_ac_Header'}'`
33143 { echo "$as_me:$LINENO: result: $ac_res" >&5
33144echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033145
33146fi
33147if test `eval echo '${'$as_ac_Header'}'` = yes; then
33148 cat >>confdefs.h <<_ACEOF
33149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33150_ACEOF
33151
33152fi
33153
33154done
33155
33156
33157for ac_func in getpagesize
33158do
33159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033160{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033163 echo $ECHO_N "(cached) $ECHO_C" >&6
33164else
33165 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033166/* confdefs.h. */
33167_ACEOF
33168cat confdefs.h >>conftest.$ac_ext
33169cat >>conftest.$ac_ext <<_ACEOF
33170/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33173#define $ac_func innocuous_$ac_func
33174
John Criswell7a73b802003-06-30 21:59:07 +000033175/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033176 which can conflict with char $ac_func (); below.
33177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33178 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033179
John Criswell0c38eaf2003-09-10 15:17:25 +000033180#ifdef __STDC__
33181# include <limits.h>
33182#else
33183# include <assert.h>
33184#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033185
33186#undef $ac_func
33187
Reid Spencera773bd52006-08-04 18:18:08 +000033188/* Override any GCC internal prototype to avoid an error.
33189 Use char because int might match the return type of a GCC
33190 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033191#ifdef __cplusplus
33192extern "C"
33193#endif
John Criswell7a73b802003-06-30 21:59:07 +000033194char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033195/* The GNU C library defines this for functions which it implements
33196 to always fail with ENOSYS. Some functions are actually named
33197 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033198#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033199choke me
John Criswell7a73b802003-06-30 21:59:07 +000033200#endif
33201
John Criswell0c38eaf2003-09-10 15:17:25 +000033202int
33203main ()
33204{
Reid Spencera773bd52006-08-04 18:18:08 +000033205return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033206 ;
33207 return 0;
33208}
33209_ACEOF
33210rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033211if { (ac_try="$ac_link"
33212case "(($ac_try" in
33213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33215esac
33216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033219 grep -v '^ *+' conftest.er1 >conftest.err
33220 rm -f conftest.er1
33221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033223 (exit $ac_status); } &&
33224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33225 { (case "(($ac_try" in
33226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227 *) ac_try_echo=$ac_try;;
33228esac
33229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230 (eval "$ac_try") 2>&5
33231 ac_status=$?
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); }; } &&
33234 { ac_try='test -s conftest$ac_exeext'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238esac
33239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033244 eval "$as_ac_var=yes"
33245else
33246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033247sed 's/^/| /' conftest.$ac_ext >&5
33248
Reid Spencera773bd52006-08-04 18:18:08 +000033249 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033250fi
Reid Spencera773bd52006-08-04 18:18:08 +000033251
Bill Wendlingebcceee2009-04-18 11:20:33 +000033252rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033253 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033254fi
Reid Spencera773bd52006-08-04 18:18:08 +000033255ac_res=`eval echo '${'$as_ac_var'}'`
33256 { echo "$as_me:$LINENO: result: $ac_res" >&5
33257echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033258if test `eval echo '${'$as_ac_var'}'` = yes; then
33259 cat >>confdefs.h <<_ACEOF
33260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33261_ACEOF
33262
33263fi
33264done
33265
Reid Spencera773bd52006-08-04 18:18:08 +000033266{ echo "$as_me:$LINENO: checking for working mmap" >&5
33267echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033268if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33269 echo $ECHO_N "(cached) $ECHO_C" >&6
33270else
33271 if test "$cross_compiling" = yes; then
33272 ac_cv_func_mmap_fixed_mapped=no
33273else
33274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033275/* confdefs.h. */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033280$ac_includes_default
33281/* malloc might have been renamed as rpl_malloc. */
33282#undef malloc
33283
33284/* Thanks to Mike Haertel and Jim Avera for this test.
33285 Here is a matrix of mmap possibilities:
33286 mmap private not fixed
33287 mmap private fixed at somewhere currently unmapped
33288 mmap private fixed at somewhere already mapped
33289 mmap shared not fixed
33290 mmap shared fixed at somewhere currently unmapped
33291 mmap shared fixed at somewhere already mapped
33292 For private mappings, we should verify that changes cannot be read()
33293 back from the file, nor mmap's back from the file at a different
33294 address. (There have been systems where private was not correctly
33295 implemented like the infamous i386 svr4.0, and systems where the
33296 VM page cache was not coherent with the file system buffer cache
33297 like early versions of FreeBSD and possibly contemporary NetBSD.)
33298 For shared mappings, we should conversely verify that changes get
33299 propagated back to all the places they're supposed to be.
33300
33301 Grep wants private fixed already mapped.
33302 The main things grep needs to know about mmap are:
33303 * does it exist and is it safe to write into the mmap'd area
33304 * how to use it (BSD variants) */
33305
33306#include <fcntl.h>
33307#include <sys/mman.h>
33308
Bill Wendlingebcceee2009-04-18 11:20:33 +000033309#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033310char *malloc ();
33311#endif
33312
33313/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033314#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033315/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033316# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033317# define HAVE_SYS_PARAM_H 1
33318# endif
33319
33320# ifdef _SC_PAGESIZE
33321# define getpagesize() sysconf(_SC_PAGESIZE)
33322# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033323# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033324# include <sys/param.h>
33325# ifdef EXEC_PAGESIZE
33326# define getpagesize() EXEC_PAGESIZE
33327# else /* no EXEC_PAGESIZE */
33328# ifdef NBPG
33329# define getpagesize() NBPG * CLSIZE
33330# ifndef CLSIZE
33331# define CLSIZE 1
33332# endif /* no CLSIZE */
33333# else /* no NBPG */
33334# ifdef NBPC
33335# define getpagesize() NBPC
33336# else /* no NBPC */
33337# ifdef PAGESIZE
33338# define getpagesize() PAGESIZE
33339# endif /* PAGESIZE */
33340# endif /* no NBPC */
33341# endif /* no NBPG */
33342# endif /* no EXEC_PAGESIZE */
33343# else /* no HAVE_SYS_PARAM_H */
33344# define getpagesize() 8192 /* punt totally */
33345# endif /* no HAVE_SYS_PARAM_H */
33346# endif /* no _SC_PAGESIZE */
33347
33348#endif /* no HAVE_GETPAGESIZE */
33349
33350int
33351main ()
33352{
33353 char *data, *data2, *data3;
33354 int i, pagesize;
33355 int fd;
33356
33357 pagesize = getpagesize ();
33358
33359 /* First, make a file with some known garbage in it. */
33360 data = (char *) malloc (pagesize);
33361 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033363 for (i = 0; i < pagesize; ++i)
33364 *(data + i) = rand ();
33365 umask (0);
33366 fd = creat ("conftest.mmap", 0600);
33367 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033368 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033369 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033370 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033371 close (fd);
33372
33373 /* Next, try to mmap the file at a fixed address which already has
33374 something else allocated at it. If we can, also make sure that
33375 we see the same garbage. */
33376 fd = open ("conftest.mmap", O_RDWR);
33377 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033378 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033379 data2 = (char *) malloc (2 * pagesize);
33380 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033381 return 1;
33382 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033385 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033386 for (i = 0; i < pagesize; ++i)
33387 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033388 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033389
33390 /* Finally, make sure that changes to the mapped area do not
33391 percolate back to the file as seen by read(). (This is a bug on
33392 some variants of i386 svr4.0.) */
33393 for (i = 0; i < pagesize; ++i)
33394 *(data2 + i) = *(data2 + i) + 1;
33395 data3 = (char *) malloc (pagesize);
33396 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033397 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033398 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033399 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033400 for (i = 0; i < pagesize; ++i)
33401 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033402 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033403 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033404 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033405}
33406_ACEOF
33407rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033408if { (ac_try="$ac_link"
33409case "(($ac_try" in
33410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33411 *) ac_try_echo=$ac_try;;
33412esac
33413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33414 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033415 ac_status=$?
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033418 { (case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33421esac
33422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033424 ac_status=$?
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); }; }; then
33427 ac_cv_func_mmap_fixed_mapped=yes
33428else
33429 echo "$as_me: program exited with status $ac_status" >&5
33430echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033431sed 's/^/| /' conftest.$ac_ext >&5
33432
John Criswell7a73b802003-06-30 21:59:07 +000033433( exit $ac_status )
33434ac_cv_func_mmap_fixed_mapped=no
33435fi
Reid Spencera773bd52006-08-04 18:18:08 +000033436rm -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 +000033437fi
Reid Spencera773bd52006-08-04 18:18:08 +000033438
33439
John Criswell7a73b802003-06-30 21:59:07 +000033440fi
Reid Spencera773bd52006-08-04 18:18:08 +000033441{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33442echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033443if test $ac_cv_func_mmap_fixed_mapped = yes; then
33444
33445cat >>confdefs.h <<\_ACEOF
33446#define HAVE_MMAP 1
33447_ACEOF
33448
33449fi
33450rm -f conftest.mmap
33451
Reid Spencer30fe5262007-01-20 07:48:49 +000033452 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033453echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033454if test "${ac_cv_func_mmap_file+set}" = set; then
33455 echo $ECHO_N "(cached) $ECHO_C" >&6
33456else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033457 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033458ac_cpp='$CPP $CPPFLAGS'
33459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33461ac_compiler_gnu=$ac_cv_c_compiler_gnu
33462
33463 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033464 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033465else
33466 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033467
Reid Spencer777ce172004-09-20 04:09:56 +000033468 /* confdefs.h. */
33469_ACEOF
33470cat confdefs.h >>conftest.$ac_ext
33471cat >>conftest.$ac_ext <<_ACEOF
33472/* end confdefs.h. */
33473
John Criswell7a73b802003-06-30 21:59:07 +000033474#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033475#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033476#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033477
33478int
33479main ()
33480{
John Criswell7a73b802003-06-30 21:59:07 +000033481
33482 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033483 fd = creat ("foo",0777);
33484 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33485 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033486 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033487 ;
33488 return 0;
33489}
John Criswell7a73b802003-06-30 21:59:07 +000033490_ACEOF
33491rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033492if { (ac_try="$ac_link"
33493case "(($ac_try" in
33494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495 *) ac_try_echo=$ac_try;;
33496esac
33497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033499 ac_status=$?
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033502 { (case "(($ac_try" in
33503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504 *) ac_try_echo=$ac_try;;
33505esac
33506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033508 ac_status=$?
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; }; then
33511 ac_cv_func_mmap_file=yes
33512else
33513 echo "$as_me: program exited with status $ac_status" >&5
33514echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033515sed 's/^/| /' conftest.$ac_ext >&5
33516
John Criswell7a73b802003-06-30 21:59:07 +000033517( exit $ac_status )
33518ac_cv_func_mmap_file=no
33519fi
Reid Spencera773bd52006-08-04 18:18:08 +000033520rm -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 +000033521fi
Reid Spencera773bd52006-08-04 18:18:08 +000033522
33523
John Criswell7a73b802003-06-30 21:59:07 +000033524 ac_ext=c
33525ac_cpp='$CPP $CPPFLAGS'
33526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528ac_compiler_gnu=$ac_cv_c_compiler_gnu
33529
33530
33531fi
Reid Spencera773bd52006-08-04 18:18:08 +000033532{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33533echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033534if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033535
33536cat >>confdefs.h <<\_ACEOF
33537#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033538_ACEOF
33539
33540 MMAP_FILE=yes
33541
33542fi
33543
Reid Spencer30fe5262007-01-20 07:48:49 +000033544 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033545echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033546if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
Reid Spencer582a23c2004-12-29 07:07:57 +000033549 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033550 ac_cv_need_dev_zero_for_mmap=yes
33551 else
33552 ac_cv_need_dev_zero_for_mmap=no
33553 fi
33554
33555fi
Reid Spencera773bd52006-08-04 18:18:08 +000033556{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33557echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033558if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33559
33560cat >>confdefs.h <<\_ACEOF
33561#define NEED_DEV_ZERO_FOR_MMAP 1
33562_ACEOF
33563
33564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033565
Reid Spencer30fe5262007-01-20 07:48:49 +000033566 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33567 then
33568 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033569echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033570 fi
33571 if test "$ac_cv_func_mmap_file" = "no"
33572 then
33573 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033574echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033575 fi
John Criswellb13092b2003-07-22 21:00:24 +000033576fi
John Criswell7a73b802003-06-30 21:59:07 +000033577
33578
Reid Spencer9372f152007-07-30 20:13:24 +000033579
33580for ac_func in __dso_handle
33581do
33582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33583{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33585if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33587else
33588 cat >conftest.$ac_ext <<_ACEOF
33589/* confdefs.h. */
33590_ACEOF
33591cat confdefs.h >>conftest.$ac_ext
33592cat >>conftest.$ac_ext <<_ACEOF
33593/* end confdefs.h. */
33594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33596#define $ac_func innocuous_$ac_func
33597
33598/* System header to define __stub macros and hopefully few prototypes,
33599 which can conflict with char $ac_func (); below.
33600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33601 <limits.h> exists even on freestanding compilers. */
33602
33603#ifdef __STDC__
33604# include <limits.h>
33605#else
33606# include <assert.h>
33607#endif
33608
33609#undef $ac_func
33610
33611/* Override any GCC internal prototype to avoid an error.
33612 Use char because int might match the return type of a GCC
33613 builtin and then its argument prototype would still apply. */
33614#ifdef __cplusplus
33615extern "C"
33616#endif
33617char $ac_func ();
33618/* The GNU C library defines this for functions which it implements
33619 to always fail with ENOSYS. Some functions are actually named
33620 something starting with __ and the normal name is an alias. */
33621#if defined __stub_$ac_func || defined __stub___$ac_func
33622choke me
33623#endif
33624
33625int
33626main ()
33627{
33628return $ac_func ();
33629 ;
33630 return 0;
33631}
33632_ACEOF
33633rm -f conftest.$ac_objext conftest$ac_exeext
33634if { (ac_try="$ac_link"
33635case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33638esac
33639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_link") 2>conftest.er1
33641 ac_status=$?
33642 grep -v '^ *+' conftest.er1 >conftest.err
33643 rm -f conftest.er1
33644 cat conftest.err >&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033646 (exit $ac_status); } &&
33647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33657 { ac_try='test -s conftest$ac_exeext'
33658 { (case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33661esac
33662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_try") 2>&5
33664 ac_status=$?
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033667 eval "$as_ac_var=yes"
33668else
33669 echo "$as_me: failed program was:" >&5
33670sed 's/^/| /' conftest.$ac_ext >&5
33671
33672 eval "$as_ac_var=no"
33673fi
33674
Bill Wendlingebcceee2009-04-18 11:20:33 +000033675rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033676 conftest$ac_exeext conftest.$ac_ext
33677fi
33678ac_res=`eval echo '${'$as_ac_var'}'`
33679 { echo "$as_me:$LINENO: result: $ac_res" >&5
33680echo "${ECHO_T}$ac_res" >&6; }
33681if test `eval echo '${'$as_ac_var'}'` = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33684_ACEOF
33685
33686fi
33687done
33688
33689
Reid Spencera773bd52006-08-04 18:18:08 +000033690{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33691echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033692if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33693 echo $ECHO_N "(cached) $ECHO_C" >&6
33694else
33695 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033696if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033697 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033698 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33699 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033700 if test $? -eq 0 ; then
33701 llvm_cv_llvmgcc_sanity="yes"
33702 fi
33703 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033704fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033705fi
Reid Spencera773bd52006-08-04 18:18:08 +000033706{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33707echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033708
33709if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033710 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33711echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033712 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033713 LLVMCC1=$llvmcc1path
33714
Reid Spencer502935f2004-12-22 05:56:56 +000033715 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033716 LLVMCC1PLUS=$llvmcc1pluspath
33717
Reid Spencer502935f2004-12-22 05:56:56 +000033718 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33719 LLVMGCCDIR=$llvmgccdir
33720
Reid Spencer282d8c12006-12-21 22:55:41 +000033721 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33722 LLVMGCCLIBEXEC=$llvmgcclibexec
33723
Reid Spencerb5d75b82006-05-09 00:31:01 +000033724 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033725 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33726 LLVMGCC_VERSION=$llvmgccversion
33727
33728 LLVMGCC_MAJVERS=$llvmgccmajvers
33729
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033730 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033731 LLVMGCC_LANGS=$llvmgcclangs
33732
33733 { echo "$as_me:$LINENO: result: ok" >&5
33734echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033735fi
33736
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033737SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033738
33739
Reid Spencere9de0912004-08-20 09:03:57 +000033740# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033741# information into substitutions that will end up in Makefile.config.in
33742# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033743if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033744 prefix="/usr/local"
33745fi
Reid Spencere9de0912004-08-20 09:03:57 +000033746eval LLVM_PREFIX="${prefix}";
33747eval LLVM_BINDIR="${prefix}/bin";
33748eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033749eval LLVM_DATADIR="${prefix}/share/llvm";
33750eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33751eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033752eval LLVM_INCLUDEDIR="${prefix}/include";
33753eval LLVM_INFODIR="${prefix}/info";
33754eval LLVM_MANDIR="${prefix}/man";
33755LLVM_CONFIGTIME=`date`
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033767# Place the various directores into the config.h file as #defines so that we
33768# can know about the installation paths within LLVM.
33769
Reid Spencere9de0912004-08-20 09:03:57 +000033770cat >>confdefs.h <<_ACEOF
33771#define LLVM_PREFIX "$LLVM_PREFIX"
33772_ACEOF
33773
33774
33775cat >>confdefs.h <<_ACEOF
33776#define LLVM_BINDIR "$LLVM_BINDIR"
33777_ACEOF
33778
33779
33780cat >>confdefs.h <<_ACEOF
33781#define LLVM_LIBDIR "$LLVM_LIBDIR"
33782_ACEOF
33783
33784
33785cat >>confdefs.h <<_ACEOF
33786#define LLVM_DATADIR "$LLVM_DATADIR"
33787_ACEOF
33788
33789
33790cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033791#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033792_ACEOF
33793
33794
33795cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033796#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033797_ACEOF
33798
33799
33800cat >>confdefs.h <<_ACEOF
33801#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33802_ACEOF
33803
33804
33805cat >>confdefs.h <<_ACEOF
33806#define LLVM_INFODIR "$LLVM_INFODIR"
33807_ACEOF
33808
33809
33810cat >>confdefs.h <<_ACEOF
33811#define LLVM_MANDIR "$LLVM_MANDIR"
33812_ACEOF
33813
33814
33815cat >>confdefs.h <<_ACEOF
33816#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33817_ACEOF
33818
33819
Eric Christopher790e11c2007-12-01 00:34:39 +000033820cat >>confdefs.h <<_ACEOF
33821#define LLVM_HOSTTRIPLE "$host"
33822_ACEOF
33823
33824
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033825# Determine which bindings to build.
33826if test "$BINDINGS_TO_BUILD" = auto ; then
33827 BINDINGS_TO_BUILD=""
33828 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33829 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33830 fi
33831fi
33832BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33833
33834
33835# This isn't really configurey, but it avoids having to repeat the list in
33836# other files.
33837ALL_BINDINGS=ocaml
33838
33839
Gordon Henriksenf0915682007-10-02 16:42:22 +000033840# Do any work necessary to ensure that bindings have what they need.
33841binding_prereqs_failed=0
33842for a_binding in $BINDINGS_TO_BUILD ; do
33843 case "$a_binding" in
33844 ocaml)
33845 if test "x$OCAMLC" = x ; then
33846 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33847echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33848 binding_prereqs_failed=1
33849 fi
33850 if test "x$OCAMLDEP" = x ; then
33851 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33852echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33853 binding_prereqs_failed=1
33854 fi
33855 if test "x$OCAMLOPT" = x ; then
33856 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33857echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33858 fi
33859 if test "x$with_ocaml_libdir" != xauto ; then
33860 OCAML_LIBDIR=$with_ocaml_libdir
33861
33862 else
33863 ocaml_stdlib="`"$OCAMLC" -where`"
33864 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33865 then
33866 # ocaml stdlib is beneath our prefix; use stdlib
33867 OCAML_LIBDIR=$ocaml_stdlib
33868
33869 else
33870 # ocaml stdlib is outside our prefix; use libdir/ocaml
33871 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33872
33873 fi
33874 fi
33875 ;;
33876 esac
33877done
33878if test "$binding_prereqs_failed" = 1 ; then
33879 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33880echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33881 { (exit 1); exit 1; }; }
33882fi
33883
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033884{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33885echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33886if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33888else
33889 ac_ext=cpp
33890ac_cpp='$CXXCPP $CPPFLAGS'
33891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33894
33895 oldcxxflags="$CXXFLAGS"
33896 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33897 cat >conftest.$ac_ext <<_ACEOF
33898/* confdefs.h. */
33899_ACEOF
33900cat confdefs.h >>conftest.$ac_ext
33901cat >>conftest.$ac_ext <<_ACEOF
33902/* end confdefs.h. */
33903
33904int
33905main ()
33906{
33907
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext
33913if { (ac_try="$ac_compile"
33914case "(($ac_try" in
33915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916 *) ac_try_echo=$ac_try;;
33917esac
33918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919 (eval "$ac_compile") 2>conftest.er1
33920 ac_status=$?
33921 grep -v '^ *+' conftest.er1 >conftest.err
33922 rm -f conftest.er1
33923 cat conftest.err >&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033925 (exit $ac_status); } &&
33926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33927 { (case "(($ac_try" in
33928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929 *) ac_try_echo=$ac_try;;
33930esac
33931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 (eval "$ac_try") 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest.$ac_objext'
33937 { (case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33940esac
33941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_try") 2>&5
33943 ac_status=$?
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033946 llvm_cv_cxx_visibility_inlines_hidden=yes
33947else
33948 echo "$as_me: failed program was:" >&5
33949sed 's/^/| /' conftest.$ac_ext >&5
33950
33951 llvm_cv_cxx_visibility_inlines_hidden=no
33952fi
33953
33954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955 CXXFLAGS="$oldcxxflags"
33956 ac_ext=c
33957ac_cpp='$CPP $CPPFLAGS'
33958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960ac_compiler_gnu=$ac_cv_c_compiler_gnu
33961
33962
33963fi
33964{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33965echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33966if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33967 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33968
33969else
33970 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33971
33972fi
33973
Gordon Henriksenf0915682007-10-02 16:42:22 +000033974
Nick Lewycky731c6ab2009-03-05 08:20:44 +000033975if test "$llvm_cv_link_use_r" = "yes" ; then
33976 RPATH="-Wl,-R"
33977else
33978 RPATH="-Wl,-rpath"
33979fi
33980
33981
33982if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33983 RDYNAMIC="-Wl,-export-dynamic"
33984else
33985 RDYNAMIC=""
33986fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000033987
33988
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033989
Reid Spencera773bd52006-08-04 18:18:08 +000033990ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033991
Reid Spencera773bd52006-08-04 18:18:08 +000033992ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033993
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000033994ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033995
33996
Reid Spencera773bd52006-08-04 18:18:08 +000033997ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033998
33999
Reid Spencerea949cf2006-08-16 00:45:38 +000034000ac_config_files="$ac_config_files llvm.spec"
34001
34002
Reid Spencera773bd52006-08-04 18:18:08 +000034003ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034004
34005
Reid Spencera773bd52006-08-04 18:18:08 +000034006ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034007
34008
Reid Spencera773bd52006-08-04 18:18:08 +000034009ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034010
Reid Spencera773bd52006-08-04 18:18:08 +000034011ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034012
34013
Reid Spencera773bd52006-08-04 18:18:08 +000034014ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034015
34016
Reid Spencera773bd52006-08-04 18:18:08 +000034017ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034018
34019
Reid Spencera773bd52006-08-04 18:18:08 +000034020ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034021
34022
Reid Spencer8b2e1412006-11-17 03:32:33 +000034023ac_config_commands="$ac_config_commands runtime/Makefile"
34024
34025
Reid Spencera773bd52006-08-04 18:18:08 +000034026ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034027
34028
Reid Spencera773bd52006-08-04 18:18:08 +000034029ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034030
34031
Bill Wendlingf24eb392009-01-04 23:12:30 +000034032ac_config_commands="$ac_config_commands unittests/Makefile"
34033
34034
Reid Spencera773bd52006-08-04 18:18:08 +000034035ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034036
34037
Reid Spencera773bd52006-08-04 18:18:08 +000034038ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034039
34040
Reid Spencera773bd52006-08-04 18:18:08 +000034041ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034042
34043
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034044ac_config_commands="$ac_config_commands bindings/Makefile"
34045
34046
34047ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34048
34049
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034050
John Criswell7a73b802003-06-30 21:59:07 +000034051cat >confcache <<\_ACEOF
34052# This file is a shell script that caches the results of configure
34053# tests run on this system so they can be shared between configure
34054# scripts and configure runs, see configure's option --config-cache.
34055# It is not useful on other systems. If it contains results you don't
34056# want to keep, you may remove or edit it.
34057#
34058# config.status only pays attention to the cache file if you give it
34059# the --recheck option to rerun configure.
34060#
John Criswell0c38eaf2003-09-10 15:17:25 +000034061# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034062# loading this file, other *unset* `ac_cv_foo' will be assigned the
34063# following values.
34064
34065_ACEOF
34066
34067# The following way of writing the cache mishandles newlines in values,
34068# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034069# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034070# Ultrix sh set writes to stderr and can't be redirected directly,
34071# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034072(
34073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34074 eval ac_val=\$$ac_var
34075 case $ac_val in #(
34076 *${as_nl}*)
34077 case $ac_var in #(
34078 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34079echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34080 esac
34081 case $ac_var in #(
34082 _ | IFS | as_nl) ;; #(
34083 *) $as_unset $ac_var ;;
34084 esac ;;
34085 esac
34086 done
34087
John Criswell7a73b802003-06-30 21:59:07 +000034088 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34090 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034091 # `set' does not quote correctly, so add quotes (double-quote
34092 # substitution turns \\\\ into \\, and sed turns \\ into \).
34093 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034094 "s/'/'\\\\''/g;
34095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034096 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034097 *)
34098 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034101 esac |
34102 sort
34103) |
John Criswell7a73b802003-06-30 21:59:07 +000034104 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034105 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034106 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034107 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34109 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34111 :end' >>confcache
34112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34113 if test -w "$cache_file"; then
34114 test "x$cache_file" != "x/dev/null" &&
34115 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34116echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034117 cat confcache >$cache_file
34118 else
Reid Spencera773bd52006-08-04 18:18:08 +000034119 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34120echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034121 fi
34122fi
34123rm -f confcache
34124
34125test "x$prefix" = xNONE && prefix=$ac_default_prefix
34126# Let make expand exec_prefix.
34127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34128
John Criswell7a73b802003-06-30 21:59:07 +000034129DEFS=-DHAVE_CONFIG_H
34130
John Criswell0c38eaf2003-09-10 15:17:25 +000034131ac_libobjs=
34132ac_ltlibobjs=
34133for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34134 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34136 ac_i=`echo "$ac_i" | sed "$ac_script"`
34137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34138 # will be set to the directory where LIBOBJS objects are built.
34139 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34140 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034141done
34142LIBOBJS=$ac_libobjs
34143
34144LTLIBOBJS=$ac_ltlibobjs
34145
34146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034147if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34148 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34149Usually this means the macro was only invoked conditionally." >&5
34150echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34151Usually this means the macro was only invoked conditionally." >&2;}
34152 { (exit 1); exit 1; }; }
34153fi
34154if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34155 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34156Usually this means the macro was only invoked conditionally." >&5
34157echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34158Usually this means the macro was only invoked conditionally." >&2;}
34159 { (exit 1); exit 1; }; }
34160fi
John Criswell7a73b802003-06-30 21:59:07 +000034161
34162: ${CONFIG_STATUS=./config.status}
34163ac_clean_files_save=$ac_clean_files
34164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34165{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34166echo "$as_me: creating $CONFIG_STATUS" >&6;}
34167cat >$CONFIG_STATUS <<_ACEOF
34168#! $SHELL
34169# Generated by $as_me.
34170# Run this file to recreate the current configuration.
34171# Compiler output produced by configure, useful for debugging
34172# configure, is in config.log if it exists.
34173
34174debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034175ac_cs_recheck=false
34176ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034177SHELL=\${CONFIG_SHELL-$SHELL}
34178_ACEOF
34179
34180cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034181## --------------------- ##
34182## M4sh Initialization. ##
34183## --------------------- ##
34184
Bill Wendlingebcceee2009-04-18 11:20:33 +000034185# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34187 emulate sh
34188 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34190 # is contrary to our usage. Disable this feature.
34191 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034192 setopt NO_GLOB_SUBST
34193else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034194 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034195fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034196BIN_SH=xpg4; export BIN_SH # for Tru64
34197DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034198
John Criswell7a73b802003-06-30 21:59:07 +000034199
Reid Spencera773bd52006-08-04 18:18:08 +000034200# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034201# Avoid depending upon Character Ranges.
34202as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34203as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34204as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34205as_cr_digits='0123456789'
34206as_cr_alnum=$as_cr_Letters$as_cr_digits
34207
34208# The user is always right.
34209if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034210 echo "#! /bin/sh" >conf$$.sh
34211 echo "exit 0" >>conf$$.sh
34212 chmod +x conf$$.sh
34213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034214 PATH_SEPARATOR=';'
34215 else
34216 PATH_SEPARATOR=:
34217 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034218 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034219fi
34220
Reid Spencera773bd52006-08-04 18:18:08 +000034221# Support unset when possible.
34222if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34223 as_unset=unset
34224else
34225 as_unset=false
34226fi
John Criswell7a73b802003-06-30 21:59:07 +000034227
Reid Spencera773bd52006-08-04 18:18:08 +000034228
34229# IFS
34230# We need space, tab and new line, in precisely that order. Quoting is
34231# there to prevent editors from complaining about space-tab.
34232# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34233# splitting by setting IFS to empty value.)
34234as_nl='
34235'
34236IFS=" "" $as_nl"
34237
34238# Find who we are. Look in the path if we contain no directory separator.
34239case $0 in
34240 *[\\/]* ) as_myself=$0 ;;
34241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034242for as_dir in $PATH
34243do
34244 IFS=$as_save_IFS
34245 test -z "$as_dir" && as_dir=.
34246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34247done
Reid Spencera773bd52006-08-04 18:18:08 +000034248IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034249
Reid Spencera773bd52006-08-04 18:18:08 +000034250 ;;
34251esac
34252# We did not find ourselves, most probably we were run as `sh COMMAND'
34253# in which case we are not to be found in the path.
34254if test "x$as_myself" = x; then
34255 as_myself=$0
34256fi
34257if test ! -f "$as_myself"; then
34258 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34259 { (exit 1); exit 1; }
34260fi
34261
34262# Work around bugs in pre-3.0 UWIN ksh.
34263for as_var in ENV MAIL MAILPATH
34264do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34265done
34266PS1='$ '
34267PS2='> '
34268PS4='+ '
34269
34270# NLS nuisances.
34271for as_var in \
34272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34274 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034275do
Reid Spencera773bd52006-08-04 18:18:08 +000034276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34277 eval $as_var=C; export $as_var
34278 else
34279 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34280 fi
34281done
34282
34283# Required to use basename.
34284if expr a : '\(a\)' >/dev/null 2>&1 &&
34285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34286 as_expr=expr
34287else
34288 as_expr=false
34289fi
34290
34291if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34292 as_basename=basename
34293else
34294 as_basename=false
34295fi
34296
34297
34298# Name of the executable.
34299as_me=`$as_basename -- "$0" ||
34300$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34301 X"$0" : 'X\(//\)$' \| \
34302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34303echo X/"$0" |
34304 sed '/^.*\/\([^/][^/]*\)\/*$/{
34305 s//\1/
34306 q
34307 }
34308 /^X\/\(\/\/\)$/{
34309 s//\1/
34310 q
34311 }
34312 /^X\/\(\/\).*/{
34313 s//\1/
34314 q
34315 }
34316 s/.*/./; q'`
34317
34318# CDPATH.
34319$as_unset CDPATH
34320
34321
34322
John Criswell7a73b802003-06-30 21:59:07 +000034323 as_lineno_1=$LINENO
34324 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034325 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034327
34328 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34329 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034330 # line-number line after each line using $LINENO; the second 'sed'
34331 # does the real work. The second script uses 'N' to pair each
34332 # line-number line with the line containing $LINENO, and appends
34333 # trailing '-' during substitution so that $LINENO is not a special
34334 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034335 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034336 # scripts with optimization help from Paolo Bonzini. Blame Lee
34337 # E. McMahon (1931-1989) for sed's syntax. :-)
34338 sed -n '
34339 p
34340 /[$]LINENO/=
34341 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034342 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034343 s/[$]LINENO.*/&-/
34344 t lineno
34345 b
34346 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034347 N
Reid Spencera773bd52006-08-04 18:18:08 +000034348 :loop
34349 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034350 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034351 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034352 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034353 chmod +x "$as_me.lineno" ||
34354 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034355 { (exit 1); exit 1; }; }
34356
34357 # Don't try to exec as it changes $[0], causing all sort of problems
34358 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034359 # original and so on. Autoconf is especially sensitive to this).
34360 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034361 # Exit status is that of the last command.
34362 exit
34363}
34364
34365
Reid Spencera773bd52006-08-04 18:18:08 +000034366if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34367 as_dirname=dirname
34368else
34369 as_dirname=false
34370fi
34371
34372ECHO_C= ECHO_N= ECHO_T=
34373case `echo -n x` in
34374-n*)
34375 case `echo 'x\c'` in
34376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34377 *) ECHO_C='\c';;
34378 esac;;
34379*)
34380 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034381esac
34382
Reid Spencera773bd52006-08-04 18:18:08 +000034383if expr a : '\(a\)' >/dev/null 2>&1 &&
34384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034385 as_expr=expr
34386else
34387 as_expr=false
34388fi
34389
34390rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034391if test -d conf$$.dir; then
34392 rm -f conf$$.dir/conf$$.file
34393else
34394 rm -f conf$$.dir
34395 mkdir conf$$.dir
34396fi
John Criswell7a73b802003-06-30 21:59:07 +000034397echo >conf$$.file
34398if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034399 as_ln_s='ln -s'
34400 # ... but there are two gotchas:
34401 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34402 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34403 # In both cases, we have to default to `cp -p'.
34404 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034405 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034406elif ln conf$$.file conf$$ 2>/dev/null; then
34407 as_ln_s=ln
34408else
34409 as_ln_s='cp -p'
34410fi
Reid Spencera773bd52006-08-04 18:18:08 +000034411rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34412rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034413
John Criswell0c38eaf2003-09-10 15:17:25 +000034414if mkdir -p . 2>/dev/null; then
34415 as_mkdir_p=:
34416else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034417 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034418 as_mkdir_p=false
34419fi
34420
Bill Wendlingebcceee2009-04-18 11:20:33 +000034421# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34422# systems may use methods other than mode bits to determine executability.
34423cat >conf$$.file <<_ASEOF
34424#! /bin/sh
34425exit 0
34426_ASEOF
34427chmod +x conf$$.file
34428if test -x conf$$.file >/dev/null 2>&1; then
34429 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034430else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034431 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034432fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034433rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034434
34435# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034436as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034437
34438# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034439as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034440
34441
John Criswell7a73b802003-06-30 21:59:07 +000034442exec 6>&1
34443
Reid Spencera773bd52006-08-04 18:18:08 +000034444# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034445# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034446# values after options handling.
34447ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034448This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034449generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034450
34451 CONFIG_FILES = $CONFIG_FILES
34452 CONFIG_HEADERS = $CONFIG_HEADERS
34453 CONFIG_LINKS = $CONFIG_LINKS
34454 CONFIG_COMMANDS = $CONFIG_COMMANDS
34455 $ $0 $@
34456
Reid Spencera773bd52006-08-04 18:18:08 +000034457on `(hostname || uname -n) 2>/dev/null | sed 1q`
34458"
34459
John Criswell7a73b802003-06-30 21:59:07 +000034460_ACEOF
34461
Reid Spencera773bd52006-08-04 18:18:08 +000034462cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034463# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034464config_files="$ac_config_files"
34465config_headers="$ac_config_headers"
34466config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034467
Reid Spencera773bd52006-08-04 18:18:08 +000034468_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034469
34470cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034471ac_cs_usage="\
34472\`$as_me' instantiates files from templates according to the
34473current configuration.
34474
34475Usage: $0 [OPTIONS] [FILE]...
34476
34477 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034478 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034479 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034480 -d, --debug don't remove temporary files
34481 --recheck update $as_me by reconfiguring in the same conditions
34482 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034483 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034484 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034485 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034486
34487Configuration files:
34488$config_files
34489
34490Configuration headers:
34491$config_headers
34492
John Criswellc764fbc2003-09-06 15:17:13 +000034493Configuration commands:
34494$config_commands
34495
John Criswell7a73b802003-06-30 21:59:07 +000034496Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034497
Reid Spencera773bd52006-08-04 18:18:08 +000034498_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034499cat >>$CONFIG_STATUS <<_ACEOF
34500ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034501llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034502configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034504
Reid Spencera773bd52006-08-04 18:18:08 +000034505Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034506This config.status script is free software; the Free Software Foundation
34507gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034508
34509ac_pwd='$ac_pwd'
34510srcdir='$srcdir'
34511INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034512_ACEOF
34513
34514cat >>$CONFIG_STATUS <<\_ACEOF
34515# If no file are specified by the user, then we need to provide default
34516# value. By we need to know if files were specified by the user.
34517ac_need_defaults=:
34518while test $# != 0
34519do
34520 case $1 in
34521 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034524 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034526 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034527 ac_option=$1
34528 ac_optarg=$2
34529 ac_shift=shift
34530 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034531 esac
34532
John Criswell0c38eaf2003-09-10 15:17:25 +000034533 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034534 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34536 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34538 echo "$ac_cs_version"; exit ;;
34539 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034540 debug=: ;;
34541 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034542 $ac_shift
34543 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034544 ac_need_defaults=false;;
34545 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034546 $ac_shift
34547 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034548 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034549 --he | --h)
34550 # Conflict between --help and --header
34551 { echo "$as_me: error: ambiguous option: $1
34552Try \`$0 --help' for more information." >&2
34553 { (exit 1); exit 1; }; };;
34554 --help | --hel | -h )
34555 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34558 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034559
34560 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034561 -*) { echo "$as_me: error: unrecognized option: $1
34562Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034563 { (exit 1); exit 1; }; } ;;
34564
Reid Spencera773bd52006-08-04 18:18:08 +000034565 *) ac_config_targets="$ac_config_targets $1"
34566 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034567
34568 esac
34569 shift
34570done
34571
John Criswell0c38eaf2003-09-10 15:17:25 +000034572ac_configure_extra_args=
34573
34574if $ac_cs_silent; then
34575 exec 6>/dev/null
34576 ac_configure_extra_args="$ac_configure_extra_args --silent"
34577fi
34578
34579_ACEOF
34580cat >>$CONFIG_STATUS <<_ACEOF
34581if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034582 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34583 CONFIG_SHELL=$SHELL
34584 export CONFIG_SHELL
34585 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034586fi
34587
John Criswell7a73b802003-06-30 21:59:07 +000034588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034589cat >>$CONFIG_STATUS <<\_ACEOF
34590exec 5>>config.log
34591{
34592 echo
34593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34594## Running $as_me. ##
34595_ASBOX
34596 echo "$ac_log"
34597} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034598
Reid Spencera773bd52006-08-04 18:18:08 +000034599_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034600cat >>$CONFIG_STATUS <<_ACEOF
34601#
Reid Spencera773bd52006-08-04 18:18:08 +000034602# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034603#
Reid Spencerc0682832005-02-24 19:05:19 +000034604llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034605
34606_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034607
John Criswell7a73b802003-06-30 21:59:07 +000034608cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034609
34610# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034611for ac_config_target in $ac_config_targets
34612do
Reid Spencera773bd52006-08-04 18:18:08 +000034613 case $ac_config_target in
34614 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34615 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034616 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034617 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034618 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034619 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34620 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34621 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34622 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34623 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34624 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34625 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034626 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034627 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34628 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034629 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034630 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34631 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34632 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034633 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34634 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034635
John Criswell7a73b802003-06-30 21:59:07 +000034636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34637echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34638 { (exit 1); exit 1; }; };;
34639 esac
34640done
34641
Reid Spencera773bd52006-08-04 18:18:08 +000034642
John Criswell7a73b802003-06-30 21:59:07 +000034643# If the user did not use the arguments to specify the items to instantiate,
34644# then the envvar interface is used. Set only those that are not.
34645# We use the long form for the default assignment because of an extremely
34646# bizarre bug on SunOS 4.1.3.
34647if $ac_need_defaults; then
34648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034650 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034651fi
34652
John Criswell0c38eaf2003-09-10 15:17:25 +000034653# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034654# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034655# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034656# Hook for its removal unless debugging.
34657# Note that there is a small window in which the directory will not be cleaned:
34658# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034659$debug ||
34660{
Reid Spencera773bd52006-08-04 18:18:08 +000034661 tmp=
34662 trap 'exit_status=$?
34663 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34664' 0
John Criswell7a73b802003-06-30 21:59:07 +000034665 trap '{ (exit 1); exit 1; }' 1 2 13 15
34666}
John Criswell7a73b802003-06-30 21:59:07 +000034667# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034668
John Criswell7a73b802003-06-30 21:59:07 +000034669{
Reid Spencera773bd52006-08-04 18:18:08 +000034670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034671 test -n "$tmp" && test -d "$tmp"
34672} ||
34673{
Reid Spencera773bd52006-08-04 18:18:08 +000034674 tmp=./conf$$-$RANDOM
34675 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034676} ||
34677{
John Criswell0c38eaf2003-09-10 15:17:25 +000034678 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034679 { (exit 1); exit 1; }
34680}
34681
John Criswell7a73b802003-06-30 21:59:07 +000034682#
Reid Spencera773bd52006-08-04 18:18:08 +000034683# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034684#
34685
34686# No need to generate the scripts if there are no CONFIG_FILES.
34687# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034688if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034689
34690_ACEOF
34691
Reid Spencera773bd52006-08-04 18:18:08 +000034692
34693
34694ac_delim='%!_!# '
34695for ac_last_try in false false false false false :; do
34696 cat >conf$$subs.sed <<_ACEOF
34697SHELL!$SHELL$ac_delim
34698PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34699PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34700PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34701PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34702PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34703PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34704exec_prefix!$exec_prefix$ac_delim
34705prefix!$prefix$ac_delim
34706program_transform_name!$program_transform_name$ac_delim
34707bindir!$bindir$ac_delim
34708sbindir!$sbindir$ac_delim
34709libexecdir!$libexecdir$ac_delim
34710datarootdir!$datarootdir$ac_delim
34711datadir!$datadir$ac_delim
34712sysconfdir!$sysconfdir$ac_delim
34713sharedstatedir!$sharedstatedir$ac_delim
34714localstatedir!$localstatedir$ac_delim
34715includedir!$includedir$ac_delim
34716oldincludedir!$oldincludedir$ac_delim
34717docdir!$docdir$ac_delim
34718infodir!$infodir$ac_delim
34719htmldir!$htmldir$ac_delim
34720dvidir!$dvidir$ac_delim
34721pdfdir!$pdfdir$ac_delim
34722psdir!$psdir$ac_delim
34723libdir!$libdir$ac_delim
34724localedir!$localedir$ac_delim
34725mandir!$mandir$ac_delim
34726DEFS!$DEFS$ac_delim
34727ECHO_C!$ECHO_C$ac_delim
34728ECHO_N!$ECHO_N$ac_delim
34729ECHO_T!$ECHO_T$ac_delim
34730LIBS!$LIBS$ac_delim
34731build_alias!$build_alias$ac_delim
34732host_alias!$host_alias$ac_delim
34733target_alias!$target_alias$ac_delim
34734LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34735subdirs!$subdirs$ac_delim
34736build!$build$ac_delim
34737build_cpu!$build_cpu$ac_delim
34738build_vendor!$build_vendor$ac_delim
34739build_os!$build_os$ac_delim
34740host!$host$ac_delim
34741host_cpu!$host_cpu$ac_delim
34742host_vendor!$host_vendor$ac_delim
34743host_os!$host_os$ac_delim
34744target!$target$ac_delim
34745target_cpu!$target_cpu$ac_delim
34746target_vendor!$target_vendor$ac_delim
34747target_os!$target_os$ac_delim
34748OS!$OS$ac_delim
34749LINKALL!$LINKALL$ac_delim
34750NOLINKALL!$NOLINKALL$ac_delim
34751LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34752LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034753ARCH!$ARCH$ac_delim
34754ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034755CC!$CC$ac_delim
34756CFLAGS!$CFLAGS$ac_delim
34757LDFLAGS!$LDFLAGS$ac_delim
34758CPPFLAGS!$CPPFLAGS$ac_delim
34759ac_ct_CC!$ac_ct_CC$ac_delim
34760EXEEXT!$EXEEXT$ac_delim
34761OBJEXT!$OBJEXT$ac_delim
34762CPP!$CPP$ac_delim
34763GREP!$GREP$ac_delim
34764EGREP!$EGREP$ac_delim
34765LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34766BUILD_CC!$BUILD_CC$ac_delim
34767BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034768BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034769CVSBUILD!$CVSBUILD$ac_delim
34770ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000034771ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034772DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034773ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34774EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034775DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034776JIT!$JIT$ac_delim
34777TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34778ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34779ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034780ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034781TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034782ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034783EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034784BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034785CXX!$CXX$ac_delim
34786CXXFLAGS!$CXXFLAGS$ac_delim
34787ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034788NM!$NM$ac_delim
34789ifGNUmake!$ifGNUmake$ac_delim
34790LN_S!$LN_S$ac_delim
34791CMP!$CMP$ac_delim
34792CP!$CP$ac_delim
34793DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034794_ACEOF
34795
34796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34797 break
34798 elif $ac_last_try; then
34799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34800echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34801 { (exit 1); exit 1; }; }
34802 else
34803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034804 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034805done
34806
34807ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34808if test -n "$ac_eof"; then
34809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34810 ac_eof=`expr $ac_eof + 1`
34811fi
34812
34813cat >>$CONFIG_STATUS <<_ACEOF
34814cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34816_ACEOF
34817sed '
34818s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34819s/^/s,@/; s/!/@,|#_!!_#|/
34820:n
34821t n
34822s/'"$ac_delim"'$/,g/; t
34823s/$/\\/; p
34824N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34825' >>$CONFIG_STATUS <conf$$subs.sed
34826rm -f conf$$subs.sed
34827cat >>$CONFIG_STATUS <<_ACEOF
34828CEOF$ac_eof
34829_ACEOF
34830
34831
34832ac_delim='%!_!# '
34833for ac_last_try in false false false false false :; do
34834 cat >conf$$subs.sed <<_ACEOF
David Greene2a5a12c2009-04-17 14:50:39 +000034835FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034836MKDIR!$MKDIR$ac_delim
34837MV!$MV$ac_delim
34838RANLIB!$RANLIB$ac_delim
34839RM!$RM$ac_delim
34840SED!$SED$ac_delim
34841TAR!$TAR$ac_delim
34842BINPWD!$BINPWD$ac_delim
34843GRAPHVIZ!$GRAPHVIZ$ac_delim
34844DOT!$DOT$ac_delim
34845GV!$GV$ac_delim
34846DOTTY!$DOTTY$ac_delim
34847PERL!$PERL$ac_delim
34848HAVE_PERL!$HAVE_PERL$ac_delim
34849INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34850INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34851INSTALL_DATA!$INSTALL_DATA$ac_delim
34852BZIP2!$BZIP2$ac_delim
34853DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034854GROFF!$GROFF$ac_delim
34855GZIP!$GZIP$ac_delim
34856POD2HTML!$POD2HTML$ac_delim
34857POD2MAN!$POD2MAN$ac_delim
34858RUNTEST!$RUNTEST$ac_delim
34859TCLSH!$TCLSH$ac_delim
34860ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034861OCAMLC!$OCAMLC$ac_delim
34862OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034863OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034864OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034865GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034866INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34867INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34868CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34869CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34870LIBADD_DL!$LIBADD_DL$ac_delim
34871ECHO!$ECHO$ac_delim
34872AR!$AR$ac_delim
34873STRIP!$STRIP$ac_delim
34874CXXCPP!$CXXCPP$ac_delim
34875F77!$F77$ac_delim
34876FFLAGS!$FFLAGS$ac_delim
34877ac_ct_F77!$ac_ct_F77$ac_delim
34878LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034879LLVMGCC!$LLVMGCC$ac_delim
34880LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034881USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034882HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034883HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034884ALLOCA!$ALLOCA$ac_delim
34885MMAP_FILE!$MMAP_FILE$ac_delim
34886LLVMCC1!$LLVMCC1$ac_delim
34887LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34888LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034889LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034890LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34891LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034892LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034893SHLIBEXT!$SHLIBEXT$ac_delim
34894LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34895LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34896LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34897LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34898LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34899LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34900LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34901LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34902LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34903LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034904BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34905ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000034906OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034907ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034908RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034909RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034910LIBOBJS!$LIBOBJS$ac_delim
34911LTLIBOBJS!$LTLIBOBJS$ac_delim
34912_ACEOF
34913
David Greene2a5a12c2009-04-17 14:50:39 +000034914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000034915 break
34916 elif $ac_last_try; then
34917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34918echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34919 { (exit 1); exit 1; }; }
34920 else
34921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34922 fi
34923done
34924
34925ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34926if test -n "$ac_eof"; then
34927 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34928 ac_eof=`expr $ac_eof + 1`
34929fi
34930
34931cat >>$CONFIG_STATUS <<_ACEOF
34932cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34934_ACEOF
34935sed '
34936s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34937s/^/s,@/; s/!/@,|#_!!_#|/
34938:n
34939t n
34940s/'"$ac_delim"'$/,g/; t
34941s/$/\\/; p
34942N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34943' >>$CONFIG_STATUS <conf$$subs.sed
34944rm -f conf$$subs.sed
34945cat >>$CONFIG_STATUS <<_ACEOF
34946:end
34947s/|#_!!_#|//g
34948CEOF$ac_eof
34949_ACEOF
34950
34951
34952# VPATH may cause trouble with some makes, so we remove $(srcdir),
34953# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34954# trailing colons and then remove the whole line if VPATH becomes empty
34955# (actually we leave an empty line to preserve line numbers).
34956if test "x$srcdir" = x.; then
34957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34958s/:*\$(srcdir):*/:/
34959s/:*\${srcdir}:*/:/
34960s/:*@srcdir@:*/:/
34961s/^\([^=]*=[ ]*\):*/\1/
34962s/:*$//
34963s/^[^=]*=[ ]*$//
34964}'
34965fi
34966
34967cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034968fi # test -n "$CONFIG_FILES"
34969
Reid Spencera773bd52006-08-04 18:18:08 +000034970
34971for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34972do
34973 case $ac_tag in
34974 :[FHLC]) ac_mode=$ac_tag; continue;;
34975 esac
34976 case $ac_mode$ac_tag in
34977 :[FHL]*:*);;
34978 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34979echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34980 { (exit 1); exit 1; }; };;
34981 :[FH]-) ac_tag=-:-;;
34982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34983 esac
34984 ac_save_IFS=$IFS
34985 IFS=:
34986 set x $ac_tag
34987 IFS=$ac_save_IFS
34988 shift
34989 ac_file=$1
34990 shift
34991
34992 case $ac_mode in
34993 :L) ac_source=$1;;
34994 :[FH])
34995 ac_file_inputs=
34996 for ac_f
34997 do
34998 case $ac_f in
34999 -) ac_f="$tmp/stdin";;
35000 *) # Look for the file first in the build tree, then in the source tree
35001 # (if the path is not absolute). The absolute path cannot be DOS-style,
35002 # because $ac_f cannot contain `:'.
35003 test -f "$ac_f" ||
35004 case $ac_f in
35005 [\\/$]*) false;;
35006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35007 esac ||
35008 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35009echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35010 { (exit 1); exit 1; }; };;
35011 esac
35012 ac_file_inputs="$ac_file_inputs $ac_f"
35013 done
35014
35015 # Let's still pretend it is `configure' which instantiates (i.e., don't
35016 # use $as_me), people would be surprised to read:
35017 # /* config.h. Generated by config.status. */
35018 configure_input="Generated from "`IFS=:
35019 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35020 if test x"$ac_file" != x-; then
35021 configure_input="$ac_file. $configure_input"
35022 { echo "$as_me:$LINENO: creating $ac_file" >&5
35023echo "$as_me: creating $ac_file" >&6;}
35024 fi
35025
35026 case $ac_tag in
35027 *:-:* | *:-) cat >"$tmp/stdin";;
35028 esac
35029 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035030 esac
35031
Reid Spencera773bd52006-08-04 18:18:08 +000035032 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035034 X"$ac_file" : 'X\(//\)[^/]' \| \
35035 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035037echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039 s//\1/
35040 q
35041 }
35042 /^X\(\/\/\)[^/].*/{
35043 s//\1/
35044 q
35045 }
35046 /^X\(\/\/\)$/{
35047 s//\1/
35048 q
35049 }
35050 /^X\(\/\).*/{
35051 s//\1/
35052 q
35053 }
35054 s/.*/./; q'`
35055 { as_dir="$ac_dir"
35056 case $as_dir in #(
35057 -*) as_dir=./$as_dir;;
35058 esac
35059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035060 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035061 while :; do
35062 case $as_dir in #(
35063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35064 *) as_qdir=$as_dir;;
35065 esac
35066 as_dirs="'$as_qdir' $as_dirs"
35067 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035069 X"$as_dir" : 'X\(//\)[^/]' \| \
35070 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035072echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35074 s//\1/
35075 q
35076 }
35077 /^X\(\/\/\)[^/].*/{
35078 s//\1/
35079 q
35080 }
35081 /^X\(\/\/\)$/{
35082 s//\1/
35083 q
35084 }
35085 /^X\(\/\).*/{
35086 s//\1/
35087 q
35088 }
35089 s/.*/./; q'`
35090 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035091 done
Reid Spencera773bd52006-08-04 18:18:08 +000035092 test -z "$as_dirs" || eval "mkdir $as_dirs"
35093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35094echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035095 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035096 ac_builddir=.
35097
Reid Spencera773bd52006-08-04 18:18:08 +000035098case "$ac_dir" in
35099.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35100*)
John Criswell7a73b802003-06-30 21:59:07 +000035101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035102 # A ".." for each directory in $ac_dir_suffix.
35103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35104 case $ac_top_builddir_sub in
35105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35107 esac ;;
35108esac
35109ac_abs_top_builddir=$ac_pwd
35110ac_abs_builddir=$ac_pwd$ac_dir_suffix
35111# for backward compatibility:
35112ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035113
35114case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035115 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035116 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035117 ac_top_srcdir=$ac_top_builddir_sub
35118 ac_abs_top_srcdir=$ac_pwd ;;
35119 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035120 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035121 ac_top_srcdir=$srcdir
35122 ac_abs_top_srcdir=$srcdir ;;
35123 *) # Relative name.
35124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35125 ac_top_srcdir=$ac_top_build_prefix$srcdir
35126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035127esac
Reid Spencera773bd52006-08-04 18:18:08 +000035128ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035129
John Criswell7a73b802003-06-30 21:59:07 +000035130
Reid Spencera773bd52006-08-04 18:18:08 +000035131 case $ac_mode in
35132 :F)
35133 #
35134 # CONFIG_FILE
35135 #
John Criswell7a73b802003-06-30 21:59:07 +000035136
35137 case $INSTALL in
35138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035139 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035140 esac
John Criswell7a73b802003-06-30 21:59:07 +000035141_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035142
35143cat >>$CONFIG_STATUS <<\_ACEOF
35144# If the template does not know about datarootdir, expand it.
35145# FIXME: This hack should be removed a few years after 2.60.
35146ac_datarootdir_hack=; ac_datarootdir_seen=
35147
35148case `sed -n '/datarootdir/ {
35149 p
35150 q
35151}
35152/@datadir@/p
35153/@docdir@/p
35154/@infodir@/p
35155/@localedir@/p
35156/@mandir@/p
35157' $ac_file_inputs` in
35158*datarootdir*) ac_datarootdir_seen=yes;;
35159*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35160 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35161echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35162_ACEOF
35163cat >>$CONFIG_STATUS <<_ACEOF
35164 ac_datarootdir_hack='
35165 s&@datadir@&$datadir&g
35166 s&@docdir@&$docdir&g
35167 s&@infodir@&$infodir&g
35168 s&@localedir@&$localedir&g
35169 s&@mandir@&$mandir&g
35170 s&\\\${datarootdir}&$datarootdir&g' ;;
35171esac
35172_ACEOF
35173
35174# Neutralize VPATH when `$srcdir' = `.'.
35175# Shell code in configure.ac might set extrasub.
35176# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035177cat >>$CONFIG_STATUS <<_ACEOF
35178 sed "$ac_vpsub
35179$extrasub
35180_ACEOF
35181cat >>$CONFIG_STATUS <<\_ACEOF
35182:t
35183/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035184s&@configure_input@&$configure_input&;t t
35185s&@top_builddir@&$ac_top_builddir_sub&;t t
35186s&@srcdir@&$ac_srcdir&;t t
35187s&@abs_srcdir@&$ac_abs_srcdir&;t t
35188s&@top_srcdir@&$ac_top_srcdir&;t t
35189s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35190s&@builddir@&$ac_builddir&;t t
35191s&@abs_builddir@&$ac_abs_builddir&;t t
35192s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35193s&@INSTALL@&$ac_INSTALL&;t t
35194$ac_datarootdir_hack
35195" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035196
Reid Spencera773bd52006-08-04 18:18:08 +000035197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35200 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35201which seems to be undefined. Please make sure it is defined." >&5
35202echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35203which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035204
Reid Spencera773bd52006-08-04 18:18:08 +000035205 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035206 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035207 -) cat "$tmp/out"; rm -f "$tmp/out";;
35208 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035209 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035210 ;;
35211 :H)
35212 #
35213 # CONFIG_HEADER
35214 #
John Criswell7a73b802003-06-30 21:59:07 +000035215_ACEOF
35216
Reid Spencera773bd52006-08-04 18:18:08 +000035217# Transform confdefs.h into a sed script `conftest.defines', that
35218# substitutes the proper values into config.h.in to produce config.h.
35219rm -f conftest.defines conftest.tail
35220# First, append a space to every undef/define line, to ease matching.
35221echo 's/$/ /' >conftest.defines
35222# Then, protect against being on the right side of a sed subst, or in
35223# an unquoted here document, in config.status. If some macros were
35224# called several times there might be several #defines for the same
35225# symbol, which is useless. But do not sort them, since the last
35226# AC_DEFINE must be honored.
35227ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35228# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35229# NAME is the cpp macro being defined, VALUE is the value it is being given.
35230# PARAMS is the parameter list in the macro definition--in most cases, it's
35231# just an empty string.
35232ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35233ac_dB='\\)[ (].*,\\1define\\2'
35234ac_dC=' '
35235ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035236
Reid Spencera773bd52006-08-04 18:18:08 +000035237uniq confdefs.h |
35238 sed -n '
35239 t rset
35240 :rset
35241 s/^[ ]*#[ ]*define[ ][ ]*//
35242 t ok
35243 d
35244 :ok
35245 s/[\\&,]/\\&/g
35246 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35247 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35248 ' >>conftest.defines
35249
35250# Remove the space that was appended to ease matching.
35251# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035252# example, in the case of _POSIX_SOURCE, which is predefined and required
35253# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035254# (The regexp can be short, since the line contains either #define or #undef.)
35255echo 's/ $//
35256s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035257
Reid Spencera773bd52006-08-04 18:18:08 +000035258# Break up conftest.defines:
35259ac_max_sed_lines=50
35260
35261# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35262# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35263# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35264# et cetera.
35265ac_in='$ac_file_inputs'
35266ac_out='"$tmp/out1"'
35267ac_nxt='"$tmp/out2"'
35268
35269while :
John Criswell7a73b802003-06-30 21:59:07 +000035270do
Reid Spencera773bd52006-08-04 18:18:08 +000035271 # Write a here document:
35272 cat >>$CONFIG_STATUS <<_ACEOF
35273 # First, check the format of the line:
35274 cat >"\$tmp/defines.sed" <<\\CEOF
35275/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35276/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35277b
35278:def
35279_ACEOF
35280 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035281 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035282 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35283 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35284 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35285 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035286 rm -f conftest.defines
35287 mv conftest.tail conftest.defines
35288done
Reid Spencera773bd52006-08-04 18:18:08 +000035289rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035290
Reid Spencera773bd52006-08-04 18:18:08 +000035291echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035292cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035293 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035294 echo "/* $configure_input */" >"$tmp/config.h"
35295 cat "$ac_result" >>"$tmp/config.h"
35296 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035297 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35298echo "$as_me: $ac_file is unchanged" >&6;}
35299 else
John Criswell7a73b802003-06-30 21:59:07 +000035300 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035301 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035302 fi
35303 else
Reid Spencera773bd52006-08-04 18:18:08 +000035304 echo "/* $configure_input */"
35305 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035306 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035307 rm -f "$tmp/out12"
35308 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035309
Reid Spencera773bd52006-08-04 18:18:08 +000035310 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35311echo "$as_me: executing $ac_file commands" >&6;}
35312 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035313 esac
John Criswell7a73b802003-06-30 21:59:07 +000035314
Reid Spencera773bd52006-08-04 18:18:08 +000035315
35316 case $ac_file$ac_mode in
35317 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35318 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35319 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35320 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35321 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35322 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35323 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35324 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035325 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35326 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035327 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35328 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35329 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35330 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035331 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35332 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035333 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35334 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35335 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35336 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35337 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35338 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035339 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35340 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35341 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35342 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035343
35344 esac
35345done # for ac_tag
35346
John Criswell7a73b802003-06-30 21:59:07 +000035347
35348{ (exit 0); exit 0; }
35349_ACEOF
35350chmod +x $CONFIG_STATUS
35351ac_clean_files=$ac_clean_files_save
35352
35353
35354# configure is writing to config.log, and then calls config.status.
35355# config.status does its own redirection, appending to config.log.
35356# Unfortunately, on DOS this fails, as config.log is still kept open
35357# by configure, so config.status won't be able to write to it; its
35358# output is simply discarded. So we exec the FD to /dev/null,
35359# effectively closing config.log, so it can be properly (re)opened and
35360# appended to by config.status. When coming back to configure, we
35361# need to make the FD available again.
35362if test "$no_create" != yes; then
35363 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035364 ac_config_status_args=
35365 test "$silent" = yes &&
35366 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035367 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035368 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035369 exec 5>>config.log
35370 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35371 # would make configure fail if this is the last instruction.
35372 $ac_cs_success || { (exit 1); exit 1; }
35373fi
35374
John Criswell12399a12003-09-30 15:55:44 +000035375#
35376# CONFIG_SUBDIRS section.
35377#
35378if test "$no_recursion" != yes; then
35379
35380 # Remove --cache-file and --srcdir arguments so they do not pile up.
35381 ac_sub_configure_args=
35382 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035383 eval "set x $ac_configure_args"
35384 shift
35385 for ac_arg
35386 do
John Criswell12399a12003-09-30 15:55:44 +000035387 if test -n "$ac_prev"; then
35388 ac_prev=
35389 continue
35390 fi
35391 case $ac_arg in
35392 -cache-file | --cache-file | --cache-fil | --cache-fi \
35393 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35394 ac_prev=cache_file ;;
35395 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35396 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35397 | --c=*)
35398 ;;
35399 --config-cache | -C)
35400 ;;
35401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35402 ac_prev=srcdir ;;
35403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35404 ;;
35405 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35406 ac_prev=prefix ;;
35407 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35408 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035409 *)
35410 case $ac_arg in
35411 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35412 esac
35413 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035414 esac
35415 done
35416
35417 # Always prepend --prefix to ensure using the same prefix
35418 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035419 ac_arg="--prefix=$prefix"
35420 case $ac_arg in
35421 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35422 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035423 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035424
35425 ac_popdir=`pwd`
35426 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35427
35428 # Do not complain, so a configure script can configure whichever
35429 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035430 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035431
Reid Spencera773bd52006-08-04 18:18:08 +000035432 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35433 echo "$as_me:$LINENO: $ac_msg" >&5
35434 echo "$ac_msg" >&6
35435 { as_dir="$ac_dir"
35436 case $as_dir in #(
35437 -*) as_dir=./$as_dir;;
35438 esac
35439 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035440 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035441 while :; do
35442 case $as_dir in #(
35443 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35444 *) as_qdir=$as_dir;;
35445 esac
35446 as_dirs="'$as_qdir' $as_dirs"
35447 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035449 X"$as_dir" : 'X\(//\)[^/]' \| \
35450 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035452echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35454 s//\1/
35455 q
35456 }
35457 /^X\(\/\/\)[^/].*/{
35458 s//\1/
35459 q
35460 }
35461 /^X\(\/\/\)$/{
35462 s//\1/
35463 q
35464 }
35465 /^X\(\/\).*/{
35466 s//\1/
35467 q
35468 }
35469 s/.*/./; q'`
35470 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035471 done
Reid Spencera773bd52006-08-04 18:18:08 +000035472 test -z "$as_dirs" || eval "mkdir $as_dirs"
35473 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35474echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035475 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035476 ac_builddir=.
35477
Reid Spencera773bd52006-08-04 18:18:08 +000035478case "$ac_dir" in
35479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35480*)
John Criswell12399a12003-09-30 15:55:44 +000035481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035482 # A ".." for each directory in $ac_dir_suffix.
35483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35484 case $ac_top_builddir_sub in
35485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35487 esac ;;
35488esac
35489ac_abs_top_builddir=$ac_pwd
35490ac_abs_builddir=$ac_pwd$ac_dir_suffix
35491# for backward compatibility:
35492ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035493
35494case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035495 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035496 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035497 ac_top_srcdir=$ac_top_builddir_sub
35498 ac_abs_top_srcdir=$ac_pwd ;;
35499 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035500 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035501 ac_top_srcdir=$srcdir
35502 ac_abs_top_srcdir=$srcdir ;;
35503 *) # Relative name.
35504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35505 ac_top_srcdir=$ac_top_build_prefix$srcdir
35506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035507esac
Reid Spencera773bd52006-08-04 18:18:08 +000035508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035509
35510
Reid Spencera773bd52006-08-04 18:18:08 +000035511 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035512
35513 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035514 if test -f "$ac_srcdir/configure.gnu"; then
35515 ac_sub_configure=$ac_srcdir/configure.gnu
35516 elif test -f "$ac_srcdir/configure"; then
35517 ac_sub_configure=$ac_srcdir/configure
35518 elif test -f "$ac_srcdir/configure.in"; then
35519 # This should be Cygnus configure.
35520 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035521 else
35522 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35523echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35524 ac_sub_configure=
35525 fi
35526
35527 # The recursion is here.
35528 if test -n "$ac_sub_configure"; then
35529 # Make the cache file name correct relative to the subdirectory.
35530 case $cache_file in
35531 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035532 *) # Relative name.
35533 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035534 esac
35535
Reid Spencera773bd52006-08-04 18:18:08 +000035536 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35537echo "$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 +000035538 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035539 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35540 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035541 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035542echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35543 { (exit 1); exit 1; }; }
35544 fi
35545
Reid Spencera773bd52006-08-04 18:18:08 +000035546 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035547 done
35548fi
35549