blob: 0add28a97700c00b942b9c69738417ba1dbc3242 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner49ff6612008-05-10 04:20:38 +00003# Generated by GNU Autoconf 2.60 for llvm 2.4svn.
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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattner49ff6612008-05-10 04:20:38 +0000718PACKAGE_VERSION='2.4svn'
719PACKAGE_STRING='llvm 2.4svn'
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>
Tanya Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
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
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000889OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000890INSTALL_LTDL_TRUE
891INSTALL_LTDL_FALSE
892CONVENIENCE_LTDL_TRUE
893CONVENIENCE_LTDL_FALSE
894LIBADD_DL
895ECHO
896AR
897STRIP
898CXXCPP
899F77
900FFLAGS
901ac_ct_F77
902LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000903LLVMGCC
904LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000905USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000906HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000907HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000913LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000916LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000928BINDINGS_TO_BUILD
929ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000930OCAML_LIBDIR
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
945YACC
946YFLAGS
947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/llvm-reopt
955projects/llvm-gcc
956projects/llvm-java
957projects/llvm-tv
958projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000959projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000960projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000961
962# Initialize some variables set by options.
963ac_init_help=
964ac_init_version=false
965# The variables have the same names as the options, with
966# dashes changed to underlines.
967cache_file=/dev/null
968exec_prefix=NONE
969no_create=
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
978verbose=
979x_includes=NONE
980x_libraries=NONE
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000987# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000996includedir='${prefix}/include'
997oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999infodir='${datarootdir}/info'
1000htmldir='${docdir}'
1001dvidir='${docdir}'
1002pdfdir='${docdir}'
1003psdir='${docdir}'
1004libdir='${exec_prefix}/lib'
1005localedir='${datarootdir}/locale'
1006mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001007
1008ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001009ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001010for ac_option
1011do
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001014 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001015 ac_prev=
1016 continue
1017 fi
1018
Reid Spencera773bd52006-08-04 18:18:08 +00001019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
John Criswell7a73b802003-06-30 21:59:07 +00001023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
Reid Spencera773bd52006-08-04 18:18:08 +00001026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
Reid Spencera773bd52006-08-04 18:18:08 +00001050 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001051 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001053 datadir=$ac_optarg ;;
1054
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
John Criswell7a73b802003-06-30 21:59:07 +00001062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001069 eval enable_$ac_feature=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001080
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001088 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001089
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1098
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1102
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1109
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1114
Reid Spencera773bd52006-08-04 18:18:08 +00001115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
John Criswell7a73b802003-06-30 21:59:07 +00001121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1127
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1132
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1137
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1144
Reid Spencera773bd52006-08-04 18:18:08 +00001145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
John Criswell7a73b802003-06-30 21:59:07 +00001150 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001151 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001155 localstatedir=$ac_optarg ;;
1156
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1161
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1165
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1169
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1173
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1182
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1187
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1194
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1201
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1218
Reid Spencera773bd52006-08-04 18:18:08 +00001219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
John Criswell7a73b802003-06-30 21:59:07 +00001229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001284 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001285 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001286
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001293 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001294 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001325 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1343fi
1344
Reid Spencera773bd52006-08-04 18:18:08 +00001345# Be sure to have absolute directory names.
1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001350do
Reid Spencera773bd52006-08-04 18:18:08 +00001351 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001352 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001355 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
Reid Spencera773bd52006-08-04 18:18:08 +00001384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1392
1393
John Criswell7a73b802003-06-30 21:59:07 +00001394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001399$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001403echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\).*/{
1417 s//\1/
1418 q
1419 }
1420 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001421 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001422 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001423 srcdir=..
1424 fi
1425else
1426 ac_srcdir_defaulted=no
1427fi
Reid Spencera773bd52006-08-04 18:18:08 +00001428if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001431 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001432fi
Reid Spencera773bd52006-08-04 18:18:08 +00001433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001436 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
John Criswell7a73b802003-06-30 21:59:07 +00001454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001462\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
John Criswell7a73b802003-06-30 21:59:07 +00001482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001484 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001486 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001515_ACEOF
1516
1517 cat <<\_ACEOF
1518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527 case $ac_init_help in
Tanya Lattner49ff6612008-05-10 04:20:38 +00001528 short | recursive ) echo "Configuration of llvm 2.4svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001529 esac
1530 cat <<\_ACEOF
1531
1532Optional Features:
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001535 --enable-optimized
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
1544 is NO)
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)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001573 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001578 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001581 CC C compiler command
1582 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001587 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to <llvmbugs@cs.uiuc.edu>.
1603_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001604ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001610 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_builddir=.
1612
Reid Spencera773bd52006-08-04 18:18:08 +00001613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001628
1629case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001630 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001642esac
Reid Spencera773bd52006-08-04 18:18:08 +00001643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001644
Reid Spencera773bd52006-08-04 18:18:08 +00001645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001653 else
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001657 done
1658fi
1659
Reid Spencera773bd52006-08-04 18:18:08 +00001660test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001661if $ac_init_version; then
1662 cat <<\_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001663llvm configure 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001664generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001665
Reid Spencera773bd52006-08-04 18:18:08 +00001666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16672002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001670
Tanya Lattnercf067672008-01-17 05:57:22 +00001671Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001672_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001673 exit
John Criswell7a73b802003-06-30 21:59:07 +00001674fi
Reid Spencera773bd52006-08-04 18:18:08 +00001675cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
Tanya Lattner49ff6612008-05-10 04:20:38 +00001679It was created by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001680generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001681
1682 $ $0 $@
1683
1684_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001685exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1717done
Reid Spencera773bd52006-08-04 18:18:08 +00001718IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001734# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001735# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001736# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001737ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001738ac_configure_args0=
1739ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001740ac_must_keep_next=false
1741for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001742do
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001758 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001771 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001772 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ;;
1774 esac
1775 done
John Criswell7a73b802003-06-30 21:59:07 +00001776done
John Criswell0c38eaf2003-09-10 15:17:25 +00001777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$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 +00001779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
John Criswell7a73b802003-06-30 21:59:07 +00001812 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001815 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001819 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001822 esac |
1823 sort
1824)
John Criswell7a73b802003-06-30 21:59:07 +00001825 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001826
1827 cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
Reid Spencera773bd52006-08-04 18:18:08 +00001835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
Reid Spencera773bd52006-08-04 18:18:08 +00001852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001857 done | sort
1858 echo
1859 fi
1860
John Criswell7a73b802003-06-30 21:59:07 +00001861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001868 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1874 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001877 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001878' 0
John Criswell7a73b802003-06-30 21:59:07 +00001879for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001885rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001916if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920else
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001923fi
Reid Spencera773bd52006-08-04 18:18:08 +00001924shift
1925for ac_site_file
1926do
John Criswell7a73b802003-06-30 21:59:07 +00001927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933done
1934
1935if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001944 esac
1945 fi
1946else
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950fi
1951
1952# Check that the precious variables saved in the cache have kept the same
1953# value.
1954ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001955for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001960 case $ac_old_set,$ac_new_set in
1961 set,)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,set)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,);;
1970 *)
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001973echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001975echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001978 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001979 fi;;
1980 esac
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1983 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001985 *) ac_arg=$ac_var=$ac_new_val ;;
1986 esac
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990 esac
1991 fi
1992done
1993if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
1999fi
2000
Reid Spencera773bd52006-08-04 18:18:08 +00002001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
John Criswell7a73b802003-06-30 21:59:07 +00002025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
Tanya Lattnercf067672008-01-17 05:57:22 +00002033LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002034
2035
2036
2037
2038
2039
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002042for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
Reid Spencera773bd52006-08-04 18:18:08 +00002047 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
Reid Spencera773bd52006-08-04 18:18:08 +00002051 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056done
2057if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002060 { (exit 1); exit 1; }; }
2061fi
Reid Spencera773bd52006-08-04 18:18:08 +00002062
2063# These three variables are undocumented and unsupported,
2064# and are intended to be withdrawn in a future Autoconf release.
2065# They can cause serious problems if a builder's source tree is in a directory
2066# whose full name contains unusual characters.
2067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
John Criswell7a73b802003-06-30 21:59:07 +00002071
John Criswell392aaa32003-07-22 19:18:09 +00002072
Reid Spencer2706f8c2004-09-19 23:53:36 +00002073if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002076echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 fi
John Criswell93e1c722003-09-15 17:04:06 +00002079fi
2080
John Criswell33a911a2003-11-25 20:36:46 +00002081for i in `ls ${srcdir}/projects`
2082do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 if test -d ${srcdir}/projects/${i} ; then
2084 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 CVS) ;;
2086 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002089 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002092 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 ;;
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002103 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002107 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002111 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 esac
John Criswell33a911a2003-11-25 20:36:46 +00002113 fi
2114done
John Criswell559a6c12003-09-30 16:31:48 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116
2117# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002121 { (exit 1); exit 1; }; }
2122
Reid Spencera773bd52006-08-04 18:18:08 +00002123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
Reid Spencera773bd52006-08-04 18:18:08 +00002128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002138 { (exit 1); exit 1; }; }
2139
2140fi
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
John Criswell7a73b802003-06-30 21:59:07 +00002149build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002161
2162
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
Reid Spencera773bd52006-08-04 18:18:08 +00002168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002175fi
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177fi
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
John Criswell7a73b802003-06-30 21:59:07 +00002186host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
Reid Spencera773bd52006-08-04 18:18:08 +00002205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214fi
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
John Criswell7a73b802003-06-30 21:59:07 +00002223target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
Reid Spencera773bd52006-08-04 18:18:08 +00002244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002249 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002275 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002285 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002288 llvm_cv_os_type="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2310 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2315 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002320esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002321fi
Reid Spencera773bd52006-08-04 18:18:08 +00002322{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002328 { (exit 1); exit 1; }; }
2329fi
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332
2333
Reid Spencera773bd52006-08-04 18:18:08 +00002334LINKALL=$llvm_cv_link_all_option
2335
2336NOLINKALL=$llvm_cv_no_link_all_option
2337
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339case $llvm_cv_platform_type in
2340 Unix)
2341
2342cat >>confdefs.h <<\_ACEOF
2343#define LLVM_ON_UNIX 1
2344_ACEOF
2345
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002346 LLVM_ON_UNIX=1
2347
2348 LLVM_ON_WIN32=0
2349
Reid Spencer7b3e8512004-12-24 06:29:05 +00002350 ;;
2351 Win32)
2352
2353cat >>confdefs.h <<\_ACEOF
2354#define LLVM_ON_WIN32 1
2355_ACEOF
2356
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002357 LLVM_ON_UNIX=0
2358
2359 LLVM_ON_WIN32=1
2360
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 ;;
2362esac
2363
Reid Spencera773bd52006-08-04 18:18:08 +00002364{ echo "$as_me:$LINENO: checking target architecture" >&5
2365echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002370 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002375 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002376 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002377 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002378 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002379 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002380esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381fi
Reid Spencera773bd52006-08-04 18:18:08 +00002382{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2383echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002385if test "$llvm_cv_target_arch" = "Unknown" ; then
2386 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2387echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2388fi
John Criswell76595452003-07-01 22:07:39 +00002389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002391
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393ac_ext=c
2394ac_cpp='$CPP $CPPFLAGS'
2395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002398if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403if test "${ac_cv_prog_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002415 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 +00002416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420done
2421done
Reid Spencera773bd52006-08-04 18:18:08 +00002422IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423
2424fi
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002428 { echo "$as_me:$LINENO: result: $CC" >&5
2429echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430else
Reid Spencera773bd52006-08-04 18:18:08 +00002431 { echo "$as_me:$LINENO: result: no" >&5
2432echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433fi
2434
Reid Spencera773bd52006-08-04 18:18:08 +00002435
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436fi
2437if test -z "$ac_cv_prog_CC"; then
2438 ac_ct_CC=$CC
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002455 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 +00002456 ac_cv_prog_ac_ct_CC="gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460done
2461done
Reid Spencera773bd52006-08-04 18:18:08 +00002462IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463
2464fi
2465fi
2466ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002468 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470else
Reid Spencera773bd52006-08-04 18:18:08 +00002471 { echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473fi
2474
Reid Spencera773bd52006-08-04 18:18:08 +00002475 if test "x$ac_ct_CC" = x; then
2476 CC=""
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479yes:)
2480{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481whose name does not start with the host triplet. If you think this
2482configuration is useful to you, please write to autoconf@gnu.org." >&5
2483echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484whose name does not start with the host triplet. If you think this
2485configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486ac_tool_warned=yes ;;
2487esac
2488 CC=$ac_ct_CC
2489 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490else
2491 CC="$ac_cv_prog_CC"
2492fi
2493
2494if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002495 if test -n "$ac_tool_prefix"; then
2496 # 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 +00002497set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513 ac_cv_prog_CC="${ac_tool_prefix}cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518done
Reid Spencera773bd52006-08-04 18:18:08 +00002519IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002525 { echo "$as_me:$LINENO: result: $CC" >&5
2526echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527else
Reid Spencera773bd52006-08-04 18:18:08 +00002528 { echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530fi
2531
Reid Spencera773bd52006-08-04 18:18:08 +00002532
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534fi
2535if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546 ac_prog_rejected=no
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002553 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 +00002554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2556 continue
2557 fi
2558 ac_cv_prog_CC="cc"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562done
2563done
Reid Spencera773bd52006-08-04 18:18:08 +00002564IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565
2566if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2569 shift
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2574 shift
2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2576 fi
2577fi
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002582 { echo "$as_me:$LINENO: result: $CC" >&5
2583echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584else
Reid Spencera773bd52006-08-04 18:18:08 +00002585 { echo "$as_me:$LINENO: result: no" >&5
2586echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587fi
2588
Reid Spencera773bd52006-08-04 18:18:08 +00002589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590fi
2591if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002593 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002594 do
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002611 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 +00002612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616done
2617done
Reid Spencera773bd52006-08-04 18:18:08 +00002618IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002619
2620fi
2621fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002624 { echo "$as_me:$LINENO: result: $CC" >&5
2625echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002626else
Reid Spencera773bd52006-08-04 18:18:08 +00002627 { echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002629fi
2630
Reid Spencera773bd52006-08-04 18:18:08 +00002631
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002633 done
2634fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635if test -z "$CC"; then
2636 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002637 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002655 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 +00002656 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661done
Reid Spencera773bd52006-08-04 18:18:08 +00002662IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002663
2664fi
2665fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002668 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2669echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002670else
Reid Spencera773bd52006-08-04 18:18:08 +00002671 { echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002673fi
2674
Reid Spencera773bd52006-08-04 18:18:08 +00002675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002677done
John Criswell7a73b802003-06-30 21:59:07 +00002678
Reid Spencera773bd52006-08-04 18:18:08 +00002679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683yes:)
2684{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685whose name does not start with the host triplet. If you think this
2686configuration is useful to you, please write to autoconf@gnu.org." >&5
2687echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688whose name does not start with the host triplet. If you think this
2689configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690ac_tool_warned=yes ;;
2691esac
2692 CC=$ac_ct_CC
2693 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694fi
2695
John Criswell7a73b802003-06-30 21:59:07 +00002696fi
2697
2698
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&5
2701echo "$as_me: error: no acceptable C compiler found in \$PATH
2702See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }
2704
John Criswell7a73b802003-06-30 21:59:07 +00002705# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002706echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002707ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002708{ (ac_try="$ac_compiler --version >&5"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002718{ (ac_try="$ac_compiler -v >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002728{ (ac_try="$ac_compiler -V >&5"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2738
2739cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002745
John Criswell7a73b802003-06-30 21:59:07 +00002746int
2747main ()
2748{
2749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002755ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002756# Try to create an executable without -o first, disregard a.out.
2757# It will help us diagnose broken compilers, and finding out an intuition
2758# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002759{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2760echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002761ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002762#
2763# List of possible output files, starting from the most likely.
2764# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2765# only as a last resort. b.out is created by i960 compilers.
2766ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767#
2768# The IRIX 6 linker writes into existing files which may not be
2769# executable, retaining their permissions. Remove them first so a
2770# subsequent execution test works.
2771ac_rmfiles=
2772for ac_file in $ac_files
2773do
2774 case $ac_file in
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 esac
2778done
2779rm -f $ac_rmfiles
2780
2781if { (ac_try="$ac_link_default"
2782case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785esac
2786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793# in a Makefile. We should not override ac_cv_exeext if it was cached,
2794# so that the user can short-circuit this test for compilers unknown to
2795# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002796for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002797do
2798 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002799 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002802 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002803 # We found the default executable, but exeext='' is most
2804 # certainly right.
2805 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002806 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 then :; else
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 fi
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2815 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002817 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002818 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002819 esac
2820done
Reid Spencera773bd52006-08-04 18:18:08 +00002821test "$ac_cv_exeext" = no && ac_cv_exeext=
2822
John Criswell7a73b802003-06-30 21:59:07 +00002823else
2824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002825sed 's/^/| /' conftest.$ac_ext >&5
2826
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002828See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002829echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002830See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002831 { (exit 77); exit 77; }; }
2832fi
2833
2834ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002835{ echo "$as_me:$LINENO: result: $ac_file" >&5
2836echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002837
Reid Spencera773bd52006-08-04 18:18:08 +00002838# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002839# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002840{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2841echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002842# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2843# If not cross compiling, check that we can run a simple program.
2844if test "$cross_compiling" != yes; then
2845 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002846 { (case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 cross_compiling=no
2856 else
2857 if test "$cross_compiling" = maybe; then
2858 cross_compiling=yes
2859 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002861If you meant to cross compile, use \`--host'.
2862See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002863echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002864If you meant to cross compile, use \`--host'.
2865See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002866 { (exit 1); exit 1; }; }
2867 fi
2868 fi
2869fi
Reid Spencera773bd52006-08-04 18:18:08 +00002870{ echo "$as_me:$LINENO: result: yes" >&5
2871echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002872
John Criswell0c38eaf2003-09-10 15:17:25 +00002873rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002874ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002875# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002876# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002877{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2878echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2879{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2880echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002881
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2883echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2884if { (ac_try="$ac_link"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2896# work properly (i.e., refer to `conftest.exe'), while it won't with
2897# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002898for ac_file in conftest.exe conftest conftest.*; do
2899 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002900 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002903 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002904 * ) break;;
2905 esac
2906done
2907else
John Criswell0c38eaf2003-09-10 15:17:25 +00002908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&5
2910echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2911See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002912 { (exit 1); exit 1; }; }
2913fi
2914
2915rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002916{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2917echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002918
2919rm -f conftest.$ac_ext
2920EXEEXT=$ac_cv_exeext
2921ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002922{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2923echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002924if test "${ac_cv_objext+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002928/* confdefs.h. */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002933
John Criswell7a73b802003-06-30 21:59:07 +00002934int
2935main ()
2936{
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002955 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 break;;
2959 esac
2960done
2961else
2962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&5
2967echo "$as_me: error: cannot compute suffix of object files: cannot compile
2968See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002969 { (exit 1); exit 1; }; }
2970fi
2971
2972rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973fi
Reid Spencera773bd52006-08-04 18:18:08 +00002974{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2975echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002976OBJEXT=$ac_cv_objext
2977ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002978{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2979echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002980if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002984/* confdefs.h. */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002989
John Criswell7a73b802003-06-30 21:59:07 +00002990int
2991main ()
2992{
2993#ifndef __GNUC__
2994 choke me
2995#endif
2996
2997 ;
2998 return 0;
2999}
3000_ACEOF
3001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003002if { (ac_try="$ac_compile"
3003case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003035 ac_compiler_gnu=yes
3036else
3037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003038sed 's/^/| /' conftest.$ac_ext >&5
3039
Reid Spencera773bd52006-08-04 18:18:08 +00003040 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003041fi
Reid Spencera773bd52006-08-04 18:18:08 +00003042
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003044ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003045
3046fi
Reid Spencera773bd52006-08-04 18:18:08 +00003047{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3048echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003049GCC=`test $ac_compiler_gnu = yes && echo yes`
3050ac_test_CFLAGS=${CFLAGS+set}
3051ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003052{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3053echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
Reid Spencera773bd52006-08-04 18:18:08 +00003057 ac_save_c_werror_flag=$ac_c_werror_flag
3058 ac_c_werror_flag=yes
3059 ac_cv_prog_cc_g=no
3060 CFLAGS="-g"
3061 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003067
John Criswell7a73b802003-06-30 21:59:07 +00003068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003084 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003110 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003111else
3112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003113sed 's/^/| /' conftest.$ac_ext >&5
3114
Reid Spencera773bd52006-08-04 18:18:08 +00003115 CFLAGS=""
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003165 :
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3171 CFLAGS="-g"
3172 cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178
3179int
3180main ()
3181{
3182
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext
3188if { (ac_try="$ac_compile"
3189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003221 ac_cv_prog_cc_g=yes
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
John Criswell7a73b802003-06-30 21:59:07 +00003227fi
Reid Spencera773bd52006-08-04 18:18:08 +00003228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003230fi
Reid Spencera773bd52006-08-04 18:18:08 +00003231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3237fi
3238{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3244 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003245 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003247 fi
3248else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249 if test "$GCC" = yes; then
3250 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003251 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003253 fi
3254fi
Reid Spencera773bd52006-08-04 18:18:08 +00003255{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
Reid Spencera773bd52006-08-04 18:18:08 +00003260 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261ac_save_CC=$CC
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
3268#include <stdarg.h>
3269#include <stdio.h>
3270#include <sys/types.h>
3271#include <sys/stat.h>
3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276 char **p;
3277 int i;
3278{
3279 return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283 char *s;
3284 va_list v;
3285 va_start (v,p);
3286 s = g (p, va_arg (v,int));
3287 va_end (v);
3288 return s;
3289}
3290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003294 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003297 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
Reid Spencera773bd52006-08-04 18:18:08 +00003300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 ;
3316 return 0;
3317}
3318_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321do
3322 CC="$ac_save_CC $ac_arg"
3323 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338 { (case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_try") 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003357 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358else
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
Reid Spencera773bd52006-08-04 18:18:08 +00003362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363fi
Reid Spencera773bd52006-08-04 18:18:08 +00003364
3365rm -f core conftest.err conftest.$ac_objext
3366 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367done
Reid Spencera773bd52006-08-04 18:18:08 +00003368rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369CC=$ac_save_CC
3370
3371fi
Reid Spencera773bd52006-08-04 18:18:08 +00003372# AC_CACHE_VAL
3373case "x$ac_cv_prog_cc_c89" in
3374 x)
3375 { echo "$as_me:$LINENO: result: none needed" >&5
3376echo "${ECHO_T}none needed" >&6; } ;;
3377 xno)
3378 { echo "$as_me:$LINENO: result: unsupported" >&5
3379echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003381 CC="$CC $ac_cv_prog_cc_c89"
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384esac
3385
John Criswell0c38eaf2003-09-10 15:17:25 +00003386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392
3393
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
Reid Spencera773bd52006-08-04 18:18:08 +00003399{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3400echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401# On Suns, sometimes $CPP names a directory.
3402if test -n "$CPP" && test -d "$CPP"; then
3403 CPP=
3404fi
3405if test -z "$CPP"; then
3406 if test "${ac_cv_prog_CPP+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 # Double quotes because CPP needs to be expanded
3410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 do
3412 ac_preproc_ok=false
3413for ac_c_preproc_warn_flag in '' yes
3414do
3415 # Use a header file that comes with gcc, so configuring glibc
3416 # with a fresh cross-compiler works.
3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418 # <limits.h> exists even on freestanding compilers.
3419 # On the NeXT, cc -E runs the code through the compiler's parser,
3420 # not just through cpp. "Syntax error" is here to catch this case.
3421 cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h. */
3427#ifdef __STDC__
3428# include <limits.h>
3429#else
3430# include <assert.h>
3431#endif
3432 Syntax error
3433_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003434if { (ac_try="$ac_cpp conftest.$ac_ext"
3435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 else
3451 ac_cpp_err=
3452 fi
3453else
3454 ac_cpp_err=yes
3455fi
3456if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457 :
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Broken: fails on valid input.
3463continue
3464fi
Reid Spencera773bd52006-08-04 18:18:08 +00003465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466rm -f conftest.err conftest.$ac_ext
3467
Reid Spencera773bd52006-08-04 18:18:08 +00003468 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476#include <ac_nonexistent.h>
3477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003478if { (ac_try="$ac_cpp conftest.$ac_ext"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 else
3495 ac_cpp_err=
3496 fi
3497else
3498 ac_cpp_err=yes
3499fi
3500if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # Broken: success on invalid input.
3502continue
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 # Passes both tests.
3508ac_preproc_ok=:
3509break
3510fi
Reid Spencera773bd52006-08-04 18:18:08 +00003511
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512rm -f conftest.err conftest.$ac_ext
3513
3514done
3515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516rm -f conftest.err conftest.$ac_ext
3517if $ac_preproc_ok; then
3518 break
3519fi
3520
3521 done
3522 ac_cv_prog_CPP=$CPP
3523
3524fi
3525 CPP=$ac_cv_prog_CPP
3526else
3527 ac_cv_prog_CPP=$CPP
3528fi
Reid Spencera773bd52006-08-04 18:18:08 +00003529{ echo "$as_me:$LINENO: result: $CPP" >&5
3530echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003531ac_preproc_ok=false
3532for ac_c_preproc_warn_flag in '' yes
3533do
3534 # Use a header file that comes with gcc, so configuring glibc
3535 # with a fresh cross-compiler works.
3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537 # <limits.h> exists even on freestanding compilers.
3538 # On the NeXT, cc -E runs the code through the compiler's parser,
3539 # not just through cpp. "Syntax error" is here to catch this case.
3540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546#ifdef __STDC__
3547# include <limits.h>
3548#else
3549# include <assert.h>
3550#endif
3551 Syntax error
3552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003553if { (ac_try="$ac_cpp conftest.$ac_ext"
3554case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_c_preproc_warn_flag
3568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 else
3570 ac_cpp_err=
3571 fi
3572else
3573 ac_cpp_err=yes
3574fi
3575if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576 :
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 # Broken: fails on valid input.
3582continue
3583fi
Reid Spencera773bd52006-08-04 18:18:08 +00003584
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585rm -f conftest.err conftest.$ac_ext
3586
Reid Spencera773bd52006-08-04 18:18:08 +00003587 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 # can be detected and how.
3589 cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h. */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h. */
3595#include <ac_nonexistent.h>
3596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003597if { (ac_try="$ac_cpp conftest.$ac_ext"
3598case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601esac
3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 else
3614 ac_cpp_err=
3615 fi
3616else
3617 ac_cpp_err=yes
3618fi
3619if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Broken: success on invalid input.
3621continue
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 # Passes both tests.
3627ac_preproc_ok=:
3628break
3629fi
Reid Spencera773bd52006-08-04 18:18:08 +00003630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637 :
3638else
3639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&5
3641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3642See \`config.log' for more details." >&2;}
3643 { (exit 1); exit 1; }; }
3644fi
3645
John Criswell7a73b802003-06-30 21:59:07 +00003646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
John Criswell7a73b802003-06-30 21:59:07 +00003652
Reid Spencera773bd52006-08-04 18:18:08 +00003653{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3654echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003655if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
Reid Spencera773bd52006-08-04 18:18:08 +00003658 # Extract the first word of "grep ggrep" to use in msg output
3659if test -z "$GREP"; then
3660set dummy grep ggrep; ac_prog_name=$2
3661if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
Reid Spencera773bd52006-08-04 18:18:08 +00003664 ac_path_GREP_found=false
3665# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003671 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003674 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003675 # Check for GNU ac_path_GREP and select it if it is found.
3676 # Check for GNU $ac_path_GREP
3677case `"$ac_path_GREP" --version 2>&1` in
3678*GNU*)
3679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680*)
3681 ac_count=0
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 while :
3684 do
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'GREP' >> "conftest.nl"
3689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 ac_count=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_GREP="$ac_path_GREP"
3695 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003696 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3699 done
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701esac
3702
3703
3704 $ac_path_GREP_found && break 3
3705 done
3706done
3707
3708done
3709IFS=$as_save_IFS
3710
3711
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003712fi
Reid Spencera773bd52006-08-04 18:18:08 +00003713
3714GREP="$ac_cv_path_GREP"
3715if test -z "$GREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3719fi
3720
3721else
3722 ac_cv_path_GREP=$GREP
3723fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003724
John Criswell7a73b802003-06-30 21:59:07 +00003725
Reid Spencera773bd52006-08-04 18:18:08 +00003726fi
3727{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3728echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3729 GREP="$ac_cv_path_GREP"
3730
3731
3732{ echo "$as_me:$LINENO: checking for egrep" >&5
3733echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3734if test "${ac_cv_path_EGREP+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3738 then ac_cv_path_EGREP="$GREP -E"
3739 else
3740 # Extract the first word of "egrep" to use in msg output
3741if test -z "$EGREP"; then
3742set dummy egrep; ac_prog_name=$2
3743if test "${ac_cv_path_EGREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 ac_path_EGREP_found=false
3747# Loop through the user's path and test for each of PROGNAME-LIST
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_prog in egrep; do
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003756 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003757 # Check for GNU ac_path_EGREP and select it if it is found.
3758 # Check for GNU $ac_path_EGREP
3759case `"$ac_path_EGREP" --version 2>&1` in
3760*GNU*)
3761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762*)
3763 ac_count=0
3764 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765 while :
3766 do
3767 cat "conftest.in" "conftest.in" >"conftest.tmp"
3768 mv "conftest.tmp" "conftest.in"
3769 cp "conftest.in" "conftest.nl"
3770 echo 'EGREP' >> "conftest.nl"
3771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773 ac_count=`expr $ac_count + 1`
3774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775 # Best one so far, save it but keep looking for a better one
3776 ac_cv_path_EGREP="$ac_path_EGREP"
3777 ac_path_EGREP_max=$ac_count
3778 fi
3779 # 10*(2^10) chars as input seems more than enough
3780 test $ac_count -gt 10 && break
3781 done
3782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783esac
3784
3785
3786 $ac_path_EGREP_found && break 3
3787 done
3788done
3789
3790done
3791IFS=$as_save_IFS
3792
3793
3794fi
3795
3796EGREP="$ac_cv_path_EGREP"
3797if test -z "$EGREP"; then
3798 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3799echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3800 { (exit 1); exit 1; }; }
3801fi
3802
3803else
3804 ac_cv_path_EGREP=$EGREP
3805fi
3806
3807
3808 fi
3809fi
3810{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3811echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3812 EGREP="$ac_cv_path_EGREP"
3813
3814
3815{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3816echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003817if test "${ac_cv_header_stdc+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003821/* confdefs.h. */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003826#include <stdlib.h>
3827#include <stdarg.h>
3828#include <string.h>
3829#include <float.h>
3830
John Criswell0c38eaf2003-09-10 15:17:25 +00003831int
3832main ()
3833{
3834
3835 ;
3836 return 0;
3837}
John Criswell7a73b802003-06-30 21:59:07 +00003838_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003839rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003840if { (ac_try="$ac_compile"
3841case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3854 { (case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_try") 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003873 ac_cv_header_stdc=yes
3874else
3875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003876sed 's/^/| /' conftest.$ac_ext >&5
3877
Reid Spencera773bd52006-08-04 18:18:08 +00003878 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003879fi
Reid Spencera773bd52006-08-04 18:18:08 +00003880
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003882
3883if test $ac_cv_header_stdc = yes; then
3884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003886/* confdefs.h. */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003891#include <string.h>
3892
3893_ACEOF
3894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003895 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003896 :
3897else
3898 ac_cv_header_stdc=no
3899fi
3900rm -f conftest*
3901
3902fi
3903
3904if test $ac_cv_header_stdc = yes; then
3905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3906 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003912#include <stdlib.h>
3913
3914_ACEOF
3915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003916 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003917 :
3918else
3919 ac_cv_header_stdc=no
3920fi
3921rm -f conftest*
3922
3923fi
3924
3925if test $ac_cv_header_stdc = yes; then
3926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3927 if test "$cross_compiling" = yes; then
3928 :
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003936#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003937#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003938#if ((' ' & 0x0FF) == 0x020)
3939# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3940# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003942# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003943 (('a' <= (c) && (c) <= 'i') \
3944 || ('j' <= (c) && (c) <= 'r') \
3945 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003946# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947#endif
3948
3949#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950int
3951main ()
3952{
3953 int i;
3954 for (i = 0; i < 256; i++)
3955 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003956 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003957 return 2;
3958 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003959}
3960_ACEOF
3961rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003962if { (ac_try="$ac_link"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003972 { (case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
3976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 :
3982else
3983 echo "$as_me: program exited with status $ac_status" >&5
3984echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003985sed 's/^/| /' conftest.$ac_ext >&5
3986
John Criswell7a73b802003-06-30 21:59:07 +00003987( exit $ac_status )
3988ac_cv_header_stdc=no
3989fi
Reid Spencera773bd52006-08-04 18:18:08 +00003990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3991fi
3992
3993
John Criswell7a73b802003-06-30 21:59:07 +00003994fi
3995fi
Reid Spencera773bd52006-08-04 18:18:08 +00003996{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3997echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003998if test $ac_cv_header_stdc = yes; then
3999
4000cat >>confdefs.h <<\_ACEOF
4001#define STDC_HEADERS 1
4002_ACEOF
4003
4004fi
4005
Reid Spencera773bd52006-08-04 18:18:08 +00004006# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4017 inttypes.h stdint.h unistd.h
4018do
4019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031$ac_includes_default
4032
4033#include <$ac_header>
4034_ACEOF
4035rm -f conftest.$ac_objext
4036if { (ac_try="$ac_compile"
4037case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_compile") 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4050 { (case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004069 eval "$as_ac_Header=yes"
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 eval "$as_ac_Header=no"
4075fi
4076
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078fi
4079ac_res=`eval echo '${'$as_ac_Header'}'`
4080 { echo "$as_me:$LINENO: result: $ac_res" >&5
4081echo "${ECHO_T}$ac_res" >&6; }
4082if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085_ACEOF
4086
4087fi
4088
4089done
4090
4091
4092{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094if test "${ac_cv_c_bigendian+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 # See if sys/param.h defines the BYTE_ORDER macro.
4098cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104#include <sys/types.h>
4105#include <sys/param.h>
4106
4107int
4108main ()
4109{
Tanya Lattnercf067672008-01-17 05:57:22 +00004110#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004111 bogus endian macros
4112#endif
4113
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118rm -f conftest.$ac_objext
4119if { (ac_try="$ac_compile"
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_compile") 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133 { (case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_try") 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004152 # It does; now see whether it defined to BIG_ENDIAN or not.
4153cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
4159#include <sys/types.h>
4160#include <sys/param.h>
4161
4162int
4163main ()
4164{
4165#if BYTE_ORDER != BIG_ENDIAN
4166 not big endian
4167#endif
4168
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (ac_try="$ac_compile"
4175case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004207 ac_cv_c_bigendian=yes
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 ac_cv_c_bigendian=no
4213fi
4214
4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216else
4217 echo "$as_me: failed program was:" >&5
4218sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 # It does not; compile a test program.
4221if test "$cross_compiling" = yes; then
4222 # try to guess the endianness by grepping values into an object file
4223 ac_cv_c_bigendian=unknown
4224 cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
4230short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4231short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4232void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4233short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4234short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4235void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4236int
4237main ()
4238{
4239 _ascii (); _ebcdic ();
4240 ;
4241 return 0;
4242}
4243_ACEOF
4244rm -f conftest.$ac_objext
4245if { (ac_try="$ac_compile"
4246case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_compile") 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_try") 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest.$ac_objext'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004278 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4279 ac_cv_c_bigendian=yes
4280fi
4281if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4282 if test "$ac_cv_c_bigendian" = unknown; then
4283 ac_cv_c_bigendian=no
4284 else
4285 # finding both strings is unlikely to happen, but who knows?
4286 ac_cv_c_bigendian=unknown
4287 fi
4288fi
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293
4294fi
4295
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297else
4298 cat >conftest.$ac_ext <<_ACEOF
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
4304$ac_includes_default
4305int
4306main ()
4307{
4308
4309 /* Are we little or big endian? From Harbison&Steele. */
4310 union
4311 {
4312 long int l;
4313 char c[sizeof (long int)];
4314 } u;
4315 u.l = 1;
4316 return u.c[sizeof (long int) - 1] == 1;
4317
4318 ;
4319 return 0;
4320}
4321_ACEOF
4322rm -f conftest$ac_exeext
4323if { (ac_try="$ac_link"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_link") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333 { (case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_try") 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_c_bigendian=no
4343else
4344 echo "$as_me: program exited with status $ac_status" >&5
4345echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348( exit $ac_status )
4349ac_cv_c_bigendian=yes
4350fi
4351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4352fi
4353
4354
4355fi
4356
4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358fi
4359{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4360echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4361case $ac_cv_c_bigendian in
4362 yes)
4363 ENDIAN=big
4364 ;;
4365 no)
4366 ENDIAN=little
4367 ;;
4368 *)
4369 { { echo "$as_me:$LINENO: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4371echo "$as_me: error: unknown endianness
4372presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4373 { (exit 1); exit 1; }; } ;;
4374esac
4375
4376
4377if test "$cross_compiling" = yes; then
4378 LLVM_CROSS_COMPILING=1
4379
4380
4381{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4382echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4383if test "${ac_cv_build_exeext+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4387 ac_cv_build_exeext=.exe
4388else
4389 ac_build_prefix=${build_alias}-
4390
4391 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4392set dummy ${ac_build_prefix}gcc; ac_word=$2
4393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398 if test -n "$BUILD_CC"; then
4399 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004407 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 +00004408 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412done
4413done
4414IFS=$as_save_IFS
4415
4416fi
4417fi
4418BUILD_CC=$ac_cv_prog_BUILD_CC
4419if test -n "$BUILD_CC"; then
4420 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421echo "${ECHO_T}$BUILD_CC" >&6; }
4422else
4423 { echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6; }
4425fi
4426
4427
4428 if test -z "$BUILD_CC"; then
4429 # Extract the first word of "gcc", so it can be a program name with args.
4430set dummy gcc; ac_word=$2
4431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438else
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004445 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 +00004446 ac_cv_prog_BUILD_CC="gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450done
4451done
4452IFS=$as_save_IFS
4453
4454fi
4455fi
4456BUILD_CC=$ac_cv_prog_BUILD_CC
4457if test -n "$BUILD_CC"; then
4458 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4459echo "${ECHO_T}$BUILD_CC" >&6; }
4460else
4461 { echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6; }
4463fi
4464
4465
4466 if test -z "$BUILD_CC"; then
4467 # Extract the first word of "cc", so it can be a program name with args.
4468set dummy cc; ac_word=$2
4469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 if test -n "$BUILD_CC"; then
4475 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476else
4477 ac_prog_rejected=no
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4486 ac_prog_rejected=yes
4487 continue
4488 fi
4489 ac_cv_prog_BUILD_CC="cc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495IFS=$as_save_IFS
4496
4497if test $ac_prog_rejected = yes; then
4498 # We found a bogon in the path, so make sure we never use it.
4499 set dummy $ac_cv_prog_BUILD_CC
4500 shift
4501 if test $# != 0; then
4502 # We chose a different compiler from the bogus one.
4503 # However, it has the same basename, so the bogon will be chosen
4504 # first if we set BUILD_CC to just the basename; use the full file name.
4505 shift
4506 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4507 fi
4508fi
4509fi
4510fi
4511BUILD_CC=$ac_cv_prog_BUILD_CC
4512if test -n "$BUILD_CC"; then
4513 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4514echo "${ECHO_T}$BUILD_CC" >&6; }
4515else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6; }
4518fi
4519
4520
4521 fi
4522 fi
4523 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4524echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4525 { (exit 1); exit 1; }; }
4526 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4527 rm -f conftest*
4528 echo 'int main () { return 0; }' > conftest.$ac_ext
4529 ac_cv_build_exeext=
4530 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4531 (eval $ac_build_link) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; then
4535 for file in conftest.*; do
4536 case $file in
4537 *.c | *.o | *.obj) ;;
4538 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4539 esac
4540 done
4541 else
4542 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4543echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4544 { (exit 1); exit 1; }; }
4545 fi
4546 rm -f conftest*
4547 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4548fi
4549fi
4550
4551BUILD_EXEEXT=""
4552test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4553{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4554echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4555ac_build_exeext=$BUILD_EXEEXT
4556
4557else
4558 LLVM_CROSS_COMPILING=0
4559
4560fi
4561
Reid Spencer0b1e4662007-04-02 15:41:39 +00004562if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004563 cvsbuild="yes"
4564 optimize="no"
4565 CVSBUILD=CVSBUILD=1
4566
4567else
4568 cvsbuild="no"
4569 optimize="yes"
4570fi
4571
4572
4573# Check whether --enable-optimized was given.
4574if test "${enable_optimized+set}" = set; then
4575 enableval=$enable_optimized;
4576else
4577 enableval=$optimize
4578fi
4579
4580if test ${enableval} = "no" ; then
4581 ENABLE_OPTIMIZED=
4582
4583else
4584 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4585
4586fi
4587
4588# Check whether --enable-assertions was given.
4589if test "${enable_assertions+set}" = set; then
4590 enableval=$enable_assertions;
4591else
4592 enableval="yes"
4593fi
4594
4595if test ${enableval} = "yes" ; then
4596 DISABLE_ASSERTIONS=
4597
4598else
4599 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4600
4601fi
4602
David Greenea696d242007-06-28 19:36:08 +00004603# Check whether --enable-expensive-checks was given.
4604if test "${enable_expensive_checks+set}" = set; then
4605 enableval=$enable_expensive_checks;
4606else
4607 enableval="no"
4608fi
4609
4610if test ${enableval} = "yes" ; then
4611 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4612
4613 EXPENSIVE_CHECKS=yes
4614
4615else
4616 ENABLE_EXPENSIVE_CHECKS=
4617
4618 EXPENSIVE_CHECKS=no
4619
4620fi
4621
Reid Spencer8b2e1412006-11-17 03:32:33 +00004622# Check whether --enable-debug-runtime was given.
4623if test "${enable_debug_runtime+set}" = set; then
4624 enableval=$enable_debug_runtime;
4625else
4626 enableval=no
4627fi
4628
4629if test ${enableval} = "no" ; then
4630 DEBUG_RUNTIME=
4631
4632else
4633 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4634
4635fi
4636
Reid Spencera773bd52006-08-04 18:18:08 +00004637# Check whether --enable-jit was given.
4638if test "${enable_jit+set}" = set; then
4639 enableval=$enable_jit;
4640else
4641 enableval=default
4642fi
4643
4644if test ${enableval} = "no"
4645then
4646 JIT=
4647
4648else
4649 case "$llvm_cv_target_arch" in
4650 x86) TARGET_HAS_JIT=1
4651 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004652 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004653 ;;
4654 PowerPC) TARGET_HAS_JIT=1
4655 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004656 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004657 ;;
4658 Alpha) TARGET_HAS_JIT=1
4659 ;;
4660 IA64) TARGET_HAS_JIT=0
4661 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004662 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004663 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004664 Mips) TARGET_HAS_JIT=0
4665 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004666 PIC16) TARGET_HAS_JIT=0
4667 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004668 *) TARGET_HAS_JIT=0
4669 ;;
4670 esac
4671fi
4672
4673# Check whether --enable-doxygen was given.
4674if test "${enable_doxygen+set}" = set; then
4675 enableval=$enable_doxygen;
4676else
4677 enableval=default
4678fi
4679
4680case "$enableval" in
4681 yes) ENABLE_DOXYGEN=1
4682 ;;
4683 no) ENABLE_DOXYGEN=0
4684 ;;
4685 default) ENABLE_DOXYGEN=0
4686 ;;
4687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4688echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4689 { (exit 1); exit 1; }; } ;;
4690esac
4691
4692# Check whether --enable-threads was given.
4693if test "${enable_threads+set}" = set; then
4694 enableval=$enable_threads;
4695else
Reid Spencer65c5d752006-11-05 17:08:18 +00004696 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004697fi
4698
4699case "$enableval" in
4700 yes) ENABLE_THREADS=1
4701 ;;
4702 no) ENABLE_THREADS=0
4703 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004704 default) ENABLE_THREADS=1
4705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004706 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4707echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4708 { (exit 1); exit 1; }; } ;;
4709esac
4710
4711cat >>confdefs.h <<_ACEOF
4712#define ENABLE_THREADS $ENABLE_THREADS
4713_ACEOF
4714
4715
Reid Spencer89b0d992006-12-16 22:07:52 +00004716# Check whether --enable-pic was given.
4717if test "${enable_pic+set}" = set; then
4718 enableval=$enable_pic;
4719else
4720 enableval=default
4721fi
4722
4723case "$enableval" in
4724 yes) ENABLE_PIC=1
4725 ;;
4726 no) ENABLE_PIC=0
4727 ;;
4728 default) ENABLE_PIC=0
4729 ;;
4730 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4731echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4732 { (exit 1); exit 1; }; } ;;
4733esac
4734
4735cat >>confdefs.h <<_ACEOF
4736#define ENABLE_PIC $ENABLE_PIC
4737_ACEOF
4738
4739
Reid Spencera773bd52006-08-04 18:18:08 +00004740TARGETS_TO_BUILD=""
4741# Check whether --enable-targets was given.
4742if test "${enable_targets+set}" = set; then
4743 enableval=$enable_targets;
4744else
4745 enableval=all
4746fi
4747
4748case "$enableval" in
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004749 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL CppBackend PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004750 host-only)
4751 case "$llvm_cv_target_arch" in
4752 x86) TARGETS_TO_BUILD="X86" ;;
4753 x86_64) TARGETS_TO_BUILD="X86" ;;
4754 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4755 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4756 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4757 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004758 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004759 Mips) TARGETS_TO_BUILD="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004760 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004761 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004762 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4763echo "$as_me: error: Can not set target to build" >&2;}
4764 { (exit 1); exit 1; }; } ;;
4765 esac
4766 ;;
4767 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4768 case "$a_target" in
4769 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4770 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4771 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4772 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4773 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4774 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004775 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004776 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004777 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004778 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004779 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4780 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004781 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004782 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4783echo "$as_me: error: Unrecognized target $a_target" >&2;}
4784 { (exit 1); exit 1; }; } ;;
4785 esac
4786 done
4787 ;;
4788esac
Reid Spencera773bd52006-08-04 18:18:08 +00004789TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4790
4791
Reid Spencer65c5d752006-11-05 17:08:18 +00004792# Check whether --enable-cbe-printf-a was given.
4793if test "${enable_cbe_printf_a+set}" = set; then
4794 enableval=$enable_cbe_printf_a;
4795else
4796 enableval=default
4797fi
4798
4799case "$enableval" in
4800 yes) ENABLE_CBE_PRINTF_A=1
4801 ;;
4802 no) ENABLE_CBE_PRINTF_A=0
4803 ;;
4804 default) ENABLE_CBE_PRINTF_A=1
4805 ;;
4806 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4807echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4809esac
4810
4811cat >>confdefs.h <<_ACEOF
4812#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4813_ACEOF
4814
4815
Reid Spencera773bd52006-08-04 18:18:08 +00004816
4817# Check whether --with-llvmgccdir was given.
4818if test "${with_llvmgccdir+set}" = set; then
4819 withval=$with_llvmgccdir;
4820else
4821 withval=default
4822fi
4823
4824case "$withval" in
4825 default) WITH_LLVMGCCDIR=default ;;
4826 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4828echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4830esac
4831
4832
Devang Patel5d28b882007-12-04 22:54:47 +00004833# Check whether --with-llvmgcc was given.
4834if test "${with_llvmgcc+set}" = set; then
4835 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4836 WITH_LLVMGCCDIR=""
4837fi
4838
4839
4840
4841# Check whether --with-llvmgxx was given.
4842if test "${with_llvmgxx+set}" = set; then
4843 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4844 WITH_LLVMGCCDIR=""
4845fi
4846
4847
4848if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4849 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4850echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4851 { (exit 1); exit 1; }; };
4852fi
4853
4854if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4855 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4856echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4857 { (exit 1); exit 1; }; };
4858fi
4859
4860
Reid Spencera773bd52006-08-04 18:18:08 +00004861# Check whether --with-extra-options was given.
4862if test "${with_extra_options+set}" = set; then
4863 withval=$with_extra_options;
4864else
4865 withval=default
4866fi
4867
4868case "$withval" in
4869 default) EXTRA_OPTIONS= ;;
4870 *) EXTRA_OPTIONS=$withval ;;
4871esac
4872EXTRA_OPTIONS=$EXTRA_OPTIONS
4873
4874
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004875# Check whether --enable-bindings was given.
4876if test "${enable_bindings+set}" = set; then
4877 enableval=$enable_bindings;
4878else
4879 enableval=default
4880fi
4881
4882BINDINGS_TO_BUILD=""
4883case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004884 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004885 all ) BINDINGS_TO_BUILD="ocaml" ;;
4886 none | no) BINDINGS_TO_BUILD="" ;;
4887 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4888 case "$a_binding" in
4889 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4890 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4891echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893 esac
4894 done
4895 ;;
4896esac
4897
Reid Spencera773bd52006-08-04 18:18:08 +00004898
Gordon Henriksenf0915682007-10-02 16:42:22 +00004899# Check whether --with-ocaml-libdir was given.
4900if test "${with_ocaml_libdir+set}" = set; then
4901 withval=$with_ocaml_libdir;
4902else
4903 withval=auto
4904fi
4905
4906case "$withval" in
4907 auto) with_ocaml_libdir="$withval" ;;
4908 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4909 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4910echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4911 { (exit 1); exit 1; }; } ;;
4912esac
4913
4914
Reid Spencera773bd52006-08-04 18:18:08 +00004915ac_ext=c
4916ac_cpp='$CPP $CPPFLAGS'
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4921echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4922# On Suns, sometimes $CPP names a directory.
4923if test -n "$CPP" && test -d "$CPP"; then
4924 CPP=
4925fi
4926if test -z "$CPP"; then
4927 if test "${ac_cv_prog_CPP+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930 # Double quotes because CPP needs to be expanded
4931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4932 do
4933 ac_preproc_ok=false
4934for ac_c_preproc_warn_flag in '' yes
4935do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
4948#ifdef __STDC__
4949# include <limits.h>
4950#else
4951# include <assert.h>
4952#endif
4953 Syntax error
4954_ACEOF
4955if { (ac_try="$ac_cpp conftest.$ac_ext"
4956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004978 :
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Broken: fails on valid input.
4984continue
4985fi
4986
4987rm -f conftest.err conftest.$ac_ext
4988
4989 # OK, works on sane cases. Now check whether nonexistent headers
4990 # can be detected and how.
4991 cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997#include <ac_nonexistent.h>
4998_ACEOF
4999if { (ac_try="$ac_cpp conftest.$ac_ext"
5000case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015 else
5016 ac_cpp_err=
5017 fi
5018else
5019 ac_cpp_err=yes
5020fi
5021if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005022 # Broken: success on invalid input.
5023continue
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 # Passes both tests.
5029ac_preproc_ok=:
5030break
5031fi
5032
5033rm -f conftest.err conftest.$ac_ext
5034
5035done
5036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037rm -f conftest.err conftest.$ac_ext
5038if $ac_preproc_ok; then
5039 break
5040fi
5041
5042 done
5043 ac_cv_prog_CPP=$CPP
5044
5045fi
5046 CPP=$ac_cv_prog_CPP
5047else
5048 ac_cv_prog_CPP=$CPP
5049fi
5050{ echo "$as_me:$LINENO: result: $CPP" >&5
5051echo "${ECHO_T}$CPP" >&6; }
5052ac_preproc_ok=false
5053for ac_c_preproc_warn_flag in '' yes
5054do
5055 # Use a header file that comes with gcc, so configuring glibc
5056 # with a fresh cross-compiler works.
5057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058 # <limits.h> exists even on freestanding compilers.
5059 # On the NeXT, cc -E runs the code through the compiler's parser,
5060 # not just through cpp. "Syntax error" is here to catch this case.
5061 cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h. */
5067#ifdef __STDC__
5068# include <limits.h>
5069#else
5070# include <assert.h>
5071#endif
5072 Syntax error
5073_ACEOF
5074if { (ac_try="$ac_cpp conftest.$ac_ext"
5075case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078esac
5079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_c_preproc_warn_flag
5089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5090 else
5091 ac_cpp_err=
5092 fi
5093else
5094 ac_cpp_err=yes
5095fi
5096if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005097 :
5098else
5099 echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 # Broken: fails on valid input.
5103continue
5104fi
5105
5106rm -f conftest.err conftest.$ac_ext
5107
5108 # OK, works on sane cases. Now check whether nonexistent headers
5109 # can be detected and how.
5110 cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if { (ac_try="$ac_cpp conftest.$ac_ext"
5119case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122esac
5123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_c_preproc_warn_flag
5133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134 else
5135 ac_cpp_err=
5136 fi
5137else
5138 ac_cpp_err=yes
5139fi
5140if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005141 # Broken: success on invalid input.
5142continue
5143else
5144 echo "$as_me: failed program was:" >&5
5145sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 # Passes both tests.
5148ac_preproc_ok=:
5149break
5150fi
5151
5152rm -f conftest.err conftest.$ac_ext
5153
5154done
5155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156rm -f conftest.err conftest.$ac_ext
5157if $ac_preproc_ok; then
5158 :
5159else
5160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5161See \`config.log' for more details." >&5
5162echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5163See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5165fi
5166
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172
5173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178if test -n "$ac_tool_prefix"; then
5179 for ac_prog in gcc
5180 do
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185if test "${ac_cv_prog_CC+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -n "$CC"; then
5189 ac_cv_prog_CC="$CC" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005197 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 +00005198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208CC=$ac_cv_prog_CC
5209if test -n "$CC"; then
5210 { echo "$as_me:$LINENO: result: $CC" >&5
5211echo "${ECHO_T}$CC" >&6; }
5212else
5213 { echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6; }
5215fi
5216
5217
5218 test -n "$CC" && break
5219 done
5220fi
5221if test -z "$CC"; then
5222 ac_ct_CC=$CC
5223 for ac_prog in gcc
5224do
5225 # Extract the first word of "$ac_prog", so it can be a program name with args.
5226set dummy $ac_prog; ac_word=$2
5227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 if test -n "$ac_ct_CC"; then
5233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005241 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 +00005242 ac_cv_prog_ac_ct_CC="$ac_prog"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246done
5247done
5248IFS=$as_save_IFS
5249
5250fi
5251fi
5252ac_ct_CC=$ac_cv_prog_ac_ct_CC
5253if test -n "$ac_ct_CC"; then
5254 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5255echo "${ECHO_T}$ac_ct_CC" >&6; }
5256else
5257 { echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6; }
5259fi
5260
5261
5262 test -n "$ac_ct_CC" && break
5263done
5264
5265 if test "x$ac_ct_CC" = x; then
5266 CC=""
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269yes:)
5270{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271whose name does not start with the host triplet. If you think this
5272configuration is useful to you, please write to autoconf@gnu.org." >&5
5273echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274whose name does not start with the host triplet. If you think this
5275configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276ac_tool_warned=yes ;;
5277esac
5278 CC=$ac_ct_CC
5279 fi
5280fi
5281
5282
5283test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5284See \`config.log' for more details." >&5
5285echo "$as_me: error: no acceptable C compiler found in \$PATH
5286See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5288
5289# Provide some information about the compiler.
5290echo "$as_me:$LINENO: checking for C compiler version" >&5
5291ac_compiler=`set X $ac_compile; echo $2`
5292{ (ac_try="$ac_compiler --version >&5"
5293case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compiler --version >&5") 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }
5302{ (ac_try="$ac_compiler -v >&5"
5303case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306esac
5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler -v >&5") 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312{ (ac_try="$ac_compiler -V >&5"
5313case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316esac
5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compiler -V >&5") 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }
5322
5323{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5324echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5325if test "${ac_cv_c_compiler_gnu+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334
5335int
5336main ()
5337{
5338#ifndef __GNUC__
5339 choke me
5340#endif
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364esac
5365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_try") 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005380 ac_compiler_gnu=yes
5381else
5382 echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ac_compiler_gnu=no
5386fi
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389ac_cv_c_compiler_gnu=$ac_compiler_gnu
5390
5391fi
5392{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5393echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5394GCC=`test $ac_compiler_gnu = yes && echo yes`
5395ac_test_CFLAGS=${CFLAGS+set}
5396ac_save_CFLAGS=$CFLAGS
5397{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5398echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5399if test "${ac_cv_prog_cc_g+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 ac_save_c_werror_flag=$ac_c_werror_flag
5403 ac_c_werror_flag=yes
5404 ac_cv_prog_cc_g=no
5405 CFLAGS="-g"
5406 cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h. */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h. */
5412
5413int
5414main ()
5415{
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421rm -f conftest.$ac_objext
5422if { (ac_try="$ac_compile"
5423case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426esac
5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005455 ac_cv_prog_cc_g=yes
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 CFLAGS=""
5461 cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h. */
5467
5468int
5469main ()
5470{
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5476rm -f conftest.$ac_objext
5477if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005510 :
5511else
5512 echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_c_werror_flag=$ac_save_c_werror_flag
5516 CFLAGS="-g"
5517 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523
5524int
5525main ()
5526{
5527
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532rm -f conftest.$ac_objext
5533if { (ac_try="$ac_compile"
5534case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5547 { (case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_try") 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_try") 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005566 ac_cv_prog_cc_g=yes
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571
5572fi
5573
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575fi
5576
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_c_werror_flag=$ac_save_c_werror_flag
5582fi
5583{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5584echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5585if test "$ac_test_CFLAGS" = set; then
5586 CFLAGS=$ac_save_CFLAGS
5587elif test $ac_cv_prog_cc_g = yes; then
5588 if test "$GCC" = yes; then
5589 CFLAGS="-g -O2"
5590 else
5591 CFLAGS="-g"
5592 fi
5593else
5594 if test "$GCC" = yes; then
5595 CFLAGS="-O2"
5596 else
5597 CFLAGS=
5598 fi
5599fi
5600{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5601echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5602if test "${ac_cv_prog_cc_c89+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 ac_cv_prog_cc_c89=no
5606ac_save_CC=$CC
5607cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613#include <stdarg.h>
5614#include <stdio.h>
5615#include <sys/types.h>
5616#include <sys/stat.h>
5617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5618struct buf { int x; };
5619FILE * (*rcsopen) (struct buf *, struct stat *, int);
5620static char *e (p, i)
5621 char **p;
5622 int i;
5623{
5624 return p[i];
5625}
5626static char *f (char * (*g) (char **, int), char **p, ...)
5627{
5628 char *s;
5629 va_list v;
5630 va_start (v,p);
5631 s = g (p, va_arg (v,int));
5632 va_end (v);
5633 return s;
5634}
5635
5636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5637 function prototypes and stuff, but not '\xHH' hex character constants.
5638 These don't provoke an error unfortunately, instead are silently treated
5639 as 'x'. The following induces an error, until -std is added to get
5640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5641 array size at least. It's necessary to write '\x00'==0 to get something
5642 that's true only with -std. */
5643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5644
5645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5646 inside strings and character constants. */
5647#define FOO(x) 'x'
5648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5649
5650int test (int i, double x);
5651struct s1 {int (*f) (int a);};
5652struct s2 {int (*f) (double a);};
5653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5654int argc;
5655char **argv;
5656int
5657main ()
5658{
5659return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5660 ;
5661 return 0;
5662}
5663_ACEOF
5664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5666do
5667 CC="$ac_save_CC $ac_arg"
5668 rm -f conftest.$ac_objext
5669if { (ac_try="$ac_compile"
5670case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5683 { (case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_try") 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005702 ac_cv_prog_cc_c89=$ac_arg
5703else
5704 echo "$as_me: failed program was:" >&5
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707
5708fi
5709
5710rm -f core conftest.err conftest.$ac_objext
5711 test "x$ac_cv_prog_cc_c89" != "xno" && break
5712done
5713rm -f conftest.$ac_ext
5714CC=$ac_save_CC
5715
5716fi
5717# AC_CACHE_VAL
5718case "x$ac_cv_prog_cc_c89" in
5719 x)
5720 { echo "$as_me:$LINENO: result: none needed" >&5
5721echo "${ECHO_T}none needed" >&6; } ;;
5722 xno)
5723 { echo "$as_me:$LINENO: result: unsupported" >&5
5724echo "${ECHO_T}unsupported" >&6; } ;;
5725 *)
5726 CC="$CC $ac_cv_prog_cc_c89"
5727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5728echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5729esac
5730
5731
5732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737
5738ac_ext=cpp
5739ac_cpp='$CXXCPP $CPPFLAGS'
5740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743if test -z "$CXX"; then
5744 if test -n "$CCC"; then
5745 CXX=$CCC
5746 else
5747 if test -n "$ac_tool_prefix"; then
5748 for ac_prog in g++
5749 do
5750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754if test "${ac_cv_prog_CXX+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 if test -n "$CXX"; then
5758 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005766 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 +00005767 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771done
5772done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777CXX=$ac_cv_prog_CXX
5778if test -n "$CXX"; then
5779 { echo "$as_me:$LINENO: result: $CXX" >&5
5780echo "${ECHO_T}$CXX" >&6; }
5781else
5782 { echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6; }
5784fi
5785
5786
5787 test -n "$CXX" && break
5788 done
5789fi
5790if test -z "$CXX"; then
5791 ac_ct_CXX=$CXX
5792 for ac_prog in g++
5793do
5794 # Extract the first word of "$ac_prog", so it can be a program name with args.
5795set dummy $ac_prog; ac_word=$2
5796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801 if test -n "$ac_ct_CXX"; then
5802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005810 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 +00005811 ac_cv_prog_ac_ct_CXX="$ac_prog"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5822if test -n "$ac_ct_CXX"; then
5823 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5824echo "${ECHO_T}$ac_ct_CXX" >&6; }
5825else
5826 { echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6; }
5828fi
5829
5830
5831 test -n "$ac_ct_CXX" && break
5832done
5833
5834 if test "x$ac_ct_CXX" = x; then
5835 CXX="g++"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838yes:)
5839{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5840whose name does not start with the host triplet. If you think this
5841configuration is useful to you, please write to autoconf@gnu.org." >&5
5842echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5843whose name does not start with the host triplet. If you think this
5844configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5845ac_tool_warned=yes ;;
5846esac
5847 CXX=$ac_ct_CXX
5848 fi
5849fi
5850
5851 fi
5852fi
5853# Provide some information about the compiler.
5854echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5855ac_compiler=`set X $ac_compile; echo $2`
5856{ (ac_try="$ac_compiler --version >&5"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_compiler --version >&5") 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }
5866{ (ac_try="$ac_compiler -v >&5"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler -v >&5") 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876{ (ac_try="$ac_compiler -V >&5"
5877case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880esac
5881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compiler -V >&5") 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }
5886
5887{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5888echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5889if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898
5899int
5900main ()
5901{
5902#ifndef __GNUC__
5903 choke me
5904#endif
5905
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910rm -f conftest.$ac_objext
5911if { (ac_try="$ac_compile"
5912case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compile") 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5925 { (case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928esac
5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_try") 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005944 ac_compiler_gnu=yes
5945else
5946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ac_compiler_gnu=no
5950fi
5951
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5954
5955fi
5956{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5957echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5958GXX=`test $ac_compiler_gnu = yes && echo yes`
5959ac_test_CXXFLAGS=${CXXFLAGS+set}
5960ac_save_CXXFLAGS=$CXXFLAGS
5961{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5962echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5963if test "${ac_cv_prog_cxx_g+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965else
5966 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5967 ac_cxx_werror_flag=yes
5968 ac_cv_prog_cxx_g=no
5969 CXXFLAGS="-g"
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976
5977int
5978main ()
5979{
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext
5986if { (ac_try="$ac_compile"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006019 ac_cv_prog_cxx_g=yes
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 CXXFLAGS=""
6025 cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031
6032int
6033main ()
6034{
6035
6036 ;
6037 return 0;
6038}
6039_ACEOF
6040rm -f conftest.$ac_objext
6041if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006074 :
6075else
6076 echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6080 CXXFLAGS="-g"
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087
6088int
6089main ()
6090{
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext
6097if { (ac_try="$ac_compile"
6098case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compile") 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; } &&
6120 { ac_try='test -s conftest.$ac_objext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006130 ac_cv_prog_cxx_g=yes
6131else
6132 echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135
6136fi
6137
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6146fi
6147{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6148echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6149if test "$ac_test_CXXFLAGS" = set; then
6150 CXXFLAGS=$ac_save_CXXFLAGS
6151elif test $ac_cv_prog_cxx_g = yes; then
6152 if test "$GXX" = yes; then
6153 CXXFLAGS="-g -O2"
6154 else
6155 CXXFLAGS="-g"
6156 fi
6157else
6158 if test "$GXX" = yes; then
6159 CXXFLAGS="-O2"
6160 else
6161 CXXFLAGS=
6162 fi
6163fi
6164ac_ext=c
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170{ echo "$as_me:$LINENO: checking " >&5
6171echo $ECHO_N "checking ... $ECHO_C" >&6; }
6172if test "${ac_cv_has_flex+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175 for ac_prog in flex lex
6176do
6177 # Extract the first word of "$ac_prog", so it can be a program name with args.
6178set dummy $ac_prog; ac_word=$2
6179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181if test "${ac_cv_prog_LEX+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 if test -n "$LEX"; then
6185 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006193 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 +00006194 ac_cv_prog_LEX="$ac_prog"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204LEX=$ac_cv_prog_LEX
6205if test -n "$LEX"; then
6206 { echo "$as_me:$LINENO: result: $LEX" >&5
6207echo "${ECHO_T}$LEX" >&6; }
6208else
6209 { echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6; }
6211fi
6212
6213
6214 test -n "$LEX" && break
6215done
6216test -n "$LEX" || LEX=":"
6217
Tanya Lattnercf067672008-01-17 05:57:22 +00006218if test -z "$LEXLIB"
6219then
6220 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6221echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6222if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 ac_check_lib_save_LIBS=$LIBS
6226LIBS="-lfl $LIBS"
6227cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
6233
6234/* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6237#ifdef __cplusplus
6238extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006239#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006240char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006241int
Tanya Lattnercf067672008-01-17 05:57:22 +00006242main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006243{
Tanya Lattnercf067672008-01-17 05:57:22 +00006244return yywrap ();
6245 ;
6246 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006247}
Reid Spencera773bd52006-08-04 18:18:08 +00006248_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006249rm -f conftest.$ac_objext conftest$ac_exeext
6250if { (ac_try="$ac_link"
6251case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254esac
6255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest$ac_exeext'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_lib_fl_yywrap=yes
6284else
6285 echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 ac_cv_lib_fl_yywrap=no
6289fi
6290
6291rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293LIBS=$ac_check_lib_save_LIBS
6294fi
6295{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6296echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6297if test $ac_cv_lib_fl_yywrap = yes; then
6298 LEXLIB="-lfl"
6299else
6300 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6301echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6302if test "${ac_cv_lib_l_yywrap+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305 ac_check_lib_save_LIBS=$LIBS
6306LIBS="-ll $LIBS"
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313
6314/* Override any GCC internal prototype to avoid an error.
6315 Use char because int might match the return type of a GCC
6316 builtin and then its argument prototype would still apply. */
6317#ifdef __cplusplus
6318extern "C"
6319#endif
6320char yywrap ();
6321int
6322main ()
6323{
6324return yywrap ();
6325 ;
6326 return 0;
6327}
6328_ACEOF
6329rm -f conftest.$ac_objext conftest$ac_exeext
6330if { (ac_try="$ac_link"
6331case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_link") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_try") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_lib_l_yywrap=yes
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 ac_cv_lib_l_yywrap=no
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373LIBS=$ac_check_lib_save_LIBS
6374fi
6375{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6376echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6377if test $ac_cv_lib_l_yywrap = yes; then
6378 LEXLIB="-ll"
6379fi
6380
6381fi
6382
6383fi
6384
6385if test "x$LEX" != "x:"; then
6386 { echo "$as_me:$LINENO: checking lex output file root" >&5
6387echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6388if test "${ac_cv_prog_lex_root+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 # The minimal lex program is just a single line: %%. But some broken lexes
6392# (Solaris, I think it was) want two %% lines, so accommodate them.
6393cat >conftest.l <<_ACEOF
6394%%
6395%%
6396_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006397{ (ac_try="$LEX conftest.l"
6398case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$LEX conftest.l") 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6407if test -f lex.yy.c; then
6408 ac_cv_prog_lex_root=lex.yy
6409elif test -f lexyy.c; then
6410 ac_cv_prog_lex_root=lexyy
6411else
6412 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6413echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6414 { (exit 1); exit 1; }; }
6415fi
6416fi
6417{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6418echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006419rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006420LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6421
Scott Michel96dcd2b2007-12-05 21:24:02 +00006422{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6423echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6424if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006428# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006429# not all implementations provide the %pointer and %array declarations.
6430ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006431echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006432ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006433LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006434cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006435`cat $LEX_OUTPUT_ROOT.c`
6436_ACEOF
6437rm -f conftest.$ac_objext conftest$ac_exeext
6438if { (ac_try="$ac_link"
6439case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006444 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006445 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006450 (exit $ac_status); } &&
6451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6452 { (case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455esac
6456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_try") 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest$ac_exeext'
6462 { (case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_try") 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006471 ac_cv_prog_lex_yytext_pointer=yes
6472else
6473 echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476
6477fi
6478
Tanya Lattnercf067672008-01-17 05:57:22 +00006479rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006480 conftest$ac_exeext conftest.$ac_ext
6481LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006482rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006483
6484fi
6485{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6486echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6487if test $ac_cv_prog_lex_yytext_pointer = yes; then
6488
6489cat >>confdefs.h <<\_ACEOF
6490#define YYTEXT_POINTER 1
6491_ACEOF
6492
6493fi
6494
6495fi
6496
6497fi
6498{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6499echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6500if test "$LEX" != "flex"; then
6501 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6502echo "$as_me: error: flex not found but required" >&2;}
6503 { (exit 1); exit 1; }; }
6504else
6505 FLEX=flex
6506
6507fi
6508
6509{ echo "$as_me:$LINENO: checking " >&5
6510echo $ECHO_N "checking ... $ECHO_C" >&6; }
6511if test "${llvm_cv_has_bison+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 for ac_prog in 'bison -y' byacc
6515do
6516 # Extract the first word of "$ac_prog", so it can be a program name with args.
6517set dummy $ac_prog; ac_word=$2
6518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520if test "${ac_cv_prog_YACC+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 if test -n "$YACC"; then
6524 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006532 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 +00006533 ac_cv_prog_YACC="$ac_prog"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537done
6538done
6539IFS=$as_save_IFS
6540
6541fi
6542fi
6543YACC=$ac_cv_prog_YACC
6544if test -n "$YACC"; then
6545 { echo "$as_me:$LINENO: result: $YACC" >&5
6546echo "${ECHO_T}$YACC" >&6; }
6547else
6548 { echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; }
6550fi
6551
6552
6553 test -n "$YACC" && break
6554done
6555test -n "$YACC" || YACC="yacc"
6556
6557fi
6558{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6559echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6560if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006561
6562 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6563echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006564else
6565 BISON=bison
6566
6567fi
6568
6569{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6570echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6571if test "${lt_cv_path_NM+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 if test -n "$NM"; then
6575 # Let the user override the test.
6576 lt_cv_path_NM="$NM"
6577else
6578 lt_nm_to_check="${ac_tool_prefix}nm"
6579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6580 lt_nm_to_check="$lt_nm_to_check nm"
6581 fi
6582 for lt_tmp_nm in $lt_nm_to_check; do
6583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6585 IFS="$lt_save_ifs"
6586 test -z "$ac_dir" && ac_dir=.
6587 tmp_nm="$ac_dir/$lt_tmp_nm"
6588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6589 # Check to see if the nm accepts a BSD-compat flag.
6590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6591 # nm: unknown option "B" ignored
6592 # Tru64's nm complains that /dev/null is an invalid object file
6593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6594 */dev/null* | *'Invalid file or object type'*)
6595 lt_cv_path_NM="$tmp_nm -B"
6596 break
6597 ;;
6598 *)
6599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6600 */dev/null*)
6601 lt_cv_path_NM="$tmp_nm -p"
6602 break
6603 ;;
6604 *)
6605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6606 continue # so that we can try to find one that supports BSD flags
6607 ;;
6608 esac
6609 ;;
6610 esac
6611 fi
6612 done
6613 IFS="$lt_save_ifs"
6614 done
6615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6616fi
6617fi
6618{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6619echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6620NM="$lt_cv_path_NM"
6621
6622
6623
6624{ echo "$as_me:$LINENO: checking for GNU make" >&5
6625echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6626if test "${llvm_cv_gnu_make_command+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 llvm_cv_gnu_make_command=''
6630 for a in "$MAKE" make gmake gnumake ; do
6631 if test -z "$a" ; then continue ; fi ;
6632 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6633 then
6634 llvm_cv_gnu_make_command=$a ;
6635 break;
6636 fi
6637 done
6638fi
6639{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6640echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6641 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6642 ifGNUmake='' ;
6643 else
6644 ifGNUmake='#' ;
6645 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6646echo "${ECHO_T}\"Not found\"" >&6; };
6647 fi
6648
6649
6650{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6651echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6652LN_S=$as_ln_s
6653if test "$LN_S" = "ln -s"; then
6654 { echo "$as_me:$LINENO: result: yes" >&5
6655echo "${ECHO_T}yes" >&6; }
6656else
6657 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6658echo "${ECHO_T}no, using $LN_S" >&6; }
6659fi
6660
6661# Extract the first word of "cmp", so it can be a program name with args.
6662set dummy cmp; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_path_CMP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 case $CMP in
6669 [\\/]* | ?:[\\/]*)
6670 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6671 ;;
6672 *)
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006679 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 +00006680 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685done
6686IFS=$as_save_IFS
6687
6688 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6689 ;;
6690esac
6691fi
6692CMP=$ac_cv_path_CMP
6693if test -n "$CMP"; then
6694 { echo "$as_me:$LINENO: result: $CMP" >&5
6695echo "${ECHO_T}$CMP" >&6; }
6696else
6697 { echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; }
6699fi
6700
6701
6702# Extract the first word of "cp", so it can be a program name with args.
6703set dummy cp; ac_word=$2
6704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706if test "${ac_cv_path_CP+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 case $CP in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6712 ;;
6713 *)
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006720 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 +00006721 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725done
6726done
6727IFS=$as_save_IFS
6728
6729 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6730 ;;
6731esac
6732fi
6733CP=$ac_cv_path_CP
6734if test -n "$CP"; then
6735 { echo "$as_me:$LINENO: result: $CP" >&5
6736echo "${ECHO_T}$CP" >&6; }
6737else
6738 { echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6; }
6740fi
6741
6742
6743# Extract the first word of "date", so it can be a program name with args.
6744set dummy date; ac_word=$2
6745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747if test "${ac_cv_path_DATE+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750 case $DATE in
6751 [\\/]* | ?:[\\/]*)
6752 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6753 ;;
6754 *)
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006761 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 +00006762 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766done
6767done
6768IFS=$as_save_IFS
6769
6770 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6771 ;;
6772esac
6773fi
6774DATE=$ac_cv_path_DATE
6775if test -n "$DATE"; then
6776 { echo "$as_me:$LINENO: result: $DATE" >&5
6777echo "${ECHO_T}$DATE" >&6; }
6778else
6779 { echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6; }
6781fi
6782
6783
6784# Extract the first word of "find", so it can be a program name with args.
6785set dummy find; ac_word=$2
6786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_path_FIND+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791 case $FIND in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6794 ;;
6795 *)
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006802 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 +00006803 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6812 ;;
6813esac
6814fi
6815FIND=$ac_cv_path_FIND
6816if test -n "$FIND"; then
6817 { echo "$as_me:$LINENO: result: $FIND" >&5
6818echo "${ECHO_T}$FIND" >&6; }
6819else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824
6825# Extract the first word of "grep", so it can be a program name with args.
6826set dummy grep; ac_word=$2
6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829if test "${ac_cv_path_GREP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832 case $GREP in
6833 [\\/]* | ?:[\\/]*)
6834 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6835 ;;
6836 *)
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006843 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 +00006844 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6853 ;;
6854esac
6855fi
6856GREP=$ac_cv_path_GREP
6857if test -n "$GREP"; then
6858 { echo "$as_me:$LINENO: result: $GREP" >&5
6859echo "${ECHO_T}$GREP" >&6; }
6860else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6; }
6863fi
6864
6865
6866# Extract the first word of "mkdir", so it can be a program name with args.
6867set dummy mkdir; ac_word=$2
6868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_MKDIR+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 case $MKDIR in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006884 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 +00006885 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6894 ;;
6895esac
6896fi
6897MKDIR=$ac_cv_path_MKDIR
6898if test -n "$MKDIR"; then
6899 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6900echo "${ECHO_T}$MKDIR" >&6; }
6901else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
6904fi
6905
6906
6907# Extract the first word of "mv", so it can be a program name with args.
6908set dummy mv; ac_word=$2
6909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911if test "${ac_cv_path_MV+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 case $MV in
6915 [\\/]* | ?:[\\/]*)
6916 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6917 ;;
6918 *)
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006925 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 +00006926 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
6931done
6932IFS=$as_save_IFS
6933
6934 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6935 ;;
6936esac
6937fi
6938MV=$ac_cv_path_MV
6939if test -n "$MV"; then
6940 { echo "$as_me:$LINENO: result: $MV" >&5
6941echo "${ECHO_T}$MV" >&6; }
6942else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6; }
6945fi
6946
6947
6948if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_prog_RANLIB+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 if test -n "$RANLIB"; then
6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006965 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 +00006966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976RANLIB=$ac_cv_prog_RANLIB
6977if test -n "$RANLIB"; then
6978 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6979echo "${ECHO_T}$RANLIB" >&6; }
6980else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
6983fi
6984
6985
6986fi
6987if test -z "$ac_cv_prog_RANLIB"; then
6988 ac_ct_RANLIB=$RANLIB
6989 # Extract the first word of "ranlib", so it can be a program name with args.
6990set dummy ranlib; ac_word=$2
6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 if test -n "$ac_ct_RANLIB"; then
6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007006 ac_cv_prog_ac_ct_RANLIB="ranlib"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012IFS=$as_save_IFS
7013
7014fi
7015fi
7016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017if test -n "$ac_ct_RANLIB"; then
7018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7019echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7020else
7021 { echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6; }
7023fi
7024
7025 if test "x$ac_ct_RANLIB" = x; then
7026 RANLIB=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029yes:)
7030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031whose name does not start with the host triplet. If you think this
7032configuration is useful to you, please write to autoconf@gnu.org." >&5
7033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034whose name does not start with the host triplet. If you think this
7035configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036ac_tool_warned=yes ;;
7037esac
7038 RANLIB=$ac_ct_RANLIB
7039 fi
7040else
7041 RANLIB="$ac_cv_prog_RANLIB"
7042fi
7043
7044# Extract the first word of "rm", so it can be a program name with args.
7045set dummy rm; ac_word=$2
7046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048if test "${ac_cv_path_RM+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051 case $RM in
7052 [\\/]* | ?:[\\/]*)
7053 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7054 ;;
7055 *)
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007062 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 +00007063 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068done
7069IFS=$as_save_IFS
7070
7071 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7072 ;;
7073esac
7074fi
7075RM=$ac_cv_path_RM
7076if test -n "$RM"; then
7077 { echo "$as_me:$LINENO: result: $RM" >&5
7078echo "${ECHO_T}$RM" >&6; }
7079else
7080 { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
7082fi
7083
7084
7085# Extract the first word of "sed", so it can be a program name with args.
7086set dummy sed; ac_word=$2
7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_SED+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 case $SED in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007103 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 +00007104 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7113 ;;
7114esac
7115fi
7116SED=$ac_cv_path_SED
7117if test -n "$SED"; then
7118 { echo "$as_me:$LINENO: result: $SED" >&5
7119echo "${ECHO_T}$SED" >&6; }
7120else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
7123fi
7124
7125
7126# Extract the first word of "tar", so it can be a program name with args.
7127set dummy tar; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_TAR+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $TAR in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007144 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 +00007145 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7154 ;;
7155esac
7156fi
7157TAR=$ac_cv_path_TAR
7158if test -n "$TAR"; then
7159 { echo "$as_me:$LINENO: result: $TAR" >&5
7160echo "${ECHO_T}$TAR" >&6; }
7161else
7162 { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
7164fi
7165
7166
7167# Extract the first word of "pwd", so it can be a program name with args.
7168set dummy pwd; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_BINPWD+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $BINPWD in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007186 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7195 ;;
7196esac
7197fi
7198BINPWD=$ac_cv_path_BINPWD
7199if test -n "$BINPWD"; then
7200 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7201echo "${ECHO_T}$BINPWD" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208
7209# Extract the first word of "Graphviz", so it can be a program name with args.
7210set dummy Graphviz; ac_word=$2
7211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 case $GRAPHVIZ in
7217 [\\/]* | ?:[\\/]*)
7218 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7219 ;;
7220 *)
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007227 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 +00007228 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232done
7233done
7234IFS=$as_save_IFS
7235
7236 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7237 ;;
7238esac
7239fi
7240GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7241if test -n "$GRAPHVIZ"; then
7242 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7243echo "${ECHO_T}$GRAPHVIZ" >&6; }
7244else
7245 { echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6; }
7247fi
7248
7249
7250if test "$GRAPHVIZ" != "echo Graphviz" ; then
7251
7252cat >>confdefs.h <<\_ACEOF
7253#define HAVE_GRAPHVIZ 1
7254_ACEOF
7255
Jeff Cohen28783c32007-01-12 18:22:38 +00007256 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007257 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7258 fi
7259
7260cat >>confdefs.h <<_ACEOF
7261#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7262_ACEOF
7263
7264fi
7265# Extract the first word of "dot", so it can be a program name with args.
7266set dummy dot; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_DOT+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272 case $DOT in
7273 [\\/]* | ?:[\\/]*)
7274 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007283 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 +00007284 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7293 ;;
7294esac
7295fi
7296DOT=$ac_cv_path_DOT
7297if test -n "$DOT"; then
7298 { echo "$as_me:$LINENO: result: $DOT" >&5
7299echo "${ECHO_T}$DOT" >&6; }
7300else
7301 { echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6; }
7303fi
7304
7305
7306if test "$DOT" != "echo dot" ; then
7307
7308cat >>confdefs.h <<\_ACEOF
7309#define HAVE_DOT 1
7310_ACEOF
7311
Jeff Cohen28783c32007-01-12 18:22:38 +00007312 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007313 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7314 fi
7315
7316cat >>confdefs.h <<_ACEOF
7317#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7318_ACEOF
7319
7320fi
7321for ac_prog in gv gsview32
7322do
7323 # Extract the first word of "$ac_prog", so it can be a program name with args.
7324set dummy $ac_prog; ac_word=$2
7325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327if test "${ac_cv_path_GV+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 case $GV in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7333 ;;
7334 *)
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007341 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 +00007342 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346done
7347done
7348IFS=$as_save_IFS
7349
7350 ;;
7351esac
7352fi
7353GV=$ac_cv_path_GV
7354if test -n "$GV"; then
7355 { echo "$as_me:$LINENO: result: $GV" >&5
7356echo "${ECHO_T}$GV" >&6; }
7357else
7358 { echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6; }
7360fi
7361
7362
7363 test -n "$GV" && break
7364done
7365test -n "$GV" || GV="echo gv"
7366
7367if test "$GV" != "echo gv" ; then
7368
7369cat >>confdefs.h <<\_ACEOF
7370#define HAVE_GV 1
7371_ACEOF
7372
Jeff Cohen28783c32007-01-12 18:22:38 +00007373 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007374 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7375 fi
7376
7377cat >>confdefs.h <<_ACEOF
7378#define LLVM_PATH_GV "$GV${EXEEXT}"
7379_ACEOF
7380
7381fi
7382# Extract the first word of "dotty", so it can be a program name with args.
7383set dummy dotty; ac_word=$2
7384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386if test "${ac_cv_path_DOTTY+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 case $DOTTY in
7390 [\\/]* | ?:[\\/]*)
7391 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7392 ;;
7393 *)
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007400 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 +00007401 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407IFS=$as_save_IFS
7408
7409 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7410 ;;
7411esac
7412fi
7413DOTTY=$ac_cv_path_DOTTY
7414if test -n "$DOTTY"; then
7415 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7416echo "${ECHO_T}$DOTTY" >&6; }
7417else
7418 { echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6; }
7420fi
7421
7422
7423if test "$DOTTY" != "echo dotty" ; then
7424
7425cat >>confdefs.h <<\_ACEOF
7426#define HAVE_DOTTY 1
7427_ACEOF
7428
Jeff Cohen28783c32007-01-12 18:22:38 +00007429 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007430 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7431 fi
7432
7433cat >>confdefs.h <<_ACEOF
7434#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7435_ACEOF
7436
7437fi
7438
7439
7440# Extract the first word of "perl", so it can be a program name with args.
7441set dummy perl; ac_word=$2
7442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444if test "${ac_cv_path_PERL+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 case $PERL in
7448 [\\/]* | ?:[\\/]*)
7449 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7450 ;;
7451 *)
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007458 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 +00007459 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463done
7464done
7465IFS=$as_save_IFS
7466
7467 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7468 ;;
7469esac
7470fi
7471PERL=$ac_cv_path_PERL
7472if test -n "$PERL"; then
7473 { echo "$as_me:$LINENO: result: $PERL" >&5
7474echo "${ECHO_T}$PERL" >&6; }
7475else
7476 { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
7478fi
7479
7480
7481if test "$PERL" != "none"; then
7482 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7483echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7484 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7485 { echo "$as_me:$LINENO: result: yes" >&5
7486echo "${ECHO_T}yes" >&6; }
7487 else
7488 PERL=none
7489 { echo "$as_me:$LINENO: result: not found" >&5
7490echo "${ECHO_T}not found" >&6; }
7491 fi
7492fi
7493
7494
7495if test x"$PERL" = xnone; then
7496 HAVE_PERL=0
7497
Reid Spencer59807fa2007-05-17 18:11:03 +00007498 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7499echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7500 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501else
7502 HAVE_PERL=1
7503
7504fi
7505
7506# Find a good install program. We prefer a C program (faster),
7507# so one script is as good as another. But avoid the broken or
7508# incompatible versions:
7509# SysV /etc/install, /usr/sbin/install
7510# SunOS /usr/etc/install
7511# IRIX /sbin/install
7512# AIX /bin/install
7513# AmigaOS /C/install, which installs bootblocks on floppy discs
7514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7515# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7517# OS/2's system install, which has a completely different semantic
7518# ./install, which can be erroneously created by make from ./install.sh.
7519{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7520echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7521if test -z "$INSTALL"; then
7522if test "${ac_cv_path_install+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 # Account for people who put trailing slashes in PATH elements.
7531case $as_dir/ in
7532 ./ | .// | /cC/* | \
7533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7534 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7535 /usr/ucb/* ) ;;
7536 *)
7537 # OSF1 and SCO ODT 3.0 have their own names for install.
7538 # Don't use installbsd from OSF since it installs stuff as root
7539 # by default.
7540 for ac_prog in ginstall scoinst install; do
7541 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007542 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 +00007543 if test $ac_prog = install &&
7544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7545 # AIX install. It has an incompatible calling convention.
7546 :
7547 elif test $ac_prog = install &&
7548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7549 # program-specific install script used by HP pwplus--don't use.
7550 :
7551 else
7552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7553 break 3
7554 fi
7555 fi
7556 done
7557 done
7558 ;;
7559esac
7560done
7561IFS=$as_save_IFS
7562
7563
7564fi
7565 if test "${ac_cv_path_install+set}" = set; then
7566 INSTALL=$ac_cv_path_install
7567 else
7568 # As a last resort, use the slow shell script. Don't cache a
7569 # value for INSTALL within a source directory, because that will
7570 # break other packages using the cache if that directory is
7571 # removed, or if the value is a relative name.
7572 INSTALL=$ac_install_sh
7573 fi
7574fi
7575{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7576echo "${ECHO_T}$INSTALL" >&6; }
7577
7578# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7579# It thinks the first close brace ends the variable substitution.
7580test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7581
7582test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7583
7584test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7585
7586
7587# Extract the first word of "bzip2", so it can be a program name with args.
7588set dummy bzip2; ac_word=$2
7589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591if test "${ac_cv_path_BZIP2+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 case $BZIP2 in
7595 [\\/]* | ?:[\\/]*)
7596 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7597 ;;
7598 *)
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007605 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 +00007606 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610done
7611done
7612IFS=$as_save_IFS
7613
Reid Spencera773bd52006-08-04 18:18:08 +00007614 ;;
7615esac
7616fi
7617BZIP2=$ac_cv_path_BZIP2
7618if test -n "$BZIP2"; then
7619 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7620echo "${ECHO_T}$BZIP2" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627# Extract the first word of "doxygen", so it can be a program name with args.
7628set dummy doxygen; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_DOXYGEN+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 case $DOXYGEN in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007645 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 +00007646 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651done
7652IFS=$as_save_IFS
7653
Reid Spencera773bd52006-08-04 18:18:08 +00007654 ;;
7655esac
7656fi
7657DOXYGEN=$ac_cv_path_DOXYGEN
7658if test -n "$DOXYGEN"; then
7659 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7660echo "${ECHO_T}$DOXYGEN" >&6; }
7661else
7662 { echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6; }
7664fi
7665
7666
Reid Spencera773bd52006-08-04 18:18:08 +00007667# Extract the first word of "groff", so it can be a program name with args.
7668set dummy groff; ac_word=$2
7669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_GROFF+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 case $GROFF in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007685 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 +00007686 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691done
7692IFS=$as_save_IFS
7693
Reid Spencera773bd52006-08-04 18:18:08 +00007694 ;;
7695esac
7696fi
7697GROFF=$ac_cv_path_GROFF
7698if test -n "$GROFF"; then
7699 { echo "$as_me:$LINENO: result: $GROFF" >&5
7700echo "${ECHO_T}$GROFF" >&6; }
7701else
7702 { echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6; }
7704fi
7705
7706
7707# Extract the first word of "gzip", so it can be a program name with args.
7708set dummy gzip; ac_word=$2
7709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711if test "${ac_cv_path_GZIP+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 case $GZIP in
7715 [\\/]* | ?:[\\/]*)
7716 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7717 ;;
7718 *)
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007725 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 +00007726 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731done
7732IFS=$as_save_IFS
7733
Reid Spencera773bd52006-08-04 18:18:08 +00007734 ;;
7735esac
7736fi
7737GZIP=$ac_cv_path_GZIP
7738if test -n "$GZIP"; then
7739 { echo "$as_me:$LINENO: result: $GZIP" >&5
7740echo "${ECHO_T}$GZIP" >&6; }
7741else
7742 { echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6; }
7744fi
7745
7746
7747# Extract the first word of "pod2html", so it can be a program name with args.
7748set dummy pod2html; ac_word=$2
7749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751if test "${ac_cv_path_POD2HTML+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754 case $POD2HTML in
7755 [\\/]* | ?:[\\/]*)
7756 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7757 ;;
7758 *)
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007765 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 +00007766 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770done
7771done
7772IFS=$as_save_IFS
7773
Reid Spencera773bd52006-08-04 18:18:08 +00007774 ;;
7775esac
7776fi
7777POD2HTML=$ac_cv_path_POD2HTML
7778if test -n "$POD2HTML"; then
7779 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7780echo "${ECHO_T}$POD2HTML" >&6; }
7781else
7782 { echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6; }
7784fi
7785
7786
7787# Extract the first word of "pod2man", so it can be a program name with args.
7788set dummy pod2man; ac_word=$2
7789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791if test "${ac_cv_path_POD2MAN+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 case $POD2MAN in
7795 [\\/]* | ?:[\\/]*)
7796 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7797 ;;
7798 *)
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007805 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 +00007806 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811done
7812IFS=$as_save_IFS
7813
Reid Spencera773bd52006-08-04 18:18:08 +00007814 ;;
7815esac
7816fi
7817POD2MAN=$ac_cv_path_POD2MAN
7818if test -n "$POD2MAN"; then
7819 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7820echo "${ECHO_T}$POD2MAN" >&6; }
7821else
7822 { echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6; }
7824fi
7825
7826
7827# Extract the first word of "runtest", so it can be a program name with args.
7828set dummy runtest; ac_word=$2
7829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831if test "${ac_cv_path_RUNTEST+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 case $RUNTEST in
7835 [\\/]* | ?:[\\/]*)
7836 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7837 ;;
7838 *)
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007845 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 +00007846 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851done
7852IFS=$as_save_IFS
7853
Reid Spencera773bd52006-08-04 18:18:08 +00007854 ;;
7855esac
7856fi
7857RUNTEST=$ac_cv_path_RUNTEST
7858if test -n "$RUNTEST"; then
7859 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7860echo "${ECHO_T}$RUNTEST" >&6; }
7861else
7862 { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
7864fi
7865
7866
7867
7868no_itcl=true
7869{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7870echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7871
7872# Check whether --with-tclinclude was given.
7873if test "${with_tclinclude+set}" = set; then
7874 withval=$with_tclinclude; with_tclinclude=${withval}
7875else
7876 with_tclinclude=''
7877fi
7878
7879if test "${ac_cv_path_tclsh+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882
7883if test x"${with_tclinclude}" != x ; then
7884 if test -f ${with_tclinclude}/tclsh ; then
7885 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7886 elif test -f ${with_tclinclude}/src/tclsh ; then
7887 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7888 else
7889 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7890echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7891 { (exit 1); exit 1; }; }
7892 fi
7893fi
7894
7895if test x"${ac_cv_path_tclsh}" = x ; then
7896 { echo "$as_me:$LINENO: result: none" >&5
7897echo "${ECHO_T}none" >&6; }
7898 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
7899do
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901set dummy $ac_prog; ac_word=$2
7902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904if test "${ac_cv_path_TCLSH+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 case $TCLSH in
7908 [\\/]* | ?:[\\/]*)
7909 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7910 ;;
7911 *)
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007918 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 +00007919 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924done
7925IFS=$as_save_IFS
7926
7927 ;;
7928esac
7929fi
7930TCLSH=$ac_cv_path_TCLSH
7931if test -n "$TCLSH"; then
7932 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7933echo "${ECHO_T}$TCLSH" >&6; }
7934else
7935 { echo "$as_me:$LINENO: result: no" >&5
7936echo "${ECHO_T}no" >&6; }
7937fi
7938
7939
7940 test -n "$TCLSH" && break
7941done
7942
7943 if test x"${TCLSH}" = x ; then
7944 ac_cv_path_tclsh='';
7945 else
7946 ac_cv_path_tclsh="${TCLSH}";
7947 fi
7948else
7949 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7950echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7951 TCLSH="${ac_cv_path_tclsh}"
7952
7953fi
7954
7955fi
7956
7957# Extract the first word of "zip", so it can be a program name with args.
7958set dummy zip; ac_word=$2
7959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7961if test "${ac_cv_path_ZIP+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964 case $ZIP in
7965 [\\/]* | ?:[\\/]*)
7966 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7967 ;;
7968 *)
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970for as_dir in $PATH
7971do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007975 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 +00007976 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980done
7981done
7982IFS=$as_save_IFS
7983
Reid Spencera773bd52006-08-04 18:18:08 +00007984 ;;
7985esac
7986fi
7987ZIP=$ac_cv_path_ZIP
7988if test -n "$ZIP"; then
7989 { echo "$as_me:$LINENO: result: $ZIP" >&5
7990echo "${ECHO_T}$ZIP" >&6; }
7991else
7992 { echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6; }
7994fi
7995
7996
Gordon Henriksene7072162008-03-07 18:20:01 +00007997for ac_prog in ocamlc.opt ocamlc
7998do
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003if test "${ac_cv_path_OCAMLC+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 case $OCAMLC in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008017 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 +00008018 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023done
8024IFS=$as_save_IFS
8025
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008026 ;;
8027esac
8028fi
8029OCAMLC=$ac_cv_path_OCAMLC
8030if test -n "$OCAMLC"; then
8031 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8032echo "${ECHO_T}$OCAMLC" >&6; }
8033else
8034 { echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6; }
8036fi
8037
8038
Gordon Henriksene7072162008-03-07 18:20:01 +00008039 test -n "$OCAMLC" && break
8040done
8041
8042for ac_prog in ocamlopt.opt ocamlopt
8043do
8044 # Extract the first word of "$ac_prog", so it can be a program name with args.
8045set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 case $OCAMLOPT in
8052 [\\/]* | ?:[\\/]*)
8053 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8054 ;;
8055 *)
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008062 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 +00008063 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067done
8068done
8069IFS=$as_save_IFS
8070
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008071 ;;
8072esac
8073fi
8074OCAMLOPT=$ac_cv_path_OCAMLOPT
8075if test -n "$OCAMLOPT"; then
8076 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8077echo "${ECHO_T}$OCAMLOPT" >&6; }
8078else
8079 { echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6; }
8081fi
8082
8083
Gordon Henriksene7072162008-03-07 18:20:01 +00008084 test -n "$OCAMLOPT" && break
8085done
8086
8087for ac_prog in ocamldep.opt ocamldep
8088do
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8093if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095else
8096 case $OCAMLDEP in
8097 [\\/]* | ?:[\\/]*)
8098 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8099 ;;
8100 *)
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008107 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 +00008108 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112done
8113done
8114IFS=$as_save_IFS
8115
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008116 ;;
8117esac
8118fi
8119OCAMLDEP=$ac_cv_path_OCAMLDEP
8120if test -n "$OCAMLDEP"; then
8121 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8122echo "${ECHO_T}$OCAMLDEP" >&6; }
8123else
8124 { echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6; }
8126fi
8127
8128
Gordon Henriksene7072162008-03-07 18:20:01 +00008129 test -n "$OCAMLDEP" && break
8130done
8131
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008132for ac_prog in ocamldoc.opt ocamldoc
8133do
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135set dummy $ac_prog; ac_word=$2
8136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 case $OCAMLDOC in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159IFS=$as_save_IFS
8160
8161 ;;
8162esac
8163fi
8164OCAMLDOC=$ac_cv_path_OCAMLDOC
8165if test -n "$OCAMLDOC"; then
8166 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8167echo "${ECHO_T}$OCAMLDOC" >&6; }
8168else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
8171fi
8172
8173
8174 test -n "$OCAMLDOC" && break
8175done
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177
8178{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8179echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8180if test "${llvm_cv_link_use_r+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 ac_ext=c
8184ac_cpp='$CPP $CPPFLAGS'
8185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188
8189 oldcflags="$CFLAGS"
8190 CFLAGS="$CFLAGS -Wl,-R."
8191 cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h. */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h. */
8197
8198int
8199main ()
8200{
8201int main() { return 0; }
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206rm -f conftest.$ac_objext conftest$ac_exeext
8207if { (ac_try="$ac_link"
8208case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_link") 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234esac
8235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_try") 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008240 llvm_cv_link_use_r=yes
8241else
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 llvm_cv_link_use_r=no
8246fi
8247
Tanya Lattnercf067672008-01-17 05:57:22 +00008248rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008249 conftest$ac_exeext conftest.$ac_ext
8250 CFLAGS="$oldcflags"
8251 ac_ext=c
8252ac_cpp='$CPP $CPPFLAGS'
8253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257
8258fi
8259{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8260echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8261if test "$llvm_cv_link_use_r" = yes ; then
8262
8263cat >>confdefs.h <<\_ACEOF
8264#define HAVE_LINK_R 1
8265_ACEOF
8266
8267 fi
8268
8269
8270
8271
8272{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8273echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8274if test "${ac_cv_c_const+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8283
8284int
8285main ()
8286{
8287/* FIXME: Include the comments suggested by Paul. */
8288#ifndef __cplusplus
8289 /* Ultrix mips cc rejects this. */
8290 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008291 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008292 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008293 char const *const *ccp;
8294 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008295 /* NEC SVR4.0.2 mips cc rejects this. */
8296 struct point {int x, y;};
8297 static struct point const zero = {0,0};
8298 /* AIX XL C 1.02.0.0 rejects this.
8299 It does not let you subtract one const X* pointer from another in
8300 an arm of an if-expression whose if-part is not a constant
8301 expression */
8302 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008303 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008304 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008305 ++ccp;
8306 p = (char**) ccp;
8307 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008308 { /* SCO 3.2v4 cc rejects this. */
8309 char *t;
8310 char const *s = 0 ? (char *) 0 : (char const *) 0;
8311
8312 *t++ = 0;
8313 if (s) return 0;
8314 }
8315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8316 int x[] = {25, 17};
8317 const int *foo = &x[0];
8318 ++foo;
8319 }
8320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8321 typedef const int *iptr;
8322 iptr p = 0;
8323 ++p;
8324 }
8325 { /* AIX XL C 1.02.0.0 rejects this saying
8326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8327 struct s { int j; const int *ap[3]; };
8328 struct s *b; b->j = 5;
8329 }
8330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8331 const int foo = 10;
8332 if (!foo) return 0;
8333 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008334 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008335#endif
8336
8337 ;
8338 return 0;
8339}
8340_ACEOF
8341rm -f conftest.$ac_objext
8342if { (ac_try="$ac_compile"
8343case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346esac
8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359esac
8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008375 ac_cv_c_const=yes
8376else
8377 echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 ac_cv_c_const=no
8381fi
8382
8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384fi
8385{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8386echo "${ECHO_T}$ac_cv_c_const" >&6; }
8387if test $ac_cv_c_const = no; then
8388
8389cat >>confdefs.h <<\_ACEOF
8390#define const
8391_ACEOF
8392
8393fi
8394
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008395
8396
8397
8398
8399
8400ac_header_dirent=no
8401for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8402 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008403{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8404echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <sys/types.h>
8415#include <$ac_hdr>
8416
8417int
8418main ()
8419{
8420if ((DIR *) 0)
8421return 0;
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008427if { (ac_try="$ac_compile"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444esac
8445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008460 eval "$as_ac_Header=yes"
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
Reid Spencera773bd52006-08-04 18:18:08 +00008465 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466fi
Reid Spencera773bd52006-08-04 18:18:08 +00008467
8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008469fi
Reid Spencera773bd52006-08-04 18:18:08 +00008470ac_res=`eval echo '${'$as_ac_Header'}'`
8471 { echo "$as_me:$LINENO: result: $ac_res" >&5
8472echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008473if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8476_ACEOF
8477
8478ac_header_dirent=$ac_hdr; break
8479fi
8480
8481done
8482# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8483if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008486if test "${ac_cv_search_opendir+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488else
8489 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008490cat >conftest.$ac_ext <<_ACEOF
8491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
8496
Reid Spencera773bd52006-08-04 18:18:08 +00008497/* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500#ifdef __cplusplus
8501extern "C"
8502#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008503char opendir ();
8504int
8505main ()
8506{
Reid Spencera773bd52006-08-04 18:18:08 +00008507return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008508 ;
8509 return 0;
8510}
8511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008512for ac_lib in '' dir; do
8513 if test -z "$ac_lib"; then
8514 ac_res="none required"
8515 else
8516 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008518 fi
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520if { (ac_try="$ac_link"
8521case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524esac
8525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547esac
8548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008553 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008554else
8555 echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008558
8559fi
8560
Tanya Lattnercf067672008-01-17 05:57:22 +00008561rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008562 conftest$ac_exeext
8563 if test "${ac_cv_search_opendir+set}" = set; then
8564 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008565fi
John Criswell7a73b802003-06-30 21:59:07 +00008566done
Reid Spencera773bd52006-08-04 18:18:08 +00008567if test "${ac_cv_search_opendir+set}" = set; then
8568 :
8569else
8570 ac_cv_search_opendir=no
8571fi
8572rm conftest.$ac_ext
8573LIBS=$ac_func_search_save_LIBS
8574fi
8575{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577ac_res=$ac_cv_search_opendir
8578if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008580
Reid Spencera773bd52006-08-04 18:18:08 +00008581fi
8582
8583else
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589 ac_func_search_save_LIBS=$LIBS
8590cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596
8597/* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600#ifdef __cplusplus
8601extern "C"
8602#endif
8603char opendir ();
8604int
8605main ()
8606{
8607return opendir ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8615 else
8616 ac_res=-l$ac_lib
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8618 fi
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620if { (ac_try="$ac_link"
8621case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624esac
8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637esac
8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_try") 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008653 ac_cv_search_opendir=$ac_res
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658
8659fi
8660
Tanya Lattnercf067672008-01-17 05:57:22 +00008661rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008662 conftest$ac_exeext
8663 if test "${ac_cv_search_opendir+set}" = set; then
8664 break
8665fi
8666done
8667if test "${ac_cv_search_opendir+set}" = set; then
8668 :
8669else
8670 ac_cv_search_opendir=no
8671fi
8672rm conftest.$ac_ext
8673LIBS=$ac_func_search_save_LIBS
8674fi
8675{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8676echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8677ac_res=$ac_cv_search_opendir
8678if test "$ac_res" != no; then
8679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8680
8681fi
8682
8683fi
John Criswell7a73b802003-06-30 21:59:07 +00008684
8685
8686for ac_header in dlfcn.h
8687do
8688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008693 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008694fi
Reid Spencera773bd52006-08-04 18:18:08 +00008695ac_res=`eval echo '${'$as_ac_Header'}'`
8696 { echo "$as_me:$LINENO: result: $ac_res" >&5
8697echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008698else
Brian Gaeke0a621332004-09-08 20:38:05 +00008699 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008702cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008708$ac_includes_default
8709#include <$ac_header>
8710_ACEOF
8711rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008712if { (ac_try="$ac_compile"
8713case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716esac
8717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008719 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8726 { (case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729esac
8730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_try") 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest.$ac_objext'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739esac
8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008745 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008746else
8747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008748sed 's/^/| /' conftest.$ac_ext >&5
8749
Reid Spencera773bd52006-08-04 18:18:08 +00008750 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008751fi
Reid Spencera773bd52006-08-04 18:18:08 +00008752
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8755echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008756
8757# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008760cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
8766#include <$ac_header>
8767_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008768if { (ac_try="$ac_cpp conftest.$ac_ext"
8769case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772esac
8773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008780 (exit $ac_status); } >/dev/null; then
8781 if test -s conftest.err; then
8782 ac_cpp_err=$ac_c_preproc_warn_flag
8783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8784 else
8785 ac_cpp_err=
8786 fi
8787else
8788 ac_cpp_err=yes
8789fi
8790if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008791 ac_header_preproc=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_header_preproc=no
8797fi
Reid Spencera773bd52006-08-04 18:18:08 +00008798
Brian Gaeke0a621332004-09-08 20:38:05 +00008799rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008800{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8801echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008802
8803# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8805 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8810 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008811 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008812 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008825 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008826## ----------------------------------- ##
8827## Report this to llvmbugs@cs.uiuc.edu ##
8828## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008829_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008830 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008831 ;;
8832esac
Reid Spencera773bd52006-08-04 18:18:08 +00008833{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008838 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008839fi
Reid Spencera773bd52006-08-04 18:18:08 +00008840ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008843
8844fi
John Criswell7a73b802003-06-30 21:59:07 +00008845if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848_ACEOF
8849
8850fi
8851
8852done
8853
Reid Spencera773bd52006-08-04 18:18:08 +00008854# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008856 enableval=$enable_ltdl_install;
8857fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008859
Duncan Sands1eff7042007-12-10 17:43:13 +00008860
8861
8862if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008863 INSTALL_LTDL_TRUE=
8864 INSTALL_LTDL_FALSE='#'
8865else
8866 INSTALL_LTDL_TRUE='#'
8867 INSTALL_LTDL_FALSE=
8868fi
8869
Duncan Sands1eff7042007-12-10 17:43:13 +00008870
8871
8872if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873 CONVENIENCE_LTDL_TRUE=
8874 CONVENIENCE_LTDL_FALSE='#'
8875else
8876 CONVENIENCE_LTDL_TRUE='#'
8877 CONVENIENCE_LTDL_FALSE=
8878fi
8879
8880
Reid Spencera773bd52006-08-04 18:18:08 +00008881{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8882echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008883library_names_spec=
8884libname_spec='lib$name'
8885soname_spec=
8886shrext_cmds=".so"
8887postinstall_cmds=
8888postuninstall_cmds=
8889finish_cmds=
8890finish_eval=
8891shlibpath_var=
8892shlibpath_overrides_runpath=unknown
8893version_type=none
8894dynamic_linker="$host_os ld.so"
8895sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896if test "$GCC" = yes; then
8897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8898 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8899 # if the path contains ";" then we assume it to be the separator
8900 # otherwise default to the standard path separator (i.e. ":") - it is
8901 # assumed that no part of a normal pathname contains ";" but that should
8902 # okay in the real world where ";" in dirpaths is itself problematic.
8903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8904 else
8905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8906 fi
8907else
8908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8909fi
8910need_lib_prefix=unknown
8911hardcode_into_libs=no
8912
8913# when you set need_version to no, make sure it does not cause -set_version
8914# flags to be left without arguments
8915need_version=unknown
8916
8917case $host_os in
8918aix3*)
8919 version_type=linux
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8921 shlibpath_var=LIBPATH
8922
8923 # AIX 3 has no versioning support, so we append a major version to the name.
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 ;;
8926
8927aix4* | aix5*)
8928 version_type=linux
8929 need_lib_prefix=no
8930 need_version=no
8931 hardcode_into_libs=yes
8932 if test "$host_cpu" = ia64; then
8933 # AIX 5 supports IA64
8934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 else
8937 # With GCC up to 2.95.x, collect2 would create an import file
8938 # for dependence libraries. The import file would start with
8939 # the line `#! .'. This would cause the generated library to
8940 # depend on `.', always an invalid library. This was fixed in
8941 # development snapshots of GCC prior to 3.0.
8942 case $host_os in
8943 aix4 | aix4.[01] | aix4.[01].*)
8944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8945 echo ' yes '
8946 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8947 :
8948 else
8949 can_build_shared=no
8950 fi
8951 ;;
8952 esac
8953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8954 # soname into executable. Probably we can add versioning support to
8955 # collect2, so additional links can be useful in future.
8956 if test "$aix_use_runtimelinking" = yes; then
8957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8958 # instead of lib<name>.a to let people know that these are not
8959 # typical AIX shared libraries.
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961 else
8962 # We preserve .a as extension for shared libraries through AIX4.2
8963 # and later when we are not doing run time linking.
8964 library_names_spec='${libname}${release}.a $libname.a'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 fi
8967 shlibpath_var=LIBPATH
8968 fi
8969 ;;
8970
8971amigaos*)
8972 library_names_spec='$libname.ixlibrary $libname.a'
8973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8974 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'
8975 ;;
8976
8977beos*)
8978 library_names_spec='${libname}${shared_ext}'
8979 dynamic_linker="$host_os ld.so"
8980 shlibpath_var=LIBRARY_PATH
8981 ;;
8982
8983bsdi[45]*)
8984 version_type=linux
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8992 # the default ld.so.conf also contains /usr/contrib/lib and
8993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8994 # libtool to hard-code these into programs
8995 ;;
8996
8997cygwin* | mingw* | pw32*)
8998 version_type=windows
8999 shrext_cmds=".dll"
9000 need_version=no
9001 need_lib_prefix=no
9002
9003 case $GCC,$host_os in
9004 yes,cygwin* | yes,mingw* | yes,pw32*)
9005 library_names_spec='$libname.dll.a'
9006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9007 postinstall_cmds='base_file=`basename \${file}`~
9008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9009 dldir=$destdir/`dirname \$dlpath`~
9010 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009011 $install_prog $dir/$dlname \$dldir/$dlname~
9012 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9014 dlpath=$dir/\$dldll~
9015 $rm \$dlpath'
9016 shlibpath_overrides_runpath=yes
9017
9018 case $host_os in
9019 cygwin*)
9020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9023 ;;
9024 mingw*)
9025 # MinGW DLLs use traditional 'lib' prefix
9026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9029 # It is most probably a Windows format PATH printed by
9030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9031 # path with ; separators, and with drive letters. We can handle the
9032 # drive letters (cygwin fileutils understands them), so leave them,
9033 # especially as we might pass files found there to a mingw objdump,
9034 # which wouldn't understand a cygwinified path. Ahh.
9035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036 else
9037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9038 fi
9039 ;;
9040 pw32*)
9041 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009042 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 +00009043 ;;
9044 esac
9045 ;;
9046
9047 *)
9048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9049 ;;
9050 esac
9051 dynamic_linker='Win32 ld.exe'
9052 # FIXME: first we should search . and the directory the executable is in
9053 shlibpath_var=PATH
9054 ;;
9055
9056darwin* | rhapsody*)
9057 dynamic_linker="$host_os dyld"
9058 version_type=darwin
9059 need_lib_prefix=no
9060 need_version=no
9061 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9062 soname_spec='${libname}${release}${major}$shared_ext'
9063 shlibpath_overrides_runpath=yes
9064 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009065 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9067 if test "$GCC" = yes; then
9068 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"`
9069 else
9070 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9071 fi
9072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9073 ;;
9074
9075dgux*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 ;;
9083
9084freebsd1*)
9085 dynamic_linker=no
9086 ;;
9087
9088kfreebsd*-gnu)
9089 version_type=linux
9090 need_lib_prefix=no
9091 need_version=no
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 dynamic_linker='GNU ld.so'
9098 ;;
9099
Reid Spencera773bd52006-08-04 18:18:08 +00009100freebsd* | dragonfly*)
9101 # DragonFly does not have aout. When/if they implement a new
9102 # versioning mechanism, adjust this.
9103 if test -x /usr/bin/objformat; then
9104 objformat=`/usr/bin/objformat`
9105 else
9106 case $host_os in
9107 freebsd[123]*) objformat=aout ;;
9108 *) objformat=elf ;;
9109 esac
9110 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009111 version_type=freebsd-$objformat
9112 case $version_type in
9113 freebsd-elf*)
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9115 need_version=no
9116 need_lib_prefix=no
9117 ;;
9118 freebsd-*)
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120 need_version=yes
9121 ;;
9122 esac
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_os in
9125 freebsd2*)
9126 shlibpath_overrides_runpath=yes
9127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009128 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134 shlibpath_overrides_runpath=no
9135 hardcode_into_libs=yes
9136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009137 freebsd*) # from 4.6 on
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141 esac
9142 ;;
9143
9144gnu*)
9145 version_type=linux
9146 need_lib_prefix=no
9147 need_version=no
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 hardcode_into_libs=yes
9152 ;;
9153
9154hpux9* | hpux10* | hpux11*)
9155 # Give a soname corresponding to the major version so that dld.sl refuses to
9156 # link against other versions.
9157 version_type=sunos
9158 need_lib_prefix=no
9159 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009160 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161 ia64*)
9162 shrext_cmds='.so'
9163 hardcode_into_libs=yes
9164 dynamic_linker="$host_os dld.so"
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 if test "X$HPUX_IA64_MODE" = X32; then
9170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9171 else
9172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9173 fi
9174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175 ;;
9176 hppa*64*)
9177 shrext_cmds='.sl'
9178 hardcode_into_libs=yes
9179 dynamic_linker="$host_os dld.sl"
9180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186 ;;
9187 *)
9188 shrext_cmds='.sl'
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=SHLIB_PATH
9191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 ;;
9195 esac
9196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197 postinstall_cmds='chmod 555 $lib'
9198 ;;
9199
Reid Spencera773bd52006-08-04 18:18:08 +00009200interix3*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=no
9209 hardcode_into_libs=yes
9210 ;;
9211
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009212irix5* | irix6* | nonstopux*)
9213 case $host_os in
9214 nonstopux*) version_type=nonstopux ;;
9215 *)
9216 if test "$lt_cv_prog_gnu_ld" = yes; then
9217 version_type=linux
9218 else
9219 version_type=irix
9220 fi ;;
9221 esac
9222 need_lib_prefix=no
9223 need_version=no
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 case $host_os in
9227 irix5* | nonstopux*)
9228 libsuff= shlibsuff=
9229 ;;
9230 *)
9231 case $LD in # libtool.m4 will add one of these switches to LD
9232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233 libsuff= shlibsuff= libmagic=32-bit;;
9234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235 libsuff=32 shlibsuff=N32 libmagic=N32;;
9236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238 *) libsuff= shlibsuff= libmagic=never-match;;
9239 esac
9240 ;;
9241 esac
9242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243 shlibpath_overrides_runpath=no
9244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246 hardcode_into_libs=yes
9247 ;;
9248
9249# No shared lib support for Linux oldld, aout, or coff.
9250linux*oldld* | linux*aout* | linux*coff*)
9251 dynamic_linker=no
9252 ;;
9253
9254# This must be Linux ELF.
9255linux*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=no
9264 # This implies no fast_install, which is unacceptable.
9265 # Some rework will be needed to allow for fast_install
9266 # before this can be enabled.
9267 hardcode_into_libs=yes
9268
9269 # Append ld.so.conf contents to the search path
9270 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009271 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 +00009272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9273 fi
9274
9275 # We used to test for /lib/ld.so.1 and disable shared libraries on
9276 # powerpc, because MkLinux only supported shared libraries with the
9277 # GNU dynamic linker. Since this was broken with cross compilers,
9278 # most powerpc-linux boxes support dynamic linking these days and
9279 # people can always --disable-shared, the test was removed, and we
9280 # assume the GNU/Linux dynamic linker is in use.
9281 dynamic_linker='GNU/Linux ld.so'
9282 ;;
9283
9284knetbsd*-gnu)
9285 version_type=linux
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9294 ;;
9295
9296netbsd*)
9297 version_type=sunos
9298 need_lib_prefix=no
9299 need_version=no
9300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9303 dynamic_linker='NetBSD (a.out) ld.so'
9304 else
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 dynamic_linker='NetBSD ld.elf_so'
9308 fi
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9311 hardcode_into_libs=yes
9312 ;;
9313
9314newsos6)
9315 version_type=linux
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 ;;
9320
9321nto-qnx*)
9322 version_type=linux
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330
9331openbsd*)
9332 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009333 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9336 case $host_os in
9337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9338 *) need_version=no ;;
9339 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344 case $host_os in
9345 openbsd2.[89] | openbsd2.[89].*)
9346 shlibpath_overrides_runpath=no
9347 ;;
9348 *)
9349 shlibpath_overrides_runpath=yes
9350 ;;
9351 esac
9352 else
9353 shlibpath_overrides_runpath=yes
9354 fi
9355 ;;
9356
9357os2*)
9358 libname_spec='$name'
9359 shrext_cmds=".dll"
9360 need_lib_prefix=no
9361 library_names_spec='$libname${shared_ext} $libname.a'
9362 dynamic_linker='OS/2 ld.exe'
9363 shlibpath_var=LIBPATH
9364 ;;
9365
9366osf3* | osf4* | osf5*)
9367 version_type=osf
9368 need_lib_prefix=no
9369 need_version=no
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9375 ;;
9376
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377solaris*)
9378 version_type=linux
9379 need_lib_prefix=no
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9386 # ldd complains unless libraries are executable
9387 postinstall_cmds='chmod +x $lib'
9388 ;;
9389
9390sunos4*)
9391 version_type=sunos
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 if test "$with_gnu_ld" = yes; then
9397 need_lib_prefix=no
9398 fi
9399 need_version=yes
9400 ;;
9401
Reid Spencera773bd52006-08-04 18:18:08 +00009402sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_vendor in
9408 sni)
9409 shlibpath_overrides_runpath=no
9410 need_lib_prefix=no
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9412 runpath_var=LD_RUN_PATH
9413 ;;
9414 siemens)
9415 need_lib_prefix=no
9416 ;;
9417 motorola)
9418 need_lib_prefix=no
9419 need_version=no
9420 shlibpath_overrides_runpath=no
9421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9422 ;;
9423 esac
9424 ;;
9425
9426sysv4*MP*)
9427 if test -d /usr/nec ;then
9428 version_type=linux
9429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9430 soname_spec='$libname${shared_ext}.$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 fi
9433 ;;
9434
Reid Spencera773bd52006-08-04 18:18:08 +00009435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9436 version_type=freebsd-elf
9437 need_lib_prefix=no
9438 need_version=no
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 hardcode_into_libs=yes
9443 if test "$with_gnu_ld" = yes; then
9444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 shlibpath_overrides_runpath=no
9446 else
9447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9448 shlibpath_overrides_runpath=yes
9449 case $host_os in
9450 sco3.2v5*)
9451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452 ;;
9453 esac
9454 fi
9455 sys_lib_dlsearch_path_spec='/usr/lib'
9456 ;;
9457
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009458uts4*)
9459 version_type=linux
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 ;;
9464
9465*)
9466 dynamic_linker=no
9467 ;;
9468esac
Reid Spencera773bd52006-08-04 18:18:08 +00009469{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9470echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471test "$dynamic_linker" = no && can_build_shared=no
9472
Reid Spencera773bd52006-08-04 18:18:08 +00009473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9474if test "$GCC" = yes; then
9475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9476fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477
Reid Spencera773bd52006-08-04 18:18:08 +00009478
9479{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9480echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481if test "${libltdl_cv_shlibext+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484
9485module=yes
9486eval libltdl_cv_shlibext=$shrext_cmds
9487
9488fi
Reid Spencera773bd52006-08-04 18:18:08 +00009489{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9490echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491if test -n "$libltdl_cv_shlibext"; then
9492
9493cat >>confdefs.h <<_ACEOF
9494#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9495_ACEOF
9496
9497fi
9498
9499
Reid Spencera773bd52006-08-04 18:18:08 +00009500{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9501echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502if test "${libltdl_cv_shlibpath_var+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 libltdl_cv_shlibpath_var="$shlibpath_var"
9506fi
Reid Spencera773bd52006-08-04 18:18:08 +00009507{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9508echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009509if test -n "$libltdl_cv_shlibpath_var"; then
9510
9511cat >>confdefs.h <<_ACEOF
9512#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9513_ACEOF
9514
9515fi
9516
9517
Reid Spencera773bd52006-08-04 18:18:08 +00009518{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9519echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520if test "${libltdl_cv_sys_search_path+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9524fi
Reid Spencera773bd52006-08-04 18:18:08 +00009525{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9526echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527if test -n "$libltdl_cv_sys_search_path"; then
9528 sys_search_path=
9529 for dir in $libltdl_cv_sys_search_path; do
9530 if test -z "$sys_search_path"; then
9531 sys_search_path="$dir"
9532 else
9533 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9534 fi
9535 done
9536
9537cat >>confdefs.h <<_ACEOF
9538#define LTDL_SYSSEARCHPATH "$sys_search_path"
9539_ACEOF
9540
9541fi
9542
Reid Spencera773bd52006-08-04 18:18:08 +00009543{ echo "$as_me:$LINENO: checking for objdir" >&5
9544echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545if test "${libltdl_cv_objdir+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 libltdl_cv_objdir="$objdir"
9549 if test -n "$objdir"; then
9550 :
9551 else
9552 rm -f .libs 2>/dev/null
9553 mkdir .libs 2>/dev/null
9554 if test -d .libs; then
9555 libltdl_cv_objdir=.libs
9556 else
9557 # MS-DOS does not allow filenames that begin with a dot.
9558 libltdl_cv_objdir=_libs
9559 fi
9560 rmdir .libs 2>/dev/null
9561 fi
9562
9563fi
Reid Spencera773bd52006-08-04 18:18:08 +00009564{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9565echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566
9567cat >>confdefs.h <<_ACEOF
9568#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9569_ACEOF
9570
9571
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572
9573
9574
9575
9576# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009577{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9578echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582
9583# These are sane defaults that work on at least a few old systems.
9584# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9585
9586# Character class describing NM global symbol codes.
9587symcode='[BCDEGRST]'
9588
9589# Regexp to match symbols that can be accessed directly from C.
9590sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9591
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009592# Transform an extracted symbol line into a proper C declaration
9593lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9594
9595# Transform an extracted symbol line into symbol name and symbol address
9596lt_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'"
9597
9598# Define system-specific variables.
9599case $host_os in
9600aix*)
9601 symcode='[BCDT]'
9602 ;;
9603cygwin* | mingw* | pw32*)
9604 symcode='[ABCDGISTW]'
9605 ;;
9606hpux*) # Its linker distinguishes data from code symbols
9607 if test "$host_cpu" = ia64; then
9608 symcode='[ABCDEGRST]'
9609 fi
9610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9611 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'"
9612 ;;
9613linux*)
9614 if test "$host_cpu" = ia64; then
9615 symcode='[ABCDGIRSTW]'
9616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9617 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'"
9618 fi
9619 ;;
9620irix* | nonstopux*)
9621 symcode='[BCDEGRST]'
9622 ;;
9623osf*)
9624 symcode='[BCDEGQRST]'
9625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009626solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627 symcode='[BDRT]'
9628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009629sco3.2v5*)
9630 symcode='[DT]'
9631 ;;
9632sysv4.2uw2*)
9633 symcode='[DT]'
9634 ;;
9635sysv5* | sco5v6* | unixware* | OpenUNIX*)
9636 symcode='[ABDT]'
9637 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638sysv4)
9639 symcode='[DFNSTU]'
9640 ;;
9641esac
9642
9643# Handle CRLF in mingw tool chain
9644opt_cr=
9645case $build_os in
9646mingw*)
9647 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9648 ;;
9649esac
9650
9651# If we're using GNU nm, then use its standard symbol codes.
9652case `$NM -V 2>&1` in
9653*GNU* | *'with BFD'*)
9654 symcode='[ABCDGIRSTW]' ;;
9655esac
9656
9657# Try without a prefix undercore, then with it.
9658for ac_symprfx in "" "_"; do
9659
Reid Spencera773bd52006-08-04 18:18:08 +00009660 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9661 symxfrm="\\1 $ac_symprfx\\2 \\2"
9662
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009664 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 +00009665
9666 # Check to see that the pipe works correctly.
9667 pipe_works=no
9668
9669 rm -f conftest*
9670 cat > conftest.$ac_ext <<EOF
9671#ifdef __cplusplus
9672extern "C" {
9673#endif
9674char nm_test_var;
9675void nm_test_func(){}
9676#ifdef __cplusplus
9677}
9678#endif
9679int main(){nm_test_var='a';nm_test_func();return(0);}
9680EOF
9681
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; then
9687 # Now try to grab the symbols.
9688 nlist=conftest.nm
9689 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9690 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && test -s "$nlist"; then
9694 # Try sorting and uniquifying the output.
9695 if sort "$nlist" | uniq > "$nlist"T; then
9696 mv -f "$nlist"T "$nlist"
9697 else
9698 rm -f "$nlist"T
9699 fi
9700
9701 # Make sure that we snagged all the symbols we need.
9702 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9703 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9704 cat <<EOF > conftest.$ac_ext
9705#ifdef __cplusplus
9706extern "C" {
9707#endif
9708
9709EOF
9710 # Now generate the symbol file.
9711 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9712
9713 cat <<EOF >> conftest.$ac_ext
9714#if defined (__STDC__) && __STDC__
9715# define lt_ptr_t void *
9716#else
9717# define lt_ptr_t char *
9718# define const
9719#endif
9720
9721/* The mapping between symbol names and symbols. */
9722const struct {
9723 const char *name;
9724 lt_ptr_t address;
9725}
9726lt_preloaded_symbols[] =
9727{
9728EOF
9729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9730 cat <<\EOF >> conftest.$ac_ext
9731 {0, (lt_ptr_t) 0}
9732};
9733
9734#ifdef __cplusplus
9735}
9736#endif
9737EOF
9738 # Now try linking the two files.
9739 mv conftest.$ac_objext conftstm.$ac_objext
9740 lt_save_LIBS="$LIBS"
9741 lt_save_CFLAGS="$CFLAGS"
9742 LIBS="conftstm.$ac_objext"
9743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9749 pipe_works=yes
9750 fi
9751 LIBS="$lt_save_LIBS"
9752 CFLAGS="$lt_save_CFLAGS"
9753 else
9754 echo "cannot find nm_test_func in $nlist" >&5
9755 fi
9756 else
9757 echo "cannot find nm_test_var in $nlist" >&5
9758 fi
9759 else
9760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9761 fi
9762 else
9763 echo "$progname: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 fi
9766 rm -f conftest* conftst*
9767
9768 # Do not use the global_symbol_pipe unless it works.
9769 if test "$pipe_works" = yes; then
9770 break
9771 else
9772 lt_cv_sys_global_symbol_pipe=
9773 fi
9774done
9775
9776fi
9777
9778if test -z "$lt_cv_sys_global_symbol_pipe"; then
9779 lt_cv_sys_global_symbol_to_cdecl=
9780fi
9781if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009782 { echo "$as_me:$LINENO: result: failed" >&5
9783echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784else
Reid Spencera773bd52006-08-04 18:18:08 +00009785 { echo "$as_me:$LINENO: result: ok" >&5
9786echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787fi
9788
9789
Reid Spencera773bd52006-08-04 18:18:08 +00009790{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9791echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9796 libltdl_cv_preloaded_symbols=yes
9797 else
9798 libltdl_cv_preloaded_symbols=no
9799 fi
9800
9801fi
Reid Spencera773bd52006-08-04 18:18:08 +00009802{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9803echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9805
9806cat >>confdefs.h <<\_ACEOF
9807#define HAVE_PRELOADED_SYMBOLS 1
9808_ACEOF
9809
9810fi
9811
9812LIBADD_DL=
9813
9814ac_ext=c
9815ac_cpp='$CPP $CPPFLAGS'
9816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818ac_compiler_gnu=$ac_cv_c_compiler_gnu
9819
9820
Reid Spencera773bd52006-08-04 18:18:08 +00009821{ echo "$as_me:$LINENO: checking for shl_load" >&5
9822echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823if test "${ac_cv_func_shl_load+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9834#define shl_load innocuous_shl_load
9835
9836/* System header to define __stub macros and hopefully few prototypes,
9837 which can conflict with char shl_load (); below.
9838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 <limits.h> exists even on freestanding compilers. */
9840
9841#ifdef __STDC__
9842# include <limits.h>
9843#else
9844# include <assert.h>
9845#endif
9846
9847#undef shl_load
9848
Reid Spencera773bd52006-08-04 18:18:08 +00009849/* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852#ifdef __cplusplus
9853extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855char shl_load ();
9856/* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009859#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861#endif
9862
9863int
9864main ()
9865{
Reid Spencera773bd52006-08-04 18:18:08 +00009866return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867 ;
9868 return 0;
9869}
9870_ACEOF
9871rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009872if { (ac_try="$ac_link"
9873case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876esac
9877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899esac
9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905 ac_cv_func_shl_load=yes
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
Reid Spencera773bd52006-08-04 18:18:08 +00009910 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911fi
Reid Spencera773bd52006-08-04 18:18:08 +00009912
Tanya Lattnercf067672008-01-17 05:57:22 +00009913rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 conftest$ac_exeext conftest.$ac_ext
9915fi
Reid Spencera773bd52006-08-04 18:18:08 +00009916{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9917echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918if test $ac_cv_func_shl_load = yes; then
9919
9920cat >>confdefs.h <<\_ACEOF
9921#define HAVE_SHL_LOAD 1
9922_ACEOF
9923
9924else
Reid Spencera773bd52006-08-04 18:18:08 +00009925 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9926echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930 ac_check_lib_save_LIBS=$LIBS
9931LIBS="-ldld $LIBS"
9932cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
9938
Reid Spencera773bd52006-08-04 18:18:08 +00009939/* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942#ifdef __cplusplus
9943extern "C"
9944#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945char shl_load ();
9946int
9947main ()
9948{
Reid Spencera773bd52006-08-04 18:18:08 +00009949return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009955if { (ac_try="$ac_link"
9956case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988 ac_cv_lib_dld_shl_load=yes
9989else
9990 echo "$as_me: failed program was:" >&5
9991sed 's/^/| /' conftest.$ac_ext >&5
9992
Reid Spencera773bd52006-08-04 18:18:08 +00009993 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994fi
Reid Spencera773bd52006-08-04 18:18:08 +00009995
Tanya Lattnercf067672008-01-17 05:57:22 +00009996rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997 conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
Reid Spencera773bd52006-08-04 18:18:08 +000010000{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10001echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002if test $ac_cv_lib_dld_shl_load = yes; then
10003
10004cat >>confdefs.h <<\_ACEOF
10005#define HAVE_SHL_LOAD 1
10006_ACEOF
10007
10008 LIBADD_DL="$LIBADD_DL -ldld"
10009else
Reid Spencera773bd52006-08-04 18:18:08 +000010010 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 ac_check_lib_save_LIBS=$LIBS
10016LIBS="-ldl $LIBS"
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023
Reid Spencera773bd52006-08-04 18:18:08 +000010024/* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027#ifdef __cplusplus
10028extern "C"
10029#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030char dlopen ();
10031int
10032main ()
10033{
Reid Spencera773bd52006-08-04 18:18:08 +000010034return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073 ac_cv_lib_dl_dlopen=yes
10074else
10075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
Reid Spencera773bd52006-08-04 18:18:08 +000010078 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079fi
Reid Spencera773bd52006-08-04 18:18:08 +000010080
Tanya Lattnercf067672008-01-17 05:57:22 +000010081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 conftest$ac_exeext conftest.$ac_ext
10083LIBS=$ac_check_lib_save_LIBS
10084fi
Reid Spencera773bd52006-08-04 18:18:08 +000010085{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10086echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087if test $ac_cv_lib_dl_dlopen = yes; then
10088
10089cat >>confdefs.h <<\_ACEOF
10090#define HAVE_LIBDL 1
10091_ACEOF
10092
10093 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10094else
10095 cat >conftest.$ac_ext <<_ACEOF
10096/* confdefs.h. */
10097_ACEOF
10098cat confdefs.h >>conftest.$ac_ext
10099cat >>conftest.$ac_ext <<_ACEOF
10100/* end confdefs.h. */
10101#if HAVE_DLFCN_H
10102# include <dlfcn.h>
10103#endif
10104
10105int
10106main ()
10107{
10108dlopen(0, 0);
10109 ;
10110 return 0;
10111}
10112_ACEOF
10113rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010114if { (ac_try="$ac_link"
10115case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147
10148cat >>confdefs.h <<\_ACEOF
10149#define HAVE_LIBDL 1
10150_ACEOF
10151 libltdl_cv_func_dlopen="yes"
10152else
10153 echo "$as_me: failed program was:" >&5
10154sed 's/^/| /' conftest.$ac_ext >&5
10155
Reid Spencera773bd52006-08-04 18:18:08 +000010156 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10157echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 ac_check_lib_save_LIBS=$LIBS
10162LIBS="-lsvld $LIBS"
10163cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169
Reid Spencera773bd52006-08-04 18:18:08 +000010170/* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173#ifdef __cplusplus
10174extern "C"
10175#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176char dlopen ();
10177int
10178main ()
10179{
Reid Spencera773bd52006-08-04 18:18:08 +000010180return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181 ;
10182 return 0;
10183}
10184_ACEOF
10185rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010186if { (ac_try="$ac_link"
10187case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200 { (case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203esac
10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_try") 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest$ac_exeext'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213esac
10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219 ac_cv_lib_svld_dlopen=yes
10220else
10221 echo "$as_me: failed program was:" >&5
10222sed 's/^/| /' conftest.$ac_ext >&5
10223
Reid Spencera773bd52006-08-04 18:18:08 +000010224 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225fi
Reid Spencera773bd52006-08-04 18:18:08 +000010226
Tanya Lattnercf067672008-01-17 05:57:22 +000010227rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228 conftest$ac_exeext conftest.$ac_ext
10229LIBS=$ac_check_lib_save_LIBS
10230fi
Reid Spencera773bd52006-08-04 18:18:08 +000010231{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10232echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233if test $ac_cv_lib_svld_dlopen = yes; then
10234
10235cat >>confdefs.h <<\_ACEOF
10236#define HAVE_LIBDL 1
10237_ACEOF
10238
10239 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10240else
Reid Spencera773bd52006-08-04 18:18:08 +000010241 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10242echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245else
10246 ac_check_lib_save_LIBS=$LIBS
10247LIBS="-ldld $LIBS"
10248cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
10254
Reid Spencera773bd52006-08-04 18:18:08 +000010255/* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258#ifdef __cplusplus
10259extern "C"
10260#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261char dld_link ();
10262int
10263main ()
10264{
Reid Spencera773bd52006-08-04 18:18:08 +000010265return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266 ;
10267 return 0;
10268}
10269_ACEOF
10270rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010271if { (ac_try="$ac_link"
10272case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298esac
10299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304 ac_cv_lib_dld_dld_link=yes
10305else
10306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
Reid Spencera773bd52006-08-04 18:18:08 +000010309 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310fi
Reid Spencera773bd52006-08-04 18:18:08 +000010311
Tanya Lattnercf067672008-01-17 05:57:22 +000010312rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313 conftest$ac_exeext conftest.$ac_ext
10314LIBS=$ac_check_lib_save_LIBS
10315fi
Reid Spencera773bd52006-08-04 18:18:08 +000010316{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10317echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318if test $ac_cv_lib_dld_dld_link = yes; then
10319
10320cat >>confdefs.h <<\_ACEOF
10321#define HAVE_DLD 1
10322_ACEOF
10323
10324 LIBADD_DL="$LIBADD_DL -ldld"
10325else
Reid Spencera773bd52006-08-04 18:18:08 +000010326 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10327echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331 cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10339#define _dyld_func_lookup innocuous__dyld_func_lookup
10340
10341/* System header to define __stub macros and hopefully few prototypes,
10342 which can conflict with char _dyld_func_lookup (); below.
10343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344 <limits.h> exists even on freestanding compilers. */
10345
10346#ifdef __STDC__
10347# include <limits.h>
10348#else
10349# include <assert.h>
10350#endif
10351
10352#undef _dyld_func_lookup
10353
Reid Spencera773bd52006-08-04 18:18:08 +000010354/* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357#ifdef __cplusplus
10358extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360char _dyld_func_lookup ();
10361/* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010364#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366#endif
10367
10368int
10369main ()
10370{
Reid Spencera773bd52006-08-04 18:18:08 +000010371return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372 ;
10373 return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410 ac_cv_func__dyld_func_lookup=yes
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
Reid Spencera773bd52006-08-04 18:18:08 +000010415 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416fi
Reid Spencera773bd52006-08-04 18:18:08 +000010417
Tanya Lattnercf067672008-01-17 05:57:22 +000010418rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 conftest$ac_exeext conftest.$ac_ext
10420fi
Reid Spencera773bd52006-08-04 18:18:08 +000010421{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10422echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423if test $ac_cv_func__dyld_func_lookup = yes; then
10424
10425cat >>confdefs.h <<\_ACEOF
10426#define HAVE_DYLD 1
10427_ACEOF
10428
10429fi
10430
10431
10432fi
10433
10434
10435fi
10436
10437
10438fi
Reid Spencera773bd52006-08-04 18:18:08 +000010439
Tanya Lattnercf067672008-01-17 05:57:22 +000010440rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 conftest$ac_exeext conftest.$ac_ext
10442
10443fi
10444
10445
10446fi
10447
10448
10449fi
10450
10451
10452if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10453then
10454 lt_save_LIBS="$LIBS"
10455 LIBS="$LIBS $LIBADD_DL"
10456
10457for ac_func in dlerror
10458do
10459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010460{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464else
10465 cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10473#define $ac_func innocuous_$ac_func
10474
10475/* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char $ac_func (); below.
10477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478 <limits.h> exists even on freestanding compilers. */
10479
10480#ifdef __STDC__
10481# include <limits.h>
10482#else
10483# include <assert.h>
10484#endif
10485
10486#undef $ac_func
10487
Reid Spencera773bd52006-08-04 18:18:08 +000010488/* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491#ifdef __cplusplus
10492extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494char $ac_func ();
10495/* The GNU C library defines this for functions which it implements
10496 to always fail with ENOSYS. Some functions are actually named
10497 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010498#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500#endif
10501
10502int
10503main ()
10504{
Reid Spencera773bd52006-08-04 18:18:08 +000010505return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506 ;
10507 return 0;
10508}
10509_ACEOF
10510rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010511if { (ac_try="$ac_link"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544 eval "$as_ac_var=yes"
10545else
10546 echo "$as_me: failed program was:" >&5
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
Reid Spencera773bd52006-08-04 18:18:08 +000010549 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550fi
Reid Spencera773bd52006-08-04 18:18:08 +000010551
Tanya Lattnercf067672008-01-17 05:57:22 +000010552rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 conftest$ac_exeext conftest.$ac_ext
10554fi
Reid Spencera773bd52006-08-04 18:18:08 +000010555ac_res=`eval echo '${'$as_ac_var'}'`
10556 { echo "$as_me:$LINENO: result: $ac_res" >&5
10557echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558if test `eval echo '${'$as_ac_var'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10561_ACEOF
10562
10563fi
10564done
10565
10566 LIBS="$lt_save_LIBS"
10567fi
10568ac_ext=c
10569ac_cpp='$CPP $CPPFLAGS'
10570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573
10574
10575
Reid Spencera773bd52006-08-04 18:18:08 +000010576{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10577echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 ac_cv_sys_symbol_underscore=no
10582 cat > conftest.$ac_ext <<EOF
10583void nm_test_func(){}
10584int main(){nm_test_func;return 0;}
10585EOF
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 # Now try to grab the symbols.
10592 ac_nlist=conftest.nm
10593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && test -s "$ac_nlist"; then
10598 # See whether the symbols have a leading underscore.
10599 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10600 ac_cv_sys_symbol_underscore=yes
10601 else
10602 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10603 :
10604 else
10605 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10606 fi
10607 fi
10608 else
10609 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10610 fi
10611 else
10612 echo "configure: failed program was:" >&5
10613 cat conftest.c >&5
10614 fi
10615 rm -rf conftest*
10616
10617fi
Reid Spencera773bd52006-08-04 18:18:08 +000010618{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10619echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620
10621
10622if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10623 if test x"$libltdl_cv_func_dlopen" = xyes ||
10624 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010625 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10626echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010627if test "${libltdl_cv_need_uscore+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 libltdl_cv_need_uscore=unknown
10631 save_LIBS="$LIBS"
10632 LIBS="$LIBS $LIBADD_DL"
10633 if test "$cross_compiling" = yes; then :
10634 libltdl_cv_need_uscore=cross
10635else
10636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637 lt_status=$lt_dlunknown
10638 cat > conftest.$ac_ext <<EOF
Tanya Lattner49ff6612008-05-10 04:20:38 +000010639#line 10634 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640#include "confdefs.h"
10641
10642#if HAVE_DLFCN_H
10643#include <dlfcn.h>
10644#endif
10645
10646#include <stdio.h>
10647
10648#ifdef RTLD_GLOBAL
10649# define LT_DLGLOBAL RTLD_GLOBAL
10650#else
10651# ifdef DL_GLOBAL
10652# define LT_DLGLOBAL DL_GLOBAL
10653# else
10654# define LT_DLGLOBAL 0
10655# endif
10656#endif
10657
10658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659 find out it does not work in some platform. */
10660#ifndef LT_DLLAZY_OR_NOW
10661# ifdef RTLD_LAZY
10662# define LT_DLLAZY_OR_NOW RTLD_LAZY
10663# else
10664# ifdef DL_LAZY
10665# define LT_DLLAZY_OR_NOW DL_LAZY
10666# else
10667# ifdef RTLD_NOW
10668# define LT_DLLAZY_OR_NOW RTLD_NOW
10669# else
10670# ifdef DL_NOW
10671# define LT_DLLAZY_OR_NOW DL_NOW
10672# else
10673# define LT_DLLAZY_OR_NOW 0
10674# endif
10675# endif
10676# endif
10677# endif
10678#endif
10679
10680#ifdef __cplusplus
10681extern "C" void exit (int);
10682#endif
10683
10684void fnord() { int i=42;}
10685int main ()
10686{
10687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10688 int status = $lt_dlunknown;
10689
10690 if (self)
10691 {
10692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10694 /* dlclose (self); */
10695 }
Reid Spencera773bd52006-08-04 18:18:08 +000010696 else
10697 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010698
10699 exit (status);
10700}
10701EOF
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010707 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708 lt_status=$?
10709 case x$lt_status in
10710 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10711 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010712 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 esac
10714 else :
10715 # compilation failed
10716
10717 fi
10718fi
10719rm -fr conftest*
10720
10721 LIBS="$save_LIBS"
10722
10723fi
Reid Spencera773bd52006-08-04 18:18:08 +000010724{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10725echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726 fi
10727fi
10728
10729if test x"$libltdl_cv_need_uscore" = xyes; then
10730
10731cat >>confdefs.h <<\_ACEOF
10732#define NEED_USCORE 1
10733_ACEOF
10734
10735fi
10736
10737
Reid Spencera773bd52006-08-04 18:18:08 +000010738{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10739echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742else
10743 # PORTME does your system automatically load deplibs for dlopen?
10744 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10745 # For now, we just catch OSes we know something about -- in the
10746 # future, we'll try test this programmatically.
10747 libltdl_cv_sys_dlopen_deplibs=unknown
10748 case "$host_os" in
10749 aix3*|aix4.1.*|aix4.2.*)
10750 # Unknown whether this is true for these versions of AIX, but
10751 # we want this `case' here to explicitly catch those versions.
10752 libltdl_cv_sys_dlopen_deplibs=unknown
10753 ;;
10754 aix[45]*)
10755 libltdl_cv_sys_dlopen_deplibs=yes
10756 ;;
10757 darwin*)
10758 # Assuming the user has installed a libdl from somewhere, this is true
10759 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10760 libltdl_cv_sys_dlopen_deplibs=yes
10761 ;;
10762 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10763 # GNU and its variants, using gnu ld.so (Glibc)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10765 ;;
10766 hpux10*|hpux11*)
10767 libltdl_cv_sys_dlopen_deplibs=yes
10768 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010769 interix*)
10770 libltdl_cv_sys_dlopen_deplibs=yes
10771 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 irix[12345]*|irix6.[01]*)
10773 # Catch all versions of IRIX before 6.2, and indicate that we don't
10774 # know how it worked for any of those versions.
10775 libltdl_cv_sys_dlopen_deplibs=unknown
10776 ;;
10777 irix*)
10778 # The case above catches anything before 6.2, and it's known that
10779 # at 6.2 and later dlopen does load deplibs.
10780 libltdl_cv_sys_dlopen_deplibs=yes
10781 ;;
10782 netbsd*)
10783 libltdl_cv_sys_dlopen_deplibs=yes
10784 ;;
10785 openbsd*)
10786 libltdl_cv_sys_dlopen_deplibs=yes
10787 ;;
10788 osf[1234]*)
10789 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10790 # it did *not* use an RPATH in a shared library to find objects the
10791 # library depends on, so we explictly say `no'.
10792 libltdl_cv_sys_dlopen_deplibs=no
10793 ;;
10794 osf5.0|osf5.0a|osf5.1)
10795 # dlopen *does* load deplibs and with the right loader patch applied
10796 # it even uses RPATH in a shared library to search for shared objects
10797 # that the library depends on, but there's no easy way to know if that
10798 # patch is installed. Since this is the case, all we can really
10799 # say is unknown -- it depends on the patch being installed. If
10800 # it is, this changes to `yes'. Without it, it would be `no'.
10801 libltdl_cv_sys_dlopen_deplibs=unknown
10802 ;;
10803 osf*)
10804 # the two cases above should catch all versions of osf <= 5.1. Read
10805 # the comments above for what we know about them.
10806 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10807 # is used to find them so we can finally say `yes'.
10808 libltdl_cv_sys_dlopen_deplibs=yes
10809 ;;
10810 solaris*)
10811 libltdl_cv_sys_dlopen_deplibs=yes
10812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10814 libltdl_cv_sys_dlopen_deplibs=yes
10815 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816 esac
10817
10818fi
Reid Spencera773bd52006-08-04 18:18:08 +000010819{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10820echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10822
10823cat >>confdefs.h <<\_ACEOF
10824#define LTDL_DLOPEN_DEPLIBS 1
10825_ACEOF
10826
10827fi
10828
10829
10830for ac_header in argz.h
10831do
10832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838fi
Reid Spencera773bd52006-08-04 18:18:08 +000010839ac_res=`eval echo '${'$as_ac_Header'}'`
10840 { echo "$as_me:$LINENO: result: $ac_res" >&5
10841echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842else
10843 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010844{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846cat >conftest.$ac_ext <<_ACEOF
10847/* confdefs.h. */
10848_ACEOF
10849cat confdefs.h >>conftest.$ac_ext
10850cat >>conftest.$ac_ext <<_ACEOF
10851/* end confdefs.h. */
10852$ac_includes_default
10853#include <$ac_header>
10854_ACEOF
10855rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010856if { (ac_try="$ac_compile"
10857case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10860esac
10861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883esac
10884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889 ac_header_compiler=yes
10890else
10891 echo "$as_me: failed program was:" >&5
10892sed 's/^/| /' conftest.$ac_ext >&5
10893
Reid Spencera773bd52006-08-04 18:18:08 +000010894 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895fi
Reid Spencera773bd52006-08-04 18:18:08 +000010896
10897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900
10901# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010902{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h. */
10910#include <$ac_header>
10911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010912if { (ac_try="$ac_cpp conftest.$ac_ext"
10913case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010924 (exit $ac_status); } >/dev/null; then
10925 if test -s conftest.err; then
10926 ac_cpp_err=$ac_c_preproc_warn_flag
10927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10928 else
10929 ac_cpp_err=
10930 fi
10931else
10932 ac_cpp_err=yes
10933fi
10934if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935 ac_header_preproc=yes
10936else
10937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 ac_header_preproc=no
10941fi
Reid Spencera773bd52006-08-04 18:18:08 +000010942
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10945echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946
10947# So? What about this header?
10948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10949 yes:no: )
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10954 ac_header_preproc=yes
10955 ;;
10956 no:yes:* )
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010969 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970## ----------------------------------- ##
10971## Report this to llvmbugs@cs.uiuc.edu ##
10972## ----------------------------------- ##
10973_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010974 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975 ;;
10976esac
Reid Spencera773bd52006-08-04 18:18:08 +000010977{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981else
10982 eval "$as_ac_Header=\$ac_header_preproc"
10983fi
Reid Spencera773bd52006-08-04 18:18:08 +000010984ac_res=`eval echo '${'$as_ac_Header'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987
10988fi
10989if test `eval echo '${'$as_ac_Header'}'` = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992_ACEOF
10993
10994fi
10995
10996done
10997
10998
Reid Spencera773bd52006-08-04 18:18:08 +000010999{ echo "$as_me:$LINENO: checking for error_t" >&5
11000echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001if test "${ac_cv_type_error_t+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 cat >conftest.$ac_ext <<_ACEOF
11005/* confdefs.h. */
11006_ACEOF
11007cat confdefs.h >>conftest.$ac_ext
11008cat >>conftest.$ac_ext <<_ACEOF
11009/* end confdefs.h. */
11010#if HAVE_ARGZ_H
11011# include <argz.h>
11012#endif
11013
Reid Spencera773bd52006-08-04 18:18:08 +000011014typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015int
11016main ()
11017{
Reid Spencera773bd52006-08-04 18:18:08 +000011018if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011020if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011021 return 0;
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011027if { (ac_try="$ac_compile"
11028case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031esac
11032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060 ac_cv_type_error_t=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
Reid Spencera773bd52006-08-04 18:18:08 +000011065 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066fi
Reid Spencera773bd52006-08-04 18:18:08 +000011067
11068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069fi
Reid Spencera773bd52006-08-04 18:18:08 +000011070{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11071echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072if test $ac_cv_type_error_t = yes; then
11073
11074cat >>confdefs.h <<_ACEOF
11075#define HAVE_ERROR_T 1
11076_ACEOF
11077
11078
11079else
11080
11081cat >>confdefs.h <<\_ACEOF
11082#define error_t int
11083_ACEOF
11084
11085fi
11086
11087
11088
11089
11090
11091
11092
11093for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11094do
11095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109#define $ac_func innocuous_$ac_func
11110
11111/* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11115
11116#ifdef __STDC__
11117# include <limits.h>
11118#else
11119# include <assert.h>
11120#endif
11121
11122#undef $ac_func
11123
Reid Spencera773bd52006-08-04 18:18:08 +000011124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127#ifdef __cplusplus
11128extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130char $ac_func ();
11131/* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011134#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136#endif
11137
11138int
11139main ()
11140{
Reid Spencera773bd52006-08-04 18:18:08 +000011141return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142 ;
11143 return 0;
11144}
11145_ACEOF
11146rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011147if { (ac_try="$ac_link"
11148case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11161 { (case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11164esac
11165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_try") 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180 eval "$as_ac_var=yes"
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
Reid Spencera773bd52006-08-04 18:18:08 +000011185 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186fi
Reid Spencera773bd52006-08-04 18:18:08 +000011187
Tanya Lattnercf067672008-01-17 05:57:22 +000011188rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189 conftest$ac_exeext conftest.$ac_ext
11190fi
Reid Spencera773bd52006-08-04 18:18:08 +000011191ac_res=`eval echo '${'$as_ac_var'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194if test `eval echo '${'$as_ac_var'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11197_ACEOF
11198
11199fi
11200done
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11230 stdio.h unistd.h
11231do
11232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238fi
Reid Spencera773bd52006-08-04 18:18:08 +000011239ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242else
11243 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_includes_default
11253#include <$ac_header>
11254_ACEOF
11255rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011256if { (ac_try="$ac_compile"
11257case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289 ac_header_compiler=yes
11290else
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
Reid Spencera773bd52006-08-04 18:18:08 +000011294 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295fi
Reid Spencera773bd52006-08-04 18:18:08 +000011296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300
11301# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11330 fi
11331else
11332 ac_cpp_err=yes
11333fi
11334if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335 ac_header_preproc=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_header_preproc=no
11341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346
11347# So? What about this header?
11348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 yes:no: )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11355 ;;
11356 no:yes:* )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011369 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370## ----------------------------------- ##
11371## Report this to llvmbugs@cs.uiuc.edu ##
11372## ----------------------------------- ##
11373_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011374 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375 ;;
11376esac
Reid Spencera773bd52006-08-04 18:18:08 +000011377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 eval "$as_ac_Header=\$ac_header_preproc"
11383fi
Reid Spencera773bd52006-08-04 18:18:08 +000011384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387
11388fi
11389if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392_ACEOF
11393
11394fi
11395
11396done
11397
11398
11399
11400
11401
11402for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11403do
11404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410fi
Reid Spencera773bd52006-08-04 18:18:08 +000011411ac_res=`eval echo '${'$as_ac_Header'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414else
11415 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011416{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
11424$ac_includes_default
11425#include <$ac_header>
11426_ACEOF
11427rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011428if { (ac_try="$ac_compile"
11429case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 ac_header_compiler=yes
11462else
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
Reid Spencera773bd52006-08-04 18:18:08 +000011466 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467fi
Reid Spencera773bd52006-08-04 18:18:08 +000011468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472
11473# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011474{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482#include <$ac_header>
11483_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011484if { (ac_try="$ac_cpp conftest.$ac_ext"
11485case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011496 (exit $ac_status); } >/dev/null; then
11497 if test -s conftest.err; then
11498 ac_cpp_err=$ac_c_preproc_warn_flag
11499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500 else
11501 ac_cpp_err=
11502 fi
11503else
11504 ac_cpp_err=yes
11505fi
11506if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507 ac_header_preproc=yes
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ac_header_preproc=no
11513fi
Reid Spencera773bd52006-08-04 18:18:08 +000011514
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518
11519# So? What about this header?
11520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 yes:no: )
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11527 ;;
11528 no:yes:* )
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011541 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542## ----------------------------------- ##
11543## Report this to llvmbugs@cs.uiuc.edu ##
11544## ----------------------------------- ##
11545_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011546 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 ;;
11548esac
Reid Spencera773bd52006-08-04 18:18:08 +000011549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554 eval "$as_ac_Header=\$ac_header_preproc"
11555fi
Reid Spencera773bd52006-08-04 18:18:08 +000011556ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559
11560fi
11561if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564_ACEOF
11565
11566fi
11567
11568done
11569
11570
11571
11572for ac_header in string.h strings.h
11573do
11574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580fi
Reid Spencera773bd52006-08-04 18:18:08 +000011581ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584else
11585 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594$ac_includes_default
11595#include <$ac_header>
11596_ACEOF
11597rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011598if { (ac_try="$ac_compile"
11599case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 ac_header_compiler=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
Reid Spencera773bd52006-08-04 18:18:08 +000011636 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637fi
Reid Spencera773bd52006-08-04 18:18:08 +000011638
11639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642
11643# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652#include <$ac_header>
11653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011654if { (ac_try="$ac_cpp conftest.$ac_ext"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 else
11671 ac_cpp_err=
11672 fi
11673else
11674 ac_cpp_err=yes
11675fi
11676if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677 ac_header_preproc=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_header_preproc=no
11683fi
Reid Spencera773bd52006-08-04 18:18:08 +000011684
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688
11689# So? What about this header?
11690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 yes:no: )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11697 ;;
11698 no:yes:* )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011711 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712## ----------------------------------- ##
11713## Report this to llvmbugs@cs.uiuc.edu ##
11714## ----------------------------------- ##
11715_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011716 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ;;
11718esac
Reid Spencera773bd52006-08-04 18:18:08 +000011719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 eval "$as_ac_Header=\$ac_header_preproc"
11725fi
Reid Spencera773bd52006-08-04 18:18:08 +000011726ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729
11730fi
11731if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734_ACEOF
11735 break
11736fi
11737
11738done
11739
11740
11741
11742
11743for ac_func in strchr index
11744do
11745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011746{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11759#define $ac_func innocuous_$ac_func
11760
11761/* System header to define __stub macros and hopefully few prototypes,
11762 which can conflict with char $ac_func (); below.
11763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764 <limits.h> exists even on freestanding compilers. */
11765
11766#ifdef __STDC__
11767# include <limits.h>
11768#else
11769# include <assert.h>
11770#endif
11771
11772#undef $ac_func
11773
Reid Spencera773bd52006-08-04 18:18:08 +000011774/* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777#ifdef __cplusplus
11778extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780char $ac_func ();
11781/* The GNU C library defines this for functions which it implements
11782 to always fail with ENOSYS. Some functions are actually named
11783 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011784#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786#endif
11787
11788int
11789main ()
11790{
Reid Spencera773bd52006-08-04 18:18:08 +000011791return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792 ;
11793 return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011797if { (ac_try="$ac_link"
11798case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11811 { (case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
11815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_try") 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830 eval "$as_ac_var=yes"
11831else
11832 echo "$as_me: failed program was:" >&5
11833sed 's/^/| /' conftest.$ac_ext >&5
11834
Reid Spencera773bd52006-08-04 18:18:08 +000011835 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836fi
Reid Spencera773bd52006-08-04 18:18:08 +000011837
Tanya Lattnercf067672008-01-17 05:57:22 +000011838rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839 conftest$ac_exeext conftest.$ac_ext
11840fi
Reid Spencera773bd52006-08-04 18:18:08 +000011841ac_res=`eval echo '${'$as_ac_var'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844if test `eval echo '${'$as_ac_var'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11847_ACEOF
11848 break
11849fi
11850done
11851
11852
11853
11854for ac_func in strrchr rindex
11855do
11856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
11868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11870#define $ac_func innocuous_$ac_func
11871
11872/* System header to define __stub macros and hopefully few prototypes,
11873 which can conflict with char $ac_func (); below.
11874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11875 <limits.h> exists even on freestanding compilers. */
11876
11877#ifdef __STDC__
11878# include <limits.h>
11879#else
11880# include <assert.h>
11881#endif
11882
11883#undef $ac_func
11884
Reid Spencera773bd52006-08-04 18:18:08 +000011885/* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888#ifdef __cplusplus
11889extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891char $ac_func ();
11892/* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011895#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897#endif
11898
11899int
11900main ()
11901{
Reid Spencera773bd52006-08-04 18:18:08 +000011902return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903 ;
11904 return 0;
11905}
11906_ACEOF
11907rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011908if { (ac_try="$ac_link"
11909case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941 eval "$as_ac_var=yes"
11942else
11943 echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
Reid Spencera773bd52006-08-04 18:18:08 +000011946 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947fi
Reid Spencera773bd52006-08-04 18:18:08 +000011948
Tanya Lattnercf067672008-01-17 05:57:22 +000011949rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950 conftest$ac_exeext conftest.$ac_ext
11951fi
Reid Spencera773bd52006-08-04 18:18:08 +000011952ac_res=`eval echo '${'$as_ac_var'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955if test `eval echo '${'$as_ac_var'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958_ACEOF
11959 break
11960fi
11961done
11962
11963
11964
11965for ac_func in memcpy bcopy
11966do
11967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011968{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11970if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11981#define $ac_func innocuous_$ac_func
11982
11983/* System header to define __stub macros and hopefully few prototypes,
11984 which can conflict with char $ac_func (); below.
11985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11986 <limits.h> exists even on freestanding compilers. */
11987
11988#ifdef __STDC__
11989# include <limits.h>
11990#else
11991# include <assert.h>
11992#endif
11993
11994#undef $ac_func
11995
Reid Spencera773bd52006-08-04 18:18:08 +000011996/* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999#ifdef __cplusplus
12000extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002char $ac_func ();
12003/* The GNU C library defines this for functions which it implements
12004 to always fail with ENOSYS. Some functions are actually named
12005 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012006#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008#endif
12009
12010int
12011main ()
12012{
Reid Spencera773bd52006-08-04 18:18:08 +000012013return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012019if { (ac_try="$ac_link"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052 eval "$as_ac_var=yes"
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
Reid Spencera773bd52006-08-04 18:18:08 +000012057 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058fi
Reid Spencera773bd52006-08-04 18:18:08 +000012059
Tanya Lattnercf067672008-01-17 05:57:22 +000012060rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061 conftest$ac_exeext conftest.$ac_ext
12062fi
Reid Spencera773bd52006-08-04 18:18:08 +000012063ac_res=`eval echo '${'$as_ac_var'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066if test `eval echo '${'$as_ac_var'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069_ACEOF
12070 break
12071fi
12072done
12073
12074
12075
12076for ac_func in memmove strcmp
12077do
12078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084 cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092#define $ac_func innocuous_$ac_func
12093
12094/* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char $ac_func (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12098
12099#ifdef __STDC__
12100# include <limits.h>
12101#else
12102# include <assert.h>
12103#endif
12104
12105#undef $ac_func
12106
Reid Spencera773bd52006-08-04 18:18:08 +000012107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110#ifdef __cplusplus
12111extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113char $ac_func ();
12114/* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012117#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119#endif
12120
12121int
12122main ()
12123{
Reid Spencera773bd52006-08-04 18:18:08 +000012124return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012130if { (ac_try="$ac_link"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144 { (case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147esac
12148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_try") 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try='test -s conftest$ac_exeext'
12154 { (case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_try") 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163 eval "$as_ac_var=yes"
12164else
12165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
Reid Spencera773bd52006-08-04 18:18:08 +000012168 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169fi
Reid Spencera773bd52006-08-04 18:18:08 +000012170
Tanya Lattnercf067672008-01-17 05:57:22 +000012171rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172 conftest$ac_exeext conftest.$ac_ext
12173fi
Reid Spencera773bd52006-08-04 18:18:08 +000012174ac_res=`eval echo '${'$as_ac_var'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180_ACEOF
12181
12182fi
12183done
12184
12185
12186
12187
12188for ac_func in closedir opendir readdir
12189do
12190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12204#define $ac_func innocuous_$ac_func
12205
12206/* System header to define __stub macros and hopefully few prototypes,
12207 which can conflict with char $ac_func (); below.
12208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12209 <limits.h> exists even on freestanding compilers. */
12210
12211#ifdef __STDC__
12212# include <limits.h>
12213#else
12214# include <assert.h>
12215#endif
12216
12217#undef $ac_func
12218
Reid Spencera773bd52006-08-04 18:18:08 +000012219/* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222#ifdef __cplusplus
12223extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225char $ac_func ();
12226/* The GNU C library defines this for functions which it implements
12227 to always fail with ENOSYS. Some functions are actually named
12228 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012229#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012231#endif
12232
12233int
12234main ()
12235{
Reid Spencera773bd52006-08-04 18:18:08 +000012236return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012242if { (ac_try="$ac_link"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest$ac_exeext'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012275 eval "$as_ac_var=yes"
12276else
12277 echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
Reid Spencera773bd52006-08-04 18:18:08 +000012280 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281fi
Reid Spencera773bd52006-08-04 18:18:08 +000012282
Tanya Lattnercf067672008-01-17 05:57:22 +000012283rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284 conftest$ac_exeext conftest.$ac_ext
12285fi
Reid Spencera773bd52006-08-04 18:18:08 +000012286ac_res=`eval echo '${'$as_ac_var'}'`
12287 { echo "$as_me:$LINENO: result: $ac_res" >&5
12288echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012289if test `eval echo '${'$as_ac_var'}'` = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292_ACEOF
12293
12294fi
12295done
12296
12297
Reid Spencera773bd52006-08-04 18:18:08 +000012298# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012300 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301 case $enableval in
12302 yes) enable_shared=yes ;;
12303 no) enable_shared=no ;;
12304 *)
12305 enable_shared=no
12306 # Look at the argument we got. We use all the common list separators.
12307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12308 for pkg in $enableval; do
12309 IFS="$lt_save_ifs"
12310 if test "X$pkg" = "X$p"; then
12311 enable_shared=yes
12312 fi
12313 done
12314 IFS="$lt_save_ifs"
12315 ;;
12316 esac
12317else
12318 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012319fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320
Reid Spencera773bd52006-08-04 18:18:08 +000012321
12322# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012324 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012325 case $enableval in
12326 yes) enable_static=yes ;;
12327 no) enable_static=no ;;
12328 *)
12329 enable_static=no
12330 # Look at the argument we got. We use all the common list separators.
12331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12332 for pkg in $enableval; do
12333 IFS="$lt_save_ifs"
12334 if test "X$pkg" = "X$p"; then
12335 enable_static=yes
12336 fi
12337 done
12338 IFS="$lt_save_ifs"
12339 ;;
12340 esac
12341else
12342 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012343fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344
Reid Spencera773bd52006-08-04 18:18:08 +000012345
12346# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012348 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012349 case $enableval in
12350 yes) enable_fast_install=yes ;;
12351 no) enable_fast_install=no ;;
12352 *)
12353 enable_fast_install=no
12354 # Look at the argument we got. We use all the common list separators.
12355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12356 for pkg in $enableval; do
12357 IFS="$lt_save_ifs"
12358 if test "X$pkg" = "X$p"; then
12359 enable_fast_install=yes
12360 fi
12361 done
12362 IFS="$lt_save_ifs"
12363 ;;
12364 esac
12365else
12366 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012367fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368
Reid Spencera773bd52006-08-04 18:18:08 +000012369
12370{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12371echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372if test "${lt_cv_path_SED+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 # Loop through the user's path and test for sed and gsed.
12376# Then use that list of sed's as ones to test for truncation.
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for lt_ac_prog in sed gsed; do
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12385 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12386 fi
12387 done
12388 done
12389done
12390lt_ac_max=0
12391lt_ac_count=0
12392# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12393# along with /bin/sed that truncates output.
12394for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012395 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012396 cat /dev/null > conftest.in
12397 lt_ac_count=0
12398 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12399 # Check for GNU sed and select it if it is found.
12400 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12401 lt_cv_path_SED=$lt_ac_sed
12402 break
12403 fi
12404 while true; do
12405 cat conftest.in conftest.in >conftest.tmp
12406 mv conftest.tmp conftest.in
12407 cp conftest.in conftest.nl
12408 echo >>conftest.nl
12409 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12410 cmp -s conftest.out conftest.nl || break
12411 # 10000 chars as input seems more than enough
12412 test $lt_ac_count -gt 10 && break
12413 lt_ac_count=`expr $lt_ac_count + 1`
12414 if test $lt_ac_count -gt $lt_ac_max; then
12415 lt_ac_max=$lt_ac_count
12416 lt_cv_path_SED=$lt_ac_sed
12417 fi
12418 done
12419done
12420
12421fi
12422
12423SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012424{ echo "$as_me:$LINENO: result: $SED" >&5
12425echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426
12427
Reid Spencera773bd52006-08-04 18:18:08 +000012428# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012430 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431else
12432 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012433fi
12434
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435ac_prog=ld
12436if test "$GCC" = yes; then
12437 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012438 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12439echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440 case $host in
12441 *-*-mingw*)
12442 # gcc leaves a trailing carriage return which upsets mingw
12443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12444 *)
12445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12446 esac
12447 case $ac_prog in
12448 # Accept absolute paths.
12449 [\\/]* | ?:[\\/]*)
12450 re_direlt='/[^/][^/]*/\.\./'
12451 # Canonicalize the pathname of ld
12452 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12453 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12454 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12455 done
12456 test -z "$LD" && LD="$ac_prog"
12457 ;;
12458 "")
12459 # If it fails, then pretend we aren't using GCC.
12460 ac_prog=ld
12461 ;;
12462 *)
12463 # If it is relative, then search for the first ld in PATH.
12464 with_gnu_ld=unknown
12465 ;;
12466 esac
12467elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012468 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12469echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470else
Reid Spencera773bd52006-08-04 18:18:08 +000012471 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12472echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012473fi
12474if test "${lt_cv_path_LD+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476else
12477 if test -z "$LD"; then
12478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12479 for ac_dir in $PATH; do
12480 IFS="$lt_save_ifs"
12481 test -z "$ac_dir" && ac_dir=.
12482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12483 lt_cv_path_LD="$ac_dir/$ac_prog"
12484 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012485 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486 # Break only if it was the GNU/non-GNU ld that we prefer.
12487 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12488 *GNU* | *'with BFD'*)
12489 test "$with_gnu_ld" != no && break
12490 ;;
12491 *)
12492 test "$with_gnu_ld" != yes && break
12493 ;;
12494 esac
12495 fi
12496 done
12497 IFS="$lt_save_ifs"
12498else
12499 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12500fi
12501fi
12502
12503LD="$lt_cv_path_LD"
12504if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012505 { echo "$as_me:$LINENO: result: $LD" >&5
12506echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012507else
Reid Spencera773bd52006-08-04 18:18:08 +000012508 { echo "$as_me:$LINENO: result: no" >&5
12509echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510fi
12511test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12512echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12513 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012514{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12515echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516if test "${lt_cv_prog_gnu_ld+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
Reid Spencera773bd52006-08-04 18:18:08 +000012519 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012520case `$LD -v 2>&1 </dev/null` in
12521*GNU* | *'with BFD'*)
12522 lt_cv_prog_gnu_ld=yes
12523 ;;
12524*)
12525 lt_cv_prog_gnu_ld=no
12526 ;;
12527esac
12528fi
Reid Spencera773bd52006-08-04 18:18:08 +000012529{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12530echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012531with_gnu_ld=$lt_cv_prog_gnu_ld
12532
12533
Reid Spencera773bd52006-08-04 18:18:08 +000012534{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12535echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012536if test "${lt_cv_ld_reload_flag+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538else
12539 lt_cv_ld_reload_flag='-r'
12540fi
Reid Spencera773bd52006-08-04 18:18:08 +000012541{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12542echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012543reload_flag=$lt_cv_ld_reload_flag
12544case $reload_flag in
12545"" | " "*) ;;
12546*) reload_flag=" $reload_flag" ;;
12547esac
12548reload_cmds='$LD$reload_flag -o $output$reload_objs'
12549case $host_os in
12550 darwin*)
12551 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012552 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012553 else
12554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12555 fi
12556 ;;
12557esac
12558
Reid Spencera773bd52006-08-04 18:18:08 +000012559{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12560echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561if test "${lt_cv_deplibs_check_method+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 lt_cv_file_magic_cmd='$MAGIC_CMD'
12565lt_cv_file_magic_test_file=
12566lt_cv_deplibs_check_method='unknown'
12567# Need to set the preceding variable on all platforms that support
12568# interlibrary dependencies.
12569# 'none' -- dependencies not supported.
12570# `unknown' -- same as none, but documents that we really don't know.
12571# 'pass_all' -- all dependencies passed with no checks.
12572# 'test_compile' -- check by making test program.
12573# 'file_magic [[regex]]' -- check by looking for files in library path
12574# which responds to the $file_magic_cmd with a given extended regex.
12575# If you have `file' or equivalent on your system and you're not sure
12576# whether `pass_all' will *always* work, you probably want this one.
12577
12578case $host_os in
12579aix4* | aix5*)
12580 lt_cv_deplibs_check_method=pass_all
12581 ;;
12582
12583beos*)
12584 lt_cv_deplibs_check_method=pass_all
12585 ;;
12586
12587bsdi[45]*)
12588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12589 lt_cv_file_magic_cmd='/usr/bin/file -L'
12590 lt_cv_file_magic_test_file=/shlib/libc.so
12591 ;;
12592
12593cygwin*)
12594 # func_win32_libid is a shell function defined in ltmain.sh
12595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12596 lt_cv_file_magic_cmd='func_win32_libid'
12597 ;;
12598
12599mingw* | pw32*)
12600 # Base MSYS/MinGW do not provide the 'file' command needed by
12601 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12602 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12603 lt_cv_file_magic_cmd='$OBJDUMP -f'
12604 ;;
12605
12606darwin* | rhapsody*)
12607 lt_cv_deplibs_check_method=pass_all
12608 ;;
12609
Reid Spencera773bd52006-08-04 18:18:08 +000012610freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12612 case $host_cpu in
12613 i*86 )
12614 # Not sure whether the presence of OpenBSD here was a mistake.
12615 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012616 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 +000012617 lt_cv_file_magic_cmd=/usr/bin/file
12618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12619 ;;
12620 esac
12621 else
12622 lt_cv_deplibs_check_method=pass_all
12623 fi
12624 ;;
12625
12626gnu*)
12627 lt_cv_deplibs_check_method=pass_all
12628 ;;
12629
12630hpux10.20* | hpux11*)
12631 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012632 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012633 ia64*)
12634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12636 ;;
12637 hppa*64*)
12638 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]'
12639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12640 ;;
12641 *)
12642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12644 ;;
12645 esac
12646 ;;
12647
Reid Spencera773bd52006-08-04 18:18:08 +000012648interix3*)
12649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12651 ;;
12652
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012653irix5* | irix6* | nonstopux*)
12654 case $LD in
12655 *-32|*"-32 ") libmagic=32-bit;;
12656 *-n32|*"-n32 ") libmagic=N32;;
12657 *-64|*"-64 ") libmagic=64-bit;;
12658 *) libmagic=never-match;;
12659 esac
12660 lt_cv_deplibs_check_method=pass_all
12661 ;;
12662
12663# This must be Linux ELF.
12664linux*)
12665 lt_cv_deplibs_check_method=pass_all
12666 ;;
12667
12668netbsd*)
12669 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12671 else
12672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12673 fi
12674 ;;
12675
12676newos6*)
12677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12678 lt_cv_file_magic_cmd=/usr/bin/file
12679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12680 ;;
12681
12682nto-qnx*)
12683 lt_cv_deplibs_check_method=unknown
12684 ;;
12685
12686openbsd*)
12687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12689 else
12690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12691 fi
12692 ;;
12693
12694osf3* | osf4* | osf5*)
12695 lt_cv_deplibs_check_method=pass_all
12696 ;;
12697
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698solaris*)
12699 lt_cv_deplibs_check_method=pass_all
12700 ;;
12701
Reid Spencera773bd52006-08-04 18:18:08 +000012702sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703 case $host_vendor in
12704 motorola)
12705 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]'
12706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12707 ;;
12708 ncr)
12709 lt_cv_deplibs_check_method=pass_all
12710 ;;
12711 sequent)
12712 lt_cv_file_magic_cmd='/bin/file'
12713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12714 ;;
12715 sni)
12716 lt_cv_file_magic_cmd='/bin/file'
12717 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12718 lt_cv_file_magic_test_file=/lib/libc.so
12719 ;;
12720 siemens)
12721 lt_cv_deplibs_check_method=pass_all
12722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012723 pc)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012726 esac
12727 ;;
12728
Reid Spencera773bd52006-08-04 18:18:08 +000012729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012730 lt_cv_deplibs_check_method=pass_all
12731 ;;
12732esac
12733
12734fi
Reid Spencera773bd52006-08-04 18:18:08 +000012735{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12736echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012737file_magic_cmd=$lt_cv_file_magic_cmd
12738deplibs_check_method=$lt_cv_deplibs_check_method
12739test -z "$deplibs_check_method" && deplibs_check_method=unknown
12740
12741
12742
12743# If no C compiler was specified, use CC.
12744LTCC=${LTCC-"$CC"}
12745
Reid Spencera773bd52006-08-04 18:18:08 +000012746# If no C compiler flags were specified, use CFLAGS.
12747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749# Allow CC to be a program name with arguments.
12750compiler=$CC
12751
Reid Spencera773bd52006-08-04 18:18:08 +000012752# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012753if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012754 enableval=$enable_libtool_lock;
12755fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012756
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12758
12759# Some flags need to be propagated to the compiler or linker for good
12760# libtool support.
12761case $host in
12762ia64-*-hpux*)
12763 # Find out which ABI we are using.
12764 echo 'int i;' > conftest.$ac_ext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; then
12770 case `/usr/bin/file conftest.$ac_objext` in
12771 *ELF-32*)
12772 HPUX_IA64_MODE="32"
12773 ;;
12774 *ELF-64*)
12775 HPUX_IA64_MODE="64"
12776 ;;
12777 esac
12778 fi
12779 rm -rf conftest*
12780 ;;
12781*-*-irix6*)
12782 # Find out which ABI we are using.
Tanya Lattner49ff6612008-05-10 04:20:38 +000012783 echo '#line 12778 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12785 (eval $ac_compile) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; then
12789 if test "$lt_cv_prog_gnu_ld" = yes; then
12790 case `/usr/bin/file conftest.$ac_objext` in
12791 *32-bit*)
12792 LD="${LD-ld} -melf32bsmip"
12793 ;;
12794 *N32*)
12795 LD="${LD-ld} -melf32bmipn32"
12796 ;;
12797 *64-bit*)
12798 LD="${LD-ld} -melf64bmip"
12799 ;;
12800 esac
12801 else
12802 case `/usr/bin/file conftest.$ac_objext` in
12803 *32-bit*)
12804 LD="${LD-ld} -32"
12805 ;;
12806 *N32*)
12807 LD="${LD-ld} -n32"
12808 ;;
12809 *64-bit*)
12810 LD="${LD-ld} -64"
12811 ;;
12812 esac
12813 fi
12814 fi
12815 rm -rf conftest*
12816 ;;
12817
12818x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12819 # Find out which ABI we are using.
12820 echo 'int i;' > conftest.$ac_ext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012826 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827 *32-bit*)
12828 case $host in
12829 x86_64-*linux*)
12830 LD="${LD-ld} -m elf_i386"
12831 ;;
12832 ppc64-*linux*|powerpc64-*linux*)
12833 LD="${LD-ld} -m elf32ppclinux"
12834 ;;
12835 s390x-*linux*)
12836 LD="${LD-ld} -m elf_s390"
12837 ;;
12838 sparc64-*linux*)
12839 LD="${LD-ld} -m elf32_sparc"
12840 ;;
12841 esac
12842 ;;
12843 *64-bit*)
12844 case $host in
12845 x86_64-*linux*)
12846 LD="${LD-ld} -m elf_x86_64"
12847 ;;
12848 ppc*-*linux*|powerpc*-*linux*)
12849 LD="${LD-ld} -m elf64ppc"
12850 ;;
12851 s390*-*linux*)
12852 LD="${LD-ld} -m elf64_s390"
12853 ;;
12854 sparc*-*linux*)
12855 LD="${LD-ld} -m elf64_sparc"
12856 ;;
12857 esac
12858 ;;
12859 esac
12860 fi
12861 rm -rf conftest*
12862 ;;
12863
12864*-*-sco3.2v5*)
12865 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12866 SAVE_CFLAGS="$CFLAGS"
12867 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012868 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12869echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012870if test "${lt_cv_cc_needs_belf+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 ac_ext=c
12874ac_cpp='$CPP $CPPFLAGS'
12875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879 cat >conftest.$ac_ext <<_ACEOF
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885
Reid Spencera773bd52006-08-04 18:18:08 +000012886int
12887main ()
12888{
12889
12890 ;
12891 return 0;
12892}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012893_ACEOF
12894rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012895if { (ac_try="$ac_link"
12896case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928 lt_cv_cc_needs_belf=yes
12929else
12930 echo "$as_me: failed program was:" >&5
12931sed 's/^/| /' conftest.$ac_ext >&5
12932
Reid Spencera773bd52006-08-04 18:18:08 +000012933 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012934fi
Reid Spencera773bd52006-08-04 18:18:08 +000012935
Tanya Lattnercf067672008-01-17 05:57:22 +000012936rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012937 conftest$ac_exeext conftest.$ac_ext
12938 ac_ext=c
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944fi
Reid Spencera773bd52006-08-04 18:18:08 +000012945{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12946echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12949 CFLAGS="$SAVE_CFLAGS"
12950 fi
12951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012952sparc*-*solaris*)
12953 # Find out which ABI we are using.
12954 echo 'int i;' > conftest.$ac_ext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; then
12960 case `/usr/bin/file conftest.o` in
12961 *64-bit*)
12962 case $lt_cv_prog_gnu_ld in
12963 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12964 *) LD="${LD-ld} -64" ;;
12965 esac
12966 ;;
12967 esac
12968 fi
12969 rm -rf conftest*
12970 ;;
12971
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012972
12973esac
12974
12975need_locks="$enable_libtool_lock"
12976
12977
Reid Spencer2706f8c2004-09-19 23:53:36 +000012978
12979
12980if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12981 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12982 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012984ac_cpp='$CXXCPP $CPPFLAGS'
12985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012988{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12989echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012990if test -z "$CXXCPP"; then
12991 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
John Criswell47fdd832003-07-14 16:52:07 +000012994 # Double quotes because CXXCPP needs to be expanded
12995 for CXXCPP in "$CXX -E" "/lib/cpp"
12996 do
12997 ac_preproc_ok=false
12998for ac_cxx_preproc_warn_flag in '' yes
12999do
13000 # Use a header file that comes with gcc, so configuring glibc
13001 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13003 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013004 # On the NeXT, cc -E runs the code through the compiler's parser,
13005 # not just through cpp. "Syntax error" is here to catch this case.
13006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013007/* confdefs.h. */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
13011/* end confdefs.h. */
13012#ifdef __STDC__
13013# include <limits.h>
13014#else
13015# include <assert.h>
13016#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013017 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013018_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013019if { (ac_try="$ac_cpp conftest.$ac_ext"
13020case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023esac
13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013026 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013027 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013031 (exit $ac_status); } >/dev/null; then
13032 if test -s conftest.err; then
13033 ac_cpp_err=$ac_cxx_preproc_warn_flag
13034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13035 else
13036 ac_cpp_err=
13037 fi
13038else
13039 ac_cpp_err=yes
13040fi
13041if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013042 :
13043else
13044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013045sed 's/^/| /' conftest.$ac_ext >&5
13046
John Criswell47fdd832003-07-14 16:52:07 +000013047 # Broken: fails on valid input.
13048continue
13049fi
Reid Spencera773bd52006-08-04 18:18:08 +000013050
John Criswell47fdd832003-07-14 16:52:07 +000013051rm -f conftest.err conftest.$ac_ext
13052
Reid Spencera773bd52006-08-04 18:18:08 +000013053 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013054 # can be detected and how.
13055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013061#include <ac_nonexistent.h>
13062_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013063if { (ac_try="$ac_cpp conftest.$ac_ext"
13064case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013070 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013071 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013075 (exit $ac_status); } >/dev/null; then
13076 if test -s conftest.err; then
13077 ac_cpp_err=$ac_cxx_preproc_warn_flag
13078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13079 else
13080 ac_cpp_err=
13081 fi
13082else
13083 ac_cpp_err=yes
13084fi
13085if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013086 # Broken: success on invalid input.
13087continue
13088else
13089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013090sed 's/^/| /' conftest.$ac_ext >&5
13091
John Criswell47fdd832003-07-14 16:52:07 +000013092 # Passes both tests.
13093ac_preproc_ok=:
13094break
13095fi
Reid Spencera773bd52006-08-04 18:18:08 +000013096
John Criswell47fdd832003-07-14 16:52:07 +000013097rm -f conftest.err conftest.$ac_ext
13098
13099done
13100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13101rm -f conftest.err conftest.$ac_ext
13102if $ac_preproc_ok; then
13103 break
John Criswell7a73b802003-06-30 21:59:07 +000013104fi
13105
John Criswell47fdd832003-07-14 16:52:07 +000013106 done
13107 ac_cv_prog_CXXCPP=$CXXCPP
13108
13109fi
13110 CXXCPP=$ac_cv_prog_CXXCPP
13111else
13112 ac_cv_prog_CXXCPP=$CXXCPP
13113fi
Reid Spencera773bd52006-08-04 18:18:08 +000013114{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13115echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013116ac_preproc_ok=false
13117for ac_cxx_preproc_warn_flag in '' yes
13118do
13119 # Use a header file that comes with gcc, so configuring glibc
13120 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13122 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013123 # On the NeXT, cc -E runs the code through the compiler's parser,
13124 # not just through cpp. "Syntax error" is here to catch this case.
13125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131#ifdef __STDC__
13132# include <limits.h>
13133#else
13134# include <assert.h>
13135#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013136 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013137_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013138if { (ac_try="$ac_cpp conftest.$ac_ext"
13139case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142esac
13143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013145 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013146 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013150 (exit $ac_status); } >/dev/null; then
13151 if test -s conftest.err; then
13152 ac_cpp_err=$ac_cxx_preproc_warn_flag
13153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13154 else
13155 ac_cpp_err=
13156 fi
13157else
13158 ac_cpp_err=yes
13159fi
13160if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013161 :
13162else
13163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013164sed 's/^/| /' conftest.$ac_ext >&5
13165
John Criswell47fdd832003-07-14 16:52:07 +000013166 # Broken: fails on valid input.
13167continue
13168fi
Reid Spencera773bd52006-08-04 18:18:08 +000013169
John Criswell47fdd832003-07-14 16:52:07 +000013170rm -f conftest.err conftest.$ac_ext
13171
Reid Spencera773bd52006-08-04 18:18:08 +000013172 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013173 # can be detected and how.
13174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013180#include <ac_nonexistent.h>
13181_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013182if { (ac_try="$ac_cpp conftest.$ac_ext"
13183case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013189 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013190 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_cxx_preproc_warn_flag
13197 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13198 else
13199 ac_cpp_err=
13200 fi
13201else
13202 ac_cpp_err=yes
13203fi
13204if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013205 # Broken: success on invalid input.
13206continue
13207else
13208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013209sed 's/^/| /' conftest.$ac_ext >&5
13210
John Criswell47fdd832003-07-14 16:52:07 +000013211 # Passes both tests.
13212ac_preproc_ok=:
13213break
13214fi
Reid Spencera773bd52006-08-04 18:18:08 +000013215
John Criswell47fdd832003-07-14 16:52:07 +000013216rm -f conftest.err conftest.$ac_ext
13217
13218done
13219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13220rm -f conftest.err conftest.$ac_ext
13221if $ac_preproc_ok; then
13222 :
13223else
John Criswell0c38eaf2003-09-10 15:17:25 +000013224 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13225See \`config.log' for more details." >&5
13226echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13227See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013228 { (exit 1); exit 1; }; }
13229fi
13230
Reid Spencera773bd52006-08-04 18:18:08 +000013231ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013232ac_cpp='$CXXCPP $CPPFLAGS'
13233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13236
Reid Spencer2706f8c2004-09-19 23:53:36 +000013237fi
13238
John Criswell47fdd832003-07-14 16:52:07 +000013239
13240ac_ext=f
13241ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13242ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13244if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013245 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 +000013246 do
13247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013251if test "${ac_cv_prog_F77+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254 if test -n "$F77"; then
13255 ac_cv_prog_F77="$F77" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013263 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 +000013264 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269done
Reid Spencera773bd52006-08-04 18:18:08 +000013270IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013271
13272fi
13273fi
13274F77=$ac_cv_prog_F77
13275if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013276 { echo "$as_me:$LINENO: result: $F77" >&5
13277echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013278else
Reid Spencera773bd52006-08-04 18:18:08 +000013279 { echo "$as_me:$LINENO: result: no" >&5
13280echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013281fi
13282
Reid Spencera773bd52006-08-04 18:18:08 +000013283
John Criswell47fdd832003-07-14 16:52:07 +000013284 test -n "$F77" && break
13285 done
13286fi
13287if test -z "$F77"; then
13288 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013289 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 +000013290do
13291 # Extract the first word of "$ac_prog", so it can be a program name with args.
13292set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013295if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298 if test -n "$ac_ct_F77"; then
13299 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13300else
13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302for as_dir in $PATH
13303do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013307 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 +000013308 ac_cv_prog_ac_ct_F77="$ac_prog"
13309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13311 fi
13312done
13313done
Reid Spencera773bd52006-08-04 18:18:08 +000013314IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013315
13316fi
13317fi
13318ac_ct_F77=$ac_cv_prog_ac_ct_F77
13319if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013320 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13321echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013322else
Reid Spencera773bd52006-08-04 18:18:08 +000013323 { echo "$as_me:$LINENO: result: no" >&5
13324echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013325fi
13326
Reid Spencera773bd52006-08-04 18:18:08 +000013327
John Criswell47fdd832003-07-14 16:52:07 +000013328 test -n "$ac_ct_F77" && break
13329done
13330
Reid Spencera773bd52006-08-04 18:18:08 +000013331 if test "x$ac_ct_F77" = x; then
13332 F77=""
13333 else
13334 case $cross_compiling:$ac_tool_warned in
13335yes:)
13336{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13337whose name does not start with the host triplet. If you think this
13338configuration is useful to you, please write to autoconf@gnu.org." >&5
13339echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13340whose name does not start with the host triplet. If you think this
13341configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13342ac_tool_warned=yes ;;
13343esac
13344 F77=$ac_ct_F77
13345 fi
John Criswell47fdd832003-07-14 16:52:07 +000013346fi
13347
13348
13349# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013350echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013351ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013352{ (ac_try="$ac_compiler --version >&5"
13353case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356esac
13357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ (ac_try="$ac_compiler -v >&5"
13363case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013372{ (ac_try="$ac_compiler -V >&5"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013383
13384# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013385# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013386ac_save_ext=$ac_ext
13387ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013388{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13389echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013390if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392else
13393 cat >conftest.$ac_ext <<_ACEOF
13394 program main
13395#ifndef __GNUC__
13396 choke me
13397#endif
13398
13399 end
13400_ACEOF
13401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013402if { (ac_try="$ac_compile"
13403case "(($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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013414 (exit $ac_status); } &&
13415 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013435 ac_compiler_gnu=yes
13436else
13437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013438sed 's/^/| /' conftest.$ac_ext >&5
13439
Reid Spencera773bd52006-08-04 18:18:08 +000013440 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013441fi
Reid Spencera773bd52006-08-04 18:18:08 +000013442
13443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013444ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13445
13446fi
Reid Spencera773bd52006-08-04 18:18:08 +000013447{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13448echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013449ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013450ac_test_FFLAGS=${FFLAGS+set}
13451ac_save_FFLAGS=$FFLAGS
13452FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013453{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13454echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013455if test "${ac_cv_prog_f77_g+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457else
13458 FFLAGS=-g
13459cat >conftest.$ac_ext <<_ACEOF
13460 program main
13461
13462 end
13463_ACEOF
13464rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013465if { (ac_try="$ac_compile"
13466case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492esac
13493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013498 ac_cv_prog_f77_g=yes
13499else
13500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013501sed 's/^/| /' conftest.$ac_ext >&5
13502
Reid Spencera773bd52006-08-04 18:18:08 +000013503 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013504fi
Reid Spencera773bd52006-08-04 18:18:08 +000013505
13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013507
13508fi
Reid Spencera773bd52006-08-04 18:18:08 +000013509{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13510echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013511if test "$ac_test_FFLAGS" = set; then
13512 FFLAGS=$ac_save_FFLAGS
13513elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013515 FFLAGS="-g -O2"
13516 else
13517 FFLAGS="-g"
13518 fi
13519else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013520 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013521 FFLAGS="-O2"
13522 else
13523 FFLAGS=
13524 fi
13525fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013526
13527G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013528ac_ext=c
13529ac_cpp='$CPP $CPPFLAGS'
13530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534
13535
13536# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13537
13538# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013539{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13540echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013541if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543else
13544 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013545 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013546
13547 case $build_os in
13548 msdosdjgpp*)
13549 # On DJGPP, this test can blow up pretty badly due to problems in libc
13550 # (any single argument exceeding 2000 bytes causes a buffer overrun
13551 # during glob expansion). Even if it were fixed, the result of this
13552 # check would be larger than it should be.
13553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13554 ;;
13555
13556 gnu*)
13557 # Under GNU Hurd, this test is not required because there is
13558 # no limit to the length of command line arguments.
13559 # Libtool will interpret -1 as no limit whatsoever
13560 lt_cv_sys_max_cmd_len=-1;
13561 ;;
13562
13563 cygwin* | mingw*)
13564 # On Win9x/ME, this test blows up -- it succeeds, but takes
13565 # about 5 minutes as the teststring grows exponentially.
13566 # Worse, since 9x/ME are not pre-emptively multitasking,
13567 # you end up with a "frozen" computer, even though with patience
13568 # the test eventually succeeds (with a max line length of 256k).
13569 # Instead, let's just punt: use the minimum linelength reported by
13570 # all of the supported platforms: 8192 (on NT/2K/XP).
13571 lt_cv_sys_max_cmd_len=8192;
13572 ;;
13573
Reid Spencer2706f8c2004-09-19 23:53:36 +000013574 amigaos*)
13575 # On AmigaOS with pdksh, this test takes hours, literally.
13576 # So we just punt and use a minimum line length of 8192.
13577 lt_cv_sys_max_cmd_len=8192;
13578 ;;
13579
Reid Spencera773bd52006-08-04 18:18:08 +000013580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013581 # This has been around since 386BSD, at least. Likely further.
13582 if test -x /sbin/sysctl; then
13583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13584 elif test -x /usr/sbin/sysctl; then
13585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13586 else
Reid Spencera773bd52006-08-04 18:18:08 +000013587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013588 fi
13589 # And add a safety zone
13590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013592 ;;
13593
Reid Spencera773bd52006-08-04 18:18:08 +000013594 interix*)
13595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13596 lt_cv_sys_max_cmd_len=196608
13597 ;;
13598
13599 osf*)
13600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13602 # nice to cause kernel panics so lets avoid the loop below.
13603 # First set a reasonable default.
13604 lt_cv_sys_max_cmd_len=16384
13605 #
13606 if test -x /sbin/sysconfig; then
13607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13609 esac
13610 fi
13611 ;;
13612 sco3.2v5*)
13613 lt_cv_sys_max_cmd_len=102400
13614 ;;
13615 sysv5* | sco5v6* | sysv4.2uw2*)
13616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13617 if test -n "$kargmax"; then
13618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13619 else
13620 lt_cv_sys_max_cmd_len=32768
13621 fi
13622 ;;
13623 *)
John Criswell47fdd832003-07-14 16:52:07 +000013624 # If test is not a shell built-in, we'll probably end up computing a
13625 # maximum length that is only half of the actual maximum length, but
13626 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13628 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13629 = "XX$teststring") >/dev/null 2>&1 &&
13630 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013631 lt_cv_sys_max_cmd_len=$new_result &&
13632 test $i != 17 # 1/2 MB should be enough
13633 do
13634 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013635 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013636 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013637 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013638 # Add a significant safety factor because C++ compilers can tack on massive
13639 # amounts of additional arguments before passing them to the linker.
13640 # It appears as though 1/2 is a usable value.
13641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13642 ;;
13643 esac
13644
13645fi
13646
13647if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013648 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13649echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013650else
Reid Spencera773bd52006-08-04 18:18:08 +000013651 { echo "$as_me:$LINENO: result: none" >&5
13652echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653fi
13654
13655
13656
13657
13658# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013659{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13660echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013661if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663else
13664
13665# These are sane defaults that work on at least a few old systems.
13666# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13667
13668# Character class describing NM global symbol codes.
13669symcode='[BCDEGRST]'
13670
13671# Regexp to match symbols that can be accessed directly from C.
13672sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13673
John Criswell47fdd832003-07-14 16:52:07 +000013674# Transform an extracted symbol line into a proper C declaration
13675lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13676
13677# Transform an extracted symbol line into symbol name and symbol address
13678lt_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'"
13679
13680# Define system-specific variables.
13681case $host_os in
13682aix*)
13683 symcode='[BCDT]'
13684 ;;
13685cygwin* | mingw* | pw32*)
13686 symcode='[ABCDGISTW]'
13687 ;;
13688hpux*) # Its linker distinguishes data from code symbols
13689 if test "$host_cpu" = ia64; then
13690 symcode='[ABCDEGRST]'
13691 fi
13692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13693 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'"
13694 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013695linux*)
13696 if test "$host_cpu" = ia64; then
13697 symcode='[ABCDGIRSTW]'
13698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13699 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'"
13700 fi
13701 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013702irix* | nonstopux*)
13703 symcode='[BCDEGRST]'
13704 ;;
13705osf*)
13706 symcode='[BCDEGQRST]'
13707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013708solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013709 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013711sco3.2v5*)
13712 symcode='[DT]'
13713 ;;
13714sysv4.2uw2*)
13715 symcode='[DT]'
13716 ;;
13717sysv5* | sco5v6* | unixware* | OpenUNIX*)
13718 symcode='[ABDT]'
13719 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013720sysv4)
13721 symcode='[DFNSTU]'
13722 ;;
13723esac
13724
13725# Handle CRLF in mingw tool chain
13726opt_cr=
13727case $build_os in
13728mingw*)
13729 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13730 ;;
13731esac
13732
13733# If we're using GNU nm, then use its standard symbol codes.
13734case `$NM -V 2>&1` in
13735*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013736 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013737esac
13738
13739# Try without a prefix undercore, then with it.
13740for ac_symprfx in "" "_"; do
13741
Reid Spencera773bd52006-08-04 18:18:08 +000013742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13743 symxfrm="\\1 $ac_symprfx\\2 \\2"
13744
John Criswell47fdd832003-07-14 16:52:07 +000013745 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013746 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 +000013747
13748 # Check to see that the pipe works correctly.
13749 pipe_works=no
13750
13751 rm -f conftest*
13752 cat > conftest.$ac_ext <<EOF
13753#ifdef __cplusplus
13754extern "C" {
13755#endif
13756char nm_test_var;
13757void nm_test_func(){}
13758#ifdef __cplusplus
13759}
13760#endif
13761int main(){nm_test_var='a';nm_test_func();return(0);}
13762EOF
13763
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; then
13769 # Now try to grab the symbols.
13770 nlist=conftest.nm
13771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } && test -s "$nlist"; then
13776 # Try sorting and uniquifying the output.
13777 if sort "$nlist" | uniq > "$nlist"T; then
13778 mv -f "$nlist"T "$nlist"
13779 else
13780 rm -f "$nlist"T
13781 fi
13782
13783 # Make sure that we snagged all the symbols we need.
13784 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13785 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13786 cat <<EOF > conftest.$ac_ext
13787#ifdef __cplusplus
13788extern "C" {
13789#endif
13790
13791EOF
13792 # Now generate the symbol file.
13793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13794
13795 cat <<EOF >> conftest.$ac_ext
13796#if defined (__STDC__) && __STDC__
13797# define lt_ptr_t void *
13798#else
13799# define lt_ptr_t char *
13800# define const
13801#endif
13802
13803/* The mapping between symbol names and symbols. */
13804const struct {
13805 const char *name;
13806 lt_ptr_t address;
13807}
13808lt_preloaded_symbols[] =
13809{
13810EOF
13811 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13812 cat <<\EOF >> conftest.$ac_ext
13813 {0, (lt_ptr_t) 0}
13814};
13815
13816#ifdef __cplusplus
13817}
13818#endif
13819EOF
13820 # Now try linking the two files.
13821 mv conftest.$ac_objext conftstm.$ac_objext
13822 lt_save_LIBS="$LIBS"
13823 lt_save_CFLAGS="$CFLAGS"
13824 LIBS="conftstm.$ac_objext"
13825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13831 pipe_works=yes
13832 fi
13833 LIBS="$lt_save_LIBS"
13834 CFLAGS="$lt_save_CFLAGS"
13835 else
13836 echo "cannot find nm_test_func in $nlist" >&5
13837 fi
13838 else
13839 echo "cannot find nm_test_var in $nlist" >&5
13840 fi
13841 else
13842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13843 fi
13844 else
13845 echo "$progname: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 fi
13848 rm -f conftest* conftst*
13849
13850 # Do not use the global_symbol_pipe unless it works.
13851 if test "$pipe_works" = yes; then
13852 break
13853 else
13854 lt_cv_sys_global_symbol_pipe=
13855 fi
13856done
13857
13858fi
13859
13860if test -z "$lt_cv_sys_global_symbol_pipe"; then
13861 lt_cv_sys_global_symbol_to_cdecl=
13862fi
13863if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013864 { echo "$as_me:$LINENO: result: failed" >&5
13865echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013866else
Reid Spencera773bd52006-08-04 18:18:08 +000013867 { echo "$as_me:$LINENO: result: ok" >&5
13868echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013869fi
13870
Reid Spencera773bd52006-08-04 18:18:08 +000013871{ echo "$as_me:$LINENO: checking for objdir" >&5
13872echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013873if test "${lt_cv_objdir+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 rm -f .libs 2>/dev/null
13877mkdir .libs 2>/dev/null
13878if test -d .libs; then
13879 lt_cv_objdir=.libs
13880else
13881 # MS-DOS does not allow filenames that begin with a dot.
13882 lt_cv_objdir=_libs
13883fi
13884rmdir .libs 2>/dev/null
13885fi
Reid Spencera773bd52006-08-04 18:18:08 +000013886{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13887echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013888objdir=$lt_cv_objdir
13889
13890
13891
13892
13893
13894case $host_os in
13895aix3*)
13896 # AIX sometimes has problems with the GCC collect2 program. For some
13897 # reason, if we set the COLLECT_NAMES environment variable, the problems
13898 # vanish in a puff of smoke.
13899 if test "X${COLLECT_NAMES+set}" != Xset; then
13900 COLLECT_NAMES=
13901 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013902 fi
13903 ;;
13904esac
13905
John Criswell47fdd832003-07-14 16:52:07 +000013906# Sed substitution that helps us do robust quoting. It backslashifies
13907# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013908Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013909sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13910
13911# Same as above, but do not quote variable references.
13912double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13913
13914# Sed substitution to delay expansion of an escaped shell variable in a
13915# double_quote_subst'ed string.
13916delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13917
13918# Sed substitution to avoid accidental globbing in evaled expressions
13919no_glob_subst='s/\*/\\\*/g'
13920
13921# Constants:
13922rm="rm -f"
13923
13924# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013925default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013926can_build_shared=yes
13927
Reid Spencera773bd52006-08-04 18:18:08 +000013928# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013929# which needs '.lib').
13930libext=a
13931ltmain="$ac_aux_dir/ltmain.sh"
13932ofile="$default_ofile"
13933with_gnu_ld="$lt_cv_prog_gnu_ld"
13934
13935if test -n "$ac_tool_prefix"; then
13936 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13937set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013940if test "${ac_cv_prog_AR+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
13943 if test -n "$AR"; then
13944 ac_cv_prog_AR="$AR" # Let the user override the test.
13945else
13946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947for as_dir in $PATH
13948do
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013952 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 +000013953 ac_cv_prog_AR="${ac_tool_prefix}ar"
13954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13956 fi
13957done
13958done
Reid Spencera773bd52006-08-04 18:18:08 +000013959IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013960
13961fi
13962fi
13963AR=$ac_cv_prog_AR
13964if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013965 { echo "$as_me:$LINENO: result: $AR" >&5
13966echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013967else
Reid Spencera773bd52006-08-04 18:18:08 +000013968 { echo "$as_me:$LINENO: result: no" >&5
13969echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013970fi
13971
Reid Spencera773bd52006-08-04 18:18:08 +000013972
John Criswell47fdd832003-07-14 16:52:07 +000013973fi
13974if test -z "$ac_cv_prog_AR"; then
13975 ac_ct_AR=$AR
13976 # Extract the first word of "ar", so it can be a program name with args.
13977set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013980if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982else
13983 if test -n "$ac_ct_AR"; then
13984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13985else
13986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987for as_dir in $PATH
13988do
13989 IFS=$as_save_IFS
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013992 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 +000013993 ac_cv_prog_ac_ct_AR="ar"
13994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13995 break 2
13996 fi
13997done
13998done
Reid Spencera773bd52006-08-04 18:18:08 +000013999IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014000
John Criswell47fdd832003-07-14 16:52:07 +000014001fi
14002fi
14003ac_ct_AR=$ac_cv_prog_ac_ct_AR
14004if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014005 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14006echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014007else
Reid Spencera773bd52006-08-04 18:18:08 +000014008 { echo "$as_me:$LINENO: result: no" >&5
14009echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014010fi
14011
Reid Spencera773bd52006-08-04 18:18:08 +000014012 if test "x$ac_ct_AR" = x; then
14013 AR="false"
14014 else
14015 case $cross_compiling:$ac_tool_warned in
14016yes:)
14017{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14018whose name does not start with the host triplet. If you think this
14019configuration is useful to you, please write to autoconf@gnu.org." >&5
14020echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14021whose name does not start with the host triplet. If you think this
14022configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14023ac_tool_warned=yes ;;
14024esac
14025 AR=$ac_ct_AR
14026 fi
John Criswell47fdd832003-07-14 16:52:07 +000014027else
14028 AR="$ac_cv_prog_AR"
14029fi
14030
John Criswell7a73b802003-06-30 21:59:07 +000014031if test -n "$ac_tool_prefix"; then
14032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14033set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014036if test "${ac_cv_prog_RANLIB+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038else
14039 if test -n "$RANLIB"; then
14040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14041else
14042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043for as_dir in $PATH
14044do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014048 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 +000014049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 break 2
14052 fi
14053done
14054done
Reid Spencera773bd52006-08-04 18:18:08 +000014055IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014056
14057fi
14058fi
14059RANLIB=$ac_cv_prog_RANLIB
14060if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014061 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14062echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014063else
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: no" >&5
14065echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014066fi
14067
Reid Spencera773bd52006-08-04 18:18:08 +000014068
John Criswell7a73b802003-06-30 21:59:07 +000014069fi
14070if test -z "$ac_cv_prog_RANLIB"; then
14071 ac_ct_RANLIB=$RANLIB
14072 # Extract the first word of "ranlib", so it can be a program name with args.
14073set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014076if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078else
14079 if test -n "$ac_ct_RANLIB"; then
14080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14081else
14082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083for as_dir in $PATH
14084do
14085 IFS=$as_save_IFS
14086 test -z "$as_dir" && as_dir=.
14087 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014088 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 +000014089 ac_cv_prog_ac_ct_RANLIB="ranlib"
14090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091 break 2
14092 fi
14093done
14094done
Reid Spencera773bd52006-08-04 18:18:08 +000014095IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014096
John Criswell7a73b802003-06-30 21:59:07 +000014097fi
14098fi
14099ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14100if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014101 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14102echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014103else
Reid Spencera773bd52006-08-04 18:18:08 +000014104 { echo "$as_me:$LINENO: result: no" >&5
14105echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014106fi
14107
Reid Spencera773bd52006-08-04 18:18:08 +000014108 if test "x$ac_ct_RANLIB" = x; then
14109 RANLIB=":"
14110 else
14111 case $cross_compiling:$ac_tool_warned in
14112yes:)
14113{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14114whose name does not start with the host triplet. If you think this
14115configuration is useful to you, please write to autoconf@gnu.org." >&5
14116echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14117whose name does not start with the host triplet. If you think this
14118configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14119ac_tool_warned=yes ;;
14120esac
14121 RANLIB=$ac_ct_RANLIB
14122 fi
John Criswell7a73b802003-06-30 21:59:07 +000014123else
14124 RANLIB="$ac_cv_prog_RANLIB"
14125fi
14126
14127if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14129set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014132if test "${ac_cv_prog_STRIP+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135 if test -n "$STRIP"; then
14136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014144 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 +000014145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150done
Reid Spencera773bd52006-08-04 18:18:08 +000014151IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014152
14153fi
14154fi
14155STRIP=$ac_cv_prog_STRIP
14156if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014157 { echo "$as_me:$LINENO: result: $STRIP" >&5
14158echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014159else
Reid Spencera773bd52006-08-04 18:18:08 +000014160 { echo "$as_me:$LINENO: result: no" >&5
14161echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014162fi
14163
Reid Spencera773bd52006-08-04 18:18:08 +000014164
John Criswell7a73b802003-06-30 21:59:07 +000014165fi
14166if test -z "$ac_cv_prog_STRIP"; then
14167 ac_ct_STRIP=$STRIP
14168 # Extract the first word of "strip", so it can be a program name with args.
14169set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014172if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174else
14175 if test -n "$ac_ct_STRIP"; then
14176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14177else
14178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179for as_dir in $PATH
14180do
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014184 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 +000014185 ac_cv_prog_ac_ct_STRIP="strip"
14186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 break 2
14188 fi
14189done
14190done
Reid Spencera773bd52006-08-04 18:18:08 +000014191IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014192
John Criswell7a73b802003-06-30 21:59:07 +000014193fi
14194fi
14195ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14196if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14198echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014199else
Reid Spencera773bd52006-08-04 18:18:08 +000014200 { echo "$as_me:$LINENO: result: no" >&5
14201echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014202fi
14203
Reid Spencera773bd52006-08-04 18:18:08 +000014204 if test "x$ac_ct_STRIP" = x; then
14205 STRIP=":"
14206 else
14207 case $cross_compiling:$ac_tool_warned in
14208yes:)
14209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14210whose name does not start with the host triplet. If you think this
14211configuration is useful to you, please write to autoconf@gnu.org." >&5
14212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14213whose name does not start with the host triplet. If you think this
14214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14215ac_tool_warned=yes ;;
14216esac
14217 STRIP=$ac_ct_STRIP
14218 fi
John Criswell7a73b802003-06-30 21:59:07 +000014219else
14220 STRIP="$ac_cv_prog_STRIP"
14221fi
14222
14223
John Criswell7a73b802003-06-30 21:59:07 +000014224old_CC="$CC"
14225old_CFLAGS="$CFLAGS"
14226
14227# Set sane defaults for various variables
14228test -z "$AR" && AR=ar
14229test -z "$AR_FLAGS" && AR_FLAGS=cru
14230test -z "$AS" && AS=as
14231test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014232test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014233test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014234test -z "$DLLTOOL" && DLLTOOL=dlltool
14235test -z "$LD" && LD=ld
14236test -z "$LN_S" && LN_S="ln -s"
14237test -z "$MAGIC_CMD" && MAGIC_CMD=file
14238test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014239test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014240test -z "$OBJDUMP" && OBJDUMP=objdump
14241test -z "$RANLIB" && RANLIB=:
14242test -z "$STRIP" && STRIP=:
14243test -z "$ac_objext" && ac_objext=o
14244
John Criswell7a73b802003-06-30 21:59:07 +000014245# Determine commands to create old-style static archives.
14246old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14247old_postinstall_cmds='chmod 644 $oldlib'
14248old_postuninstall_cmds=
14249
14250if test -n "$RANLIB"; then
14251 case $host_os in
14252 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014254 ;;
14255 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014257 ;;
14258 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014260fi
14261
Reid Spencera773bd52006-08-04 18:18:08 +000014262for cc_temp in $compiler""; do
14263 case $cc_temp in
14264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14266 \-*) ;;
14267 *) break;;
14268 esac
14269done
14270cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14271
Reid Spencer2706f8c2004-09-19 23:53:36 +000014272
John Criswell47fdd832003-07-14 16:52:07 +000014273# Only perform the check for file, if the check method requires it
14274case $deplibs_check_method in
14275file_magic*)
14276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014277 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14278echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014279if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014281else
John Criswell47fdd832003-07-14 16:52:07 +000014282 case $MAGIC_CMD in
14283[\\/*] | ?:[\\/]*)
14284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14285 ;;
14286*)
14287 lt_save_MAGIC_CMD="$MAGIC_CMD"
14288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14290 for ac_dir in $ac_dummy; do
14291 IFS="$lt_save_ifs"
14292 test -z "$ac_dir" && ac_dir=.
14293 if test -f $ac_dir/${ac_tool_prefix}file; then
14294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14295 if test -n "$file_magic_test_file"; then
14296 case $deplibs_check_method in
14297 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14301 $EGREP "$file_magic_regex" > /dev/null; then
14302 :
14303 else
14304 cat <<EOF 1>&2
14305
14306*** Warning: the command libtool uses to detect shared libraries,
14307*** $file_magic_cmd, produces output that libtool cannot recognize.
14308*** The result is that libtool may fail to recognize shared libraries
14309*** as such. This will affect the creation of libtool libraries that
14310*** depend on shared libraries, but programs linked with such libtool
14311*** libraries will work regardless of this problem. Nevertheless, you
14312*** may want to report the problem to your system manager and/or to
14313*** bug-libtool@gnu.org
14314
14315EOF
14316 fi ;;
14317 esac
14318 fi
14319 break
14320 fi
14321 done
14322 IFS="$lt_save_ifs"
14323 MAGIC_CMD="$lt_save_MAGIC_CMD"
14324 ;;
14325esac
John Criswell7a73b802003-06-30 21:59:07 +000014326fi
John Criswell7a73b802003-06-30 21:59:07 +000014327
John Criswell47fdd832003-07-14 16:52:07 +000014328MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014330 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14331echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014332else
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: result: no" >&5
14334echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335fi
John Criswell7a73b802003-06-30 21:59:07 +000014336
John Criswell47fdd832003-07-14 16:52:07 +000014337if test -z "$lt_cv_path_MAGIC_CMD"; then
14338 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014339 { echo "$as_me:$LINENO: checking for file" >&5
14340echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014341if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343else
14344 case $MAGIC_CMD in
14345[\\/*] | ?:[\\/]*)
14346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14347 ;;
14348*)
14349 lt_save_MAGIC_CMD="$MAGIC_CMD"
14350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14352 for ac_dir in $ac_dummy; do
14353 IFS="$lt_save_ifs"
14354 test -z "$ac_dir" && ac_dir=.
14355 if test -f $ac_dir/file; then
14356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14357 if test -n "$file_magic_test_file"; then
14358 case $deplibs_check_method in
14359 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14363 $EGREP "$file_magic_regex" > /dev/null; then
14364 :
14365 else
14366 cat <<EOF 1>&2
14367
14368*** Warning: the command libtool uses to detect shared libraries,
14369*** $file_magic_cmd, produces output that libtool cannot recognize.
14370*** The result is that libtool may fail to recognize shared libraries
14371*** as such. This will affect the creation of libtool libraries that
14372*** depend on shared libraries, but programs linked with such libtool
14373*** libraries will work regardless of this problem. Nevertheless, you
14374*** may want to report the problem to your system manager and/or to
14375*** bug-libtool@gnu.org
14376
14377EOF
14378 fi ;;
14379 esac
14380 fi
14381 break
14382 fi
14383 done
14384 IFS="$lt_save_ifs"
14385 MAGIC_CMD="$lt_save_MAGIC_CMD"
14386 ;;
14387esac
14388fi
14389
14390MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14391if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014392 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14393echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014394else
Reid Spencera773bd52006-08-04 18:18:08 +000014395 { echo "$as_me:$LINENO: result: no" >&5
14396echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014397fi
14398
14399 else
14400 MAGIC_CMD=:
14401 fi
14402fi
14403
14404 fi
14405 ;;
14406esac
14407
Reid Spencer17795972004-11-18 09:47:37 +000014408enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014409enable_win32_dll=no
14410
Reid Spencera773bd52006-08-04 18:18:08 +000014411# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014412if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014413 enableval=$enable_libtool_lock;
14414fi
John Criswell47fdd832003-07-14 16:52:07 +000014415
John Criswell47fdd832003-07-14 16:52:07 +000014416test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14417
John Criswell7a73b802003-06-30 21:59:07 +000014418
Reid Spencera773bd52006-08-04 18:18:08 +000014419# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014420if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014421 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014422else
14423 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014424fi
14425
John Criswell7a73b802003-06-30 21:59:07 +000014426test -z "$pic_mode" && pic_mode=default
14427
John Criswell47fdd832003-07-14 16:52:07 +000014428# Use C for the default configuration in the libtool script
14429tagname=
14430lt_save_CC="$CC"
14431ac_ext=c
14432ac_cpp='$CPP $CPPFLAGS'
14433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14435ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436
14437
14438# Source file extension for C test sources.
14439ac_ext=c
14440
14441# Object file extension for compiled C test sources.
14442objext=o
14443objext=$objext
14444
14445# Code to be used in simple compile tests
14446lt_simple_compile_test_code="int some_variable = 0;\n"
14447
14448# Code to be used in simple link tests
14449lt_simple_link_test_code='int main(){return(0);}\n'
14450
14451
14452# If no C compiler was specified, use CC.
14453LTCC=${LTCC-"$CC"}
14454
Reid Spencera773bd52006-08-04 18:18:08 +000014455# If no C compiler flags were specified, use CFLAGS.
14456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14457
John Criswell47fdd832003-07-14 16:52:07 +000014458# Allow CC to be a program name with arguments.
14459compiler=$CC
14460
14461
Reid Spencera773bd52006-08-04 18:18:08 +000014462# save warnings/boilerplate of simple test code
14463ac_outfile=conftest.$ac_objext
14464printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14465eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466_lt_compiler_boilerplate=`cat conftest.err`
14467$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014468
Reid Spencera773bd52006-08-04 18:18:08 +000014469ac_outfile=conftest.$ac_objext
14470printf "$lt_simple_link_test_code" >conftest.$ac_ext
14471eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14472_lt_linker_boilerplate=`cat conftest.err`
14473$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014474
14475
John Criswell47fdd832003-07-14 16:52:07 +000014476
14477lt_prog_compiler_no_builtin_flag=
14478
14479if test "$GCC" = yes; then
14480 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14481
Reid Spencer2706f8c2004-09-19 23:53:36 +000014482
Reid Spencera773bd52006-08-04 18:18:08 +000014483{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14484echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014485if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487else
14488 lt_cv_prog_compiler_rtti_exceptions=no
14489 ac_outfile=conftest.$ac_objext
14490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="-fno-rtti -fno-exceptions"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 # The option is referenced via a variable to avoid confusing sed.
14497 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000014501 (eval echo "\"\$as_me:14496: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014502 (eval "$lt_compile" 2>conftest.err)
14503 ac_status=$?
14504 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000014505 echo "$as_me:14500: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014506 if (exit $ac_status) && test -s "$ac_outfile"; then
14507 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014508 # So say no if there are warnings other than the usual output.
14509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014512 lt_cv_prog_compiler_rtti_exceptions=yes
14513 fi
14514 fi
14515 $rm conftest*
14516
14517fi
Reid Spencera773bd52006-08-04 18:18:08 +000014518{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14519echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014520
14521if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14522 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14523else
14524 :
14525fi
14526
14527fi
14528
14529lt_prog_compiler_wl=
14530lt_prog_compiler_pic=
14531lt_prog_compiler_static=
14532
Reid Spencera773bd52006-08-04 18:18:08 +000014533{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14534echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014535
14536 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014539
14540 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014541 aix*)
14542 # All AIX code is PIC.
14543 if test "$host_cpu" = ia64; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static='-Bstatic'
14546 fi
John Criswell7a73b802003-06-30 21:59:07 +000014547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014548
John Criswell7a73b802003-06-30 21:59:07 +000014549 amigaos*)
14550 # FIXME: we need at least 68020 code to build shared libraries, but
14551 # adding the `-m68020' flag to GCC prevents building anything better,
14552 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014554 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014555
14556 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014557 # PIC is the default for these OSes.
14558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014559
14560 mingw* | pw32* | os2*)
14561 # This hack is so that the source file can tell whether it is being
14562 # built for inclusion in a dll (and should export symbols for example).
14563 lt_prog_compiler_pic='-DDLL_EXPORT'
14564 ;;
14565
John Criswell7a73b802003-06-30 21:59:07 +000014566 darwin* | rhapsody*)
14567 # PIC is the default on this platform
14568 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014569 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014570 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014571
Reid Spencera773bd52006-08-04 18:18:08 +000014572 interix3*)
14573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14574 # Instead, we relocate shared libraries at runtime.
14575 ;;
14576
John Criswell47fdd832003-07-14 16:52:07 +000014577 msdosdjgpp*)
14578 # Just because we use GCC doesn't mean we suddenly get shared libraries
14579 # on systems that don't support them.
14580 lt_prog_compiler_can_build_shared=no
14581 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014582 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014583
John Criswell7a73b802003-06-30 21:59:07 +000014584 sysv4*MP*)
14585 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014586 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014587 fi
14588 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014589
14590 hpux*)
14591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14592 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014593 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014594 hppa*64*|ia64*)
14595 # +Z the default
14596 ;;
14597 *)
14598 lt_prog_compiler_pic='-fPIC'
14599 ;;
14600 esac
14601 ;;
14602
John Criswell7a73b802003-06-30 21:59:07 +000014603 *)
John Criswell47fdd832003-07-14 16:52:07 +000014604 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014605 ;;
14606 esac
14607 else
John Criswell47fdd832003-07-14 16:52:07 +000014608 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014609 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014610 aix*)
14611 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014612 if test "$host_cpu" = ia64; then
14613 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014614 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014615 else
John Criswell47fdd832003-07-14 16:52:07 +000014616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014617 fi
14618 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014619 darwin*)
14620 # PIC is the default on this platform
14621 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014622 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014623 xlc*)
14624 lt_prog_compiler_pic='-qnocommon'
14625 lt_prog_compiler_wl='-Wl,'
14626 ;;
14627 esac
14628 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014629
John Criswell47fdd832003-07-14 16:52:07 +000014630 mingw* | pw32* | os2*)
14631 # This hack is so that the source file can tell whether it is being
14632 # built for inclusion in a dll (and should export symbols for example).
14633 lt_prog_compiler_pic='-DDLL_EXPORT'
14634 ;;
14635
John Criswell7a73b802003-06-30 21:59:07 +000014636 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014637 lt_prog_compiler_wl='-Wl,'
14638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14639 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014640 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014641 hppa*64*|ia64*)
14642 # +Z the default
14643 ;;
14644 *)
14645 lt_prog_compiler_pic='+Z'
14646 ;;
14647 esac
14648 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14649 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014650 ;;
14651
John Criswell47fdd832003-07-14 16:52:07 +000014652 irix5* | irix6* | nonstopux*)
14653 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014654 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014655 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014656 ;;
14657
14658 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014659 lt_prog_compiler_pic='-KPIC'
14660 lt_prog_compiler_static='-Bstatic'
14661 ;;
14662
14663 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014664 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014665 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-static'
14669 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014670 pgcc* | pgf77* | pgf90* | pgf95*)
14671 # Portland Group compilers (*not* the Pentium gcc compiler,
14672 # which looks to be a dead project)
14673 lt_prog_compiler_wl='-Wl,'
14674 lt_prog_compiler_pic='-fpic'
14675 lt_prog_compiler_static='-Bstatic'
14676 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014677 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014678 lt_prog_compiler_wl='-Wl,'
14679 # All Alpha code is PIC.
14680 lt_prog_compiler_static='-non_shared'
14681 ;;
14682 esac
John Criswell7a73b802003-06-30 21:59:07 +000014683 ;;
14684
14685 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014686 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014687 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014688 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014689 ;;
14690
John Criswell7a73b802003-06-30 21:59:07 +000014691 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014692 lt_prog_compiler_pic='-KPIC'
14693 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014694 case $cc_basename in
14695 f77* | f90* | f95*)
14696 lt_prog_compiler_wl='-Qoption ld ';;
14697 *)
14698 lt_prog_compiler_wl='-Wl,';;
14699 esac
John Criswell7a73b802003-06-30 21:59:07 +000014700 ;;
14701
14702 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014703 lt_prog_compiler_wl='-Qoption ld '
14704 lt_prog_compiler_pic='-PIC'
14705 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014706 ;;
14707
Reid Spencera773bd52006-08-04 18:18:08 +000014708 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014709 lt_prog_compiler_wl='-Wl,'
14710 lt_prog_compiler_pic='-KPIC'
14711 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014712 ;;
14713
14714 sysv4*MP*)
14715 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014716 lt_prog_compiler_pic='-Kconform_pic'
14717 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014718 fi
14719 ;;
14720
Reid Spencera773bd52006-08-04 18:18:08 +000014721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14722 lt_prog_compiler_wl='-Wl,'
14723 lt_prog_compiler_pic='-KPIC'
14724 lt_prog_compiler_static='-Bstatic'
14725 ;;
14726
14727 unicos*)
14728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_can_build_shared=no
14730 ;;
14731
John Criswell47fdd832003-07-14 16:52:07 +000014732 uts4*)
14733 lt_prog_compiler_pic='-pic'
14734 lt_prog_compiler_static='-Bstatic'
14735 ;;
14736
John Criswell7a73b802003-06-30 21:59:07 +000014737 *)
John Criswell47fdd832003-07-14 16:52:07 +000014738 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014739 ;;
14740 esac
14741 fi
14742
Reid Spencera773bd52006-08-04 18:18:08 +000014743{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14744echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014745
John Criswell47fdd832003-07-14 16:52:07 +000014746#
14747# Check to make sure the PIC flag actually works.
14748#
14749if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014750
Reid Spencera773bd52006-08-04 18:18:08 +000014751{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014753if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755else
John Criswell47fdd832003-07-14 16:52:07 +000014756 lt_prog_compiler_pic_works=no
14757 ac_outfile=conftest.$ac_objext
14758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14759 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14760 # Insert the option either (1) after the last *FLAGS variable, or
14761 # (2) before a word containing "conftest.", or (3) at the end.
14762 # Note that $ac_compile itself does not contain backslashes and begins
14763 # with a dollar sign (not a hyphen), so the echo should work correctly.
14764 # The option is referenced via a variable to avoid confusing sed.
14765 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000014769 (eval echo "\"\$as_me:14764: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014770 (eval "$lt_compile" 2>conftest.err)
14771 ac_status=$?
14772 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000014773 echo "$as_me:14768: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014774 if (exit $ac_status) && test -s "$ac_outfile"; then
14775 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014776 # So say no if there are warnings other than the usual output.
14777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014780 lt_prog_compiler_pic_works=yes
14781 fi
14782 fi
14783 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014784
John Criswell47fdd832003-07-14 16:52:07 +000014785fi
Reid Spencera773bd52006-08-04 18:18:08 +000014786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14787echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014788
John Criswell47fdd832003-07-14 16:52:07 +000014789if test x"$lt_prog_compiler_pic_works" = xyes; then
14790 case $lt_prog_compiler_pic in
14791 "" | " "*) ;;
14792 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14793 esac
John Criswell7a73b802003-06-30 21:59:07 +000014794else
John Criswell47fdd832003-07-14 16:52:07 +000014795 lt_prog_compiler_pic=
14796 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014797fi
14798
John Criswell7a73b802003-06-30 21:59:07 +000014799fi
Reid Spencera773bd52006-08-04 18:18:08 +000014800case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014801 # For platforms which do not support PIC, -DPIC is meaningless:
14802 *djgpp*)
14803 lt_prog_compiler_pic=
14804 ;;
14805 *)
14806 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14807 ;;
14808esac
John Criswell7a73b802003-06-30 21:59:07 +000014809
Reid Spencera773bd52006-08-04 18:18:08 +000014810#
14811# Check to make sure the static flag actually works.
14812#
14813wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14814{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14815echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14816if test "${lt_prog_compiler_static_works+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819 lt_prog_compiler_static_works=no
14820 save_LDFLAGS="$LDFLAGS"
14821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14822 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14824 # The linker can only warn and ignore the option if not recognized
14825 # So say no if there are warnings
14826 if test -s conftest.err; then
14827 # Append any errors to the config.log.
14828 cat conftest.err 1>&5
14829 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831 if diff conftest.exp conftest.er2 >/dev/null; then
14832 lt_prog_compiler_static_works=yes
14833 fi
14834 else
14835 lt_prog_compiler_static_works=yes
14836 fi
14837 fi
14838 $rm conftest*
14839 LDFLAGS="$save_LDFLAGS"
14840
14841fi
14842{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14843echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14844
14845if test x"$lt_prog_compiler_static_works" = xyes; then
14846 :
14847else
14848 lt_prog_compiler_static=
14849fi
14850
14851
14852{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14853echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014854if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
John Criswell47fdd832003-07-14 16:52:07 +000014857 lt_cv_prog_compiler_c_o=no
14858 $rm -r conftest 2>/dev/null
14859 mkdir conftest
14860 cd conftest
14861 mkdir out
14862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014863
John Criswell47fdd832003-07-14 16:52:07 +000014864 lt_compiler_flag="-o out/conftest2.$ac_objext"
14865 # Insert the option either (1) after the last *FLAGS variable, or
14866 # (2) before a word containing "conftest.", or (3) at the end.
14867 # Note that $ac_compile itself does not contain backslashes and begins
14868 # with a dollar sign (not a hyphen), so the echo should work correctly.
14869 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000014873 (eval echo "\"\$as_me:14868: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014874 (eval "$lt_compile" 2>out/conftest.err)
14875 ac_status=$?
14876 cat out/conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000014877 echo "$as_me:14872: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14879 then
14880 # The compiler can only warn and ignore the option if not recognized
14881 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014885 lt_cv_prog_compiler_c_o=yes
14886 fi
14887 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014888 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014889 $rm conftest*
14890 # SGI C++ compiler will create directory out/ii_files/ for
14891 # template instantiation
14892 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14893 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014894 cd ..
14895 rmdir conftest
14896 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898fi
Reid Spencera773bd52006-08-04 18:18:08 +000014899{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14900echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014901
John Criswell7a73b802003-06-30 21:59:07 +000014902
John Criswell7a73b802003-06-30 21:59:07 +000014903hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014904if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014905 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014906 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14907echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014908 hard_links=yes
14909 $rm conftest*
14910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911 touch conftest.a
14912 ln conftest.a conftest.b 2>&5 || hard_links=no
14913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014914 { echo "$as_me:$LINENO: result: $hard_links" >&5
14915echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014916 if test "$hard_links" = no; then
14917 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14918echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14919 need_locks=warn
14920 fi
14921else
14922 need_locks=no
14923fi
John Criswell7a73b802003-06-30 21:59:07 +000014924
Reid Spencera773bd52006-08-04 18:18:08 +000014925{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14926echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014927
14928 runpath_var=
14929 allow_undefined_flag=
14930 enable_shared_with_static_runtimes=no
14931 archive_cmds=
14932 archive_expsym_cmds=
14933 old_archive_From_new_cmds=
14934 old_archive_from_expsyms_cmds=
14935 export_dynamic_flag_spec=
14936 whole_archive_flag_spec=
14937 thread_safe_flag_spec=
14938 hardcode_libdir_flag_spec=
14939 hardcode_libdir_flag_spec_ld=
14940 hardcode_libdir_separator=
14941 hardcode_direct=no
14942 hardcode_minus_L=no
14943 hardcode_shlibpath_var=unsupported
14944 link_all_deplibs=unknown
14945 hardcode_automatic=no
14946 module_cmds=
14947 module_expsym_cmds=
14948 always_export_symbols=no
14949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950 # include_expsyms should be a list of space-separated symbols to be *always*
14951 # included in the symbol list
14952 include_expsyms=
14953 # exclude_expsyms can be an extended regexp of symbols to exclude
14954 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14956 # as well as any symbol that contains `d'.
14957 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14959 # platforms (ab)use it in PIC code, but their linkers get confused if
14960 # the symbol is explicitly referenced. Since portable code cannot
14961 # rely on this symbol name, it's probably fine to never include it in
14962 # preloaded symbol tables.
14963 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014964 # Just being paranoid about ensuring that cc_basename is set.
14965 for cc_temp in $compiler""; do
14966 case $cc_temp in
14967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14969 \-*) ;;
14970 *) break;;
14971 esac
14972done
14973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014974
14975 case $host_os in
14976 cygwin* | mingw* | pw32*)
14977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14978 # When not using gcc, we currently assume that we are using
14979 # Microsoft Visual C++.
14980 if test "$GCC" != yes; then
14981 with_gnu_ld=no
14982 fi
14983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014984 interix*)
14985 # we just hope/assume this is gcc and not c89 (= MSVC++)
14986 with_gnu_ld=yes
14987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014988 openbsd*)
14989 with_gnu_ld=no
14990 ;;
14991 esac
14992
14993 ld_shlibs=yes
14994 if test "$with_gnu_ld" = yes; then
14995 # If archive_cmds runs LD, not CC, wlarc should be empty
14996 wlarc='${wl}'
14997
Reid Spencera773bd52006-08-04 18:18:08 +000014998 # Set some defaults for GNU ld with shared library support. These
14999 # are reset later if shared libraries are not supported. Putting them
15000 # here allows them to be overridden if necessary.
15001 runpath_var=LD_RUN_PATH
15002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15003 export_dynamic_flag_spec='${wl}--export-dynamic'
15004 # ancient GNU ld didn't support --whole-archive et. al.
15005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15007 else
15008 whole_archive_flag_spec=
15009 fi
15010 supports_anon_versioning=no
15011 case `$LD -v 2>/dev/null` in
15012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15015 *\ 2.11.*) ;; # other 2.11 versions
15016 *) supports_anon_versioning=yes ;;
15017 esac
15018
John Criswell47fdd832003-07-14 16:52:07 +000015019 # See if GNU ld supports shared libraries.
15020 case $host_os in
15021 aix3* | aix4* | aix5*)
15022 # On AIX/PPC, the GNU linker is very broken
15023 if test "$host_cpu" != ia64; then
15024 ld_shlibs=no
15025 cat <<EOF 1>&2
15026
15027*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15028*** to be unable to reliably create shared libraries on AIX.
15029*** Therefore, libtool is disabling shared libraries support. If you
15030*** really care for shared libraries, you may want to modify your PATH
15031*** so that a non-GNU linker is found, and then restart.
15032
15033EOF
15034 fi
15035 ;;
15036
15037 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015038 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 +000015039 hardcode_libdir_flag_spec='-L$libdir'
15040 hardcode_minus_L=yes
15041
15042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15043 # that the semantics of dynamic libraries on AmigaOS, at least up
15044 # to version 4, is to share data among multiple programs linked
15045 # with the same dynamic library. Since this doesn't match the
15046 # behavior of shared libraries on other platforms, we can't use
15047 # them.
15048 ld_shlibs=no
15049 ;;
15050
15051 beos*)
15052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15053 allow_undefined_flag=unsupported
15054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15055 # support --undefined. This deserves some investigation. FIXME
15056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 else
15058 ld_shlibs=no
15059 fi
15060 ;;
15061
15062 cygwin* | mingw* | pw32*)
15063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15064 # as there is no search path for DLLs.
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 allow_undefined_flag=unsupported
15067 always_export_symbols=no
15068 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015069 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 +000015070
15071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015072 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 +000015073 # If the export-symbols file already is a .def file (1st line
15074 # is EXPORTS), use it as is; otherwise, prepend...
15075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15076 cp $export_symbols $output_objdir/$soname.def;
15077 else
15078 echo EXPORTS > $output_objdir/$soname.def;
15079 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015080 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15082 else
15083 ld_shlibs=no
15084 fi
15085 ;;
15086
15087 interix3*)
15088 hardcode_direct=no
15089 hardcode_shlibpath_var=no
15090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15091 export_dynamic_flag_spec='${wl}-E'
15092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15093 # Instead, shared libraries are loaded at an image base (0x10000000 by
15094 # default) and relocated if they conflict, which is a slow very memory
15095 # consuming and fragmenting process. To avoid this, we pick a random,
15096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15099 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'
15100 ;;
15101
15102 linux*)
15103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15104 tmp_addflag=
15105 case $cc_basename,$host_cpu in
15106 pgcc*) # Portland Group C compiler
15107 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'
15108 tmp_addflag=' $pic_flag'
15109 ;;
15110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15111 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'
15112 tmp_addflag=' $pic_flag -Mnomain' ;;
15113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15114 tmp_addflag=' -i_dynamic' ;;
15115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15116 tmp_addflag=' -i_dynamic -nofor_main' ;;
15117 ifc* | ifort*) # Intel Fortran compiler
15118 tmp_addflag=' -nofor_main' ;;
15119 esac
15120 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121
15122 if test $supports_anon_versioning = yes; then
15123 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15125 $echo "local: *; };" >> $output_objdir/$libname.ver~
15126 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15127 fi
John Criswell47fdd832003-07-14 16:52:07 +000015128 else
15129 ld_shlibs=no
15130 fi
15131 ;;
15132
15133 netbsd*)
15134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15135 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15136 wlarc=
15137 else
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140 fi
15141 ;;
15142
Reid Spencera773bd52006-08-04 18:18:08 +000015143 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015144 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15145 ld_shlibs=no
15146 cat <<EOF 1>&2
15147
15148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15149*** create shared libraries on Solaris systems. Therefore, libtool
15150*** is disabling shared libraries support. We urge you to upgrade GNU
15151*** binutils to release 2.9.1 or newer. Another option is to modify
15152*** your PATH or compiler configuration so that the native linker is
15153*** used, and then restart.
15154
15155EOF
15156 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 else
15160 ld_shlibs=no
15161 fi
15162 ;;
15163
Reid Spencera773bd52006-08-04 18:18:08 +000015164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15165 case `$LD -v 2>&1` in
15166 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15167 ld_shlibs=no
15168 cat <<_LT_EOF 1>&2
15169
15170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15171*** reliably create shared libraries on SCO systems. Therefore, libtool
15172*** is disabling shared libraries support. We urge you to upgrade GNU
15173*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15174*** your PATH or compiler configuration so that the native linker is
15175*** used, and then restart.
15176
15177_LT_EOF
15178 ;;
15179 *)
15180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188 esac
15189 ;;
15190
John Criswell47fdd832003-07-14 16:52:07 +000015191 sunos4*)
15192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15193 wlarc=
15194 hardcode_direct=yes
15195 hardcode_shlibpath_var=no
15196 ;;
15197
15198 *)
15199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202 else
15203 ld_shlibs=no
15204 fi
15205 ;;
15206 esac
15207
Reid Spencera773bd52006-08-04 18:18:08 +000015208 if test "$ld_shlibs" = no; then
15209 runpath_var=
15210 hardcode_libdir_flag_spec=
15211 export_dynamic_flag_spec=
15212 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015213 fi
15214 else
15215 # PORTME fill in a description of your system's linker (not GNU ld)
15216 case $host_os in
15217 aix3*)
15218 allow_undefined_flag=unsupported
15219 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015220 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 +000015221 # Note: this linker hardcodes the directories in LIBPATH if there
15222 # are no directories specified by -L.
15223 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015224 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015225 # Neither direct hardcoding nor static linking is supported with a
15226 # broken collect2.
15227 hardcode_direct=unsupported
15228 fi
15229 ;;
15230
15231 aix4* | aix5*)
15232 if test "$host_cpu" = ia64; then
15233 # On IA64, the linker does run time linking by default, so we don't
15234 # have to do anything special.
15235 aix_use_runtimelinking=no
15236 exp_sym_flag='-Bexport'
15237 no_entry_flag=""
15238 else
15239 # If we're using GNU nm, then we don't want the "-C" option.
15240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15242 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'
15243 else
15244 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'
15245 fi
15246 aix_use_runtimelinking=no
15247
15248 # Test if we are trying to use run time linking or normal
15249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250 # need to do runtime linking.
15251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252 for ld_flag in $LDFLAGS; do
15253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15254 aix_use_runtimelinking=yes
15255 break
15256 fi
15257 done
Reid Spencera773bd52006-08-04 18:18:08 +000015258 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015259 esac
15260
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15263 fi
15264
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271 archive_cmds=''
15272 hardcode_direct=yes
15273 hardcode_libdir_separator=':'
15274 link_all_deplibs=yes
15275
15276 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015277 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15283 then
15284 # We have reworked collect2
15285 hardcode_direct=yes
15286 else
15287 # We have old collect2
15288 hardcode_direct=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L=yes
15293 hardcode_libdir_flag_spec='-L$libdir'
15294 hardcode_libdir_separator=
15295 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015296 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015297 esac
15298 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015299 if test "$aix_use_runtimelinking" = yes; then
15300 shared_flag="$shared_flag "'${wl}-G'
15301 fi
John Criswell47fdd832003-07-14 16:52:07 +000015302 else
15303 # not using gcc
15304 if test "$host_cpu" = ia64; then
15305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15306 # chokes on -Wl,-G. The following line is correct:
15307 shared_flag='-G'
15308 else
Reid Spencera773bd52006-08-04 18:18:08 +000015309 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015310 shared_flag='${wl}-G'
15311 else
15312 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015313 fi
John Criswell47fdd832003-07-14 16:52:07 +000015314 fi
15315 fi
15316
15317 # It seems that -bexpall does not export symbols beginning with
15318 # underscore (_), so it is better to generate a list of symbols to export.
15319 always_export_symbols=yes
15320 if test "$aix_use_runtimelinking" = yes; then
15321 # Warning - without using the other runtime loading flags (-brtl),
15322 # -berok will link without error, but may produce a broken library.
15323 allow_undefined_flag='-berok'
15324 # Determine the default libpath from the value encoded in an empty executable.
15325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015326/* confdefs.h. */
15327_ACEOF
15328cat confdefs.h >>conftest.$ac_ext
15329cat >>conftest.$ac_ext <<_ACEOF
15330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015331
John Criswell7a73b802003-06-30 21:59:07 +000015332int
15333main ()
15334{
John Criswell47fdd832003-07-14 16:52:07 +000015335
John Criswell7a73b802003-06-30 21:59:07 +000015336 ;
15337 return 0;
15338}
15339_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015340rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015341if { (ac_try="$ac_link"
15342case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355 { (case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_try") 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015374
John Criswell47fdd832003-07-14 16:52:07 +000015375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15376}'`
15377# Check for a 64-bit object if we didn't find anything.
15378if 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; }
15379}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015380else
15381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015382sed 's/^/| /' conftest.$ac_ext >&5
15383
Reid Spencera773bd52006-08-04 18:18:08 +000015384
John Criswell7a73b802003-06-30 21:59:07 +000015385fi
Reid Spencera773bd52006-08-04 18:18:08 +000015386
Tanya Lattnercf067672008-01-17 05:57:22 +000015387rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015388 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015390
John Criswell47fdd832003-07-14 16:52:07 +000015391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015392 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 +000015393 else
15394 if test "$host_cpu" = ia64; then
15395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15396 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015397 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 +000015398 else
15399 # Determine the default libpath from the value encoded in an empty executable.
15400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015406
John Criswell47fdd832003-07-14 16:52:07 +000015407int
15408main ()
15409{
John Criswell7a73b802003-06-30 21:59:07 +000015410
John Criswell47fdd832003-07-14 16:52:07 +000015411 ;
15412 return 0;
15413}
15414_ACEOF
15415rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015416if { (ac_try="$ac_link"
15417case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015449
John Criswell47fdd832003-07-14 16:52:07 +000015450aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15451}'`
15452# Check for a 64-bit object if we didn't find anything.
15453if 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; }
15454}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015455else
John Criswell47fdd832003-07-14 16:52:07 +000015456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015457sed 's/^/| /' conftest.$ac_ext >&5
15458
Reid Spencera773bd52006-08-04 18:18:08 +000015459
John Criswell47fdd832003-07-14 16:52:07 +000015460fi
Reid Spencera773bd52006-08-04 18:18:08 +000015461
Tanya Lattnercf067672008-01-17 05:57:22 +000015462rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015463 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015465
John Criswell47fdd832003-07-14 16:52:07 +000015466 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15467 # Warning - without using the other run time loading flags,
15468 # -berok will link without error, but may produce a broken library.
15469 no_undefined_flag=' ${wl}-bernotok'
15470 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015471 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015472 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015473 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015474 # This is similar to how AIX traditionally builds its shared libraries.
15475 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 +000015476 fi
15477 fi
John Criswell7a73b802003-06-30 21:59:07 +000015478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015479
15480 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015481 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 +000015482 hardcode_libdir_flag_spec='-L$libdir'
15483 hardcode_minus_L=yes
15484 # see comment about different semantics on the GNU ld section
15485 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015486 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015487
Reid Spencer2706f8c2004-09-19 23:53:36 +000015488 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015489 export_dynamic_flag_spec=-rdynamic
15490 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015491
John Criswell47fdd832003-07-14 16:52:07 +000015492 cygwin* | mingw* | pw32*)
15493 # When not using gcc, we currently assume that we are using
15494 # Microsoft Visual C++.
15495 # hardcode_libdir_flag_spec is actually meaningless, as there is
15496 # no search path for DLLs.
15497 hardcode_libdir_flag_spec=' '
15498 allow_undefined_flag=unsupported
15499 # Tell ltmain to make .lib files, not .a files.
15500 libext=lib
15501 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015502 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015503 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015505 # The linker will automatically build a .lib file if we build a DLL.
15506 old_archive_From_new_cmds='true'
15507 # FIXME: Should let the user specify the lib program.
15508 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15509 fix_srcfile_path='`cygpath -w "$srcfile"`'
15510 enable_shared_with_static_runtimes=yes
15511 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015512
John Criswell47fdd832003-07-14 16:52:07 +000015513 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015514 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015515 rhapsody* | darwin1.[012])
15516 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15517 ;;
15518 *) # Darwin 1.3 on
15519 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15520 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15521 else
15522 case ${MACOSX_DEPLOYMENT_TARGET} in
15523 10.[012])
15524 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525 ;;
15526 10.*)
15527 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15528 ;;
15529 esac
15530 fi
15531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015532 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015534 hardcode_direct=no
15535 hardcode_automatic=yes
15536 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015537 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015538 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015539 if test "$GCC" = yes ; then
15540 output_verbose_link_cmd='echo'
15541 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15542 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015543 # 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 +000015544 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}'
15545 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 +000015546 else
Reid Spencera773bd52006-08-04 18:18:08 +000015547 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548 xlc*)
15549 output_verbose_link_cmd='echo'
15550 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15551 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015552 # 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 +000015553 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}'
15554 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 +000015555 ;;
15556 *)
15557 ld_shlibs=no
15558 ;;
15559 esac
John Criswell7a73b802003-06-30 21:59:07 +000015560 fi
John Criswell47fdd832003-07-14 16:52:07 +000015561 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015562
John Criswell47fdd832003-07-14 16:52:07 +000015563 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015565 hardcode_libdir_flag_spec='-L$libdir'
15566 hardcode_shlibpath_var=no
15567 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015568
John Criswell47fdd832003-07-14 16:52:07 +000015569 freebsd1*)
15570 ld_shlibs=no
15571 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015572
John Criswell47fdd832003-07-14 16:52:07 +000015573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15574 # support. Future versions do this automatically, but an explicit c++rt0.o
15575 # does not break anything, and helps significantly (at the cost of a little
15576 # extra space).
15577 freebsd2.2*)
15578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15579 hardcode_libdir_flag_spec='-R$libdir'
15580 hardcode_direct=yes
15581 hardcode_shlibpath_var=no
15582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015583
John Criswell47fdd832003-07-14 16:52:07 +000015584 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15585 freebsd2*)
15586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_direct=yes
15588 hardcode_minus_L=yes
15589 hardcode_shlibpath_var=no
15590 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015591
John Criswell47fdd832003-07-14 16:52:07 +000015592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015593 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015594 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15595 hardcode_libdir_flag_spec='-R$libdir'
15596 hardcode_direct=yes
15597 hardcode_shlibpath_var=no
15598 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015599
John Criswell47fdd832003-07-14 16:52:07 +000015600 hpux9*)
15601 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015602 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 +000015603 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015604 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 +000015605 fi
15606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15607 hardcode_libdir_separator=:
15608 hardcode_direct=yes
15609
15610 # hardcode_minus_L: Not really in the search PATH,
15611 # but as the default location of the library.
15612 hardcode_minus_L=yes
15613 export_dynamic_flag_spec='${wl}-E'
15614 ;;
15615
Reid Spencera773bd52006-08-04 18:18:08 +000015616 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015617 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015618 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619 else
15620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15621 fi
15622 if test "$with_gnu_ld" = no; then
15623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15624 hardcode_libdir_separator=:
15625
15626 hardcode_direct=yes
15627 export_dynamic_flag_spec='${wl}-E'
15628
15629 # hardcode_minus_L: Not really in the search PATH,
15630 # but as the default location of the library.
15631 hardcode_minus_L=yes
15632 fi
15633 ;;
15634
15635 hpux11*)
15636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15637 case $host_cpu in
15638 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015641 ia64*)
15642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15643 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015644 *)
15645 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646 ;;
15647 esac
15648 else
Reid Spencera773bd52006-08-04 18:18:08 +000015649 case $host_cpu in
15650 hppa*64*)
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652 ;;
15653 ia64*)
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015655 ;;
15656 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015657 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 +000015658 ;;
15659 esac
15660 fi
15661 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015664
Reid Spencera773bd52006-08-04 18:18:08 +000015665 case $host_cpu in
15666 hppa*64*|ia64*)
15667 hardcode_libdir_flag_spec_ld='+b $libdir'
15668 hardcode_direct=no
15669 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015670 ;;
15671 *)
John Criswell47fdd832003-07-14 16:52:07 +000015672 hardcode_direct=yes
15673 export_dynamic_flag_spec='${wl}-E'
15674
15675 # hardcode_minus_L: Not really in the search PATH,
15676 # but as the default location of the library.
15677 hardcode_minus_L=yes
15678 ;;
15679 esac
15680 fi
15681 ;;
15682
15683 irix5* | irix6* | nonstopux*)
15684 if test "$GCC" = yes; then
15685 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'
15686 else
15687 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'
15688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15689 fi
15690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691 hardcode_libdir_separator=:
15692 link_all_deplibs=yes
15693 ;;
15694
15695 netbsd*)
15696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15698 else
15699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15700 fi
15701 hardcode_libdir_flag_spec='-R$libdir'
15702 hardcode_direct=yes
15703 hardcode_shlibpath_var=no
15704 ;;
15705
15706 newsos6)
15707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_direct=yes
15709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15710 hardcode_libdir_separator=:
15711 hardcode_shlibpath_var=no
15712 ;;
15713
15714 openbsd*)
15715 hardcode_direct=yes
15716 hardcode_shlibpath_var=no
15717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015719 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 +000015720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15721 export_dynamic_flag_spec='${wl}-E'
15722 else
15723 case $host_os in
15724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15726 hardcode_libdir_flag_spec='-R$libdir'
15727 ;;
15728 *)
15729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15731 ;;
15732 esac
15733 fi
15734 ;;
15735
15736 os2*)
15737 hardcode_libdir_flag_spec='-L$libdir'
15738 hardcode_minus_L=yes
15739 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015740 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 +000015741 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742 ;;
15743
15744 osf3*)
15745 if test "$GCC" = yes; then
15746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15747 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'
15748 else
15749 allow_undefined_flag=' -expect_unresolved \*'
15750 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'
15751 fi
15752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753 hardcode_libdir_separator=:
15754 ;;
15755
15756 osf4* | osf5*) # as osf3* with the addition of -msym flag
15757 if test "$GCC" = yes; then
15758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15759 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'
15760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15761 else
15762 allow_undefined_flag=' -expect_unresolved \*'
15763 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 +000015764 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 +000015765 $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 +000015766
John Criswell47fdd832003-07-14 16:52:07 +000015767 # Both c and cxx compiler support -rpath directly
15768 hardcode_libdir_flag_spec='-rpath $libdir'
15769 fi
15770 hardcode_libdir_separator=:
15771 ;;
15772
John Criswell47fdd832003-07-14 16:52:07 +000015773 solaris*)
15774 no_undefined_flag=' -z text'
15775 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015776 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015777 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779 $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 +000015780 else
Reid Spencera773bd52006-08-04 18:18:08 +000015781 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015783 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784 $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 +000015785 fi
15786 hardcode_libdir_flag_spec='-R$libdir'
15787 hardcode_shlibpath_var=no
15788 case $host_os in
15789 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015790 *)
15791 # The compiler driver will combine linker options so we
15792 # cannot just pass the convience library names through
15793 # without $wl, iff we do not link with $LD.
15794 # Luckily, gcc supports the same syntax we need for Sun Studio.
15795 # Supported since Solaris 2.6 (maybe 2.5.1?)
15796 case $wlarc in
15797 '')
15798 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15799 *)
15800 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' ;;
15801 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015802 esac
15803 link_all_deplibs=yes
15804 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015805
John Criswell47fdd832003-07-14 16:52:07 +000015806 sunos4*)
15807 if test "x$host_vendor" = xsequent; then
15808 # Use $CC to link under sequent, because it throws in some extra .o
15809 # files that make .init and .fini sections work.
15810 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15811 else
15812 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15813 fi
15814 hardcode_libdir_flag_spec='-L$libdir'
15815 hardcode_direct=yes
15816 hardcode_minus_L=yes
15817 hardcode_shlibpath_var=no
15818 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015819
John Criswell47fdd832003-07-14 16:52:07 +000015820 sysv4)
15821 case $host_vendor in
15822 sni)
15823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_direct=yes # is this really true???
15825 ;;
15826 siemens)
15827 ## LD is ld it makes a PLAMLIB
15828 ## CC just makes a GrossModule.
15829 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15830 reload_cmds='$CC -r -o $output$reload_objs'
15831 hardcode_direct=no
15832 ;;
15833 motorola)
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15836 ;;
15837 esac
15838 runpath_var='LD_RUN_PATH'
15839 hardcode_shlibpath_var=no
15840 ;;
15841
15842 sysv4.3*)
15843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_shlibpath_var=no
15845 export_dynamic_flag_spec='-Bexport'
15846 ;;
15847
15848 sysv4*MP*)
15849 if test -d /usr/nec; then
15850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_shlibpath_var=no
15852 runpath_var=LD_RUN_PATH
15853 hardcode_runpath_var=yes
15854 ld_shlibs=yes
15855 fi
15856 ;;
15857
Reid Spencera773bd52006-08-04 18:18:08 +000015858 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15859 no_undefined_flag='${wl}-z,text'
15860 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015861 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015862 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015863
John Criswell47fdd832003-07-14 16:52:07 +000015864 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 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 +000015867 else
Reid Spencera773bd52006-08-04 18:18:08 +000015868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 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 +000015870 fi
John Criswell47fdd832003-07-14 16:52:07 +000015871 ;;
15872
Reid Spencera773bd52006-08-04 18:18:08 +000015873 sysv5* | sco3.2v5* | sco5v6*)
15874 # Note: We can NOT use -z defs as we might desire, because we do not
15875 # link with -lc, and that would cause any symbols used from libc to
15876 # always be unresolved, which means just about no library would
15877 # ever link correctly. If we're not using GNU ld we use -z text
15878 # though, which does catch some bad symbols but isn't as heavy-handed
15879 # as -z defs.
15880 no_undefined_flag='${wl}-z,text'
15881 allow_undefined_flag='${wl}-z,nodefs'
15882 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015883 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015884 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15885 hardcode_libdir_separator=':'
15886 link_all_deplibs=yes
15887 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015888 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015889
15890 if test "$GCC" = yes; then
15891 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 else
15894 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 fi
John Criswell47fdd832003-07-14 16:52:07 +000015897 ;;
15898
15899 uts4*)
15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 hardcode_libdir_flag_spec='-L$libdir'
15902 hardcode_shlibpath_var=no
15903 ;;
15904
15905 *)
15906 ld_shlibs=no
15907 ;;
15908 esac
15909 fi
15910
Reid Spencera773bd52006-08-04 18:18:08 +000015911{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15912echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015913test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015914
John Criswell47fdd832003-07-14 16:52:07 +000015915#
15916# Do we need to explicitly link libc?
15917#
15918case "x$archive_cmds_need_lc" in
15919x|xyes)
15920 # Assume -lc should be added
15921 archive_cmds_need_lc=yes
15922
15923 if test "$enable_shared" = yes && test "$GCC" = yes; then
15924 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015925 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015926 # FIXME: we may have to deal with multi-command sequences.
15927 ;;
15928 '$CC '*)
15929 # Test whether the compiler implicitly links with -lc since on some
15930 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15931 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015932 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15933echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015934 $rm conftest*
15935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936
15937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938 (eval $ac_compile) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } 2>conftest.err; then
15942 soname=conftest
15943 lib=conftest
15944 libobjs=conftest.$ac_objext
15945 deplibs=
15946 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015947 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015948 compiler_flags=-v
15949 linker_flags=-v
15950 verstring=
15951 output_objdir=.
15952 libname=conftest
15953 lt_save_allow_undefined_flag=$allow_undefined_flag
15954 allow_undefined_flag=
15955 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15956 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }
15960 then
15961 archive_cmds_need_lc=no
15962 else
15963 archive_cmds_need_lc=yes
15964 fi
15965 allow_undefined_flag=$lt_save_allow_undefined_flag
15966 else
15967 cat conftest.err 1>&5
15968 fi
15969 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015970 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15971echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015972 ;;
15973 esac
15974 fi
15975 ;;
15976esac
15977
Reid Spencera773bd52006-08-04 18:18:08 +000015978{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15979echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015980library_names_spec=
15981libname_spec='lib$name'
15982soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015983shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015984postinstall_cmds=
15985postuninstall_cmds=
15986finish_cmds=
15987finish_eval=
15988shlibpath_var=
15989shlibpath_overrides_runpath=unknown
15990version_type=none
15991dynamic_linker="$host_os ld.so"
15992sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015993if test "$GCC" = yes; then
15994 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15995 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15996 # if the path contains ";" then we assume it to be the separator
15997 # otherwise default to the standard path separator (i.e. ":") - it is
15998 # assumed that no part of a normal pathname contains ";" but that should
15999 # okay in the real world where ";" in dirpaths is itself problematic.
16000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16001 else
16002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16003 fi
16004else
16005 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16006fi
16007need_lib_prefix=unknown
16008hardcode_into_libs=no
16009
16010# when you set need_version to no, make sure it does not cause -set_version
16011# flags to be left without arguments
16012need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016013
16014case $host_os in
16015aix3*)
16016 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016018 shlibpath_var=LIBPATH
16019
John Criswell47fdd832003-07-14 16:52:07 +000016020 # AIX 3 has no versioning support, so we append a major version to the name.
16021 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016022 ;;
16023
16024aix4* | aix5*)
16025 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016026 need_lib_prefix=no
16027 need_version=no
16028 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016029 if test "$host_cpu" = ia64; then
16030 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016032 shlibpath_var=LD_LIBRARY_PATH
16033 else
16034 # With GCC up to 2.95.x, collect2 would create an import file
16035 # for dependence libraries. The import file would start with
16036 # the line `#! .'. This would cause the generated library to
16037 # depend on `.', always an invalid library. This was fixed in
16038 # development snapshots of GCC prior to 3.0.
16039 case $host_os in
16040 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16042 echo ' yes '
16043 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16044 :
16045 else
16046 can_build_shared=no
16047 fi
16048 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016049 esac
John Criswell47fdd832003-07-14 16:52:07 +000016050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16051 # soname into executable. Probably we can add versioning support to
16052 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016053 if test "$aix_use_runtimelinking" = yes; then
16054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16055 # instead of lib<name>.a to let people know that these are not
16056 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016058 else
16059 # We preserve .a as extension for shared libraries through AIX4.2
16060 # and later when we are not doing run time linking.
16061 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016062 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016063 fi
16064 shlibpath_var=LIBPATH
16065 fi
16066 ;;
16067
16068amigaos*)
16069 library_names_spec='$libname.ixlibrary $libname.a'
16070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016071 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 +000016072 ;;
16073
16074beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016075 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016076 dynamic_linker="$host_os ld.so"
16077 shlibpath_var=LIBRARY_PATH
16078 ;;
16079
Reid Spencer2706f8c2004-09-19 23:53:36 +000016080bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016081 version_type=linux
16082 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016089 # the default ld.so.conf also contains /usr/contrib/lib and
16090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16091 # libtool to hard-code these into programs
16092 ;;
16093
16094cygwin* | mingw* | pw32*)
16095 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016096 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016097 need_version=no
16098 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016099
John Criswell7a73b802003-06-30 21:59:07 +000016100 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016101 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016102 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016104 postinstall_cmds='base_file=`basename \${file}`~
16105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16106 dldir=$destdir/`dirname \$dlpath`~
16107 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016108 $install_prog $dir/$dlname \$dldir/$dlname~
16109 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16111 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016112 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016113 shlibpath_overrides_runpath=yes
16114
16115 case $host_os in
16116 cygwin*)
16117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16118 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 +000016119 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016120 ;;
16121 mingw*)
16122 # MinGW DLLs use traditional 'lib' prefix
16123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16125 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16126 # It is most probably a Windows format PATH printed by
16127 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16128 # path with ; separators, and with drive letters. We can handle the
16129 # drive letters (cygwin fileutils understands them), so leave them,
16130 # especially as we might pass files found there to a mingw objdump,
16131 # which wouldn't understand a cygwinified path. Ahh.
16132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16133 else
16134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16135 fi
16136 ;;
16137 pw32*)
16138 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016139 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 +000016140 ;;
16141 esac
John Criswell7a73b802003-06-30 21:59:07 +000016142 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016143
John Criswell7a73b802003-06-30 21:59:07 +000016144 *)
John Criswell47fdd832003-07-14 16:52:07 +000016145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016146 ;;
16147 esac
16148 dynamic_linker='Win32 ld.exe'
16149 # FIXME: first we should search . and the directory the executable is in
16150 shlibpath_var=PATH
16151 ;;
16152
16153darwin* | rhapsody*)
16154 dynamic_linker="$host_os dyld"
16155 version_type=darwin
16156 need_lib_prefix=no
16157 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016158 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016159 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016160 shlibpath_overrides_runpath=yes
16161 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016162 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016163 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016164 if test "$GCC" = yes; then
16165 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"`
16166 else
16167 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016168 fi
16169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 ;;
16171
16172dgux*)
16173 version_type=linux
16174 need_lib_prefix=no
16175 need_version=no
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016179 ;;
16180
16181freebsd1*)
16182 dynamic_linker=no
16183 ;;
16184
Reid Spencer2706f8c2004-09-19 23:53:36 +000016185kfreebsd*-gnu)
16186 version_type=linux
16187 need_lib_prefix=no
16188 need_version=no
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=no
16193 hardcode_into_libs=yes
16194 dynamic_linker='GNU ld.so'
16195 ;;
16196
Reid Spencera773bd52006-08-04 18:18:08 +000016197freebsd* | dragonfly*)
16198 # DragonFly does not have aout. When/if they implement a new
16199 # versioning mechanism, adjust this.
16200 if test -x /usr/bin/objformat; then
16201 objformat=`/usr/bin/objformat`
16202 else
16203 case $host_os in
16204 freebsd[123]*) objformat=aout ;;
16205 *) objformat=elf ;;
16206 esac
16207 fi
John Criswell7a73b802003-06-30 21:59:07 +000016208 version_type=freebsd-$objformat
16209 case $version_type in
16210 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016212 need_version=no
16213 need_lib_prefix=no
16214 ;;
16215 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016217 need_version=yes
16218 ;;
16219 esac
16220 shlibpath_var=LD_LIBRARY_PATH
16221 case $host_os in
16222 freebsd2*)
16223 shlibpath_overrides_runpath=yes
16224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016225 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016226 shlibpath_overrides_runpath=yes
16227 hardcode_into_libs=yes
16228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016229 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16230 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016231 shlibpath_overrides_runpath=no
16232 hardcode_into_libs=yes
16233 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016234 freebsd*) # from 4.6 on
16235 shlibpath_overrides_runpath=yes
16236 hardcode_into_libs=yes
16237 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016238 esac
16239 ;;
16240
16241gnu*)
16242 version_type=linux
16243 need_lib_prefix=no
16244 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016247 shlibpath_var=LD_LIBRARY_PATH
16248 hardcode_into_libs=yes
16249 ;;
16250
16251hpux9* | hpux10* | hpux11*)
16252 # Give a soname corresponding to the major version so that dld.sl refuses to
16253 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016254 version_type=sunos
16255 need_lib_prefix=no
16256 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016257 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016258 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016259 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016260 hardcode_into_libs=yes
16261 dynamic_linker="$host_os dld.so"
16262 shlibpath_var=LD_LIBRARY_PATH
16263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 if test "X$HPUX_IA64_MODE" = X32; then
16267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16268 else
16269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270 fi
16271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 ;;
16273 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016274 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016275 hardcode_into_libs=yes
16276 dynamic_linker="$host_os dld.sl"
16277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16283 ;;
16284 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016285 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016286 dynamic_linker="$host_os dld.sl"
16287 shlibpath_var=SHLIB_PATH
16288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 ;;
16292 esac
John Criswell7a73b802003-06-30 21:59:07 +000016293 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16294 postinstall_cmds='chmod 555 $lib'
16295 ;;
16296
Reid Spencera773bd52006-08-04 18:18:08 +000016297interix3*)
16298 version_type=linux
16299 need_lib_prefix=no
16300 need_version=no
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 shlibpath_overrides_runpath=no
16306 hardcode_into_libs=yes
16307 ;;
16308
John Criswell47fdd832003-07-14 16:52:07 +000016309irix5* | irix6* | nonstopux*)
16310 case $host_os in
16311 nonstopux*) version_type=nonstopux ;;
16312 *)
16313 if test "$lt_cv_prog_gnu_ld" = yes; then
16314 version_type=linux
16315 else
16316 version_type=irix
16317 fi ;;
16318 esac
John Criswell7a73b802003-06-30 21:59:07 +000016319 need_lib_prefix=no
16320 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016321 soname_spec='${libname}${release}${shared_ext}$major'
16322 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 +000016323 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016324 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016325 libsuff= shlibsuff=
16326 ;;
16327 *)
16328 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16330 libsuff= shlibsuff= libmagic=32-bit;;
16331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16332 libsuff=32 shlibsuff=N32 libmagic=N32;;
16333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016335 *) libsuff= shlibsuff= libmagic=never-match;;
16336 esac
16337 ;;
16338 esac
16339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16340 shlibpath_overrides_runpath=no
16341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016343 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016344 ;;
16345
16346# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016347linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016348 dynamic_linker=no
16349 ;;
16350
16351# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016352linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016353 version_type=linux
16354 need_lib_prefix=no
16355 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 shlibpath_overrides_runpath=no
16361 # This implies no fast_install, which is unacceptable.
16362 # Some rework will be needed to allow for fast_install
16363 # before this can be enabled.
16364 hardcode_into_libs=yes
16365
Reid Spencer2706f8c2004-09-19 23:53:36 +000016366 # Append ld.so.conf contents to the search path
16367 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016368 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 +000016369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16370 fi
16371
John Criswell7a73b802003-06-30 21:59:07 +000016372 # We used to test for /lib/ld.so.1 and disable shared libraries on
16373 # powerpc, because MkLinux only supported shared libraries with the
16374 # GNU dynamic linker. Since this was broken with cross compilers,
16375 # most powerpc-linux boxes support dynamic linking these days and
16376 # people can always --disable-shared, the test was removed, and we
16377 # assume the GNU/Linux dynamic linker is in use.
16378 dynamic_linker='GNU/Linux ld.so'
16379 ;;
16380
Reid Spencer2706f8c2004-09-19 23:53:36 +000016381knetbsd*-gnu)
16382 version_type=linux
16383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 dynamic_linker='GNU ld.so'
16391 ;;
16392
John Criswell7a73b802003-06-30 21:59:07 +000016393netbsd*)
16394 version_type=sunos
16395 need_lib_prefix=no
16396 need_version=no
16397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16400 dynamic_linker='NetBSD (a.out) ld.so'
16401 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016403 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016404 dynamic_linker='NetBSD ld.elf_so'
16405 fi
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 hardcode_into_libs=yes
16409 ;;
16410
16411newsos6)
16412 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 ;;
16417
Reid Spencer2706f8c2004-09-19 23:53:36 +000016418nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016419 version_type=linux
16420 need_lib_prefix=no
16421 need_version=no
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 ;;
16427
16428openbsd*)
16429 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016430 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016431 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16433 case $host_os in
16434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16435 *) need_version=no ;;
16436 esac
John Criswell47fdd832003-07-14 16:52:07 +000016437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016440 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 +000016441 case $host_os in
16442 openbsd2.[89] | openbsd2.[89].*)
16443 shlibpath_overrides_runpath=no
16444 ;;
16445 *)
16446 shlibpath_overrides_runpath=yes
16447 ;;
16448 esac
John Criswell7a73b802003-06-30 21:59:07 +000016449 else
16450 shlibpath_overrides_runpath=yes
16451 fi
John Criswell7a73b802003-06-30 21:59:07 +000016452 ;;
16453
16454os2*)
16455 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016456 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016457 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016458 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016459 dynamic_linker='OS/2 ld.exe'
16460 shlibpath_var=LIBPATH
16461 ;;
16462
16463osf3* | osf4* | osf5*)
16464 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016465 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016466 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016467 soname_spec='${libname}${release}${shared_ext}$major'
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016469 shlibpath_var=LD_LIBRARY_PATH
16470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472 ;;
16473
John Criswell7a73b802003-06-30 21:59:07 +000016474solaris*)
16475 version_type=linux
16476 need_lib_prefix=no
16477 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=yes
16482 hardcode_into_libs=yes
16483 # ldd complains unless libraries are executable
16484 postinstall_cmds='chmod +x $lib'
16485 ;;
16486
16487sunos4*)
16488 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 if test "$with_gnu_ld" = yes; then
16494 need_lib_prefix=no
16495 fi
16496 need_version=yes
16497 ;;
16498
Reid Spencera773bd52006-08-04 18:18:08 +000016499sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016500 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016503 shlibpath_var=LD_LIBRARY_PATH
16504 case $host_vendor in
16505 sni)
16506 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016507 need_lib_prefix=no
16508 export_dynamic_flag_spec='${wl}-Blargedynsym'
16509 runpath_var=LD_RUN_PATH
16510 ;;
16511 siemens)
16512 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016513 ;;
16514 motorola)
16515 need_lib_prefix=no
16516 need_version=no
16517 shlibpath_overrides_runpath=no
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519 ;;
16520 esac
16521 ;;
16522
John Criswell7a73b802003-06-30 21:59:07 +000016523sysv4*MP*)
16524 if test -d /usr/nec ;then
16525 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016528 shlibpath_var=LD_LIBRARY_PATH
16529 fi
16530 ;;
16531
Reid Spencera773bd52006-08-04 18:18:08 +000016532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533 version_type=freebsd-elf
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 hardcode_into_libs=yes
16540 if test "$with_gnu_ld" = yes; then
16541 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16542 shlibpath_overrides_runpath=no
16543 else
16544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16545 shlibpath_overrides_runpath=yes
16546 case $host_os in
16547 sco3.2v5*)
16548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16549 ;;
16550 esac
16551 fi
16552 sys_lib_dlsearch_path_spec='/usr/lib'
16553 ;;
16554
John Criswell47fdd832003-07-14 16:52:07 +000016555uts4*)
16556 version_type=linux
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 ;;
16561
John Criswell7a73b802003-06-30 21:59:07 +000016562*)
16563 dynamic_linker=no
16564 ;;
16565esac
Reid Spencera773bd52006-08-04 18:18:08 +000016566{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16567echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016568test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016569
Reid Spencera773bd52006-08-04 18:18:08 +000016570variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16571if test "$GCC" = yes; then
16572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16573fi
16574
16575{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16576echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577hardcode_action=
16578if test -n "$hardcode_libdir_flag_spec" || \
16579 test -n "$runpath_var" || \
16580 test "X$hardcode_automatic" = "Xyes" ; then
16581
16582 # We can hardcode non-existant directories.
16583 if test "$hardcode_direct" != no &&
16584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16585 # have to relink, otherwise we might link with an installed library
16586 # when we should be linking with a yet-to-be-installed one
16587 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16588 test "$hardcode_minus_L" != no; then
16589 # Linking always hardcodes the temporary library directory.
16590 hardcode_action=relink
16591 else
16592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16593 hardcode_action=immediate
16594 fi
16595else
16596 # We cannot hardcode anything, or else we can only hardcode existing
16597 # directories.
16598 hardcode_action=unsupported
16599fi
Reid Spencera773bd52006-08-04 18:18:08 +000016600{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16601echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016602
16603if test "$hardcode_action" = relink; then
16604 # Fast installation is not supported
16605 enable_fast_install=no
16606elif test "$shlibpath_overrides_runpath" = yes ||
16607 test "$enable_shared" = no; then
16608 # Fast installation is not necessary
16609 enable_fast_install=needless
16610fi
16611
16612striplib=
16613old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016614{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16615echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016616if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016619 { echo "$as_me:$LINENO: result: yes" >&5
16620echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016621else
16622# FIXME - insert some real tests, host_os isn't really good enough
16623 case $host_os in
16624 darwin*)
16625 if test -n "$STRIP" ; then
16626 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016627 { echo "$as_me:$LINENO: result: yes" >&5
16628echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629 else
Reid Spencera773bd52006-08-04 18:18:08 +000016630 { echo "$as_me:$LINENO: result: no" >&5
16631echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632fi
16633 ;;
16634 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016635 { echo "$as_me:$LINENO: result: no" >&5
16636echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016637 ;;
16638 esac
16639fi
16640
John Criswell7a73b802003-06-30 21:59:07 +000016641if test "x$enable_dlopen" != xyes; then
16642 enable_dlopen=unknown
16643 enable_dlopen_self=unknown
16644 enable_dlopen_self_static=unknown
16645else
16646 lt_cv_dlopen=no
16647 lt_cv_dlopen_libs=
16648
16649 case $host_os in
16650 beos*)
16651 lt_cv_dlopen="load_add_on"
16652 lt_cv_dlopen_libs=
16653 lt_cv_dlopen_self=yes
16654 ;;
16655
John Criswell47fdd832003-07-14 16:52:07 +000016656 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016657 lt_cv_dlopen="LoadLibrary"
16658 lt_cv_dlopen_libs=
16659 ;;
16660
John Criswell47fdd832003-07-14 16:52:07 +000016661 cygwin*)
16662 lt_cv_dlopen="dlopen"
16663 lt_cv_dlopen_libs=
16664 ;;
16665
16666 darwin*)
16667 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016668 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16669echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016670if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672else
16673 ac_check_lib_save_LIBS=$LIBS
16674LIBS="-ldl $LIBS"
16675cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016681
Reid Spencera773bd52006-08-04 18:18:08 +000016682/* Override any GCC internal prototype to avoid an error.
16683 Use char because int might match the return type of a GCC
16684 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016685#ifdef __cplusplus
16686extern "C"
16687#endif
John Criswell47fdd832003-07-14 16:52:07 +000016688char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016689int
16690main ()
16691{
Reid Spencera773bd52006-08-04 18:18:08 +000016692return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016693 ;
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016698if { (ac_try="$ac_link"
16699case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715esac
16716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725esac
16726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016731 ac_cv_lib_dl_dlopen=yes
16732else
16733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016734sed 's/^/| /' conftest.$ac_ext >&5
16735
Reid Spencera773bd52006-08-04 18:18:08 +000016736 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016737fi
Reid Spencera773bd52006-08-04 18:18:08 +000016738
Tanya Lattnercf067672008-01-17 05:57:22 +000016739rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016740 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016741LIBS=$ac_check_lib_save_LIBS
16742fi
Reid Spencera773bd52006-08-04 18:18:08 +000016743{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16744echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016745if test $ac_cv_lib_dl_dlopen = yes; then
16746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16747else
16748
16749 lt_cv_dlopen="dyld"
16750 lt_cv_dlopen_libs=
16751 lt_cv_dlopen_self=yes
16752
16753fi
16754
16755 ;;
16756
John Criswell7a73b802003-06-30 21:59:07 +000016757 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016758 { echo "$as_me:$LINENO: checking for shl_load" >&5
16759echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016760if test "${ac_cv_func_shl_load+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
16763 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016764/* confdefs.h. */
16765_ACEOF
16766cat confdefs.h >>conftest.$ac_ext
16767cat >>conftest.$ac_ext <<_ACEOF
16768/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16771#define shl_load innocuous_shl_load
16772
John Criswell7a73b802003-06-30 21:59:07 +000016773/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016774 which can conflict with char shl_load (); below.
16775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16776 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016777
John Criswell0c38eaf2003-09-10 15:17:25 +000016778#ifdef __STDC__
16779# include <limits.h>
16780#else
16781# include <assert.h>
16782#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016783
16784#undef shl_load
16785
Reid Spencera773bd52006-08-04 18:18:08 +000016786/* Override any GCC internal prototype to avoid an error.
16787 Use char because int might match the return type of a GCC
16788 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016789#ifdef __cplusplus
16790extern "C"
16791#endif
John Criswell7a73b802003-06-30 21:59:07 +000016792char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016793/* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016796#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016797choke me
John Criswell7a73b802003-06-30 21:59:07 +000016798#endif
16799
John Criswell0c38eaf2003-09-10 15:17:25 +000016800int
16801main ()
16802{
Reid Spencera773bd52006-08-04 18:18:08 +000016803return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016804 ;
16805 return 0;
16806}
16807_ACEOF
16808rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016809if { (ac_try="$ac_link"
16810case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016842 ac_cv_func_shl_load=yes
16843else
16844 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016845sed 's/^/| /' conftest.$ac_ext >&5
16846
Reid Spencera773bd52006-08-04 18:18:08 +000016847 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016848fi
Reid Spencera773bd52006-08-04 18:18:08 +000016849
Tanya Lattnercf067672008-01-17 05:57:22 +000016850rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016852fi
Reid Spencera773bd52006-08-04 18:18:08 +000016853{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16854echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016855if test $ac_cv_func_shl_load = yes; then
16856 lt_cv_dlopen="shl_load"
16857else
Reid Spencera773bd52006-08-04 18:18:08 +000016858 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16859echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016860if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862else
16863 ac_check_lib_save_LIBS=$LIBS
16864LIBS="-ldld $LIBS"
16865cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016871
Reid Spencera773bd52006-08-04 18:18:08 +000016872/* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016875#ifdef __cplusplus
16876extern "C"
16877#endif
John Criswell7a73b802003-06-30 21:59:07 +000016878char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016879int
16880main ()
16881{
Reid Spencera773bd52006-08-04 18:18:08 +000016882return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016888if { (ac_try="$ac_link"
16889case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892esac
16893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016921 ac_cv_lib_dld_shl_load=yes
16922else
16923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016924sed 's/^/| /' conftest.$ac_ext >&5
16925
Reid Spencera773bd52006-08-04 18:18:08 +000016926 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016927fi
Reid Spencera773bd52006-08-04 18:18:08 +000016928
Tanya Lattnercf067672008-01-17 05:57:22 +000016929rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016930 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016931LIBS=$ac_check_lib_save_LIBS
16932fi
Reid Spencera773bd52006-08-04 18:18:08 +000016933{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16934echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016935if test $ac_cv_lib_dld_shl_load = yes; then
16936 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16937else
Reid Spencera773bd52006-08-04 18:18:08 +000016938 { echo "$as_me:$LINENO: checking for dlopen" >&5
16939echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016940if test "${ac_cv_func_dlopen+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16942else
16943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016944/* confdefs.h. */
16945_ACEOF
16946cat confdefs.h >>conftest.$ac_ext
16947cat >>conftest.$ac_ext <<_ACEOF
16948/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016949/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16951#define dlopen innocuous_dlopen
16952
John Criswell7a73b802003-06-30 21:59:07 +000016953/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016954 which can conflict with char dlopen (); below.
16955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016957
John Criswell0c38eaf2003-09-10 15:17:25 +000016958#ifdef __STDC__
16959# include <limits.h>
16960#else
16961# include <assert.h>
16962#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016963
16964#undef dlopen
16965
Reid Spencera773bd52006-08-04 18:18:08 +000016966/* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016969#ifdef __cplusplus
16970extern "C"
16971#endif
John Criswell7a73b802003-06-30 21:59:07 +000016972char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016973/* The GNU C library defines this for functions which it implements
16974 to always fail with ENOSYS. Some functions are actually named
16975 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016976#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016977choke me
John Criswell7a73b802003-06-30 21:59:07 +000016978#endif
16979
John Criswell0c38eaf2003-09-10 15:17:25 +000016980int
16981main ()
16982{
Reid Spencera773bd52006-08-04 18:18:08 +000016983return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016984 ;
16985 return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016989if { (ac_try="$ac_link"
16990case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17003 { (case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006esac
17007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_try") 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest$ac_exeext'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017022 ac_cv_func_dlopen=yes
17023else
17024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017025sed 's/^/| /' conftest.$ac_ext >&5
17026
Reid Spencera773bd52006-08-04 18:18:08 +000017027 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017028fi
Reid Spencera773bd52006-08-04 18:18:08 +000017029
Tanya Lattnercf067672008-01-17 05:57:22 +000017030rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017032fi
Reid Spencera773bd52006-08-04 18:18:08 +000017033{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17034echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017035if test $ac_cv_func_dlopen = yes; then
17036 lt_cv_dlopen="dlopen"
17037else
Reid Spencera773bd52006-08-04 18:18:08 +000017038 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17039echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017040if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042else
17043 ac_check_lib_save_LIBS=$LIBS
17044LIBS="-ldl $LIBS"
17045cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017051
Reid Spencera773bd52006-08-04 18:18:08 +000017052/* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017055#ifdef __cplusplus
17056extern "C"
17057#endif
John Criswell7a73b802003-06-30 21:59:07 +000017058char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017059int
17060main ()
17061{
Reid Spencera773bd52006-08-04 18:18:08 +000017062return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017063 ;
17064 return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017068if { (ac_try="$ac_link"
17069case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082 { (case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_try") 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017101 ac_cv_lib_dl_dlopen=yes
17102else
17103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017104sed 's/^/| /' conftest.$ac_ext >&5
17105
Reid Spencera773bd52006-08-04 18:18:08 +000017106 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017107fi
Reid Spencera773bd52006-08-04 18:18:08 +000017108
Tanya Lattnercf067672008-01-17 05:57:22 +000017109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017110 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017111LIBS=$ac_check_lib_save_LIBS
17112fi
Reid Spencera773bd52006-08-04 18:18:08 +000017113{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17114echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017115if test $ac_cv_lib_dl_dlopen = yes; then
17116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17117else
Reid Spencera773bd52006-08-04 18:18:08 +000017118 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17119echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017120if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123 ac_check_lib_save_LIBS=$LIBS
17124LIBS="-lsvld $LIBS"
17125cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017126/* confdefs.h. */
17127_ACEOF
17128cat confdefs.h >>conftest.$ac_ext
17129cat >>conftest.$ac_ext <<_ACEOF
17130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017131
Reid Spencera773bd52006-08-04 18:18:08 +000017132/* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017135#ifdef __cplusplus
17136extern "C"
17137#endif
John Criswell7a73b802003-06-30 21:59:07 +000017138char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017139int
17140main ()
17141{
Reid Spencera773bd52006-08-04 18:18:08 +000017142return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017148if { (ac_try="$ac_link"
17149case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162 { (case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165esac
17166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_try") 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest$ac_exeext'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017181 ac_cv_lib_svld_dlopen=yes
17182else
17183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017184sed 's/^/| /' conftest.$ac_ext >&5
17185
Reid Spencera773bd52006-08-04 18:18:08 +000017186 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017187fi
Reid Spencera773bd52006-08-04 18:18:08 +000017188
Tanya Lattnercf067672008-01-17 05:57:22 +000017189rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017190 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017191LIBS=$ac_check_lib_save_LIBS
17192fi
Reid Spencera773bd52006-08-04 18:18:08 +000017193{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17194echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017195if test $ac_cv_lib_svld_dlopen = yes; then
17196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17197else
Reid Spencera773bd52006-08-04 18:18:08 +000017198 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17199echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017200if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 ac_check_lib_save_LIBS=$LIBS
17204LIBS="-ldld $LIBS"
17205cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017211
Reid Spencera773bd52006-08-04 18:18:08 +000017212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017215#ifdef __cplusplus
17216extern "C"
17217#endif
John Criswell7a73b802003-06-30 21:59:07 +000017218char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017219int
17220main ()
17221{
Reid Spencera773bd52006-08-04 18:18:08 +000017222return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017228if { (ac_try="$ac_link"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017261 ac_cv_lib_dld_dld_link=yes
17262else
17263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017264sed 's/^/| /' conftest.$ac_ext >&5
17265
Reid Spencera773bd52006-08-04 18:18:08 +000017266 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017267fi
Reid Spencera773bd52006-08-04 18:18:08 +000017268
Tanya Lattnercf067672008-01-17 05:57:22 +000017269rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017270 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017271LIBS=$ac_check_lib_save_LIBS
17272fi
Reid Spencera773bd52006-08-04 18:18:08 +000017273{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17274echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017275if test $ac_cv_lib_dld_dld_link = yes; then
17276 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291
17292fi
17293
17294 ;;
17295 esac
17296
17297 if test "x$lt_cv_dlopen" != xno; then
17298 enable_dlopen=yes
17299 else
17300 enable_dlopen=no
17301 fi
17302
17303 case $lt_cv_dlopen in
17304 dlopen)
17305 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017306 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017307
17308 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017310
17311 save_LIBS="$LIBS"
17312 LIBS="$lt_cv_dlopen_libs $LIBS"
17313
Reid Spencera773bd52006-08-04 18:18:08 +000017314 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17315echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017316if test "${lt_cv_dlopen_self+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319 if test "$cross_compiling" = yes; then :
17320 lt_cv_dlopen_self=cross
17321else
John Criswell47fdd832003-07-14 16:52:07 +000017322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017323 lt_status=$lt_dlunknown
17324 cat > conftest.$ac_ext <<EOF
Tanya Lattner49ff6612008-05-10 04:20:38 +000017325#line 17320 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017326#include "confdefs.h"
17327
17328#if HAVE_DLFCN_H
17329#include <dlfcn.h>
17330#endif
17331
17332#include <stdio.h>
17333
17334#ifdef RTLD_GLOBAL
17335# define LT_DLGLOBAL RTLD_GLOBAL
17336#else
17337# ifdef DL_GLOBAL
17338# define LT_DLGLOBAL DL_GLOBAL
17339# else
17340# define LT_DLGLOBAL 0
17341# endif
17342#endif
17343
17344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17345 find out it does not work in some platform. */
17346#ifndef LT_DLLAZY_OR_NOW
17347# ifdef RTLD_LAZY
17348# define LT_DLLAZY_OR_NOW RTLD_LAZY
17349# else
17350# ifdef DL_LAZY
17351# define LT_DLLAZY_OR_NOW DL_LAZY
17352# else
17353# ifdef RTLD_NOW
17354# define LT_DLLAZY_OR_NOW RTLD_NOW
17355# else
17356# ifdef DL_NOW
17357# define LT_DLLAZY_OR_NOW DL_NOW
17358# else
17359# define LT_DLLAZY_OR_NOW 0
17360# endif
17361# endif
17362# endif
17363# endif
17364#endif
17365
17366#ifdef __cplusplus
17367extern "C" void exit (int);
17368#endif
17369
17370void fnord() { int i=42;}
17371int main ()
17372{
17373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17374 int status = $lt_dlunknown;
17375
17376 if (self)
17377 {
17378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17380 /* dlclose (self); */
17381 }
Reid Spencera773bd52006-08-04 18:18:08 +000017382 else
17383 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017384
17385 exit (status);
17386}
17387EOF
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017393 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017394 lt_status=$?
17395 case x$lt_status in
17396 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017398 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017399 esac
17400 else :
17401 # compilation failed
17402 lt_cv_dlopen_self=no
17403 fi
17404fi
17405rm -fr conftest*
17406
17407
17408fi
Reid Spencera773bd52006-08-04 18:18:08 +000017409{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17410echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017411
17412 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17414 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17415echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017416if test "${lt_cv_dlopen_self_static+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419 if test "$cross_compiling" = yes; then :
17420 lt_cv_dlopen_self_static=cross
17421else
John Criswell47fdd832003-07-14 16:52:07 +000017422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017423 lt_status=$lt_dlunknown
17424 cat > conftest.$ac_ext <<EOF
Tanya Lattner49ff6612008-05-10 04:20:38 +000017425#line 17420 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017426#include "confdefs.h"
17427
17428#if HAVE_DLFCN_H
17429#include <dlfcn.h>
17430#endif
17431
17432#include <stdio.h>
17433
17434#ifdef RTLD_GLOBAL
17435# define LT_DLGLOBAL RTLD_GLOBAL
17436#else
17437# ifdef DL_GLOBAL
17438# define LT_DLGLOBAL DL_GLOBAL
17439# else
17440# define LT_DLGLOBAL 0
17441# endif
17442#endif
17443
17444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445 find out it does not work in some platform. */
17446#ifndef LT_DLLAZY_OR_NOW
17447# ifdef RTLD_LAZY
17448# define LT_DLLAZY_OR_NOW RTLD_LAZY
17449# else
17450# ifdef DL_LAZY
17451# define LT_DLLAZY_OR_NOW DL_LAZY
17452# else
17453# ifdef RTLD_NOW
17454# define LT_DLLAZY_OR_NOW RTLD_NOW
17455# else
17456# ifdef DL_NOW
17457# define LT_DLLAZY_OR_NOW DL_NOW
17458# else
17459# define LT_DLLAZY_OR_NOW 0
17460# endif
17461# endif
17462# endif
17463# endif
17464#endif
17465
17466#ifdef __cplusplus
17467extern "C" void exit (int);
17468#endif
17469
17470void fnord() { int i=42;}
17471int main ()
17472{
17473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17474 int status = $lt_dlunknown;
17475
17476 if (self)
17477 {
17478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17479 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480 /* dlclose (self); */
17481 }
Reid Spencera773bd52006-08-04 18:18:08 +000017482 else
17483 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017484
17485 exit (status);
17486}
17487EOF
17488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489 (eval $ac_link) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017493 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017494 lt_status=$?
17495 case x$lt_status in
17496 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17497 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017498 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017499 esac
17500 else :
17501 # compilation failed
17502 lt_cv_dlopen_self_static=no
17503 fi
17504fi
17505rm -fr conftest*
17506
17507
17508fi
Reid Spencera773bd52006-08-04 18:18:08 +000017509{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17510echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017511 fi
17512
17513 CPPFLAGS="$save_CPPFLAGS"
17514 LDFLAGS="$save_LDFLAGS"
17515 LIBS="$save_LIBS"
17516 ;;
17517 esac
17518
17519 case $lt_cv_dlopen_self in
17520 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17521 *) enable_dlopen_self=unknown ;;
17522 esac
17523
17524 case $lt_cv_dlopen_self_static in
17525 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17526 *) enable_dlopen_self_static=unknown ;;
17527 esac
17528fi
17529
17530
Reid Spencera773bd52006-08-04 18:18:08 +000017531# Report which library types will actually be built
17532{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17533echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17534{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17535echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017536
Reid Spencera773bd52006-08-04 18:18:08 +000017537{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17538echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017539test "$can_build_shared" = "no" && enable_shared=no
17540
17541# On AIX, shared libraries and static libraries use the same namespace, and
17542# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017543case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017544aix3*)
17545 test "$enable_shared" = yes && enable_static=no
17546 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017548 postinstall_cmds='$RANLIB $lib'
17549 fi
17550 ;;
17551
Reid Spencer2706f8c2004-09-19 23:53:36 +000017552aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17554 test "$enable_shared" = yes && enable_static=no
17555 fi
John Criswell7a73b802003-06-30 21:59:07 +000017556 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017557esac
Reid Spencera773bd52006-08-04 18:18:08 +000017558{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17559echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017560
Reid Spencera773bd52006-08-04 18:18:08 +000017561{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17562echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017563# Make sure either enable_shared or enable_static is yes.
17564test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017565{ echo "$as_me:$LINENO: result: $enable_static" >&5
17566echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017567
17568# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017569# libtool distribution, otherwise you forgot to ship ltmain.sh
17570# with your package, and you will get complaints that there are
17571# no rules to generate ltmain.sh.
17572if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017573 # See if we are running on zsh, and set the options which allow our commands through
17574 # without removal of \ escapes.
17575 if test -n "${ZSH_VERSION+set}" ; then
17576 setopt NO_GLOB_SUBST
17577 fi
John Criswell7a73b802003-06-30 21:59:07 +000017578 # Now quote all the things that may contain metacharacters while being
17579 # careful not to overquote the AC_SUBSTed values. We take copies of the
17580 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017581 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 +000017582 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17585 deplibs_check_method reload_flag reload_cmds need_locks \
17586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17587 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017589 old_postinstall_cmds old_postuninstall_cmds \
17590 compiler \
17591 CC \
17592 LD \
17593 lt_prog_compiler_wl \
17594 lt_prog_compiler_pic \
17595 lt_prog_compiler_static \
17596 lt_prog_compiler_no_builtin_flag \
17597 export_dynamic_flag_spec \
17598 thread_safe_flag_spec \
17599 whole_archive_flag_spec \
17600 enable_shared_with_static_runtimes \
17601 old_archive_cmds \
17602 old_archive_from_new_cmds \
17603 predep_objects \
17604 postdep_objects \
17605 predeps \
17606 postdeps \
17607 compiler_lib_search_path \
17608 archive_cmds \
17609 archive_expsym_cmds \
17610 postinstall_cmds \
17611 postuninstall_cmds \
17612 old_archive_from_expsyms_cmds \
17613 allow_undefined_flag \
17614 no_undefined_flag \
17615 export_symbols_cmds \
17616 hardcode_libdir_flag_spec \
17617 hardcode_libdir_flag_spec_ld \
17618 hardcode_libdir_separator \
17619 hardcode_automatic \
17620 module_cmds \
17621 module_expsym_cmds \
17622 lt_cv_prog_compiler_c_o \
17623 exclude_expsyms \
17624 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017625
17626 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017627 old_archive_cmds | \
17628 old_archive_from_new_cmds | \
17629 archive_cmds | \
17630 archive_expsym_cmds | \
17631 module_cmds | \
17632 module_expsym_cmds | \
17633 old_archive_from_expsyms_cmds | \
17634 export_symbols_cmds | \
17635 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017636 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017637 old_postinstall_cmds | old_postuninstall_cmds | \
17638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017639 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640 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 +000017641 ;;
17642 *)
17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17644 ;;
17645 esac
17646 done
17647
John Criswell47fdd832003-07-14 16:52:07 +000017648 case $lt_echo in
17649 *'\$0 --fallback-echo"')
17650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17651 ;;
17652 esac
17653
17654cfgfile="${ofile}T"
17655 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17656 $rm -f "$cfgfile"
17657 { echo "$as_me:$LINENO: creating $ofile" >&5
17658echo "$as_me: creating $ofile" >&6;}
17659
17660 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017661#! $SHELL
17662
John Criswell47fdd832003-07-14 16:52:07 +000017663# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017664# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17665# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17666#
John Criswell47fdd832003-07-14 16:52:07 +000017667# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17668# Free Software Foundation, Inc.
17669#
17670# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017671# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17672#
17673# This program is free software; you can redistribute it and/or modify
17674# it under the terms of the GNU General Public License as published by
17675# the Free Software Foundation; either version 2 of the License, or
17676# (at your option) any later version.
17677#
17678# This program is distributed in the hope that it will be useful, but
17679# WITHOUT ANY WARRANTY; without even the implied warranty of
17680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17681# General Public License for more details.
17682#
17683# You should have received a copy of the GNU General Public License
17684# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017685# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017686#
17687# As a special exception to the GNU General Public License, if you
17688# distribute this file as part of a program that contains a
17689# configuration script generated by Autoconf, you may include it under
17690# the same distribution terms that you use for the rest of that program.
17691
John Criswell47fdd832003-07-14 16:52:07 +000017692# A sed program that does not truncate output.
17693SED=$lt_SED
17694
John Criswell7a73b802003-06-30 21:59:07 +000017695# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017696Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017697
17698# The HP-UX ksh and POSIX shell print the target directory to stdout
17699# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017701
John Criswell47fdd832003-07-14 16:52:07 +000017702# The names of the tagged configurations supported by this script.
17703available_tags=
17704
John Criswell7a73b802003-06-30 21:59:07 +000017705# ### BEGIN LIBTOOL CONFIG
17706
17707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
17709# Shell to use when invoking shell scripts.
17710SHELL=$lt_SHELL
17711
17712# Whether or not to build shared libraries.
17713build_libtool_libs=$enable_shared
17714
17715# Whether or not to build static libraries.
17716build_old_libs=$enable_static
17717
17718# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017719build_libtool_need_lc=$archive_cmds_need_lc
17720
17721# Whether or not to disallow shared libs when runtime libs are static
17722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017723
17724# Whether or not to optimize for fast installation.
17725fast_install=$enable_fast_install
17726
17727# The host system.
17728host_alias=$host_alias
17729host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017730host_os=$host_os
17731
17732# The build system.
17733build_alias=$build_alias
17734build=$build
17735build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017736
17737# An echo program that does not interpret backslashes.
17738echo=$lt_echo
17739
17740# The archiver.
17741AR=$lt_AR
17742AR_FLAGS=$lt_AR_FLAGS
17743
John Criswell47fdd832003-07-14 16:52:07 +000017744# A C compiler.
17745LTCC=$lt_LTCC
17746
Reid Spencera773bd52006-08-04 18:18:08 +000017747# LTCC compiler flags.
17748LTCFLAGS=$lt_LTCFLAGS
17749
John Criswell47fdd832003-07-14 16:52:07 +000017750# A language-specific compiler.
17751CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017752
17753# Is the compiler the GNU C compiler?
17754with_gcc=$GCC
17755
John Criswell47fdd832003-07-14 16:52:07 +000017756# An ERE matcher.
17757EGREP=$lt_EGREP
17758
John Criswell7a73b802003-06-30 21:59:07 +000017759# The linker used to build libraries.
17760LD=$lt_LD
17761
17762# Whether we need hard or soft links.
17763LN_S=$lt_LN_S
17764
17765# A BSD-compatible nm program.
17766NM=$lt_NM
17767
17768# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017769STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017770
17771# Used to examine libraries when file_magic_cmd begins "file"
17772MAGIC_CMD=$MAGIC_CMD
17773
17774# Used on cygwin: DLL creation program.
17775DLLTOOL="$DLLTOOL"
17776
17777# Used on cygwin: object dumper.
17778OBJDUMP="$OBJDUMP"
17779
17780# Used on cygwin: assembler.
17781AS="$AS"
17782
17783# The name of the directory that contains temporary libtool files.
17784objdir=$objdir
17785
17786# How to create reloadable object files.
17787reload_flag=$lt_reload_flag
17788reload_cmds=$lt_reload_cmds
17789
17790# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017791wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017792
17793# Object file suffix (normally "o").
17794objext="$ac_objext"
17795
17796# Old archive suffix (normally "a").
17797libext="$libext"
17798
John Criswell47fdd832003-07-14 16:52:07 +000017799# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017800shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017801
John Criswell7a73b802003-06-30 21:59:07 +000017802# Executable file suffix (normally "").
17803exeext="$exeext"
17804
17805# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017806pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017807pic_mode=$pic_mode
17808
John Criswell47fdd832003-07-14 16:52:07 +000017809# What is the maximum length of a command?
17810max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017811
John Criswell47fdd832003-07-14 16:52:07 +000017812# Does compiler simultaneously support -c and -o options?
17813compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017814
Reid Spencera773bd52006-08-04 18:18:08 +000017815# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017816need_locks=$lt_need_locks
17817
17818# Do we need the lib prefix for modules?
17819need_lib_prefix=$need_lib_prefix
17820
17821# Do we need a version for libraries?
17822need_version=$need_version
17823
17824# Whether dlopen is supported.
17825dlopen_support=$enable_dlopen
17826
17827# Whether dlopen of programs is supported.
17828dlopen_self=$enable_dlopen_self
17829
17830# Whether dlopen of statically linked programs is supported.
17831dlopen_self_static=$enable_dlopen_self_static
17832
17833# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017834link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017835
17836# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017838
17839# Compiler flag to allow reflexive dlopens.
17840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17841
17842# Compiler flag to generate shared objects directly from archives.
17843whole_archive_flag_spec=$lt_whole_archive_flag_spec
17844
17845# Compiler flag to generate thread-safe objects.
17846thread_safe_flag_spec=$lt_thread_safe_flag_spec
17847
17848# Library versioning type.
17849version_type=$version_type
17850
17851# Format of library name prefix.
17852libname_spec=$lt_libname_spec
17853
17854# List of archive names. First name is the real one, the rest are links.
17855# The last name is the one that the linker finds with -lNAME.
17856library_names_spec=$lt_library_names_spec
17857
17858# The coded name of the library, if different from the real name.
17859soname_spec=$lt_soname_spec
17860
17861# Commands used to build and install an old-style archive.
17862RANLIB=$lt_RANLIB
17863old_archive_cmds=$lt_old_archive_cmds
17864old_postinstall_cmds=$lt_old_postinstall_cmds
17865old_postuninstall_cmds=$lt_old_postuninstall_cmds
17866
17867# Create an old-style archive from a shared archive.
17868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17869
17870# Create a temporary old-style archive to link instead of a shared archive.
17871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17872
17873# Commands used to build and install a shared archive.
17874archive_cmds=$lt_archive_cmds
17875archive_expsym_cmds=$lt_archive_expsym_cmds
17876postinstall_cmds=$lt_postinstall_cmds
17877postuninstall_cmds=$lt_postuninstall_cmds
17878
John Criswell47fdd832003-07-14 16:52:07 +000017879# Commands used to build a loadable module (assumed same as above if empty)
17880module_cmds=$lt_module_cmds
17881module_expsym_cmds=$lt_module_expsym_cmds
17882
John Criswell7a73b802003-06-30 21:59:07 +000017883# Commands to strip libraries.
17884old_striplib=$lt_old_striplib
17885striplib=$lt_striplib
17886
John Criswell47fdd832003-07-14 16:52:07 +000017887# Dependencies to place before the objects being linked to create a
17888# shared library.
17889predep_objects=$lt_predep_objects
17890
17891# Dependencies to place after the objects being linked to create a
17892# shared library.
17893postdep_objects=$lt_postdep_objects
17894
17895# Dependencies to place before the objects being linked to create a
17896# shared library.
17897predeps=$lt_predeps
17898
17899# Dependencies to place after the objects being linked to create a
17900# shared library.
17901postdeps=$lt_postdeps
17902
17903# The library search path used internally by the compiler when linking
17904# a shared library.
17905compiler_lib_search_path=$lt_compiler_lib_search_path
17906
John Criswell7a73b802003-06-30 21:59:07 +000017907# Method to check whether dependent libraries are shared objects.
17908deplibs_check_method=$lt_deplibs_check_method
17909
17910# Command to use when deplibs_check_method == file_magic.
17911file_magic_cmd=$lt_file_magic_cmd
17912
17913# Flag that allows shared libraries with undefined symbols to be built.
17914allow_undefined_flag=$lt_allow_undefined_flag
17915
17916# Flag that forces no undefined symbols.
17917no_undefined_flag=$lt_no_undefined_flag
17918
17919# Commands used to finish a libtool library installation in a directory.
17920finish_cmds=$lt_finish_cmds
17921
17922# Same as above, but a single script fragment to be evaled but not shown.
17923finish_eval=$lt_finish_eval
17924
17925# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017926global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017927
17928# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017929global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017930
17931# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017933
17934# This is the shared library runtime path variable.
17935runpath_var=$runpath_var
17936
17937# This is the shared library path variable.
17938shlibpath_var=$shlibpath_var
17939
17940# Is shlibpath searched before the hard-coded library search path?
17941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942
17943# How to hardcode a shared library path into an executable.
17944hardcode_action=$hardcode_action
17945
17946# Whether we should hardcode library paths into libraries.
17947hardcode_into_libs=$hardcode_into_libs
17948
17949# Flag to hardcode \$libdir into a binary during linking.
17950# This must work even if \$libdir does not exist.
17951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17952
John Criswell47fdd832003-07-14 16:52:07 +000017953# If ld is used when linking, flag to hardcode \$libdir into
17954# a binary during linking. This must work even if \$libdir does
17955# not exist.
17956hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17957
John Criswell7a73b802003-06-30 21:59:07 +000017958# Whether we need a single -rpath flag with a separated argument.
17959hardcode_libdir_separator=$lt_hardcode_libdir_separator
17960
John Criswell47fdd832003-07-14 16:52:07 +000017961# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017962# resulting binary.
17963hardcode_direct=$hardcode_direct
17964
17965# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966# resulting binary.
17967hardcode_minus_L=$hardcode_minus_L
17968
17969# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970# the resulting binary.
17971hardcode_shlibpath_var=$hardcode_shlibpath_var
17972
John Criswell47fdd832003-07-14 16:52:07 +000017973# Set to yes if building a shared library automatically hardcodes DIR into the library
17974# and all subsequent libraries and executables linked against it.
17975hardcode_automatic=$hardcode_automatic
17976
John Criswell7a73b802003-06-30 21:59:07 +000017977# Variables whose values should be saved in libtool wrapper scripts and
17978# restored at relink time.
17979variables_saved_for_relink="$variables_saved_for_relink"
17980
17981# Whether libtool must link a program against all its dependency libraries.
17982link_all_deplibs=$link_all_deplibs
17983
17984# Compile-time system search path for libraries
17985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986
17987# Run-time system search path for libraries
17988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989
17990# Fix the shell variable \$srcfile for the compiler.
17991fix_srcfile_path="$fix_srcfile_path"
17992
17993# Set to yes if exported symbols are required.
17994always_export_symbols=$always_export_symbols
17995
17996# The commands to list exported symbols.
17997export_symbols_cmds=$lt_export_symbols_cmds
17998
17999# The commands to extract the exported symbol list from a shared archive.
18000extract_expsyms_cmds=$lt_extract_expsyms_cmds
18001
18002# Symbols that should not be listed in the preloaded symbols.
18003exclude_expsyms=$lt_exclude_expsyms
18004
18005# Symbols that must always be exported.
18006include_expsyms=$lt_include_expsyms
18007
18008# ### END LIBTOOL CONFIG
18009
18010__EOF__
18011
John Criswell47fdd832003-07-14 16:52:07 +000018012
John Criswell7a73b802003-06-30 21:59:07 +000018013 case $host_os in
18014 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018015 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018016
18017# AIX sometimes has problems with the GCC collect2 program. For some
18018# reason, if we set the COLLECT_NAMES environment variable, the problems
18019# vanish in a puff of smoke.
18020if test "X${COLLECT_NAMES+set}" != Xset; then
18021 COLLECT_NAMES=
18022 export COLLECT_NAMES
18023fi
18024EOF
18025 ;;
18026 esac
18027
John Criswell7a73b802003-06-30 21:59:07 +000018028 # We use sed instead of cat because bash on DJGPP gets confused if
18029 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18030 # text mode, it properly converts lines to CR/LF. This bash problem
18031 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018032 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018033
John Criswell47fdd832003-07-14 16:52:07 +000018034 mv -f "$cfgfile" "$ofile" || \
18035 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018036 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018037
18038else
18039 # If there is no Makefile yet, we rely on a make rule to execute
18040 # `config.status --recheck' to rerun these tests and create the
18041 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18043 if test -f "$ltmain_in"; then
18044 test -f Makefile && make "$ltmain"
18045 fi
John Criswell7a73b802003-06-30 21:59:07 +000018046fi
John Criswell7a73b802003-06-30 21:59:07 +000018047
18048
John Criswell47fdd832003-07-14 16:52:07 +000018049ac_ext=c
18050ac_cpp='$CPP $CPPFLAGS'
18051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053ac_compiler_gnu=$ac_cv_c_compiler_gnu
18054
18055CC="$lt_save_CC"
18056
18057
Reid Spencera773bd52006-08-04 18:18:08 +000018058# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018059if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018060 withval=$with_tags; tagnames="$withval"
18061fi
18062
John Criswell47fdd832003-07-14 16:52:07 +000018063
18064if test -f "$ltmain" && test -n "$tagnames"; then
18065 if test ! -f "${ofile}"; then
18066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18067echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18068 fi
18069
18070 if test -z "$LTCC"; then
18071 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18072 if test -z "$LTCC"; then
18073 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18074echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18075 else
18076 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18077echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18078 fi
18079 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018080 if test -z "$LTCFLAGS"; then
18081 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18082 fi
John Criswell47fdd832003-07-14 16:52:07 +000018083
18084 # Extract list of available tagged configurations in $ofile.
18085 # Note that this assumes the entire list is on one line.
18086 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18087
18088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18089 for tagname in $tagnames; do
18090 IFS="$lt_save_ifs"
18091 # Check whether tagname contains only valid characters
18092 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18093 "") ;;
18094 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18095echo "$as_me: error: invalid tag name: $tagname" >&2;}
18096 { (exit 1); exit 1; }; }
18097 ;;
18098 esac
18099
18100 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18101 then
18102 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18103echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18104 { (exit 1); exit 1; }; }
18105 fi
18106
18107 # Update the list of available tags.
18108 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018109 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018110
18111 case $tagname in
18112 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018113 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18114 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18115 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018116 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018117ac_cpp='$CXXCPP $CPPFLAGS'
18118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18121
18122
18123
18124
18125archive_cmds_need_lc_CXX=no
18126allow_undefined_flag_CXX=
18127always_export_symbols_CXX=no
18128archive_expsym_cmds_CXX=
18129export_dynamic_flag_spec_CXX=
18130hardcode_direct_CXX=no
18131hardcode_libdir_flag_spec_CXX=
18132hardcode_libdir_flag_spec_ld_CXX=
18133hardcode_libdir_separator_CXX=
18134hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018135hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018136hardcode_automatic_CXX=no
18137module_cmds_CXX=
18138module_expsym_cmds_CXX=
18139link_all_deplibs_CXX=unknown
18140old_archive_cmds_CXX=$old_archive_cmds
18141no_undefined_flag_CXX=
18142whole_archive_flag_spec_CXX=
18143enable_shared_with_static_runtimes_CXX=no
18144
18145# Dependencies to place before and after the object being linked:
18146predep_objects_CXX=
18147postdep_objects_CXX=
18148predeps_CXX=
18149postdeps_CXX=
18150compiler_lib_search_path_CXX=
18151
18152# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018153ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018154
18155# Object file extension for compiled C++ test sources.
18156objext=o
18157objext_CXX=$objext
18158
18159# Code to be used in simple compile tests
18160lt_simple_compile_test_code="int some_variable = 0;\n"
18161
18162# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018163lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018164
18165# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18166
18167# If no C compiler was specified, use CC.
18168LTCC=${LTCC-"$CC"}
18169
Reid Spencera773bd52006-08-04 18:18:08 +000018170# If no C compiler flags were specified, use CFLAGS.
18171LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18172
John Criswell47fdd832003-07-14 16:52:07 +000018173# Allow CC to be a program name with arguments.
18174compiler=$CC
18175
18176
Reid Spencera773bd52006-08-04 18:18:08 +000018177# save warnings/boilerplate of simple test code
18178ac_outfile=conftest.$ac_objext
18179printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18180eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181_lt_compiler_boilerplate=`cat conftest.err`
18182$rm conftest*
18183
18184ac_outfile=conftest.$ac_objext
18185printf "$lt_simple_link_test_code" >conftest.$ac_ext
18186eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18187_lt_linker_boilerplate=`cat conftest.err`
18188$rm conftest*
18189
18190
John Criswell47fdd832003-07-14 16:52:07 +000018191# Allow CC to be a program name with arguments.
18192lt_save_CC=$CC
18193lt_save_LD=$LD
18194lt_save_GCC=$GCC
18195GCC=$GXX
18196lt_save_with_gnu_ld=$with_gnu_ld
18197lt_save_path_LD=$lt_cv_path_LD
18198if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18199 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18200else
Reid Spencera773bd52006-08-04 18:18:08 +000018201 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018202fi
18203if test -n "${lt_cv_path_LDCXX+set}"; then
18204 lt_cv_path_LD=$lt_cv_path_LDCXX
18205else
Reid Spencera773bd52006-08-04 18:18:08 +000018206 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018207fi
18208test -z "${LDCXX+set}" || LD=$LDCXX
18209CC=${CXX-"c++"}
18210compiler=$CC
18211compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018212for cc_temp in $compiler""; do
18213 case $cc_temp in
18214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18216 \-*) ;;
18217 *) break;;
18218 esac
18219done
18220cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18221
John Criswell47fdd832003-07-14 16:52:07 +000018222
18223# We don't want -fno-exception wen compiling C++ code, so set the
18224# no_builtin_flag separately
18225if test "$GXX" = yes; then
18226 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18227else
18228 lt_prog_compiler_no_builtin_flag_CXX=
18229fi
18230
18231if test "$GXX" = yes; then
18232 # Set up default GNU C++ configuration
18233
18234
Reid Spencera773bd52006-08-04 18:18:08 +000018235# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018236if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018237 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018238else
18239 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018240fi
18241
John Criswell47fdd832003-07-14 16:52:07 +000018242ac_prog=ld
18243if test "$GCC" = yes; then
18244 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018245 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18246echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018247 case $host in
18248 *-*-mingw*)
18249 # gcc leaves a trailing carriage return which upsets mingw
18250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18251 *)
18252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18253 esac
18254 case $ac_prog in
18255 # Accept absolute paths.
18256 [\\/]* | ?:[\\/]*)
18257 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018258 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18262 done
18263 test -z "$LD" && LD="$ac_prog"
18264 ;;
18265 "")
18266 # If it fails, then pretend we aren't using GCC.
18267 ac_prog=ld
18268 ;;
18269 *)
18270 # If it is relative, then search for the first ld in PATH.
18271 with_gnu_ld=unknown
18272 ;;
18273 esac
18274elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018275 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18276echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018277else
Reid Spencera773bd52006-08-04 18:18:08 +000018278 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18279echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018280fi
18281if test "${lt_cv_path_LD+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18283else
18284 if test -z "$LD"; then
18285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18286 for ac_dir in $PATH; do
18287 IFS="$lt_save_ifs"
18288 test -z "$ac_dir" && ac_dir=.
18289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18290 lt_cv_path_LD="$ac_dir/$ac_prog"
18291 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018292 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018293 # Break only if it was the GNU/non-GNU ld that we prefer.
18294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18295 *GNU* | *'with BFD'*)
18296 test "$with_gnu_ld" != no && break
18297 ;;
18298 *)
18299 test "$with_gnu_ld" != yes && break
18300 ;;
18301 esac
18302 fi
18303 done
18304 IFS="$lt_save_ifs"
18305else
18306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18307fi
18308fi
18309
18310LD="$lt_cv_path_LD"
18311if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018312 { echo "$as_me:$LINENO: result: $LD" >&5
18313echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018314else
Reid Spencera773bd52006-08-04 18:18:08 +000018315 { echo "$as_me:$LINENO: result: no" >&5
18316echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018317fi
18318test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18319echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18320 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018321{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18322echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018323if test "${lt_cv_prog_gnu_ld+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325else
Reid Spencera773bd52006-08-04 18:18:08 +000018326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018327case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018328*GNU* | *'with BFD'*)
18329 lt_cv_prog_gnu_ld=yes
18330 ;;
18331*)
18332 lt_cv_prog_gnu_ld=no
18333 ;;
18334esac
18335fi
Reid Spencera773bd52006-08-04 18:18:08 +000018336{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18337echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018338with_gnu_ld=$lt_cv_prog_gnu_ld
18339
18340
18341
18342 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18343 # archiving commands below assume that GNU ld is being used.
18344 if test "$with_gnu_ld" = yes; then
18345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346 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'
18347
18348 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18350
18351 # If archive_cmds runs LD, not CC, wlarc should be empty
18352 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18353 # investigate it a little bit more. (MM)
18354 wlarc='${wl}'
18355
18356 # ancient GNU ld didn't support --whole-archive et. al.
18357 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18358 grep 'no-whole-archive' > /dev/null; then
18359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18360 else
18361 whole_archive_flag_spec_CXX=
18362 fi
18363 else
18364 with_gnu_ld=no
18365 wlarc=
18366
18367 # A generic and very simple default shared library creation
18368 # command for GNU C++ for the case where it uses the native
18369 # linker, instead of GNU ld. If possible, this setting should
18370 # overridden to take advantage of the native linker features on
18371 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018373 fi
18374
18375 # Commands to make compiler produce verbose output that lists
18376 # what "hidden" libraries, object files and flags are used when
18377 # linking a shared library.
18378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18379
18380else
18381 GXX=no
18382 with_gnu_ld=no
18383 wlarc=
18384fi
18385
18386# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018387{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18388echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018389ld_shlibs_CXX=yes
18390case $host_os in
18391 aix3*)
18392 # FIXME: insert proper C++ library support
18393 ld_shlibs_CXX=no
18394 ;;
18395 aix4* | aix5*)
18396 if test "$host_cpu" = ia64; then
18397 # On IA64, the linker does run time linking by default, so we don't
18398 # have to do anything special.
18399 aix_use_runtimelinking=no
18400 exp_sym_flag='-Bexport'
18401 no_entry_flag=""
18402 else
18403 aix_use_runtimelinking=no
18404
18405 # Test if we are trying to use run time linking or normal
18406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18407 # need to do runtime linking.
18408 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18409 for ld_flag in $LDFLAGS; do
18410 case $ld_flag in
18411 *-brtl*)
18412 aix_use_runtimelinking=yes
18413 break
18414 ;;
18415 esac
18416 done
Reid Spencera773bd52006-08-04 18:18:08 +000018417 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018418 esac
18419
18420 exp_sym_flag='-bexport'
18421 no_entry_flag='-bnoentry'
18422 fi
18423
18424 # When large executables or shared objects are built, AIX ld can
18425 # have problems creating the table of contents. If linking a library
18426 # or program results in "error TOC overflow" add -mminimal-toc to
18427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18429
18430 archive_cmds_CXX=''
18431 hardcode_direct_CXX=yes
18432 hardcode_libdir_separator_CXX=':'
18433 link_all_deplibs_CXX=yes
18434
18435 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018436 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018437 # We only want to do this on AIX 4.2 and lower, the check
18438 # below for broken collect2 doesn't work under 4.3+
18439 collect2name=`${CC} -print-prog-name=collect2`
18440 if test -f "$collect2name" && \
18441 strings "$collect2name" | grep resolve_lib_name >/dev/null
18442 then
18443 # We have reworked collect2
18444 hardcode_direct_CXX=yes
18445 else
18446 # We have old collect2
18447 hardcode_direct_CXX=unsupported
18448 # It fails to find uninstalled libraries when the uninstalled
18449 # path is not listed in the libpath. Setting hardcode_minus_L
18450 # to unsupported forces relinking
18451 hardcode_minus_L_CXX=yes
18452 hardcode_libdir_flag_spec_CXX='-L$libdir'
18453 hardcode_libdir_separator_CXX=
18454 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018455 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018456 esac
18457 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018458 if test "$aix_use_runtimelinking" = yes; then
18459 shared_flag="$shared_flag "'${wl}-G'
18460 fi
John Criswell47fdd832003-07-14 16:52:07 +000018461 else
18462 # not using gcc
18463 if test "$host_cpu" = ia64; then
18464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18465 # chokes on -Wl,-G. The following line is correct:
18466 shared_flag='-G'
18467 else
18468 if test "$aix_use_runtimelinking" = yes; then
18469 shared_flag='${wl}-G'
18470 else
18471 shared_flag='${wl}-bM:SRE'
18472 fi
18473 fi
18474 fi
18475
18476 # It seems that -bexpall does not export symbols beginning with
18477 # underscore (_), so it is better to generate a list of symbols to export.
18478 always_export_symbols_CXX=yes
18479 if test "$aix_use_runtimelinking" = yes; then
18480 # Warning - without using the other runtime loading flags (-brtl),
18481 # -berok will link without error, but may produce a broken library.
18482 allow_undefined_flag_CXX='-berok'
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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Reid Spencera773bd52006-08-04 18:18:08 +000018552 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 +000018553 else
18554 if test "$host_cpu" = ia64; then
18555 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18556 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018557 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 +000018558 else
18559 # Determine the default libpath from the value encoded in an empty executable.
18560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018561/* confdefs.h. */
18562_ACEOF
18563cat confdefs.h >>conftest.$ac_ext
18564cat >>conftest.$ac_ext <<_ACEOF
18565/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018566
John Criswell47fdd832003-07-14 16:52:07 +000018567int
18568main ()
18569{
18570
18571 ;
18572 return 0;
18573}
18574_ACEOF
18575rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018576if { (ac_try="$ac_link"
18577case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18580esac
18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018609
18610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18611}'`
18612# Check for a 64-bit object if we didn't find anything.
18613if 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; }
18614}'`; fi
18615else
18616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018617sed 's/^/| /' conftest.$ac_ext >&5
18618
Reid Spencera773bd52006-08-04 18:18:08 +000018619
John Criswell47fdd832003-07-14 16:52:07 +000018620fi
Reid Spencera773bd52006-08-04 18:18:08 +000018621
Tanya Lattnercf067672008-01-17 05:57:22 +000018622rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018623 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18625
18626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18627 # Warning - without using the other run time loading flags,
18628 # -berok will link without error, but may produce a broken library.
18629 no_undefined_flag_CXX=' ${wl}-bernotok'
18630 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018631 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018632 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018633 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018634 # This is similar to how AIX traditionally builds its shared libraries.
18635 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 +000018636 fi
18637 fi
18638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018639
18640 beos*)
18641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18642 allow_undefined_flag_CXX=unsupported
18643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18644 # support --undefined. This deserves some investigation. FIXME
18645 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18646 else
18647 ld_shlibs_CXX=no
18648 fi
18649 ;;
18650
John Criswell47fdd832003-07-14 16:52:07 +000018651 chorus*)
18652 case $cc_basename in
18653 *)
18654 # FIXME: insert proper C++ library support
18655 ld_shlibs_CXX=no
18656 ;;
18657 esac
18658 ;;
18659
18660 cygwin* | mingw* | pw32*)
18661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18662 # as there is no search path for DLLs.
18663 hardcode_libdir_flag_spec_CXX='-L$libdir'
18664 allow_undefined_flag_CXX=unsupported
18665 always_export_symbols_CXX=no
18666 enable_shared_with_static_runtimes_CXX=yes
18667
18668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018669 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 +000018670 # If the export-symbols file already is a .def file (1st line
18671 # is EXPORTS), use it as is; otherwise, prepend...
18672 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18673 cp $export_symbols $output_objdir/$soname.def;
18674 else
18675 echo EXPORTS > $output_objdir/$soname.def;
18676 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018677 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018678 $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 +000018679 else
18680 ld_shlibs_CXX=no
18681 fi
18682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018683 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018684 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685 rhapsody* | darwin1.[012])
18686 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18687 ;;
18688 *) # Darwin 1.3 on
18689 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18690 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18691 else
18692 case ${MACOSX_DEPLOYMENT_TARGET} in
18693 10.[012])
18694 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18695 ;;
18696 10.*)
18697 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18698 ;;
18699 esac
18700 fi
18701 ;;
18702 esac
18703 archive_cmds_need_lc_CXX=no
18704 hardcode_direct_CXX=no
18705 hardcode_automatic_CXX=yes
18706 hardcode_shlibpath_var_CXX=unsupported
18707 whole_archive_flag_spec_CXX=''
18708 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018709
Reid Spencer2706f8c2004-09-19 23:53:36 +000018710 if test "$GXX" = yes ; then
18711 lt_int_apple_cc_single_mod=no
18712 output_verbose_link_cmd='echo'
18713 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18714 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018715 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018717 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 +000018718 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018719 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 +000018720 fi
18721 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018722 # 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 +000018723 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018724 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 +000018725 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018726 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 +000018727 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018728 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 +000018729 else
Reid Spencera773bd52006-08-04 18:18:08 +000018730 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018731 xlc*)
18732 output_verbose_link_cmd='echo'
18733 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'
18734 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018735 # 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 +000018736 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}'
18737 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 +000018738 ;;
18739 *)
18740 ld_shlibs_CXX=no
18741 ;;
18742 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018743 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018744 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018745
18746 dgux*)
18747 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018748 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018752 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018753 # Green Hills C++ Compiler
18754 # FIXME: insert proper C++ library support
18755 ld_shlibs_CXX=no
18756 ;;
18757 *)
18758 # FIXME: insert proper C++ library support
18759 ld_shlibs_CXX=no
18760 ;;
18761 esac
18762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018763 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018764 # C++ shared libraries reported to be fairly broken before switch to ELF
18765 ld_shlibs_CXX=no
18766 ;;
18767 freebsd-elf*)
18768 archive_cmds_need_lc_CXX=no
18769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018770 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018771 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18772 # conventions
18773 ld_shlibs_CXX=yes
18774 ;;
18775 gnu*)
18776 ;;
18777 hpux9*)
18778 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18779 hardcode_libdir_separator_CXX=:
18780 export_dynamic_flag_spec_CXX='${wl}-E'
18781 hardcode_direct_CXX=yes
18782 hardcode_minus_L_CXX=yes # Not in the search PATH,
18783 # but as the default
18784 # location of the library.
18785
18786 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018787 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018788 # FIXME: insert proper C++ library support
18789 ld_shlibs_CXX=no
18790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018791 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018792 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 +000018793 # Commands to make compiler produce verbose output that lists
18794 # what "hidden" libraries, object files and flags are used when
18795 # linking a shared library.
18796 #
18797 # There doesn't appear to be a way to prevent this compiler from
18798 # explicitly linking system object files so we need to strip them
18799 # from the output so that they don't get included in the library
18800 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018801 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 +000018802 ;;
18803 *)
18804 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018805 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 +000018806 else
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 fi
18810 ;;
18811 esac
18812 ;;
18813 hpux10*|hpux11*)
18814 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18816 hardcode_libdir_separator_CXX=:
18817
18818 case $host_cpu in
18819 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018820 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018821 ;;
18822 *)
John Criswell47fdd832003-07-14 16:52:07 +000018823 export_dynamic_flag_spec_CXX='${wl}-E'
18824 ;;
18825 esac
18826 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018827 case $host_cpu in
18828 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018829 hardcode_direct_CXX=no
18830 hardcode_shlibpath_var_CXX=no
18831 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018832 *)
18833 hardcode_direct_CXX=yes
18834 hardcode_minus_L_CXX=yes # Not in the search PATH,
18835 # but as the default
18836 # location of the library.
18837 ;;
18838 esac
18839
18840 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018841 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018842 # FIXME: insert proper C++ library support
18843 ld_shlibs_CXX=no
18844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018845 aCC*)
18846 case $host_cpu in
18847 hppa*64*)
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849 ;;
18850 ia64*)
18851 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 +000018852 ;;
18853 *)
18854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18855 ;;
18856 esac
18857 # Commands to make compiler produce verbose output that lists
18858 # what "hidden" libraries, object files and flags are used when
18859 # linking a shared library.
18860 #
18861 # There doesn't appear to be a way to prevent this compiler from
18862 # explicitly linking system object files so we need to strip them
18863 # from the output so that they don't get included in the library
18864 # dependencies.
18865 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'
18866 ;;
18867 *)
18868 if test "$GXX" = yes; then
18869 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018870 case $host_cpu in
18871 hppa*64*)
18872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873 ;;
18874 ia64*)
18875 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 +000018876 ;;
18877 *)
18878 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'
18879 ;;
18880 esac
18881 fi
18882 else
18883 # FIXME: insert proper C++ library support
18884 ld_shlibs_CXX=no
18885 fi
18886 ;;
18887 esac
18888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018889 interix3*)
18890 hardcode_direct_CXX=no
18891 hardcode_shlibpath_var_CXX=no
18892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18893 export_dynamic_flag_spec_CXX='${wl}-E'
18894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18895 # Instead, shared libraries are loaded at an image base (0x10000000 by
18896 # default) and relocated if they conflict, which is a slow very memory
18897 # consuming and fragmenting process. To avoid this, we pick a random,
18898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18900 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'
18901 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'
18902 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018903 irix5* | irix6*)
18904 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018905 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018906 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018907 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 +000018908
18909 # Archives containing C++ object files must be created using
18910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18911 # necessary to make sure instantiated templates are included
18912 # in the archive.
18913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18914 ;;
18915 *)
18916 if test "$GXX" = yes; then
18917 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018918 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 +000018919 else
18920 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'
18921 fi
18922 fi
18923 link_all_deplibs_CXX=yes
18924 ;;
18925 esac
18926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18927 hardcode_libdir_separator_CXX=:
18928 ;;
18929 linux*)
18930 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018931 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018932 # Kuck and Associates, Inc. (KAI) C++ Compiler
18933
18934 # KCC will only create a shared library if the output file
18935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18936 # to its proper name (with version) after linking.
18937 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'
18938 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'
18939 # Commands to make compiler produce verbose output that lists
18940 # what "hidden" libraries, object files and flags are used when
18941 # linking a shared library.
18942 #
18943 # There doesn't appear to be a way to prevent this compiler from
18944 # explicitly linking system object files so we need to strip them
18945 # from the output so that they don't get included in the library
18946 # dependencies.
18947 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'
18948
18949 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18951
18952 # Archives containing C++ object files must be created using
18953 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18954 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018956 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018957 # Intel C++
18958 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018959 # version 8.0 and above of icpc choke on multiply defined symbols
18960 # if we add $predep_objects and $postdep_objects, however 7.1 and
18961 # earlier do not add the objects themselves.
18962 case `$CC -V 2>&1` in
18963 *"Version 7."*)
18964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965 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'
18966 ;;
18967 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018968 tmp_idyn=
18969 case $host_cpu in
18970 ia64*) tmp_idyn=' -i_dynamic';;
18971 esac
18972 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18973 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 +000018974 ;;
18975 esac
John Criswell47fdd832003-07-14 16:52:07 +000018976 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18979 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018981 pgCC*)
18982 # Portland Group C++ compiler
18983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18984 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'
18985
18986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18988 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'
18989 ;;
18990 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018991 # Compaq C++
18992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 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'
18994
18995 runpath_var=LD_RUN_PATH
18996 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18997 hardcode_libdir_separator_CXX=:
18998
18999 # Commands to make compiler produce verbose output that lists
19000 # what "hidden" libraries, object files and flags are used when
19001 # linking a shared library.
19002 #
19003 # There doesn't appear to be a way to prevent this compiler from
19004 # explicitly linking system object files so we need to strip them
19005 # from the output so that they don't get included in the library
19006 # dependencies.
19007 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'
19008 ;;
19009 esac
19010 ;;
19011 lynxos*)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 m88k*)
19016 # FIXME: insert proper C++ library support
19017 ld_shlibs_CXX=no
19018 ;;
19019 mvs*)
19020 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019021 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019022 # FIXME: insert proper C++ library support
19023 ld_shlibs_CXX=no
19024 ;;
19025 *)
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 esac
19030 ;;
19031 netbsd*)
19032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19033 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19034 wlarc=
19035 hardcode_libdir_flag_spec_CXX='-R$libdir'
19036 hardcode_direct_CXX=yes
19037 hardcode_shlibpath_var_CXX=no
19038 fi
19039 # Workaround some broken pre-1.5 toolchains
19040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19041 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019042 openbsd2*)
19043 # C++ shared libraries are fairly broken
19044 ld_shlibs_CXX=no
19045 ;;
19046 openbsd*)
19047 hardcode_direct_CXX=yes
19048 hardcode_shlibpath_var_CXX=no
19049 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19052 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19053 export_dynamic_flag_spec_CXX='${wl}-E'
19054 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19055 fi
19056 output_verbose_link_cmd='echo'
19057 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019058 osf3*)
19059 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019060 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019061 # Kuck and Associates, Inc. (KAI) C++ Compiler
19062
19063 # KCC will only create a shared library if the output file
19064 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19065 # to its proper name (with version) after linking.
19066 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'
19067
19068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19069 hardcode_libdir_separator_CXX=:
19070
19071 # Archives containing C++ object files must be created using
19072 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19073 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19074
19075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019076 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019077 # Rational C++ 2.4.1
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19080 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019081 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019082 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019083 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 +000019084
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19086 hardcode_libdir_separator_CXX=:
19087
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19091 #
19092 # There doesn't appear to be a way to prevent this compiler from
19093 # explicitly linking system object files so we need to strip them
19094 # from the output so that they don't get included in the library
19095 # dependencies.
19096 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'
19097 ;;
19098 *)
19099 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19100 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019101 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 +000019102
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19104 hardcode_libdir_separator_CXX=:
19105
19106 # Commands to make compiler produce verbose output that lists
19107 # what "hidden" libraries, object files and flags are used when
19108 # linking a shared library.
19109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19110
19111 else
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 fi
19115 ;;
19116 esac
19117 ;;
19118 osf4* | osf5*)
19119 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019120 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019121 # Kuck and Associates, Inc. (KAI) C++ Compiler
19122
19123 # KCC will only create a shared library if the output file
19124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19125 # to its proper name (with version) after linking.
19126 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'
19127
19128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19129 hardcode_libdir_separator_CXX=:
19130
19131 # Archives containing C++ object files must be created using
19132 # the KAI C++ compiler.
19133 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19134 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019135 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 # Rational C++ 2.4.1
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019140 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019141 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019142 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 +000019143 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19144 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019145 $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 +000019146 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019147
19148 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19149 hardcode_libdir_separator_CXX=:
19150
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 #
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19158 # dependencies.
19159 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'
19160 ;;
19161 *)
19162 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019164 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 +000019165
19166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19167 hardcode_libdir_separator_CXX=:
19168
19169 # Commands to make compiler produce verbose output that lists
19170 # what "hidden" libraries, object files and flags are used when
19171 # linking a shared library.
19172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19173
19174 else
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19177 fi
19178 ;;
19179 esac
19180 ;;
19181 psos*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019185 sunos4*)
19186 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019187 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019188 # Sun C++ 4.x
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019192 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019193 # Lucid
19194 # FIXME: insert proper C++ library support
19195 ld_shlibs_CXX=no
19196 ;;
19197 *)
19198 # FIXME: insert proper C++ library support
19199 ld_shlibs_CXX=no
19200 ;;
19201 esac
19202 ;;
19203 solaris*)
19204 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019205 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019206 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019207 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019208 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019209 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 +000019210 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 +000019211 $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 +000019212
19213 hardcode_libdir_flag_spec_CXX='-R$libdir'
19214 hardcode_shlibpath_var_CXX=no
19215 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019216 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019217 *)
19218 # The C++ compiler is used as linker so we must use $wl
19219 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019220 # linker. We must also pass each convience library through
19221 # to the system linker between allextract/defaultextract.
19222 # The C++ compiler will combine linker options so we
19223 # cannot just pass the convience library names through
19224 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019225 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019226 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 +000019227 ;;
19228 esac
19229 link_all_deplibs_CXX=yes
19230
Reid Spencera773bd52006-08-04 18:18:08 +000019231 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019232
19233 # Archives containing C++ object files must be created using
19234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19235 # necessary to make sure instantiated templates are included
19236 # in the archive.
19237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019239 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019240 # Green Hills C++ Compiler
19241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19242
19243 # The C++ compiler must be used to create the archive.
19244 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19245 ;;
19246 *)
19247 # GNU C++ compiler with Solaris linker
19248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19249 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19250 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019251 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 +000019252 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19253 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19254
John Criswell47fdd832003-07-14 16:52:07 +000019255 # Commands to make compiler produce verbose output that lists
19256 # what "hidden" libraries, object files and flags are used when
19257 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019258 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019259 else
19260 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19261 # platform.
19262 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 +000019263 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264 $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 +000019265
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19270 fi
19271
19272 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19273 fi
19274 ;;
19275 esac
19276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19278 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019279 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019280 hardcode_shlibpath_var_CXX=no
19281 runpath_var='LD_RUN_PATH'
19282
19283 case $cc_basename in
19284 CC*)
19285 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 ;;
19288 *)
19289 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 ;;
19292 esac
19293 ;;
19294 sysv5* | sco3.2v5* | sco5v6*)
19295 # Note: We can NOT use -z defs as we might desire, because we do not
19296 # link with -lc, and that would cause any symbols used from libc to
19297 # always be unresolved, which means just about no library would
19298 # ever link correctly. If we're not using GNU ld we use -z text
19299 # though, which does catch some bad symbols but isn't as heavy-handed
19300 # as -z defs.
19301 # For security reasons, it is highly recommended that you always
19302 # use absolute paths for naming shared libraries, and exclude the
19303 # DT_RUNPATH tag from executables and libraries. But doing so
19304 # requires that you compile everything twice, which is a pain.
19305 # So that behaviour is only enabled if SCOABSPATH is set to a
19306 # non-empty value in the environment. Most likely only useful for
19307 # creating official distributions of packages.
19308 # This is a hack until libtool officially supports absolute path
19309 # names for shared libraries.
19310 no_undefined_flag_CXX='${wl}-z,text'
19311 allow_undefined_flag_CXX='${wl}-z,nodefs'
19312 archive_cmds_need_lc_CXX=no
19313 hardcode_shlibpath_var_CXX=no
19314 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19315 hardcode_libdir_separator_CXX=':'
19316 link_all_deplibs_CXX=yes
19317 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19318 runpath_var='LD_RUN_PATH'
19319
19320 case $cc_basename in
19321 CC*)
19322 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 ;;
19325 *)
19326 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 ;;
19329 esac
John Criswell47fdd832003-07-14 16:52:07 +000019330 ;;
19331 tandem*)
19332 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019333 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019334 # NonStop-UX NCC 3.20
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19337 ;;
19338 *)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 esac
19343 ;;
19344 vxworks*)
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19347 ;;
19348 *)
19349 # FIXME: insert proper C++ library support
19350 ld_shlibs_CXX=no
19351 ;;
19352esac
Reid Spencera773bd52006-08-04 18:18:08 +000019353{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19354echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019355test "$ld_shlibs_CXX" = no && can_build_shared=no
19356
19357GCC_CXX="$GXX"
19358LD_CXX="$LD"
19359
John Criswell47fdd832003-07-14 16:52:07 +000019360
19361cat > conftest.$ac_ext <<EOF
19362class Foo
19363{
19364public:
19365 Foo (void) { a = 0; }
19366private:
19367 int a;
19368};
19369EOF
19370
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; then
19376 # Parse the compiler output and extract the necessary
19377 # objects, libraries and library flags.
19378
19379 # Sentinel used to keep track of whether or not we are before
19380 # the conftest object file.
19381 pre_test_object_deps_done=no
19382
19383 # The `*' in the case matches for architectures that use `case' in
19384 # $output_verbose_cmd can trigger glob expansion during the loop
19385 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019386 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019387
19388 for p in `eval $output_verbose_link_cmd`; do
19389 case $p in
19390
19391 -L* | -R* | -l*)
19392 # Some compilers place space between "-{L,R}" and the path.
19393 # Remove the space.
19394 if test $p = "-L" \
19395 || test $p = "-R"; then
19396 prev=$p
19397 continue
19398 else
19399 prev=
19400 fi
19401
19402 if test "$pre_test_object_deps_done" = no; then
19403 case $p in
19404 -L* | -R*)
19405 # Internal compiler library paths should come after those
19406 # provided the user. The postdeps already come after the
19407 # user supplied libs so there is no need to process them.
19408 if test -z "$compiler_lib_search_path_CXX"; then
19409 compiler_lib_search_path_CXX="${prev}${p}"
19410 else
19411 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19412 fi
19413 ;;
19414 # The "-l" case would never come before the object being
19415 # linked, so don't bother handling this case.
19416 esac
19417 else
19418 if test -z "$postdeps_CXX"; then
19419 postdeps_CXX="${prev}${p}"
19420 else
19421 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19422 fi
19423 fi
19424 ;;
19425
19426 *.$objext)
19427 # This assumes that the test object file only shows up
19428 # once in the compiler output.
19429 if test "$p" = "conftest.$objext"; then
19430 pre_test_object_deps_done=yes
19431 continue
19432 fi
19433
19434 if test "$pre_test_object_deps_done" = no; then
19435 if test -z "$predep_objects_CXX"; then
19436 predep_objects_CXX="$p"
19437 else
19438 predep_objects_CXX="$predep_objects_CXX $p"
19439 fi
19440 else
19441 if test -z "$postdep_objects_CXX"; then
19442 postdep_objects_CXX="$p"
19443 else
19444 postdep_objects_CXX="$postdep_objects_CXX $p"
19445 fi
19446 fi
19447 ;;
19448
19449 *) ;; # Ignore the rest.
19450
19451 esac
19452 done
19453
19454 # Clean up.
19455 rm -f a.out a.exe
19456else
19457 echo "libtool.m4: error: problem compiling CXX test program"
19458fi
19459
19460$rm -f confest.$objext
19461
Reid Spencera773bd52006-08-04 18:18:08 +000019462# PORTME: override above test on systems where it is broken
19463case $host_os in
19464interix3*)
19465 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19466 # hack all around it, let's just trust "g++" to DTRT.
19467 predep_objects_CXX=
19468 postdep_objects_CXX=
19469 postdeps_CXX=
19470 ;;
19471
19472solaris*)
19473 case $cc_basename in
19474 CC*)
19475 # Adding this requires a known-good setup of shared libraries for
19476 # Sun compiler versions before 5.6, else PIC objects from an old
19477 # archive will be linked into the output, leading to subtle bugs.
19478 postdeps_CXX='-lCstd -lCrun'
19479 ;;
19480 esac
19481 ;;
19482esac
19483
19484
John Criswell47fdd832003-07-14 16:52:07 +000019485case " $postdeps_CXX " in
19486*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19487esac
19488
19489lt_prog_compiler_wl_CXX=
19490lt_prog_compiler_pic_CXX=
19491lt_prog_compiler_static_CXX=
19492
Reid Spencera773bd52006-08-04 18:18:08 +000019493{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19494echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019495
19496 # C++ specific cases for pic, static, wl, etc.
19497 if test "$GXX" = yes; then
19498 lt_prog_compiler_wl_CXX='-Wl,'
19499 lt_prog_compiler_static_CXX='-static'
19500
19501 case $host_os in
19502 aix*)
19503 # All AIX code is PIC.
19504 if test "$host_cpu" = ia64; then
19505 # AIX 5 now supports IA64 processor
19506 lt_prog_compiler_static_CXX='-Bstatic'
19507 fi
19508 ;;
19509 amigaos*)
19510 # FIXME: we need at least 68020 code to build shared libraries, but
19511 # adding the `-m68020' flag to GCC prevents building anything better,
19512 # like `-m68040'.
19513 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19514 ;;
19515 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19516 # PIC is the default for these OSes.
19517 ;;
19518 mingw* | os2* | pw32*)
19519 # This hack is so that the source file can tell whether it is being
19520 # built for inclusion in a dll (and should export symbols for example).
19521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19522 ;;
19523 darwin* | rhapsody*)
19524 # PIC is the default on this platform
19525 # Common symbols not allowed in MH_DYLIB files
19526 lt_prog_compiler_pic_CXX='-fno-common'
19527 ;;
19528 *djgpp*)
19529 # DJGPP does not support shared libraries at all
19530 lt_prog_compiler_pic_CXX=
19531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019532 interix3*)
19533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19534 # Instead, we relocate shared libraries at runtime.
19535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019536 sysv4*MP*)
19537 if test -d /usr/nec; then
19538 lt_prog_compiler_pic_CXX=-Kconform_pic
19539 fi
19540 ;;
19541 hpux*)
19542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19543 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019544 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019545 hppa*64*|ia64*)
19546 ;;
19547 *)
19548 lt_prog_compiler_pic_CXX='-fPIC'
19549 ;;
19550 esac
19551 ;;
19552 *)
19553 lt_prog_compiler_pic_CXX='-fPIC'
19554 ;;
19555 esac
19556 else
19557 case $host_os in
19558 aix4* | aix5*)
19559 # All AIX code is PIC.
19560 if test "$host_cpu" = ia64; then
19561 # AIX 5 now supports IA64 processor
19562 lt_prog_compiler_static_CXX='-Bstatic'
19563 else
19564 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19565 fi
19566 ;;
19567 chorus*)
19568 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019569 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019570 # Green Hills C++ Compiler
19571 # _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"
19572 ;;
19573 esac
19574 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019575 darwin*)
19576 # PIC is the default on this platform
19577 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019578 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019579 xlc*)
19580 lt_prog_compiler_pic_CXX='-qnocommon'
19581 lt_prog_compiler_wl_CXX='-Wl,'
19582 ;;
19583 esac
19584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019585 dgux*)
19586 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019587 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019588 lt_prog_compiler_pic_CXX='-KPIC'
19589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019590 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019591 # Green Hills C++ Compiler
19592 lt_prog_compiler_pic_CXX='-pic'
19593 ;;
19594 *)
19595 ;;
19596 esac
19597 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019598 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019599 # FreeBSD uses GNU C++
19600 ;;
19601 hpux9* | hpux10* | hpux11*)
19602 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019603 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019604 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019606 if test "$host_cpu" != ia64; then
19607 lt_prog_compiler_pic_CXX='+Z'
19608 fi
19609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019610 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019611 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019612 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19613 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019614 hppa*64*|ia64*)
19615 # +Z the default
19616 ;;
19617 *)
19618 lt_prog_compiler_pic_CXX='+Z'
19619 ;;
19620 esac
19621 ;;
19622 *)
19623 ;;
19624 esac
19625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019626 interix*)
19627 # This is c89, which is MS Visual C++ (no shared libs)
19628 # Anyone wants to do a port?
19629 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019630 irix5* | irix6* | nonstopux*)
19631 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019632 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019633 lt_prog_compiler_wl_CXX='-Wl,'
19634 lt_prog_compiler_static_CXX='-non_shared'
19635 # CC pic flag -KPIC is the default.
19636 ;;
19637 *)
19638 ;;
19639 esac
19640 ;;
19641 linux*)
19642 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019643 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019644 # KAI C++ Compiler
19645 lt_prog_compiler_wl_CXX='--backend -Wl,'
19646 lt_prog_compiler_pic_CXX='-fPIC'
19647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019648 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019649 # Intel C++
19650 lt_prog_compiler_wl_CXX='-Wl,'
19651 lt_prog_compiler_pic_CXX='-KPIC'
19652 lt_prog_compiler_static_CXX='-static'
19653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019654 pgCC*)
19655 # Portland Group C++ compiler.
19656 lt_prog_compiler_wl_CXX='-Wl,'
19657 lt_prog_compiler_pic_CXX='-fpic'
19658 lt_prog_compiler_static_CXX='-Bstatic'
19659 ;;
19660 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019661 # Compaq C++
19662 # Make sure the PIC flag is empty. It appears that all Alpha
19663 # Linux and Compaq Tru64 Unix objects are PIC.
19664 lt_prog_compiler_pic_CXX=
19665 lt_prog_compiler_static_CXX='-non_shared'
19666 ;;
19667 *)
19668 ;;
19669 esac
19670 ;;
19671 lynxos*)
19672 ;;
19673 m88k*)
19674 ;;
19675 mvs*)
19676 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019677 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019678 lt_prog_compiler_pic_CXX='-W c,exportall'
19679 ;;
19680 *)
19681 ;;
19682 esac
19683 ;;
19684 netbsd*)
19685 ;;
19686 osf3* | osf4* | osf5*)
19687 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019688 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019689 lt_prog_compiler_wl_CXX='--backend -Wl,'
19690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019691 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019692 # Rational C++ 2.4.1
19693 lt_prog_compiler_pic_CXX='-pic'
19694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019695 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019696 # Digital/Compaq C++
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 # Make sure the PIC flag is empty. It appears that all Alpha
19699 # Linux and Compaq Tru64 Unix objects are PIC.
19700 lt_prog_compiler_pic_CXX=
19701 lt_prog_compiler_static_CXX='-non_shared'
19702 ;;
19703 *)
19704 ;;
19705 esac
19706 ;;
19707 psos*)
19708 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019709 solaris*)
19710 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019711 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019712 # Sun C++ 4.2, 5.x and Centerline C++
19713 lt_prog_compiler_pic_CXX='-KPIC'
19714 lt_prog_compiler_static_CXX='-Bstatic'
19715 lt_prog_compiler_wl_CXX='-Qoption ld '
19716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019717 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019718 # Green Hills C++ Compiler
19719 lt_prog_compiler_pic_CXX='-PIC'
19720 ;;
19721 *)
19722 ;;
19723 esac
19724 ;;
19725 sunos4*)
19726 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019727 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019728 # Sun C++ 4.x
19729 lt_prog_compiler_pic_CXX='-pic'
19730 lt_prog_compiler_static_CXX='-Bstatic'
19731 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019732 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019733 # Lucid
19734 lt_prog_compiler_pic_CXX='-pic'
19735 ;;
19736 *)
19737 ;;
19738 esac
19739 ;;
19740 tandem*)
19741 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019742 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019743 # NonStop-UX NCC 3.20
19744 lt_prog_compiler_pic_CXX='-KPIC'
19745 ;;
19746 *)
19747 ;;
19748 esac
19749 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19751 case $cc_basename in
19752 CC*)
19753 lt_prog_compiler_wl_CXX='-Wl,'
19754 lt_prog_compiler_pic_CXX='-KPIC'
19755 lt_prog_compiler_static_CXX='-Bstatic'
19756 ;;
19757 esac
John Criswell47fdd832003-07-14 16:52:07 +000019758 ;;
19759 vxworks*)
19760 ;;
19761 *)
19762 lt_prog_compiler_can_build_shared_CXX=no
19763 ;;
19764 esac
19765 fi
19766
Reid Spencera773bd52006-08-04 18:18:08 +000019767{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19768echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019769
19770#
19771# Check to make sure the PIC flag actually works.
19772#
19773if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019774
Reid Spencera773bd52006-08-04 18:18:08 +000019775{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19776echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019777if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779else
19780 lt_prog_compiler_pic_works_CXX=no
19781 ac_outfile=conftest.$ac_objext
19782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19783 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19784 # Insert the option either (1) after the last *FLAGS variable, or
19785 # (2) before a word containing "conftest.", or (3) at the end.
19786 # Note that $ac_compile itself does not contain backslashes and begins
19787 # with a dollar sign (not a hyphen), so the echo should work correctly.
19788 # The option is referenced via a variable to avoid confusing sed.
19789 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19792 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000019793 (eval echo "\"\$as_me:19788: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019794 (eval "$lt_compile" 2>conftest.err)
19795 ac_status=$?
19796 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000019797 echo "$as_me:19792: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019798 if (exit $ac_status) && test -s "$ac_outfile"; then
19799 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019800 # So say no if there are warnings other than the usual output.
19801 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019804 lt_prog_compiler_pic_works_CXX=yes
19805 fi
19806 fi
19807 $rm conftest*
19808
19809fi
Reid Spencera773bd52006-08-04 18:18:08 +000019810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19811echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019812
19813if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19814 case $lt_prog_compiler_pic_CXX in
19815 "" | " "*) ;;
19816 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19817 esac
19818else
19819 lt_prog_compiler_pic_CXX=
19820 lt_prog_compiler_can_build_shared_CXX=no
19821fi
19822
19823fi
Reid Spencera773bd52006-08-04 18:18:08 +000019824case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019825 # For platforms which do not support PIC, -DPIC is meaningless:
19826 *djgpp*)
19827 lt_prog_compiler_pic_CXX=
19828 ;;
19829 *)
19830 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19831 ;;
19832esac
19833
Reid Spencera773bd52006-08-04 18:18:08 +000019834#
19835# Check to make sure the static flag actually works.
19836#
19837wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19838{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19839echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19840if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842else
19843 lt_prog_compiler_static_works_CXX=no
19844 save_LDFLAGS="$LDFLAGS"
19845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19846 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19848 # The linker can only warn and ignore the option if not recognized
19849 # So say no if there are warnings
19850 if test -s conftest.err; then
19851 # Append any errors to the config.log.
19852 cat conftest.err 1>&5
19853 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19855 if diff conftest.exp conftest.er2 >/dev/null; then
19856 lt_prog_compiler_static_works_CXX=yes
19857 fi
19858 else
19859 lt_prog_compiler_static_works_CXX=yes
19860 fi
19861 fi
19862 $rm conftest*
19863 LDFLAGS="$save_LDFLAGS"
19864
19865fi
19866{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19867echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19868
19869if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19870 :
19871else
19872 lt_prog_compiler_static_CXX=
19873fi
19874
19875
19876{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19877echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019878if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
19881 lt_cv_prog_compiler_c_o_CXX=no
19882 $rm -r conftest 2>/dev/null
19883 mkdir conftest
19884 cd conftest
19885 mkdir out
19886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19887
John Criswell47fdd832003-07-14 16:52:07 +000019888 lt_compiler_flag="-o out/conftest2.$ac_objext"
19889 # Insert the option either (1) after the last *FLAGS variable, or
19890 # (2) before a word containing "conftest.", or (3) at the end.
19891 # Note that $ac_compile itself does not contain backslashes and begins
19892 # with a dollar sign (not a hyphen), so the echo should work correctly.
19893 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19896 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000019897 (eval echo "\"\$as_me:19892: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019898 (eval "$lt_compile" 2>out/conftest.err)
19899 ac_status=$?
19900 cat out/conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000019901 echo "$as_me:19896: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19903 then
19904 # The compiler can only warn and ignore the option if not recognized
19905 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019906 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019909 lt_cv_prog_compiler_c_o_CXX=yes
19910 fi
19911 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019912 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019913 $rm conftest*
19914 # SGI C++ compiler will create directory out/ii_files/ for
19915 # template instantiation
19916 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19917 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019918 cd ..
19919 rmdir conftest
19920 $rm conftest*
19921
19922fi
Reid Spencera773bd52006-08-04 18:18:08 +000019923{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19924echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019925
19926
19927hard_links="nottested"
19928if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19929 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019930 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19931echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019932 hard_links=yes
19933 $rm conftest*
19934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19935 touch conftest.a
19936 ln conftest.a conftest.b 2>&5 || hard_links=no
19937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019938 { echo "$as_me:$LINENO: result: $hard_links" >&5
19939echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019940 if test "$hard_links" = no; then
19941 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19942echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19943 need_locks=warn
19944 fi
19945else
19946 need_locks=no
19947fi
19948
Reid Spencera773bd52006-08-04 18:18:08 +000019949{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19950echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019951
19952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19953 case $host_os in
19954 aix4* | aix5*)
19955 # If we're using GNU nm, then we don't want the "-C" option.
19956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19957 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19958 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'
19959 else
19960 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'
19961 fi
19962 ;;
19963 pw32*)
19964 export_symbols_cmds_CXX="$ltdll_cmds"
19965 ;;
19966 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019967 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 +000019968 ;;
19969 *)
19970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19971 ;;
19972 esac
19973
Reid Spencera773bd52006-08-04 18:18:08 +000019974{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19975echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019976test "$ld_shlibs_CXX" = no && can_build_shared=no
19977
John Criswell47fdd832003-07-14 16:52:07 +000019978#
19979# Do we need to explicitly link libc?
19980#
19981case "x$archive_cmds_need_lc_CXX" in
19982x|xyes)
19983 # Assume -lc should be added
19984 archive_cmds_need_lc_CXX=yes
19985
19986 if test "$enable_shared" = yes && test "$GCC" = yes; then
19987 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019988 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019989 # FIXME: we may have to deal with multi-command sequences.
19990 ;;
19991 '$CC '*)
19992 # Test whether the compiler implicitly links with -lc since on some
19993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19994 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019995 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19996echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019997 $rm conftest*
19998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19999
20000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001 (eval $ac_compile) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } 2>conftest.err; then
20005 soname=conftest
20006 lib=conftest
20007 libobjs=conftest.$ac_objext
20008 deplibs=
20009 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020010 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020011 compiler_flags=-v
20012 linker_flags=-v
20013 verstring=
20014 output_objdir=.
20015 libname=conftest
20016 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20017 allow_undefined_flag_CXX=
20018 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20019 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }
20023 then
20024 archive_cmds_need_lc_CXX=no
20025 else
20026 archive_cmds_need_lc_CXX=yes
20027 fi
20028 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20029 else
20030 cat conftest.err 1>&5
20031 fi
20032 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020033 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20034echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020035 ;;
20036 esac
20037 fi
20038 ;;
20039esac
20040
Reid Spencera773bd52006-08-04 18:18:08 +000020041{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20042echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020043library_names_spec=
20044libname_spec='lib$name'
20045soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020046shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020047postinstall_cmds=
20048postuninstall_cmds=
20049finish_cmds=
20050finish_eval=
20051shlibpath_var=
20052shlibpath_overrides_runpath=unknown
20053version_type=none
20054dynamic_linker="$host_os ld.so"
20055sys_lib_dlsearch_path_spec="/lib /usr/lib"
20056if test "$GCC" = yes; then
20057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20058 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20059 # if the path contains ";" then we assume it to be the separator
20060 # otherwise default to the standard path separator (i.e. ":") - it is
20061 # assumed that no part of a normal pathname contains ";" but that should
20062 # okay in the real world where ";" in dirpaths is itself problematic.
20063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20064 else
20065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20066 fi
20067else
20068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20069fi
20070need_lib_prefix=unknown
20071hardcode_into_libs=no
20072
20073# when you set need_version to no, make sure it does not cause -set_version
20074# flags to be left without arguments
20075need_version=unknown
20076
20077case $host_os in
20078aix3*)
20079 version_type=linux
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20081 shlibpath_var=LIBPATH
20082
20083 # AIX 3 has no versioning support, so we append a major version to the name.
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 ;;
20086
20087aix4* | aix5*)
20088 version_type=linux
20089 need_lib_prefix=no
20090 need_version=no
20091 hardcode_into_libs=yes
20092 if test "$host_cpu" = ia64; then
20093 # AIX 5 supports IA64
20094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 else
20097 # With GCC up to 2.95.x, collect2 would create an import file
20098 # for dependence libraries. The import file would start with
20099 # the line `#! .'. This would cause the generated library to
20100 # depend on `.', always an invalid library. This was fixed in
20101 # development snapshots of GCC prior to 3.0.
20102 case $host_os in
20103 aix4 | aix4.[01] | aix4.[01].*)
20104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20105 echo ' yes '
20106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20107 :
20108 else
20109 can_build_shared=no
20110 fi
20111 ;;
20112 esac
20113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20114 # soname into executable. Probably we can add versioning support to
20115 # collect2, so additional links can be useful in future.
20116 if test "$aix_use_runtimelinking" = yes; then
20117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20118 # instead of lib<name>.a to let people know that these are not
20119 # typical AIX shared libraries.
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121 else
20122 # We preserve .a as extension for shared libraries through AIX4.2
20123 # and later when we are not doing run time linking.
20124 library_names_spec='${libname}${release}.a $libname.a'
20125 soname_spec='${libname}${release}${shared_ext}$major'
20126 fi
20127 shlibpath_var=LIBPATH
20128 fi
20129 ;;
20130
20131amigaos*)
20132 library_names_spec='$libname.ixlibrary $libname.a'
20133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020134 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 +000020135 ;;
20136
20137beos*)
20138 library_names_spec='${libname}${shared_ext}'
20139 dynamic_linker="$host_os ld.so"
20140 shlibpath_var=LIBRARY_PATH
20141 ;;
20142
Reid Spencer2706f8c2004-09-19 23:53:36 +000020143bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020144 version_type=linux
20145 need_version=no
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20152 # the default ld.so.conf also contains /usr/contrib/lib and
20153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20154 # libtool to hard-code these into programs
20155 ;;
20156
20157cygwin* | mingw* | pw32*)
20158 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020159 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020160 need_version=no
20161 need_lib_prefix=no
20162
20163 case $GCC,$host_os in
20164 yes,cygwin* | yes,mingw* | yes,pw32*)
20165 library_names_spec='$libname.dll.a'
20166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020167 postinstall_cmds='base_file=`basename \${file}`~
20168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20169 dldir=$destdir/`dirname \$dlpath`~
20170 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020171 $install_prog $dir/$dlname \$dldir/$dlname~
20172 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20174 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020175 $rm \$dlpath'
20176 shlibpath_overrides_runpath=yes
20177
20178 case $host_os in
20179 cygwin*)
20180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20181 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 +000020182 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020183 ;;
20184 mingw*)
20185 # MinGW DLLs use traditional 'lib' prefix
20186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20189 # It is most probably a Windows format PATH printed by
20190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20191 # path with ; separators, and with drive letters. We can handle the
20192 # drive letters (cygwin fileutils understands them), so leave them,
20193 # especially as we might pass files found there to a mingw objdump,
20194 # which wouldn't understand a cygwinified path. Ahh.
20195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20196 else
20197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20198 fi
20199 ;;
20200 pw32*)
20201 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020202 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 +000020203 ;;
20204 esac
20205 ;;
20206
20207 *)
20208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20209 ;;
20210 esac
20211 dynamic_linker='Win32 ld.exe'
20212 # FIXME: first we should search . and the directory the executable is in
20213 shlibpath_var=PATH
20214 ;;
20215
20216darwin* | rhapsody*)
20217 dynamic_linker="$host_os dyld"
20218 version_type=darwin
20219 need_lib_prefix=no
20220 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020221 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020222 soname_spec='${libname}${release}${major}$shared_ext'
20223 shlibpath_overrides_runpath=yes
20224 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020225 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020226 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020227 if test "$GCC" = yes; then
20228 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"`
20229 else
20230 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020231 fi
20232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20233 ;;
20234
20235dgux*)
20236 version_type=linux
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 ;;
20243
20244freebsd1*)
20245 dynamic_linker=no
20246 ;;
20247
Reid Spencer2706f8c2004-09-19 23:53:36 +000020248kfreebsd*-gnu)
20249 version_type=linux
20250 need_lib_prefix=no
20251 need_version=no
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
20256 hardcode_into_libs=yes
20257 dynamic_linker='GNU ld.so'
20258 ;;
20259
Reid Spencera773bd52006-08-04 18:18:08 +000020260freebsd* | dragonfly*)
20261 # DragonFly does not have aout. When/if they implement a new
20262 # versioning mechanism, adjust this.
20263 if test -x /usr/bin/objformat; then
20264 objformat=`/usr/bin/objformat`
20265 else
20266 case $host_os in
20267 freebsd[123]*) objformat=aout ;;
20268 *) objformat=elf ;;
20269 esac
20270 fi
John Criswell47fdd832003-07-14 16:52:07 +000020271 version_type=freebsd-$objformat
20272 case $version_type in
20273 freebsd-elf*)
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20275 need_version=no
20276 need_lib_prefix=no
20277 ;;
20278 freebsd-*)
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20280 need_version=yes
20281 ;;
20282 esac
20283 shlibpath_var=LD_LIBRARY_PATH
20284 case $host_os in
20285 freebsd2*)
20286 shlibpath_overrides_runpath=yes
20287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020288 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020289 shlibpath_overrides_runpath=yes
20290 hardcode_into_libs=yes
20291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020292 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20293 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020294 shlibpath_overrides_runpath=no
20295 hardcode_into_libs=yes
20296 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020297 freebsd*) # from 4.6 on
20298 shlibpath_overrides_runpath=yes
20299 hardcode_into_libs=yes
20300 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020301 esac
20302 ;;
20303
20304gnu*)
20305 version_type=linux
20306 need_lib_prefix=no
20307 need_version=no
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 hardcode_into_libs=yes
20312 ;;
20313
20314hpux9* | hpux10* | hpux11*)
20315 # Give a soname corresponding to the major version so that dld.sl refuses to
20316 # link against other versions.
20317 version_type=sunos
20318 need_lib_prefix=no
20319 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020320 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020321 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020322 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020323 hardcode_into_libs=yes
20324 dynamic_linker="$host_os dld.so"
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 if test "X$HPUX_IA64_MODE" = X32; then
20330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20331 else
20332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20333 fi
20334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20335 ;;
20336 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020337 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020338 hardcode_into_libs=yes
20339 dynamic_linker="$host_os dld.sl"
20340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20346 ;;
20347 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020348 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020349 dynamic_linker="$host_os dld.sl"
20350 shlibpath_var=SHLIB_PATH
20351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353 soname_spec='${libname}${release}${shared_ext}$major'
20354 ;;
20355 esac
20356 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20357 postinstall_cmds='chmod 555 $lib'
20358 ;;
20359
Reid Spencera773bd52006-08-04 18:18:08 +000020360interix3*)
20361 version_type=linux
20362 need_lib_prefix=no
20363 need_version=no
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20365 soname_spec='${libname}${release}${shared_ext}$major'
20366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=no
20369 hardcode_into_libs=yes
20370 ;;
20371
John Criswell47fdd832003-07-14 16:52:07 +000020372irix5* | irix6* | nonstopux*)
20373 case $host_os in
20374 nonstopux*) version_type=nonstopux ;;
20375 *)
20376 if test "$lt_cv_prog_gnu_ld" = yes; then
20377 version_type=linux
20378 else
20379 version_type=irix
20380 fi ;;
20381 esac
20382 need_lib_prefix=no
20383 need_version=no
20384 soname_spec='${libname}${release}${shared_ext}$major'
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20386 case $host_os in
20387 irix5* | nonstopux*)
20388 libsuff= shlibsuff=
20389 ;;
20390 *)
20391 case $LD in # libtool.m4 will add one of these switches to LD
20392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20393 libsuff= shlibsuff= libmagic=32-bit;;
20394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20395 libsuff=32 shlibsuff=N32 libmagic=N32;;
20396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20398 *) libsuff= shlibsuff= libmagic=never-match;;
20399 esac
20400 ;;
20401 esac
20402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20403 shlibpath_overrides_runpath=no
20404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20406 hardcode_into_libs=yes
20407 ;;
20408
20409# No shared lib support for Linux oldld, aout, or coff.
20410linux*oldld* | linux*aout* | linux*coff*)
20411 dynamic_linker=no
20412 ;;
20413
20414# This must be Linux ELF.
20415linux*)
20416 version_type=linux
20417 need_lib_prefix=no
20418 need_version=no
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 shlibpath_overrides_runpath=no
20424 # This implies no fast_install, which is unacceptable.
20425 # Some rework will be needed to allow for fast_install
20426 # before this can be enabled.
20427 hardcode_into_libs=yes
20428
Reid Spencer2706f8c2004-09-19 23:53:36 +000020429 # Append ld.so.conf contents to the search path
20430 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020431 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 +000020432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20433 fi
20434
John Criswell47fdd832003-07-14 16:52:07 +000020435 # We used to test for /lib/ld.so.1 and disable shared libraries on
20436 # powerpc, because MkLinux only supported shared libraries with the
20437 # GNU dynamic linker. Since this was broken with cross compilers,
20438 # most powerpc-linux boxes support dynamic linking these days and
20439 # people can always --disable-shared, the test was removed, and we
20440 # assume the GNU/Linux dynamic linker is in use.
20441 dynamic_linker='GNU/Linux ld.so'
20442 ;;
20443
Reid Spencer2706f8c2004-09-19 23:53:36 +000020444knetbsd*-gnu)
20445 version_type=linux
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=no
20452 hardcode_into_libs=yes
20453 dynamic_linker='GNU ld.so'
20454 ;;
20455
John Criswell47fdd832003-07-14 16:52:07 +000020456netbsd*)
20457 version_type=sunos
20458 need_lib_prefix=no
20459 need_version=no
20460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20463 dynamic_linker='NetBSD (a.out) ld.so'
20464 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020466 soname_spec='${libname}${release}${shared_ext}$major'
20467 dynamic_linker='NetBSD ld.elf_so'
20468 fi
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=yes
20471 hardcode_into_libs=yes
20472 ;;
20473
20474newsos6)
20475 version_type=linux
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 ;;
20480
Reid Spencer2706f8c2004-09-19 23:53:36 +000020481nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020482 version_type=linux
20483 need_lib_prefix=no
20484 need_version=no
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 ;;
20490
20491openbsd*)
20492 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020493 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020494 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20496 case $host_os in
20497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20498 *) need_version=no ;;
20499 esac
John Criswell47fdd832003-07-14 16:52:07 +000020500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20504 case $host_os in
20505 openbsd2.[89] | openbsd2.[89].*)
20506 shlibpath_overrides_runpath=no
20507 ;;
20508 *)
20509 shlibpath_overrides_runpath=yes
20510 ;;
20511 esac
20512 else
20513 shlibpath_overrides_runpath=yes
20514 fi
20515 ;;
20516
20517os2*)
20518 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020519 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020520 need_lib_prefix=no
20521 library_names_spec='$libname${shared_ext} $libname.a'
20522 dynamic_linker='OS/2 ld.exe'
20523 shlibpath_var=LIBPATH
20524 ;;
20525
20526osf3* | osf4* | osf5*)
20527 version_type=osf
20528 need_lib_prefix=no
20529 need_version=no
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532 shlibpath_var=LD_LIBRARY_PATH
20533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20535 ;;
20536
John Criswell47fdd832003-07-14 16:52:07 +000020537solaris*)
20538 version_type=linux
20539 need_lib_prefix=no
20540 need_version=no
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 soname_spec='${libname}${release}${shared_ext}$major'
20543 shlibpath_var=LD_LIBRARY_PATH
20544 shlibpath_overrides_runpath=yes
20545 hardcode_into_libs=yes
20546 # ldd complains unless libraries are executable
20547 postinstall_cmds='chmod +x $lib'
20548 ;;
20549
20550sunos4*)
20551 version_type=sunos
20552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath=yes
20556 if test "$with_gnu_ld" = yes; then
20557 need_lib_prefix=no
20558 fi
20559 need_version=yes
20560 ;;
20561
Reid Spencera773bd52006-08-04 18:18:08 +000020562sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020563 version_type=linux
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 shlibpath_var=LD_LIBRARY_PATH
20567 case $host_vendor in
20568 sni)
20569 shlibpath_overrides_runpath=no
20570 need_lib_prefix=no
20571 export_dynamic_flag_spec='${wl}-Blargedynsym'
20572 runpath_var=LD_RUN_PATH
20573 ;;
20574 siemens)
20575 need_lib_prefix=no
20576 ;;
20577 motorola)
20578 need_lib_prefix=no
20579 need_version=no
20580 shlibpath_overrides_runpath=no
20581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20582 ;;
20583 esac
20584 ;;
20585
20586sysv4*MP*)
20587 if test -d /usr/nec ;then
20588 version_type=linux
20589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20590 soname_spec='$libname${shared_ext}.$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20592 fi
20593 ;;
20594
Reid Spencera773bd52006-08-04 18:18:08 +000020595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20596 version_type=freebsd-elf
20597 need_lib_prefix=no
20598 need_version=no
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20602 hardcode_into_libs=yes
20603 if test "$with_gnu_ld" = yes; then
20604 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20605 shlibpath_overrides_runpath=no
20606 else
20607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20608 shlibpath_overrides_runpath=yes
20609 case $host_os in
20610 sco3.2v5*)
20611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20612 ;;
20613 esac
20614 fi
20615 sys_lib_dlsearch_path_spec='/usr/lib'
20616 ;;
20617
John Criswell47fdd832003-07-14 16:52:07 +000020618uts4*)
20619 version_type=linux
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 shlibpath_var=LD_LIBRARY_PATH
20623 ;;
20624
20625*)
20626 dynamic_linker=no
20627 ;;
20628esac
Reid Spencera773bd52006-08-04 18:18:08 +000020629{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20630echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020631test "$dynamic_linker" = no && can_build_shared=no
20632
Reid Spencera773bd52006-08-04 18:18:08 +000020633variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20634if test "$GCC" = yes; then
20635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20636fi
20637
20638{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20639echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020640hardcode_action_CXX=
20641if test -n "$hardcode_libdir_flag_spec_CXX" || \
20642 test -n "$runpath_var_CXX" || \
20643 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20644
20645 # We can hardcode non-existant directories.
20646 if test "$hardcode_direct_CXX" != no &&
20647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20648 # have to relink, otherwise we might link with an installed library
20649 # when we should be linking with a yet-to-be-installed one
20650 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20651 test "$hardcode_minus_L_CXX" != no; then
20652 # Linking always hardcodes the temporary library directory.
20653 hardcode_action_CXX=relink
20654 else
20655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20656 hardcode_action_CXX=immediate
20657 fi
20658else
20659 # We cannot hardcode anything, or else we can only hardcode existing
20660 # directories.
20661 hardcode_action_CXX=unsupported
20662fi
Reid Spencera773bd52006-08-04 18:18:08 +000020663{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20664echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020665
20666if test "$hardcode_action_CXX" = relink; then
20667 # Fast installation is not supported
20668 enable_fast_install=no
20669elif test "$shlibpath_overrides_runpath" = yes ||
20670 test "$enable_shared" = no; then
20671 # Fast installation is not necessary
20672 enable_fast_install=needless
20673fi
20674
John Criswell47fdd832003-07-14 16:52:07 +000020675
20676# The else clause should only fire when bootstrapping the
20677# libtool distribution, otherwise you forgot to ship ltmain.sh
20678# with your package, and you will get complaints that there are
20679# no rules to generate ltmain.sh.
20680if test -f "$ltmain"; then
20681 # See if we are running on zsh, and set the options which allow our commands through
20682 # without removal of \ escapes.
20683 if test -n "${ZSH_VERSION+set}" ; then
20684 setopt NO_GLOB_SUBST
20685 fi
20686 # Now quote all the things that may contain metacharacters while being
20687 # careful not to overquote the AC_SUBSTed values. We take copies of the
20688 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020689 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 +000020690 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20693 deplibs_check_method reload_flag reload_cmds need_locks \
20694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20695 lt_cv_sys_global_symbol_to_c_name_address \
20696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20697 old_postinstall_cmds old_postuninstall_cmds \
20698 compiler_CXX \
20699 CC_CXX \
20700 LD_CXX \
20701 lt_prog_compiler_wl_CXX \
20702 lt_prog_compiler_pic_CXX \
20703 lt_prog_compiler_static_CXX \
20704 lt_prog_compiler_no_builtin_flag_CXX \
20705 export_dynamic_flag_spec_CXX \
20706 thread_safe_flag_spec_CXX \
20707 whole_archive_flag_spec_CXX \
20708 enable_shared_with_static_runtimes_CXX \
20709 old_archive_cmds_CXX \
20710 old_archive_from_new_cmds_CXX \
20711 predep_objects_CXX \
20712 postdep_objects_CXX \
20713 predeps_CXX \
20714 postdeps_CXX \
20715 compiler_lib_search_path_CXX \
20716 archive_cmds_CXX \
20717 archive_expsym_cmds_CXX \
20718 postinstall_cmds_CXX \
20719 postuninstall_cmds_CXX \
20720 old_archive_from_expsyms_cmds_CXX \
20721 allow_undefined_flag_CXX \
20722 no_undefined_flag_CXX \
20723 export_symbols_cmds_CXX \
20724 hardcode_libdir_flag_spec_CXX \
20725 hardcode_libdir_flag_spec_ld_CXX \
20726 hardcode_libdir_separator_CXX \
20727 hardcode_automatic_CXX \
20728 module_cmds_CXX \
20729 module_expsym_cmds_CXX \
20730 lt_cv_prog_compiler_c_o_CXX \
20731 exclude_expsyms_CXX \
20732 include_expsyms_CXX; do
20733
20734 case $var in
20735 old_archive_cmds_CXX | \
20736 old_archive_from_new_cmds_CXX | \
20737 archive_cmds_CXX | \
20738 archive_expsym_cmds_CXX | \
20739 module_cmds_CXX | \
20740 module_expsym_cmds_CXX | \
20741 old_archive_from_expsyms_cmds_CXX | \
20742 export_symbols_cmds_CXX | \
20743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20744 postinstall_cmds | postuninstall_cmds | \
20745 old_postinstall_cmds | old_postuninstall_cmds | \
20746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20747 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020748 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 +000020749 ;;
20750 *)
20751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20752 ;;
20753 esac
20754 done
20755
20756 case $lt_echo in
20757 *'\$0 --fallback-echo"')
20758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20759 ;;
20760 esac
20761
20762cfgfile="$ofile"
20763
20764 cat <<__EOF__ >> "$cfgfile"
20765# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20766
20767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20768
20769# Shell to use when invoking shell scripts.
20770SHELL=$lt_SHELL
20771
20772# Whether or not to build shared libraries.
20773build_libtool_libs=$enable_shared
20774
20775# Whether or not to build static libraries.
20776build_old_libs=$enable_static
20777
20778# Whether or not to add -lc for building shared libraries.
20779build_libtool_need_lc=$archive_cmds_need_lc_CXX
20780
20781# Whether or not to disallow shared libs when runtime libs are static
20782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20783
20784# Whether or not to optimize for fast installation.
20785fast_install=$enable_fast_install
20786
20787# The host system.
20788host_alias=$host_alias
20789host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020790host_os=$host_os
20791
20792# The build system.
20793build_alias=$build_alias
20794build=$build
20795build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020796
20797# An echo program that does not interpret backslashes.
20798echo=$lt_echo
20799
20800# The archiver.
20801AR=$lt_AR
20802AR_FLAGS=$lt_AR_FLAGS
20803
20804# A C compiler.
20805LTCC=$lt_LTCC
20806
Reid Spencera773bd52006-08-04 18:18:08 +000020807# LTCC compiler flags.
20808LTCFLAGS=$lt_LTCFLAGS
20809
John Criswell47fdd832003-07-14 16:52:07 +000020810# A language-specific compiler.
20811CC=$lt_compiler_CXX
20812
20813# Is the compiler the GNU C compiler?
20814with_gcc=$GCC_CXX
20815
20816# An ERE matcher.
20817EGREP=$lt_EGREP
20818
20819# The linker used to build libraries.
20820LD=$lt_LD_CXX
20821
20822# Whether we need hard or soft links.
20823LN_S=$lt_LN_S
20824
20825# A BSD-compatible nm program.
20826NM=$lt_NM
20827
20828# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020829STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020830
20831# Used to examine libraries when file_magic_cmd begins "file"
20832MAGIC_CMD=$MAGIC_CMD
20833
20834# Used on cygwin: DLL creation program.
20835DLLTOOL="$DLLTOOL"
20836
20837# Used on cygwin: object dumper.
20838OBJDUMP="$OBJDUMP"
20839
20840# Used on cygwin: assembler.
20841AS="$AS"
20842
20843# The name of the directory that contains temporary libtool files.
20844objdir=$objdir
20845
20846# How to create reloadable object files.
20847reload_flag=$lt_reload_flag
20848reload_cmds=$lt_reload_cmds
20849
20850# How to pass a linker flag through the compiler.
20851wl=$lt_lt_prog_compiler_wl_CXX
20852
20853# Object file suffix (normally "o").
20854objext="$ac_objext"
20855
20856# Old archive suffix (normally "a").
20857libext="$libext"
20858
20859# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020860shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020861
20862# Executable file suffix (normally "").
20863exeext="$exeext"
20864
20865# Additional compiler flags for building library objects.
20866pic_flag=$lt_lt_prog_compiler_pic_CXX
20867pic_mode=$pic_mode
20868
20869# What is the maximum length of a command?
20870max_cmd_len=$lt_cv_sys_max_cmd_len
20871
20872# Does compiler simultaneously support -c and -o options?
20873compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20874
Reid Spencera773bd52006-08-04 18:18:08 +000020875# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020876need_locks=$lt_need_locks
20877
20878# Do we need the lib prefix for modules?
20879need_lib_prefix=$need_lib_prefix
20880
20881# Do we need a version for libraries?
20882need_version=$need_version
20883
20884# Whether dlopen is supported.
20885dlopen_support=$enable_dlopen
20886
20887# Whether dlopen of programs is supported.
20888dlopen_self=$enable_dlopen_self
20889
20890# Whether dlopen of statically linked programs is supported.
20891dlopen_self_static=$enable_dlopen_self_static
20892
20893# Compiler flag to prevent dynamic linking.
20894link_static_flag=$lt_lt_prog_compiler_static_CXX
20895
20896# Compiler flag to turn off builtin functions.
20897no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20898
20899# Compiler flag to allow reflexive dlopens.
20900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20901
20902# Compiler flag to generate shared objects directly from archives.
20903whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20904
20905# Compiler flag to generate thread-safe objects.
20906thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20907
20908# Library versioning type.
20909version_type=$version_type
20910
20911# Format of library name prefix.
20912libname_spec=$lt_libname_spec
20913
20914# List of archive names. First name is the real one, the rest are links.
20915# The last name is the one that the linker finds with -lNAME.
20916library_names_spec=$lt_library_names_spec
20917
20918# The coded name of the library, if different from the real name.
20919soname_spec=$lt_soname_spec
20920
20921# Commands used to build and install an old-style archive.
20922RANLIB=$lt_RANLIB
20923old_archive_cmds=$lt_old_archive_cmds_CXX
20924old_postinstall_cmds=$lt_old_postinstall_cmds
20925old_postuninstall_cmds=$lt_old_postuninstall_cmds
20926
20927# Create an old-style archive from a shared archive.
20928old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20929
20930# Create a temporary old-style archive to link instead of a shared archive.
20931old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20932
20933# Commands used to build and install a shared archive.
20934archive_cmds=$lt_archive_cmds_CXX
20935archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20936postinstall_cmds=$lt_postinstall_cmds
20937postuninstall_cmds=$lt_postuninstall_cmds
20938
20939# Commands used to build a loadable module (assumed same as above if empty)
20940module_cmds=$lt_module_cmds_CXX
20941module_expsym_cmds=$lt_module_expsym_cmds_CXX
20942
20943# Commands to strip libraries.
20944old_striplib=$lt_old_striplib
20945striplib=$lt_striplib
20946
20947# Dependencies to place before the objects being linked to create a
20948# shared library.
20949predep_objects=$lt_predep_objects_CXX
20950
20951# Dependencies to place after the objects being linked to create a
20952# shared library.
20953postdep_objects=$lt_postdep_objects_CXX
20954
20955# Dependencies to place before the objects being linked to create a
20956# shared library.
20957predeps=$lt_predeps_CXX
20958
20959# Dependencies to place after the objects being linked to create a
20960# shared library.
20961postdeps=$lt_postdeps_CXX
20962
20963# The library search path used internally by the compiler when linking
20964# a shared library.
20965compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20966
20967# Method to check whether dependent libraries are shared objects.
20968deplibs_check_method=$lt_deplibs_check_method
20969
20970# Command to use when deplibs_check_method == file_magic.
20971file_magic_cmd=$lt_file_magic_cmd
20972
20973# Flag that allows shared libraries with undefined symbols to be built.
20974allow_undefined_flag=$lt_allow_undefined_flag_CXX
20975
20976# Flag that forces no undefined symbols.
20977no_undefined_flag=$lt_no_undefined_flag_CXX
20978
20979# Commands used to finish a libtool library installation in a directory.
20980finish_cmds=$lt_finish_cmds
20981
20982# Same as above, but a single script fragment to be evaled but not shown.
20983finish_eval=$lt_finish_eval
20984
20985# Take the output of nm and produce a listing of raw symbols and C names.
20986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20987
20988# Transform the output of nm in a proper C declaration
20989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20990
20991# Transform the output of nm in a C name address pair
20992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20993
20994# This is the shared library runtime path variable.
20995runpath_var=$runpath_var
20996
20997# This is the shared library path variable.
20998shlibpath_var=$shlibpath_var
20999
21000# Is shlibpath searched before the hard-coded library search path?
21001shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21002
21003# How to hardcode a shared library path into an executable.
21004hardcode_action=$hardcode_action_CXX
21005
21006# Whether we should hardcode library paths into libraries.
21007hardcode_into_libs=$hardcode_into_libs
21008
21009# Flag to hardcode \$libdir into a binary during linking.
21010# This must work even if \$libdir does not exist.
21011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21012
21013# If ld is used when linking, flag to hardcode \$libdir into
21014# a binary during linking. This must work even if \$libdir does
21015# not exist.
21016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21017
21018# Whether we need a single -rpath flag with a separated argument.
21019hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21020
21021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21022# resulting binary.
21023hardcode_direct=$hardcode_direct_CXX
21024
21025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21026# resulting binary.
21027hardcode_minus_L=$hardcode_minus_L_CXX
21028
21029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21030# the resulting binary.
21031hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21032
21033# Set to yes if building a shared library automatically hardcodes DIR into the library
21034# and all subsequent libraries and executables linked against it.
21035hardcode_automatic=$hardcode_automatic_CXX
21036
21037# Variables whose values should be saved in libtool wrapper scripts and
21038# restored at relink time.
21039variables_saved_for_relink="$variables_saved_for_relink"
21040
21041# Whether libtool must link a program against all its dependency libraries.
21042link_all_deplibs=$link_all_deplibs_CXX
21043
21044# Compile-time system search path for libraries
21045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21046
21047# Run-time system search path for libraries
21048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21049
21050# Fix the shell variable \$srcfile for the compiler.
21051fix_srcfile_path="$fix_srcfile_path_CXX"
21052
21053# Set to yes if exported symbols are required.
21054always_export_symbols=$always_export_symbols_CXX
21055
21056# The commands to list exported symbols.
21057export_symbols_cmds=$lt_export_symbols_cmds_CXX
21058
21059# The commands to extract the exported symbol list from a shared archive.
21060extract_expsyms_cmds=$lt_extract_expsyms_cmds
21061
21062# Symbols that should not be listed in the preloaded symbols.
21063exclude_expsyms=$lt_exclude_expsyms_CXX
21064
21065# Symbols that must always be exported.
21066include_expsyms=$lt_include_expsyms_CXX
21067
21068# ### END LIBTOOL TAG CONFIG: $tagname
21069
21070__EOF__
21071
21072
21073else
21074 # If there is no Makefile yet, we rely on a make rule to execute
21075 # `config.status --recheck' to rerun these tests and create the
21076 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21078 if test -f "$ltmain_in"; then
21079 test -f Makefile && make "$ltmain"
21080 fi
John Criswell47fdd832003-07-14 16:52:07 +000021081fi
21082
21083
21084ac_ext=c
21085ac_cpp='$CPP $CPPFLAGS'
21086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090CC=$lt_save_CC
21091LDCXX=$LD
21092LD=$lt_save_LD
21093GCC=$lt_save_GCC
21094with_gnu_ldcxx=$with_gnu_ld
21095with_gnu_ld=$lt_save_with_gnu_ld
21096lt_cv_path_LDCXX=$lt_cv_path_LD
21097lt_cv_path_LD=$lt_save_path_LD
21098lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21099lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21100
21101 else
21102 tagname=""
21103 fi
21104 ;;
21105
21106 F77)
21107 if test -n "$F77" && test "X$F77" != "Xno"; then
21108
21109ac_ext=f
21110ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21111ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21113
21114
21115archive_cmds_need_lc_F77=no
21116allow_undefined_flag_F77=
21117always_export_symbols_F77=no
21118archive_expsym_cmds_F77=
21119export_dynamic_flag_spec_F77=
21120hardcode_direct_F77=no
21121hardcode_libdir_flag_spec_F77=
21122hardcode_libdir_flag_spec_ld_F77=
21123hardcode_libdir_separator_F77=
21124hardcode_minus_L_F77=no
21125hardcode_automatic_F77=no
21126module_cmds_F77=
21127module_expsym_cmds_F77=
21128link_all_deplibs_F77=unknown
21129old_archive_cmds_F77=$old_archive_cmds
21130no_undefined_flag_F77=
21131whole_archive_flag_spec_F77=
21132enable_shared_with_static_runtimes_F77=no
21133
21134# Source file extension for f77 test sources.
21135ac_ext=f
21136
21137# Object file extension for compiled f77 test sources.
21138objext=o
21139objext_F77=$objext
21140
21141# Code to be used in simple compile tests
21142lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21143
21144# Code to be used in simple link tests
21145lt_simple_link_test_code=" program t\n end\n"
21146
21147# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21148
21149# If no C compiler was specified, use CC.
21150LTCC=${LTCC-"$CC"}
21151
Reid Spencera773bd52006-08-04 18:18:08 +000021152# If no C compiler flags were specified, use CFLAGS.
21153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21154
John Criswell47fdd832003-07-14 16:52:07 +000021155# Allow CC to be a program name with arguments.
21156compiler=$CC
21157
21158
Reid Spencera773bd52006-08-04 18:18:08 +000021159# save warnings/boilerplate of simple test code
21160ac_outfile=conftest.$ac_objext
21161printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21162eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163_lt_compiler_boilerplate=`cat conftest.err`
21164$rm conftest*
21165
21166ac_outfile=conftest.$ac_objext
21167printf "$lt_simple_link_test_code" >conftest.$ac_ext
21168eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21169_lt_linker_boilerplate=`cat conftest.err`
21170$rm conftest*
21171
21172
John Criswell47fdd832003-07-14 16:52:07 +000021173# Allow CC to be a program name with arguments.
21174lt_save_CC="$CC"
21175CC=${F77-"f77"}
21176compiler=$CC
21177compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021178for cc_temp in $compiler""; do
21179 case $cc_temp in
21180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21182 \-*) ;;
21183 *) break;;
21184 esac
21185done
21186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021187
John Criswell47fdd832003-07-14 16:52:07 +000021188
Reid Spencera773bd52006-08-04 18:18:08 +000021189{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21190echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21191{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21192echo "${ECHO_T}$can_build_shared" >&6; }
21193
21194{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21195echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021196test "$can_build_shared" = "no" && enable_shared=no
21197
21198# On AIX, shared libraries and static libraries use the same namespace, and
21199# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021200case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021201aix3*)
21202 test "$enable_shared" = yes && enable_static=no
21203 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021204 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021205 postinstall_cmds='$RANLIB $lib'
21206 fi
21207 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021208aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021209 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21210 test "$enable_shared" = yes && enable_static=no
21211 fi
John Criswell47fdd832003-07-14 16:52:07 +000021212 ;;
21213esac
Reid Spencera773bd52006-08-04 18:18:08 +000021214{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21215echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021216
Reid Spencera773bd52006-08-04 18:18:08 +000021217{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21218echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021219# Make sure either enable_shared or enable_static is yes.
21220test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021221{ echo "$as_me:$LINENO: result: $enable_static" >&5
21222echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021223
21224GCC_F77="$G77"
21225LD_F77="$LD"
21226
21227lt_prog_compiler_wl_F77=
21228lt_prog_compiler_pic_F77=
21229lt_prog_compiler_static_F77=
21230
Reid Spencera773bd52006-08-04 18:18:08 +000021231{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21232echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021233
21234 if test "$GCC" = yes; then
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_static_F77='-static'
21237
21238 case $host_os in
21239 aix*)
21240 # All AIX code is PIC.
21241 if test "$host_cpu" = ia64; then
21242 # AIX 5 now supports IA64 processor
21243 lt_prog_compiler_static_F77='-Bstatic'
21244 fi
21245 ;;
21246
21247 amigaos*)
21248 # FIXME: we need at least 68020 code to build shared libraries, but
21249 # adding the `-m68020' flag to GCC prevents building anything better,
21250 # like `-m68040'.
21251 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21252 ;;
21253
21254 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21255 # PIC is the default for these OSes.
21256 ;;
21257
21258 mingw* | pw32* | os2*)
21259 # This hack is so that the source file can tell whether it is being
21260 # built for inclusion in a dll (and should export symbols for example).
21261 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21262 ;;
21263
21264 darwin* | rhapsody*)
21265 # PIC is the default on this platform
21266 # Common symbols not allowed in MH_DYLIB files
21267 lt_prog_compiler_pic_F77='-fno-common'
21268 ;;
21269
Reid Spencera773bd52006-08-04 18:18:08 +000021270 interix3*)
21271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21272 # Instead, we relocate shared libraries at runtime.
21273 ;;
21274
John Criswell47fdd832003-07-14 16:52:07 +000021275 msdosdjgpp*)
21276 # Just because we use GCC doesn't mean we suddenly get shared libraries
21277 # on systems that don't support them.
21278 lt_prog_compiler_can_build_shared_F77=no
21279 enable_shared=no
21280 ;;
21281
21282 sysv4*MP*)
21283 if test -d /usr/nec; then
21284 lt_prog_compiler_pic_F77=-Kconform_pic
21285 fi
21286 ;;
21287
21288 hpux*)
21289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21290 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021291 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021292 hppa*64*|ia64*)
21293 # +Z the default
21294 ;;
21295 *)
21296 lt_prog_compiler_pic_F77='-fPIC'
21297 ;;
21298 esac
21299 ;;
21300
21301 *)
21302 lt_prog_compiler_pic_F77='-fPIC'
21303 ;;
21304 esac
21305 else
21306 # PORTME Check for flag to pass linker flags through the system compiler.
21307 case $host_os in
21308 aix*)
21309 lt_prog_compiler_wl_F77='-Wl,'
21310 if test "$host_cpu" = ia64; then
21311 # AIX 5 now supports IA64 processor
21312 lt_prog_compiler_static_F77='-Bstatic'
21313 else
21314 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21315 fi
21316 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021317 darwin*)
21318 # PIC is the default on this platform
21319 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021320 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021321 xlc*)
21322 lt_prog_compiler_pic_F77='-qnocommon'
21323 lt_prog_compiler_wl_F77='-Wl,'
21324 ;;
21325 esac
21326 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021327
21328 mingw* | pw32* | os2*)
21329 # This hack is so that the source file can tell whether it is being
21330 # built for inclusion in a dll (and should export symbols for example).
21331 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21332 ;;
21333
21334 hpux9* | hpux10* | hpux11*)
21335 lt_prog_compiler_wl_F77='-Wl,'
21336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21337 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021338 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021339 hppa*64*|ia64*)
21340 # +Z the default
21341 ;;
21342 *)
21343 lt_prog_compiler_pic_F77='+Z'
21344 ;;
21345 esac
21346 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21347 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21348 ;;
21349
21350 irix5* | irix6* | nonstopux*)
21351 lt_prog_compiler_wl_F77='-Wl,'
21352 # PIC (with -KPIC) is the default.
21353 lt_prog_compiler_static_F77='-non_shared'
21354 ;;
21355
21356 newsos6)
21357 lt_prog_compiler_pic_F77='-KPIC'
21358 lt_prog_compiler_static_F77='-Bstatic'
21359 ;;
21360
21361 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021362 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021363 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_pic_F77='-KPIC'
21366 lt_prog_compiler_static_F77='-static'
21367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021368 pgcc* | pgf77* | pgf90* | pgf95*)
21369 # Portland Group compilers (*not* the Pentium gcc compiler,
21370 # which looks to be a dead project)
21371 lt_prog_compiler_wl_F77='-Wl,'
21372 lt_prog_compiler_pic_F77='-fpic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21374 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021375 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021376 lt_prog_compiler_wl_F77='-Wl,'
21377 # All Alpha code is PIC.
21378 lt_prog_compiler_static_F77='-non_shared'
21379 ;;
21380 esac
21381 ;;
21382
21383 osf3* | osf4* | osf5*)
21384 lt_prog_compiler_wl_F77='-Wl,'
21385 # All OSF/1 code is PIC.
21386 lt_prog_compiler_static_F77='-non_shared'
21387 ;;
21388
John Criswell47fdd832003-07-14 16:52:07 +000021389 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021390 lt_prog_compiler_pic_F77='-KPIC'
21391 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021392 case $cc_basename in
21393 f77* | f90* | f95*)
21394 lt_prog_compiler_wl_F77='-Qoption ld ';;
21395 *)
21396 lt_prog_compiler_wl_F77='-Wl,';;
21397 esac
John Criswell47fdd832003-07-14 16:52:07 +000021398 ;;
21399
21400 sunos4*)
21401 lt_prog_compiler_wl_F77='-Qoption ld '
21402 lt_prog_compiler_pic_F77='-PIC'
21403 lt_prog_compiler_static_F77='-Bstatic'
21404 ;;
21405
Reid Spencera773bd52006-08-04 18:18:08 +000021406 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021407 lt_prog_compiler_wl_F77='-Wl,'
21408 lt_prog_compiler_pic_F77='-KPIC'
21409 lt_prog_compiler_static_F77='-Bstatic'
21410 ;;
21411
21412 sysv4*MP*)
21413 if test -d /usr/nec ;then
21414 lt_prog_compiler_pic_F77='-Kconform_pic'
21415 lt_prog_compiler_static_F77='-Bstatic'
21416 fi
21417 ;;
21418
Reid Spencera773bd52006-08-04 18:18:08 +000021419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21420 lt_prog_compiler_wl_F77='-Wl,'
21421 lt_prog_compiler_pic_F77='-KPIC'
21422 lt_prog_compiler_static_F77='-Bstatic'
21423 ;;
21424
21425 unicos*)
21426 lt_prog_compiler_wl_F77='-Wl,'
21427 lt_prog_compiler_can_build_shared_F77=no
21428 ;;
21429
John Criswell47fdd832003-07-14 16:52:07 +000021430 uts4*)
21431 lt_prog_compiler_pic_F77='-pic'
21432 lt_prog_compiler_static_F77='-Bstatic'
21433 ;;
21434
21435 *)
21436 lt_prog_compiler_can_build_shared_F77=no
21437 ;;
21438 esac
21439 fi
21440
Reid Spencera773bd52006-08-04 18:18:08 +000021441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21442echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021443
21444#
21445# Check to make sure the PIC flag actually works.
21446#
21447if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021448
Reid Spencera773bd52006-08-04 18:18:08 +000021449{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21450echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021451if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453else
21454 lt_prog_compiler_pic_works_F77=no
21455 ac_outfile=conftest.$ac_objext
21456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21457 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21458 # Insert the option either (1) after the last *FLAGS variable, or
21459 # (2) before a word containing "conftest.", or (3) at the end.
21460 # Note that $ac_compile itself does not contain backslashes and begins
21461 # with a dollar sign (not a hyphen), so the echo should work correctly.
21462 # The option is referenced via a variable to avoid confusing sed.
21463 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21466 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000021467 (eval echo "\"\$as_me:21462: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021468 (eval "$lt_compile" 2>conftest.err)
21469 ac_status=$?
21470 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000021471 echo "$as_me:21466: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021472 if (exit $ac_status) && test -s "$ac_outfile"; then
21473 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021474 # So say no if there are warnings other than the usual output.
21475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021478 lt_prog_compiler_pic_works_F77=yes
21479 fi
21480 fi
21481 $rm conftest*
21482
21483fi
Reid Spencera773bd52006-08-04 18:18:08 +000021484{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21485echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021486
21487if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21488 case $lt_prog_compiler_pic_F77 in
21489 "" | " "*) ;;
21490 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21491 esac
21492else
21493 lt_prog_compiler_pic_F77=
21494 lt_prog_compiler_can_build_shared_F77=no
21495fi
21496
21497fi
Reid Spencera773bd52006-08-04 18:18:08 +000021498case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021499 # For platforms which do not support PIC, -DPIC is meaningless:
21500 *djgpp*)
21501 lt_prog_compiler_pic_F77=
21502 ;;
21503 *)
21504 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21505 ;;
21506esac
21507
Reid Spencera773bd52006-08-04 18:18:08 +000021508#
21509# Check to make sure the static flag actually works.
21510#
21511wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21512{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21513echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21514if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 lt_prog_compiler_static_works_F77=no
21518 save_LDFLAGS="$LDFLAGS"
21519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21520 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21522 # The linker can only warn and ignore the option if not recognized
21523 # So say no if there are warnings
21524 if test -s conftest.err; then
21525 # Append any errors to the config.log.
21526 cat conftest.err 1>&5
21527 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21529 if diff conftest.exp conftest.er2 >/dev/null; then
21530 lt_prog_compiler_static_works_F77=yes
21531 fi
21532 else
21533 lt_prog_compiler_static_works_F77=yes
21534 fi
21535 fi
21536 $rm conftest*
21537 LDFLAGS="$save_LDFLAGS"
21538
21539fi
21540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21541echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21542
21543if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21544 :
21545else
21546 lt_prog_compiler_static_F77=
21547fi
21548
21549
21550{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21551echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021552if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 lt_cv_prog_compiler_c_o_F77=no
21556 $rm -r conftest 2>/dev/null
21557 mkdir conftest
21558 cd conftest
21559 mkdir out
21560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21561
John Criswell47fdd832003-07-14 16:52:07 +000021562 lt_compiler_flag="-o out/conftest2.$ac_objext"
21563 # Insert the option either (1) after the last *FLAGS variable, or
21564 # (2) before a word containing "conftest.", or (3) at the end.
21565 # Note that $ac_compile itself does not contain backslashes and begins
21566 # with a dollar sign (not a hyphen), so the echo should work correctly.
21567 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21570 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000021571 (eval echo "\"\$as_me:21566: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021572 (eval "$lt_compile" 2>out/conftest.err)
21573 ac_status=$?
21574 cat out/conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000021575 echo "$as_me:21570: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21577 then
21578 # The compiler can only warn and ignore the option if not recognized
21579 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021580 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021583 lt_cv_prog_compiler_c_o_F77=yes
21584 fi
21585 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021586 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021587 $rm conftest*
21588 # SGI C++ compiler will create directory out/ii_files/ for
21589 # template instantiation
21590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21591 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021592 cd ..
21593 rmdir conftest
21594 $rm conftest*
21595
21596fi
Reid Spencera773bd52006-08-04 18:18:08 +000021597{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21598echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021599
21600
21601hard_links="nottested"
21602if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21603 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021604 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21605echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021606 hard_links=yes
21607 $rm conftest*
21608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21609 touch conftest.a
21610 ln conftest.a conftest.b 2>&5 || hard_links=no
21611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021612 { echo "$as_me:$LINENO: result: $hard_links" >&5
21613echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021614 if test "$hard_links" = no; then
21615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21616echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21617 need_locks=warn
21618 fi
21619else
21620 need_locks=no
21621fi
21622
Reid Spencera773bd52006-08-04 18:18:08 +000021623{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21624echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021625
21626 runpath_var=
21627 allow_undefined_flag_F77=
21628 enable_shared_with_static_runtimes_F77=no
21629 archive_cmds_F77=
21630 archive_expsym_cmds_F77=
21631 old_archive_From_new_cmds_F77=
21632 old_archive_from_expsyms_cmds_F77=
21633 export_dynamic_flag_spec_F77=
21634 whole_archive_flag_spec_F77=
21635 thread_safe_flag_spec_F77=
21636 hardcode_libdir_flag_spec_F77=
21637 hardcode_libdir_flag_spec_ld_F77=
21638 hardcode_libdir_separator_F77=
21639 hardcode_direct_F77=no
21640 hardcode_minus_L_F77=no
21641 hardcode_shlibpath_var_F77=unsupported
21642 link_all_deplibs_F77=unknown
21643 hardcode_automatic_F77=no
21644 module_cmds_F77=
21645 module_expsym_cmds_F77=
21646 always_export_symbols_F77=no
21647 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21648 # include_expsyms should be a list of space-separated symbols to be *always*
21649 # included in the symbol list
21650 include_expsyms_F77=
21651 # exclude_expsyms can be an extended regexp of symbols to exclude
21652 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21653 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21654 # as well as any symbol that contains `d'.
21655 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21657 # platforms (ab)use it in PIC code, but their linkers get confused if
21658 # the symbol is explicitly referenced. Since portable code cannot
21659 # rely on this symbol name, it's probably fine to never include it in
21660 # preloaded symbol tables.
21661 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021662 # Just being paranoid about ensuring that cc_basename is set.
21663 for cc_temp in $compiler""; do
21664 case $cc_temp in
21665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21667 \-*) ;;
21668 *) break;;
21669 esac
21670done
21671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021672
21673 case $host_os in
21674 cygwin* | mingw* | pw32*)
21675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21676 # When not using gcc, we currently assume that we are using
21677 # Microsoft Visual C++.
21678 if test "$GCC" != yes; then
21679 with_gnu_ld=no
21680 fi
21681 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021682 interix*)
21683 # we just hope/assume this is gcc and not c89 (= MSVC++)
21684 with_gnu_ld=yes
21685 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021686 openbsd*)
21687 with_gnu_ld=no
21688 ;;
21689 esac
21690
21691 ld_shlibs_F77=yes
21692 if test "$with_gnu_ld" = yes; then
21693 # If archive_cmds runs LD, not CC, wlarc should be empty
21694 wlarc='${wl}'
21695
Reid Spencera773bd52006-08-04 18:18:08 +000021696 # Set some defaults for GNU ld with shared library support. These
21697 # are reset later if shared libraries are not supported. Putting them
21698 # here allows them to be overridden if necessary.
21699 runpath_var=LD_RUN_PATH
21700 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21701 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21702 # ancient GNU ld didn't support --whole-archive et. al.
21703 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21704 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21705 else
21706 whole_archive_flag_spec_F77=
21707 fi
21708 supports_anon_versioning=no
21709 case `$LD -v 2>/dev/null` in
21710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21713 *\ 2.11.*) ;; # other 2.11 versions
21714 *) supports_anon_versioning=yes ;;
21715 esac
21716
John Criswell47fdd832003-07-14 16:52:07 +000021717 # See if GNU ld supports shared libraries.
21718 case $host_os in
21719 aix3* | aix4* | aix5*)
21720 # On AIX/PPC, the GNU linker is very broken
21721 if test "$host_cpu" != ia64; then
21722 ld_shlibs_F77=no
21723 cat <<EOF 1>&2
21724
21725*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21726*** to be unable to reliably create shared libraries on AIX.
21727*** Therefore, libtool is disabling shared libraries support. If you
21728*** really care for shared libraries, you may want to modify your PATH
21729*** so that a non-GNU linker is found, and then restart.
21730
21731EOF
21732 fi
21733 ;;
21734
21735 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021736 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 +000021737 hardcode_libdir_flag_spec_F77='-L$libdir'
21738 hardcode_minus_L_F77=yes
21739
21740 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21741 # that the semantics of dynamic libraries on AmigaOS, at least up
21742 # to version 4, is to share data among multiple programs linked
21743 # with the same dynamic library. Since this doesn't match the
21744 # behavior of shared libraries on other platforms, we can't use
21745 # them.
21746 ld_shlibs_F77=no
21747 ;;
21748
21749 beos*)
21750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21751 allow_undefined_flag_F77=unsupported
21752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21753 # support --undefined. This deserves some investigation. FIXME
21754 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755 else
21756 ld_shlibs_F77=no
21757 fi
21758 ;;
21759
21760 cygwin* | mingw* | pw32*)
21761 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21762 # as there is no search path for DLLs.
21763 hardcode_libdir_flag_spec_F77='-L$libdir'
21764 allow_undefined_flag_F77=unsupported
21765 always_export_symbols_F77=no
21766 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021767 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 +000021768
21769 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021770 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 +000021771 # If the export-symbols file already is a .def file (1st line
21772 # is EXPORTS), use it as is; otherwise, prepend...
21773 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21774 cp $export_symbols $output_objdir/$soname.def;
21775 else
21776 echo EXPORTS > $output_objdir/$soname.def;
21777 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021778 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021779 $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 +000021780 else
Reid Spencera773bd52006-08-04 18:18:08 +000021781 ld_shlibs_F77=no
21782 fi
21783 ;;
21784
21785 interix3*)
21786 hardcode_direct_F77=no
21787 hardcode_shlibpath_var_F77=no
21788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21789 export_dynamic_flag_spec_F77='${wl}-E'
21790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21791 # Instead, shared libraries are loaded at an image base (0x10000000 by
21792 # default) and relocated if they conflict, which is a slow very memory
21793 # consuming and fragmenting process. To avoid this, we pick a random,
21794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21796 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'
21797 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'
21798 ;;
21799
21800 linux*)
21801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21802 tmp_addflag=
21803 case $cc_basename,$host_cpu in
21804 pgcc*) # Portland Group C compiler
21805 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'
21806 tmp_addflag=' $pic_flag'
21807 ;;
21808 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21809 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'
21810 tmp_addflag=' $pic_flag -Mnomain' ;;
21811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21812 tmp_addflag=' -i_dynamic' ;;
21813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21814 tmp_addflag=' -i_dynamic -nofor_main' ;;
21815 ifc* | ifort*) # Intel Fortran compiler
21816 tmp_addflag=' -nofor_main' ;;
21817 esac
21818 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21819
21820 if test $supports_anon_versioning = yes; then
21821 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21823 $echo "local: *; };" >> $output_objdir/$libname.ver~
21824 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21825 fi
21826 else
21827 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021828 fi
21829 ;;
21830
21831 netbsd*)
21832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21833 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21834 wlarc=
21835 else
21836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838 fi
21839 ;;
21840
Reid Spencera773bd52006-08-04 18:18:08 +000021841 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21843 ld_shlibs_F77=no
21844 cat <<EOF 1>&2
21845
21846*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21847*** create shared libraries on Solaris systems. Therefore, libtool
21848*** is disabling shared libraries support. We urge you to upgrade GNU
21849*** binutils to release 2.9.1 or newer. Another option is to modify
21850*** your PATH or compiler configuration so that the native linker is
21851*** used, and then restart.
21852
21853EOF
21854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21857 else
21858 ld_shlibs_F77=no
21859 fi
21860 ;;
21861
Reid Spencera773bd52006-08-04 18:18:08 +000021862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21863 case `$LD -v 2>&1` in
21864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21865 ld_shlibs_F77=no
21866 cat <<_LT_EOF 1>&2
21867
21868*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21869*** reliably create shared libraries on SCO systems. Therefore, libtool
21870*** is disabling shared libraries support. We urge you to upgrade GNU
21871*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21872*** your PATH or compiler configuration so that the native linker is
21873*** used, and then restart.
21874
21875_LT_EOF
21876 ;;
21877 *)
21878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21879 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21882 else
21883 ld_shlibs_F77=no
21884 fi
21885 ;;
21886 esac
21887 ;;
21888
John Criswell47fdd832003-07-14 16:52:07 +000021889 sunos4*)
21890 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21891 wlarc=
21892 hardcode_direct_F77=yes
21893 hardcode_shlibpath_var_F77=no
21894 ;;
21895
21896 *)
21897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21899 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21900 else
21901 ld_shlibs_F77=no
21902 fi
21903 ;;
21904 esac
21905
Reid Spencera773bd52006-08-04 18:18:08 +000021906 if test "$ld_shlibs_F77" = no; then
21907 runpath_var=
21908 hardcode_libdir_flag_spec_F77=
21909 export_dynamic_flag_spec_F77=
21910 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021911 fi
21912 else
21913 # PORTME fill in a description of your system's linker (not GNU ld)
21914 case $host_os in
21915 aix3*)
21916 allow_undefined_flag_F77=unsupported
21917 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021918 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 +000021919 # Note: this linker hardcodes the directories in LIBPATH if there
21920 # are no directories specified by -L.
21921 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021923 # Neither direct hardcoding nor static linking is supported with a
21924 # broken collect2.
21925 hardcode_direct_F77=unsupported
21926 fi
21927 ;;
21928
21929 aix4* | aix5*)
21930 if test "$host_cpu" = ia64; then
21931 # On IA64, the linker does run time linking by default, so we don't
21932 # have to do anything special.
21933 aix_use_runtimelinking=no
21934 exp_sym_flag='-Bexport'
21935 no_entry_flag=""
21936 else
21937 # If we're using GNU nm, then we don't want the "-C" option.
21938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21940 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'
21941 else
21942 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'
21943 fi
21944 aix_use_runtimelinking=no
21945
21946 # Test if we are trying to use run time linking or normal
21947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21948 # need to do runtime linking.
21949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21950 for ld_flag in $LDFLAGS; do
21951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21952 aix_use_runtimelinking=yes
21953 break
21954 fi
21955 done
Reid Spencera773bd52006-08-04 18:18:08 +000021956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021957 esac
21958
21959 exp_sym_flag='-bexport'
21960 no_entry_flag='-bnoentry'
21961 fi
21962
21963 # When large executables or shared objects are built, AIX ld can
21964 # have problems creating the table of contents. If linking a library
21965 # or program results in "error TOC overflow" add -mminimal-toc to
21966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21968
21969 archive_cmds_F77=''
21970 hardcode_direct_F77=yes
21971 hardcode_libdir_separator_F77=':'
21972 link_all_deplibs_F77=yes
21973
21974 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021975 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021976 # We only want to do this on AIX 4.2 and lower, the check
21977 # below for broken collect2 doesn't work under 4.3+
21978 collect2name=`${CC} -print-prog-name=collect2`
21979 if test -f "$collect2name" && \
21980 strings "$collect2name" | grep resolve_lib_name >/dev/null
21981 then
21982 # We have reworked collect2
21983 hardcode_direct_F77=yes
21984 else
21985 # We have old collect2
21986 hardcode_direct_F77=unsupported
21987 # It fails to find uninstalled libraries when the uninstalled
21988 # path is not listed in the libpath. Setting hardcode_minus_L
21989 # to unsupported forces relinking
21990 hardcode_minus_L_F77=yes
21991 hardcode_libdir_flag_spec_F77='-L$libdir'
21992 hardcode_libdir_separator_F77=
21993 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021994 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021995 esac
21996 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021997 if test "$aix_use_runtimelinking" = yes; then
21998 shared_flag="$shared_flag "'${wl}-G'
21999 fi
John Criswell47fdd832003-07-14 16:52:07 +000022000 else
22001 # not using gcc
22002 if test "$host_cpu" = ia64; then
22003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22004 # chokes on -Wl,-G. The following line is correct:
22005 shared_flag='-G'
22006 else
Reid Spencera773bd52006-08-04 18:18:08 +000022007 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022008 shared_flag='${wl}-G'
22009 else
22010 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022011 fi
John Criswell47fdd832003-07-14 16:52:07 +000022012 fi
22013 fi
22014
22015 # It seems that -bexpall does not export symbols beginning with
22016 # underscore (_), so it is better to generate a list of symbols to export.
22017 always_export_symbols_F77=yes
22018 if test "$aix_use_runtimelinking" = yes; then
22019 # Warning - without using the other runtime loading flags (-brtl),
22020 # -berok will link without error, but may produce a broken library.
22021 allow_undefined_flag_F77='-berok'
22022 # Determine the default libpath from the value encoded in an empty executable.
22023 cat >conftest.$ac_ext <<_ACEOF
22024 program main
22025
22026 end
22027_ACEOF
22028rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022029if { (ac_try="$ac_link"
22030case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033esac
22034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22043 { (case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046esac
22047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_try") 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056esac
22057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022062
22063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22064}'`
22065# Check for a 64-bit object if we didn't find anything.
22066if 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; }
22067}'`; fi
22068else
22069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022070sed 's/^/| /' conftest.$ac_ext >&5
22071
Reid Spencera773bd52006-08-04 18:18:08 +000022072
John Criswell47fdd832003-07-14 16:52:07 +000022073fi
Reid Spencera773bd52006-08-04 18:18:08 +000022074
Tanya Lattnercf067672008-01-17 05:57:22 +000022075rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022076 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22078
22079 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022080 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 +000022081 else
22082 if test "$host_cpu" = ia64; then
22083 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22084 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022085 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 +000022086 else
22087 # Determine the default libpath from the value encoded in an empty executable.
22088 cat >conftest.$ac_ext <<_ACEOF
22089 program main
22090
22091 end
22092_ACEOF
22093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022094if { (ac_try="$ac_link"
22095case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098esac
22099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022106 (exit $ac_status); } &&
22107 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22108 { (case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111esac
22112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_try") 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121esac
22122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022127
22128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22129}'`
22130# Check for a 64-bit object if we didn't find anything.
22131if 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; }
22132}'`; fi
22133else
22134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022135sed 's/^/| /' conftest.$ac_ext >&5
22136
Reid Spencera773bd52006-08-04 18:18:08 +000022137
John Criswell47fdd832003-07-14 16:52:07 +000022138fi
Reid Spencera773bd52006-08-04 18:18:08 +000022139
Tanya Lattnercf067672008-01-17 05:57:22 +000022140rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022141 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022142if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22143
22144 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22145 # Warning - without using the other run time loading flags,
22146 # -berok will link without error, but may produce a broken library.
22147 no_undefined_flag_F77=' ${wl}-bernotok'
22148 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022149 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022150 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022151 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022152 # This is similar to how AIX traditionally builds its shared libraries.
22153 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 +000022154 fi
22155 fi
22156 ;;
22157
22158 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022159 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 +000022160 hardcode_libdir_flag_spec_F77='-L$libdir'
22161 hardcode_minus_L_F77=yes
22162 # see comment about different semantics on the GNU ld section
22163 ld_shlibs_F77=no
22164 ;;
22165
Reid Spencer2706f8c2004-09-19 23:53:36 +000022166 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022167 export_dynamic_flag_spec_F77=-rdynamic
22168 ;;
22169
22170 cygwin* | mingw* | pw32*)
22171 # When not using gcc, we currently assume that we are using
22172 # Microsoft Visual C++.
22173 # hardcode_libdir_flag_spec is actually meaningless, as there is
22174 # no search path for DLLs.
22175 hardcode_libdir_flag_spec_F77=' '
22176 allow_undefined_flag_F77=unsupported
22177 # Tell ltmain to make .lib files, not .a files.
22178 libext=lib
22179 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022180 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022181 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022182 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 +000022183 # The linker will automatically build a .lib file if we build a DLL.
22184 old_archive_From_new_cmds_F77='true'
22185 # FIXME: Should let the user specify the lib program.
22186 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022187 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022188 enable_shared_with_static_runtimes_F77=yes
22189 ;;
22190
22191 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022192 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022193 rhapsody* | darwin1.[012])
22194 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22195 ;;
22196 *) # Darwin 1.3 on
22197 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22198 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22199 else
22200 case ${MACOSX_DEPLOYMENT_TARGET} in
22201 10.[012])
22202 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22203 ;;
22204 10.*)
22205 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22206 ;;
22207 esac
22208 fi
22209 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022210 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022212 hardcode_direct_F77=no
22213 hardcode_automatic_F77=yes
22214 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022215 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022216 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022217 if test "$GCC" = yes ; then
22218 output_verbose_link_cmd='echo'
22219 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22220 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022221 # 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 +000022222 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}'
22223 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 +000022224 else
Reid Spencera773bd52006-08-04 18:18:08 +000022225 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022226 xlc*)
22227 output_verbose_link_cmd='echo'
22228 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22229 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022230 # 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 +000022231 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}'
22232 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 +000022233 ;;
22234 *)
22235 ld_shlibs_F77=no
22236 ;;
22237 esac
John Criswell47fdd832003-07-14 16:52:07 +000022238 fi
22239 ;;
22240
22241 dgux*)
22242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_libdir_flag_spec_F77='-L$libdir'
22244 hardcode_shlibpath_var_F77=no
22245 ;;
22246
22247 freebsd1*)
22248 ld_shlibs_F77=no
22249 ;;
22250
22251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22252 # support. Future versions do this automatically, but an explicit c++rt0.o
22253 # does not break anything, and helps significantly (at the cost of a little
22254 # extra space).
22255 freebsd2.2*)
22256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22257 hardcode_libdir_flag_spec_F77='-R$libdir'
22258 hardcode_direct_F77=yes
22259 hardcode_shlibpath_var_F77=no
22260 ;;
22261
22262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22263 freebsd2*)
22264 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 hardcode_direct_F77=yes
22266 hardcode_minus_L_F77=yes
22267 hardcode_shlibpath_var_F77=no
22268 ;;
22269
22270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022271 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022272 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22273 hardcode_libdir_flag_spec_F77='-R$libdir'
22274 hardcode_direct_F77=yes
22275 hardcode_shlibpath_var_F77=no
22276 ;;
22277
22278 hpux9*)
22279 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022280 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 +000022281 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022282 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 +000022283 fi
22284 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22285 hardcode_libdir_separator_F77=:
22286 hardcode_direct_F77=yes
22287
22288 # hardcode_minus_L: Not really in the search PATH,
22289 # but as the default location of the library.
22290 hardcode_minus_L_F77=yes
22291 export_dynamic_flag_spec_F77='${wl}-E'
22292 ;;
22293
Reid Spencera773bd52006-08-04 18:18:08 +000022294 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22297 else
22298 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22299 fi
22300 if test "$with_gnu_ld" = no; then
22301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22302 hardcode_libdir_separator_F77=:
22303
22304 hardcode_direct_F77=yes
22305 export_dynamic_flag_spec_F77='${wl}-E'
22306
22307 # hardcode_minus_L: Not really in the search PATH,
22308 # but as the default location of the library.
22309 hardcode_minus_L_F77=yes
22310 fi
22311 ;;
22312
22313 hpux11*)
22314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22315 case $host_cpu in
22316 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022317 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022319 ia64*)
22320 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22321 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022322 *)
22323 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22324 ;;
22325 esac
22326 else
Reid Spencera773bd52006-08-04 18:18:08 +000022327 case $host_cpu in
22328 hppa*64*)
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22330 ;;
22331 ia64*)
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022333 ;;
22334 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022335 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 +000022336 ;;
22337 esac
22338 fi
22339 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022340 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22341 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022342
Reid Spencera773bd52006-08-04 18:18:08 +000022343 case $host_cpu in
22344 hppa*64*|ia64*)
22345 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22346 hardcode_direct_F77=no
22347 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022348 ;;
22349 *)
John Criswell47fdd832003-07-14 16:52:07 +000022350 hardcode_direct_F77=yes
22351 export_dynamic_flag_spec_F77='${wl}-E'
22352
22353 # hardcode_minus_L: Not really in the search PATH,
22354 # but as the default location of the library.
22355 hardcode_minus_L_F77=yes
22356 ;;
22357 esac
22358 fi
22359 ;;
22360
22361 irix5* | irix6* | nonstopux*)
22362 if test "$GCC" = yes; then
22363 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'
22364 else
22365 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'
22366 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22367 fi
22368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369 hardcode_libdir_separator_F77=:
22370 link_all_deplibs_F77=yes
22371 ;;
22372
22373 netbsd*)
22374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22376 else
22377 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22378 fi
22379 hardcode_libdir_flag_spec_F77='-R$libdir'
22380 hardcode_direct_F77=yes
22381 hardcode_shlibpath_var_F77=no
22382 ;;
22383
22384 newsos6)
22385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_direct_F77=yes
22387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22388 hardcode_libdir_separator_F77=:
22389 hardcode_shlibpath_var_F77=no
22390 ;;
22391
22392 openbsd*)
22393 hardcode_direct_F77=yes
22394 hardcode_shlibpath_var_F77=no
22395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22396 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022397 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 +000022398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22399 export_dynamic_flag_spec_F77='${wl}-E'
22400 else
22401 case $host_os in
22402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22404 hardcode_libdir_flag_spec_F77='-R$libdir'
22405 ;;
22406 *)
22407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22409 ;;
22410 esac
22411 fi
22412 ;;
22413
22414 os2*)
22415 hardcode_libdir_flag_spec_F77='-L$libdir'
22416 hardcode_minus_L_F77=yes
22417 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022418 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 +000022419 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22420 ;;
22421
22422 osf3*)
22423 if test "$GCC" = yes; then
22424 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22425 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'
22426 else
22427 allow_undefined_flag_F77=' -expect_unresolved \*'
22428 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'
22429 fi
22430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22431 hardcode_libdir_separator_F77=:
22432 ;;
22433
22434 osf4* | osf5*) # as osf3* with the addition of -msym flag
22435 if test "$GCC" = yes; then
22436 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22437 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'
22438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22439 else
22440 allow_undefined_flag_F77=' -expect_unresolved \*'
22441 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 +000022442 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 +000022443 $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 +000022444
John Criswell47fdd832003-07-14 16:52:07 +000022445 # Both c and cxx compiler support -rpath directly
22446 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22447 fi
22448 hardcode_libdir_separator_F77=:
22449 ;;
22450
John Criswell47fdd832003-07-14 16:52:07 +000022451 solaris*)
22452 no_undefined_flag_F77=' -z text'
22453 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022454 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022455 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022456 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457 $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 +000022458 else
Reid Spencera773bd52006-08-04 18:18:08 +000022459 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022460 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462 $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 +000022463 fi
22464 hardcode_libdir_flag_spec_F77='-R$libdir'
22465 hardcode_shlibpath_var_F77=no
22466 case $host_os in
22467 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022468 *)
22469 # The compiler driver will combine linker options so we
22470 # cannot just pass the convience library names through
22471 # without $wl, iff we do not link with $LD.
22472 # Luckily, gcc supports the same syntax we need for Sun Studio.
22473 # Supported since Solaris 2.6 (maybe 2.5.1?)
22474 case $wlarc in
22475 '')
22476 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22477 *)
22478 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' ;;
22479 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022480 esac
22481 link_all_deplibs_F77=yes
22482 ;;
22483
22484 sunos4*)
22485 if test "x$host_vendor" = xsequent; then
22486 # Use $CC to link under sequent, because it throws in some extra .o
22487 # files that make .init and .fini sections work.
22488 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22489 else
22490 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22491 fi
22492 hardcode_libdir_flag_spec_F77='-L$libdir'
22493 hardcode_direct_F77=yes
22494 hardcode_minus_L_F77=yes
22495 hardcode_shlibpath_var_F77=no
22496 ;;
22497
22498 sysv4)
22499 case $host_vendor in
22500 sni)
22501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502 hardcode_direct_F77=yes # is this really true???
22503 ;;
22504 siemens)
22505 ## LD is ld it makes a PLAMLIB
22506 ## CC just makes a GrossModule.
22507 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22508 reload_cmds_F77='$CC -r -o $output$reload_objs'
22509 hardcode_direct_F77=no
22510 ;;
22511 motorola)
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22514 ;;
22515 esac
22516 runpath_var='LD_RUN_PATH'
22517 hardcode_shlibpath_var_F77=no
22518 ;;
22519
22520 sysv4.3*)
22521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22522 hardcode_shlibpath_var_F77=no
22523 export_dynamic_flag_spec_F77='-Bexport'
22524 ;;
22525
22526 sysv4*MP*)
22527 if test -d /usr/nec; then
22528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22529 hardcode_shlibpath_var_F77=no
22530 runpath_var=LD_RUN_PATH
22531 hardcode_runpath_var=yes
22532 ld_shlibs_F77=yes
22533 fi
22534 ;;
22535
Reid Spencera773bd52006-08-04 18:18:08 +000022536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22537 no_undefined_flag_F77='${wl}-z,text'
22538 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022539 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022540 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022541
John Criswell47fdd832003-07-14 16:52:07 +000022542 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022543 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 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 +000022545 else
Reid Spencera773bd52006-08-04 18:18:08 +000022546 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547 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 +000022548 fi
John Criswell47fdd832003-07-14 16:52:07 +000022549 ;;
22550
Reid Spencera773bd52006-08-04 18:18:08 +000022551 sysv5* | sco3.2v5* | sco5v6*)
22552 # Note: We can NOT use -z defs as we might desire, because we do not
22553 # link with -lc, and that would cause any symbols used from libc to
22554 # always be unresolved, which means just about no library would
22555 # ever link correctly. If we're not using GNU ld we use -z text
22556 # though, which does catch some bad symbols but isn't as heavy-handed
22557 # as -z defs.
22558 no_undefined_flag_F77='${wl}-z,text'
22559 allow_undefined_flag_F77='${wl}-z,nodefs'
22560 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022561 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022562 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22563 hardcode_libdir_separator_F77=':'
22564 link_all_deplibs_F77=yes
22565 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022566 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022567
22568 if test "$GCC" = yes; then
22569 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571 else
22572 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22574 fi
John Criswell47fdd832003-07-14 16:52:07 +000022575 ;;
22576
22577 uts4*)
22578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579 hardcode_libdir_flag_spec_F77='-L$libdir'
22580 hardcode_shlibpath_var_F77=no
22581 ;;
22582
22583 *)
22584 ld_shlibs_F77=no
22585 ;;
22586 esac
22587 fi
22588
Reid Spencera773bd52006-08-04 18:18:08 +000022589{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22590echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022591test "$ld_shlibs_F77" = no && can_build_shared=no
22592
John Criswell47fdd832003-07-14 16:52:07 +000022593#
22594# Do we need to explicitly link libc?
22595#
22596case "x$archive_cmds_need_lc_F77" in
22597x|xyes)
22598 # Assume -lc should be added
22599 archive_cmds_need_lc_F77=yes
22600
22601 if test "$enable_shared" = yes && test "$GCC" = yes; then
22602 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022604 # FIXME: we may have to deal with multi-command sequences.
22605 ;;
22606 '$CC '*)
22607 # Test whether the compiler implicitly links with -lc since on some
22608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22609 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022610 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22611echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022612 $rm conftest*
22613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22614
22615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616 (eval $ac_compile) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } 2>conftest.err; then
22620 soname=conftest
22621 lib=conftest
22622 libobjs=conftest.$ac_objext
22623 deplibs=
22624 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022625 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022626 compiler_flags=-v
22627 linker_flags=-v
22628 verstring=
22629 output_objdir=.
22630 libname=conftest
22631 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22632 allow_undefined_flag_F77=
22633 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22634 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }
22638 then
22639 archive_cmds_need_lc_F77=no
22640 else
22641 archive_cmds_need_lc_F77=yes
22642 fi
22643 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22644 else
22645 cat conftest.err 1>&5
22646 fi
22647 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022648 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22649echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022650 ;;
22651 esac
22652 fi
22653 ;;
22654esac
22655
Reid Spencera773bd52006-08-04 18:18:08 +000022656{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22657echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022658library_names_spec=
22659libname_spec='lib$name'
22660soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022661shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022662postinstall_cmds=
22663postuninstall_cmds=
22664finish_cmds=
22665finish_eval=
22666shlibpath_var=
22667shlibpath_overrides_runpath=unknown
22668version_type=none
22669dynamic_linker="$host_os ld.so"
22670sys_lib_dlsearch_path_spec="/lib /usr/lib"
22671if test "$GCC" = yes; then
22672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22673 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22674 # if the path contains ";" then we assume it to be the separator
22675 # otherwise default to the standard path separator (i.e. ":") - it is
22676 # assumed that no part of a normal pathname contains ";" but that should
22677 # okay in the real world where ";" in dirpaths is itself problematic.
22678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22679 else
22680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22681 fi
22682else
22683 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22684fi
22685need_lib_prefix=unknown
22686hardcode_into_libs=no
22687
22688# when you set need_version to no, make sure it does not cause -set_version
22689# flags to be left without arguments
22690need_version=unknown
22691
22692case $host_os in
22693aix3*)
22694 version_type=linux
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22696 shlibpath_var=LIBPATH
22697
22698 # AIX 3 has no versioning support, so we append a major version to the name.
22699 soname_spec='${libname}${release}${shared_ext}$major'
22700 ;;
22701
22702aix4* | aix5*)
22703 version_type=linux
22704 need_lib_prefix=no
22705 need_version=no
22706 hardcode_into_libs=yes
22707 if test "$host_cpu" = ia64; then
22708 # AIX 5 supports IA64
22709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22710 shlibpath_var=LD_LIBRARY_PATH
22711 else
22712 # With GCC up to 2.95.x, collect2 would create an import file
22713 # for dependence libraries. The import file would start with
22714 # the line `#! .'. This would cause the generated library to
22715 # depend on `.', always an invalid library. This was fixed in
22716 # development snapshots of GCC prior to 3.0.
22717 case $host_os in
22718 aix4 | aix4.[01] | aix4.[01].*)
22719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22720 echo ' yes '
22721 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22722 :
22723 else
22724 can_build_shared=no
22725 fi
22726 ;;
22727 esac
22728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22729 # soname into executable. Probably we can add versioning support to
22730 # collect2, so additional links can be useful in future.
22731 if test "$aix_use_runtimelinking" = yes; then
22732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22733 # instead of lib<name>.a to let people know that these are not
22734 # typical AIX shared libraries.
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 else
22737 # We preserve .a as extension for shared libraries through AIX4.2
22738 # and later when we are not doing run time linking.
22739 library_names_spec='${libname}${release}.a $libname.a'
22740 soname_spec='${libname}${release}${shared_ext}$major'
22741 fi
22742 shlibpath_var=LIBPATH
22743 fi
22744 ;;
22745
22746amigaos*)
22747 library_names_spec='$libname.ixlibrary $libname.a'
22748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022749 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 +000022750 ;;
22751
22752beos*)
22753 library_names_spec='${libname}${shared_ext}'
22754 dynamic_linker="$host_os ld.so"
22755 shlibpath_var=LIBRARY_PATH
22756 ;;
22757
Reid Spencer2706f8c2004-09-19 23:53:36 +000022758bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022759 version_type=linux
22760 need_version=no
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22767 # the default ld.so.conf also contains /usr/contrib/lib and
22768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22769 # libtool to hard-code these into programs
22770 ;;
22771
22772cygwin* | mingw* | pw32*)
22773 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022774 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022775 need_version=no
22776 need_lib_prefix=no
22777
22778 case $GCC,$host_os in
22779 yes,cygwin* | yes,mingw* | yes,pw32*)
22780 library_names_spec='$libname.dll.a'
22781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022782 postinstall_cmds='base_file=`basename \${file}`~
22783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22784 dldir=$destdir/`dirname \$dlpath`~
22785 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022786 $install_prog $dir/$dlname \$dldir/$dlname~
22787 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22789 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022790 $rm \$dlpath'
22791 shlibpath_overrides_runpath=yes
22792
22793 case $host_os in
22794 cygwin*)
22795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22796 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 +000022797 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022798 ;;
22799 mingw*)
22800 # MinGW DLLs use traditional 'lib' prefix
22801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22803 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22804 # It is most probably a Windows format PATH printed by
22805 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22806 # path with ; separators, and with drive letters. We can handle the
22807 # drive letters (cygwin fileutils understands them), so leave them,
22808 # especially as we might pass files found there to a mingw objdump,
22809 # which wouldn't understand a cygwinified path. Ahh.
22810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22811 else
22812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22813 fi
22814 ;;
22815 pw32*)
22816 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022817 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 +000022818 ;;
22819 esac
22820 ;;
22821
22822 *)
22823 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22824 ;;
22825 esac
22826 dynamic_linker='Win32 ld.exe'
22827 # FIXME: first we should search . and the directory the executable is in
22828 shlibpath_var=PATH
22829 ;;
22830
22831darwin* | rhapsody*)
22832 dynamic_linker="$host_os dyld"
22833 version_type=darwin
22834 need_lib_prefix=no
22835 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022836 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022837 soname_spec='${libname}${release}${major}$shared_ext'
22838 shlibpath_overrides_runpath=yes
22839 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022840 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022841 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022842 if test "$GCC" = yes; then
22843 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"`
22844 else
22845 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022846 fi
22847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22848 ;;
22849
22850dgux*)
22851 version_type=linux
22852 need_lib_prefix=no
22853 need_version=no
22854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22855 soname_spec='${libname}${release}${shared_ext}$major'
22856 shlibpath_var=LD_LIBRARY_PATH
22857 ;;
22858
22859freebsd1*)
22860 dynamic_linker=no
22861 ;;
22862
Reid Spencer2706f8c2004-09-19 23:53:36 +000022863kfreebsd*-gnu)
22864 version_type=linux
22865 need_lib_prefix=no
22866 need_version=no
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22868 soname_spec='${libname}${release}${shared_ext}$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22870 shlibpath_overrides_runpath=no
22871 hardcode_into_libs=yes
22872 dynamic_linker='GNU ld.so'
22873 ;;
22874
Reid Spencera773bd52006-08-04 18:18:08 +000022875freebsd* | dragonfly*)
22876 # DragonFly does not have aout. When/if they implement a new
22877 # versioning mechanism, adjust this.
22878 if test -x /usr/bin/objformat; then
22879 objformat=`/usr/bin/objformat`
22880 else
22881 case $host_os in
22882 freebsd[123]*) objformat=aout ;;
22883 *) objformat=elf ;;
22884 esac
22885 fi
John Criswell47fdd832003-07-14 16:52:07 +000022886 version_type=freebsd-$objformat
22887 case $version_type in
22888 freebsd-elf*)
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22890 need_version=no
22891 need_lib_prefix=no
22892 ;;
22893 freebsd-*)
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22895 need_version=yes
22896 ;;
22897 esac
22898 shlibpath_var=LD_LIBRARY_PATH
22899 case $host_os in
22900 freebsd2*)
22901 shlibpath_overrides_runpath=yes
22902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022903 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022904 shlibpath_overrides_runpath=yes
22905 hardcode_into_libs=yes
22906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022909 shlibpath_overrides_runpath=no
22910 hardcode_into_libs=yes
22911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022912 freebsd*) # from 4.6 on
22913 shlibpath_overrides_runpath=yes
22914 hardcode_into_libs=yes
22915 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022916 esac
22917 ;;
22918
22919gnu*)
22920 version_type=linux
22921 need_lib_prefix=no
22922 need_version=no
22923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22924 soname_spec='${libname}${release}${shared_ext}$major'
22925 shlibpath_var=LD_LIBRARY_PATH
22926 hardcode_into_libs=yes
22927 ;;
22928
22929hpux9* | hpux10* | hpux11*)
22930 # Give a soname corresponding to the major version so that dld.sl refuses to
22931 # link against other versions.
22932 version_type=sunos
22933 need_lib_prefix=no
22934 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022935 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022936 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022937 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022938 hardcode_into_libs=yes
22939 dynamic_linker="$host_os dld.so"
22940 shlibpath_var=LD_LIBRARY_PATH
22941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 if test "X$HPUX_IA64_MODE" = X32; then
22945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22946 else
22947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22948 fi
22949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22950 ;;
22951 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022952 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022953 hardcode_into_libs=yes
22954 dynamic_linker="$host_os dld.sl"
22955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22961 ;;
22962 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022964 dynamic_linker="$host_os dld.sl"
22965 shlibpath_var=SHLIB_PATH
22966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968 soname_spec='${libname}${release}${shared_ext}$major'
22969 ;;
22970 esac
22971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22972 postinstall_cmds='chmod 555 $lib'
22973 ;;
22974
Reid Spencera773bd52006-08-04 18:18:08 +000022975interix3*)
22976 version_type=linux
22977 need_lib_prefix=no
22978 need_version=no
22979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22980 soname_spec='${libname}${release}${shared_ext}$major'
22981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 shlibpath_overrides_runpath=no
22984 hardcode_into_libs=yes
22985 ;;
22986
John Criswell47fdd832003-07-14 16:52:07 +000022987irix5* | irix6* | nonstopux*)
22988 case $host_os in
22989 nonstopux*) version_type=nonstopux ;;
22990 *)
22991 if test "$lt_cv_prog_gnu_ld" = yes; then
22992 version_type=linux
22993 else
22994 version_type=irix
22995 fi ;;
22996 esac
22997 need_lib_prefix=no
22998 need_version=no
22999 soname_spec='${libname}${release}${shared_ext}$major'
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23001 case $host_os in
23002 irix5* | nonstopux*)
23003 libsuff= shlibsuff=
23004 ;;
23005 *)
23006 case $LD in # libtool.m4 will add one of these switches to LD
23007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23008 libsuff= shlibsuff= libmagic=32-bit;;
23009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23010 libsuff=32 shlibsuff=N32 libmagic=N32;;
23011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23013 *) libsuff= shlibsuff= libmagic=never-match;;
23014 esac
23015 ;;
23016 esac
23017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23018 shlibpath_overrides_runpath=no
23019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23021 hardcode_into_libs=yes
23022 ;;
23023
23024# No shared lib support for Linux oldld, aout, or coff.
23025linux*oldld* | linux*aout* | linux*coff*)
23026 dynamic_linker=no
23027 ;;
23028
23029# This must be Linux ELF.
23030linux*)
23031 version_type=linux
23032 need_lib_prefix=no
23033 need_version=no
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23037 shlibpath_var=LD_LIBRARY_PATH
23038 shlibpath_overrides_runpath=no
23039 # This implies no fast_install, which is unacceptable.
23040 # Some rework will be needed to allow for fast_install
23041 # before this can be enabled.
23042 hardcode_into_libs=yes
23043
Reid Spencer2706f8c2004-09-19 23:53:36 +000023044 # Append ld.so.conf contents to the search path
23045 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023046 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 +000023047 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23048 fi
23049
John Criswell47fdd832003-07-14 16:52:07 +000023050 # We used to test for /lib/ld.so.1 and disable shared libraries on
23051 # powerpc, because MkLinux only supported shared libraries with the
23052 # GNU dynamic linker. Since this was broken with cross compilers,
23053 # most powerpc-linux boxes support dynamic linking these days and
23054 # people can always --disable-shared, the test was removed, and we
23055 # assume the GNU/Linux dynamic linker is in use.
23056 dynamic_linker='GNU/Linux ld.so'
23057 ;;
23058
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059knetbsd*-gnu)
23060 version_type=linux
23061 need_lib_prefix=no
23062 need_version=no
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=no
23067 hardcode_into_libs=yes
23068 dynamic_linker='GNU ld.so'
23069 ;;
23070
John Criswell47fdd832003-07-14 16:52:07 +000023071netbsd*)
23072 version_type=sunos
23073 need_lib_prefix=no
23074 need_version=no
23075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23078 dynamic_linker='NetBSD (a.out) ld.so'
23079 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023081 soname_spec='${libname}${release}${shared_ext}$major'
23082 dynamic_linker='NetBSD ld.elf_so'
23083 fi
23084 shlibpath_var=LD_LIBRARY_PATH
23085 shlibpath_overrides_runpath=yes
23086 hardcode_into_libs=yes
23087 ;;
23088
23089newsos6)
23090 version_type=linux
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=yes
23094 ;;
23095
Reid Spencer2706f8c2004-09-19 23:53:36 +000023096nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023097 version_type=linux
23098 need_lib_prefix=no
23099 need_version=no
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101 soname_spec='${libname}${release}${shared_ext}$major'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 ;;
23105
23106openbsd*)
23107 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023108 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023109 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23111 case $host_os in
23112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23113 *) need_version=no ;;
23114 esac
John Criswell47fdd832003-07-14 16:52:07 +000023115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23117 shlibpath_var=LD_LIBRARY_PATH
23118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23119 case $host_os in
23120 openbsd2.[89] | openbsd2.[89].*)
23121 shlibpath_overrides_runpath=no
23122 ;;
23123 *)
23124 shlibpath_overrides_runpath=yes
23125 ;;
23126 esac
23127 else
23128 shlibpath_overrides_runpath=yes
23129 fi
23130 ;;
23131
23132os2*)
23133 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023134 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023135 need_lib_prefix=no
23136 library_names_spec='$libname${shared_ext} $libname.a'
23137 dynamic_linker='OS/2 ld.exe'
23138 shlibpath_var=LIBPATH
23139 ;;
23140
23141osf3* | osf4* | osf5*)
23142 version_type=osf
23143 need_lib_prefix=no
23144 need_version=no
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23147 shlibpath_var=LD_LIBRARY_PATH
23148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23150 ;;
23151
John Criswell47fdd832003-07-14 16:52:07 +000023152solaris*)
23153 version_type=linux
23154 need_lib_prefix=no
23155 need_version=no
23156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 soname_spec='${libname}${release}${shared_ext}$major'
23158 shlibpath_var=LD_LIBRARY_PATH
23159 shlibpath_overrides_runpath=yes
23160 hardcode_into_libs=yes
23161 # ldd complains unless libraries are executable
23162 postinstall_cmds='chmod +x $lib'
23163 ;;
23164
23165sunos4*)
23166 version_type=sunos
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23169 shlibpath_var=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath=yes
23171 if test "$with_gnu_ld" = yes; then
23172 need_lib_prefix=no
23173 fi
23174 need_version=yes
23175 ;;
23176
Reid Spencera773bd52006-08-04 18:18:08 +000023177sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023178 version_type=linux
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 shlibpath_var=LD_LIBRARY_PATH
23182 case $host_vendor in
23183 sni)
23184 shlibpath_overrides_runpath=no
23185 need_lib_prefix=no
23186 export_dynamic_flag_spec='${wl}-Blargedynsym'
23187 runpath_var=LD_RUN_PATH
23188 ;;
23189 siemens)
23190 need_lib_prefix=no
23191 ;;
23192 motorola)
23193 need_lib_prefix=no
23194 need_version=no
23195 shlibpath_overrides_runpath=no
23196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23197 ;;
23198 esac
23199 ;;
23200
23201sysv4*MP*)
23202 if test -d /usr/nec ;then
23203 version_type=linux
23204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23205 soname_spec='$libname${shared_ext}.$major'
23206 shlibpath_var=LD_LIBRARY_PATH
23207 fi
23208 ;;
23209
Reid Spencera773bd52006-08-04 18:18:08 +000023210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23211 version_type=freebsd-elf
23212 need_lib_prefix=no
23213 need_version=no
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 hardcode_into_libs=yes
23218 if test "$with_gnu_ld" = yes; then
23219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23220 shlibpath_overrides_runpath=no
23221 else
23222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23223 shlibpath_overrides_runpath=yes
23224 case $host_os in
23225 sco3.2v5*)
23226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23227 ;;
23228 esac
23229 fi
23230 sys_lib_dlsearch_path_spec='/usr/lib'
23231 ;;
23232
John Criswell47fdd832003-07-14 16:52:07 +000023233uts4*)
23234 version_type=linux
23235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236 soname_spec='${libname}${release}${shared_ext}$major'
23237 shlibpath_var=LD_LIBRARY_PATH
23238 ;;
23239
23240*)
23241 dynamic_linker=no
23242 ;;
23243esac
Reid Spencera773bd52006-08-04 18:18:08 +000023244{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23245echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023246test "$dynamic_linker" = no && can_build_shared=no
23247
Reid Spencera773bd52006-08-04 18:18:08 +000023248variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23249if test "$GCC" = yes; then
23250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23251fi
23252
23253{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23254echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023255hardcode_action_F77=
23256if test -n "$hardcode_libdir_flag_spec_F77" || \
23257 test -n "$runpath_var_F77" || \
23258 test "X$hardcode_automatic_F77" = "Xyes" ; then
23259
23260 # We can hardcode non-existant directories.
23261 if test "$hardcode_direct_F77" != no &&
23262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23263 # have to relink, otherwise we might link with an installed library
23264 # when we should be linking with a yet-to-be-installed one
23265 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23266 test "$hardcode_minus_L_F77" != no; then
23267 # Linking always hardcodes the temporary library directory.
23268 hardcode_action_F77=relink
23269 else
23270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23271 hardcode_action_F77=immediate
23272 fi
23273else
23274 # We cannot hardcode anything, or else we can only hardcode existing
23275 # directories.
23276 hardcode_action_F77=unsupported
23277fi
Reid Spencera773bd52006-08-04 18:18:08 +000023278{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23279echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280
23281if test "$hardcode_action_F77" = relink; then
23282 # Fast installation is not supported
23283 enable_fast_install=no
23284elif test "$shlibpath_overrides_runpath" = yes ||
23285 test "$enable_shared" = no; then
23286 # Fast installation is not necessary
23287 enable_fast_install=needless
23288fi
23289
John Criswell47fdd832003-07-14 16:52:07 +000023290
23291# The else clause should only fire when bootstrapping the
23292# libtool distribution, otherwise you forgot to ship ltmain.sh
23293# with your package, and you will get complaints that there are
23294# no rules to generate ltmain.sh.
23295if test -f "$ltmain"; then
23296 # See if we are running on zsh, and set the options which allow our commands through
23297 # without removal of \ escapes.
23298 if test -n "${ZSH_VERSION+set}" ; then
23299 setopt NO_GLOB_SUBST
23300 fi
23301 # Now quote all the things that may contain metacharacters while being
23302 # careful not to overquote the AC_SUBSTed values. We take copies of the
23303 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023304 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 +000023305 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23308 deplibs_check_method reload_flag reload_cmds need_locks \
23309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23310 lt_cv_sys_global_symbol_to_c_name_address \
23311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23312 old_postinstall_cmds old_postuninstall_cmds \
23313 compiler_F77 \
23314 CC_F77 \
23315 LD_F77 \
23316 lt_prog_compiler_wl_F77 \
23317 lt_prog_compiler_pic_F77 \
23318 lt_prog_compiler_static_F77 \
23319 lt_prog_compiler_no_builtin_flag_F77 \
23320 export_dynamic_flag_spec_F77 \
23321 thread_safe_flag_spec_F77 \
23322 whole_archive_flag_spec_F77 \
23323 enable_shared_with_static_runtimes_F77 \
23324 old_archive_cmds_F77 \
23325 old_archive_from_new_cmds_F77 \
23326 predep_objects_F77 \
23327 postdep_objects_F77 \
23328 predeps_F77 \
23329 postdeps_F77 \
23330 compiler_lib_search_path_F77 \
23331 archive_cmds_F77 \
23332 archive_expsym_cmds_F77 \
23333 postinstall_cmds_F77 \
23334 postuninstall_cmds_F77 \
23335 old_archive_from_expsyms_cmds_F77 \
23336 allow_undefined_flag_F77 \
23337 no_undefined_flag_F77 \
23338 export_symbols_cmds_F77 \
23339 hardcode_libdir_flag_spec_F77 \
23340 hardcode_libdir_flag_spec_ld_F77 \
23341 hardcode_libdir_separator_F77 \
23342 hardcode_automatic_F77 \
23343 module_cmds_F77 \
23344 module_expsym_cmds_F77 \
23345 lt_cv_prog_compiler_c_o_F77 \
23346 exclude_expsyms_F77 \
23347 include_expsyms_F77; do
23348
23349 case $var in
23350 old_archive_cmds_F77 | \
23351 old_archive_from_new_cmds_F77 | \
23352 archive_cmds_F77 | \
23353 archive_expsym_cmds_F77 | \
23354 module_cmds_F77 | \
23355 module_expsym_cmds_F77 | \
23356 old_archive_from_expsyms_cmds_F77 | \
23357 export_symbols_cmds_F77 | \
23358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23359 postinstall_cmds | postuninstall_cmds | \
23360 old_postinstall_cmds | old_postuninstall_cmds | \
23361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23362 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023363 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 +000023364 ;;
23365 *)
23366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23367 ;;
23368 esac
23369 done
23370
23371 case $lt_echo in
23372 *'\$0 --fallback-echo"')
23373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23374 ;;
23375 esac
23376
23377cfgfile="$ofile"
23378
23379 cat <<__EOF__ >> "$cfgfile"
23380# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23381
23382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23383
23384# Shell to use when invoking shell scripts.
23385SHELL=$lt_SHELL
23386
23387# Whether or not to build shared libraries.
23388build_libtool_libs=$enable_shared
23389
23390# Whether or not to build static libraries.
23391build_old_libs=$enable_static
23392
23393# Whether or not to add -lc for building shared libraries.
23394build_libtool_need_lc=$archive_cmds_need_lc_F77
23395
23396# Whether or not to disallow shared libs when runtime libs are static
23397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23398
23399# Whether or not to optimize for fast installation.
23400fast_install=$enable_fast_install
23401
23402# The host system.
23403host_alias=$host_alias
23404host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023405host_os=$host_os
23406
23407# The build system.
23408build_alias=$build_alias
23409build=$build
23410build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023411
23412# An echo program that does not interpret backslashes.
23413echo=$lt_echo
23414
23415# The archiver.
23416AR=$lt_AR
23417AR_FLAGS=$lt_AR_FLAGS
23418
23419# A C compiler.
23420LTCC=$lt_LTCC
23421
Reid Spencera773bd52006-08-04 18:18:08 +000023422# LTCC compiler flags.
23423LTCFLAGS=$lt_LTCFLAGS
23424
John Criswell47fdd832003-07-14 16:52:07 +000023425# A language-specific compiler.
23426CC=$lt_compiler_F77
23427
23428# Is the compiler the GNU C compiler?
23429with_gcc=$GCC_F77
23430
23431# An ERE matcher.
23432EGREP=$lt_EGREP
23433
23434# The linker used to build libraries.
23435LD=$lt_LD_F77
23436
23437# Whether we need hard or soft links.
23438LN_S=$lt_LN_S
23439
23440# A BSD-compatible nm program.
23441NM=$lt_NM
23442
23443# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023445
23446# Used to examine libraries when file_magic_cmd begins "file"
23447MAGIC_CMD=$MAGIC_CMD
23448
23449# Used on cygwin: DLL creation program.
23450DLLTOOL="$DLLTOOL"
23451
23452# Used on cygwin: object dumper.
23453OBJDUMP="$OBJDUMP"
23454
23455# Used on cygwin: assembler.
23456AS="$AS"
23457
23458# The name of the directory that contains temporary libtool files.
23459objdir=$objdir
23460
23461# How to create reloadable object files.
23462reload_flag=$lt_reload_flag
23463reload_cmds=$lt_reload_cmds
23464
23465# How to pass a linker flag through the compiler.
23466wl=$lt_lt_prog_compiler_wl_F77
23467
23468# Object file suffix (normally "o").
23469objext="$ac_objext"
23470
23471# Old archive suffix (normally "a").
23472libext="$libext"
23473
23474# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023475shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023476
23477# Executable file suffix (normally "").
23478exeext="$exeext"
23479
23480# Additional compiler flags for building library objects.
23481pic_flag=$lt_lt_prog_compiler_pic_F77
23482pic_mode=$pic_mode
23483
23484# What is the maximum length of a command?
23485max_cmd_len=$lt_cv_sys_max_cmd_len
23486
23487# Does compiler simultaneously support -c and -o options?
23488compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23489
Reid Spencera773bd52006-08-04 18:18:08 +000023490# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023491need_locks=$lt_need_locks
23492
23493# Do we need the lib prefix for modules?
23494need_lib_prefix=$need_lib_prefix
23495
23496# Do we need a version for libraries?
23497need_version=$need_version
23498
23499# Whether dlopen is supported.
23500dlopen_support=$enable_dlopen
23501
23502# Whether dlopen of programs is supported.
23503dlopen_self=$enable_dlopen_self
23504
23505# Whether dlopen of statically linked programs is supported.
23506dlopen_self_static=$enable_dlopen_self_static
23507
23508# Compiler flag to prevent dynamic linking.
23509link_static_flag=$lt_lt_prog_compiler_static_F77
23510
23511# Compiler flag to turn off builtin functions.
23512no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23513
23514# Compiler flag to allow reflexive dlopens.
23515export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23516
23517# Compiler flag to generate shared objects directly from archives.
23518whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23519
23520# Compiler flag to generate thread-safe objects.
23521thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23522
23523# Library versioning type.
23524version_type=$version_type
23525
23526# Format of library name prefix.
23527libname_spec=$lt_libname_spec
23528
23529# List of archive names. First name is the real one, the rest are links.
23530# The last name is the one that the linker finds with -lNAME.
23531library_names_spec=$lt_library_names_spec
23532
23533# The coded name of the library, if different from the real name.
23534soname_spec=$lt_soname_spec
23535
23536# Commands used to build and install an old-style archive.
23537RANLIB=$lt_RANLIB
23538old_archive_cmds=$lt_old_archive_cmds_F77
23539old_postinstall_cmds=$lt_old_postinstall_cmds
23540old_postuninstall_cmds=$lt_old_postuninstall_cmds
23541
23542# Create an old-style archive from a shared archive.
23543old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23544
23545# Create a temporary old-style archive to link instead of a shared archive.
23546old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23547
23548# Commands used to build and install a shared archive.
23549archive_cmds=$lt_archive_cmds_F77
23550archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23551postinstall_cmds=$lt_postinstall_cmds
23552postuninstall_cmds=$lt_postuninstall_cmds
23553
23554# Commands used to build a loadable module (assumed same as above if empty)
23555module_cmds=$lt_module_cmds_F77
23556module_expsym_cmds=$lt_module_expsym_cmds_F77
23557
23558# Commands to strip libraries.
23559old_striplib=$lt_old_striplib
23560striplib=$lt_striplib
23561
23562# Dependencies to place before the objects being linked to create a
23563# shared library.
23564predep_objects=$lt_predep_objects_F77
23565
23566# Dependencies to place after the objects being linked to create a
23567# shared library.
23568postdep_objects=$lt_postdep_objects_F77
23569
23570# Dependencies to place before the objects being linked to create a
23571# shared library.
23572predeps=$lt_predeps_F77
23573
23574# Dependencies to place after the objects being linked to create a
23575# shared library.
23576postdeps=$lt_postdeps_F77
23577
23578# The library search path used internally by the compiler when linking
23579# a shared library.
23580compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23581
23582# Method to check whether dependent libraries are shared objects.
23583deplibs_check_method=$lt_deplibs_check_method
23584
23585# Command to use when deplibs_check_method == file_magic.
23586file_magic_cmd=$lt_file_magic_cmd
23587
23588# Flag that allows shared libraries with undefined symbols to be built.
23589allow_undefined_flag=$lt_allow_undefined_flag_F77
23590
23591# Flag that forces no undefined symbols.
23592no_undefined_flag=$lt_no_undefined_flag_F77
23593
23594# Commands used to finish a libtool library installation in a directory.
23595finish_cmds=$lt_finish_cmds
23596
23597# Same as above, but a single script fragment to be evaled but not shown.
23598finish_eval=$lt_finish_eval
23599
23600# Take the output of nm and produce a listing of raw symbols and C names.
23601global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23602
23603# Transform the output of nm in a proper C declaration
23604global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23605
23606# Transform the output of nm in a C name address pair
23607global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23608
23609# This is the shared library runtime path variable.
23610runpath_var=$runpath_var
23611
23612# This is the shared library path variable.
23613shlibpath_var=$shlibpath_var
23614
23615# Is shlibpath searched before the hard-coded library search path?
23616shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23617
23618# How to hardcode a shared library path into an executable.
23619hardcode_action=$hardcode_action_F77
23620
23621# Whether we should hardcode library paths into libraries.
23622hardcode_into_libs=$hardcode_into_libs
23623
23624# Flag to hardcode \$libdir into a binary during linking.
23625# This must work even if \$libdir does not exist.
23626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23627
23628# If ld is used when linking, flag to hardcode \$libdir into
23629# a binary during linking. This must work even if \$libdir does
23630# not exist.
23631hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23632
23633# Whether we need a single -rpath flag with a separated argument.
23634hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23635
23636# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23637# resulting binary.
23638hardcode_direct=$hardcode_direct_F77
23639
23640# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23641# resulting binary.
23642hardcode_minus_L=$hardcode_minus_L_F77
23643
23644# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23645# the resulting binary.
23646hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23647
23648# Set to yes if building a shared library automatically hardcodes DIR into the library
23649# and all subsequent libraries and executables linked against it.
23650hardcode_automatic=$hardcode_automatic_F77
23651
23652# Variables whose values should be saved in libtool wrapper scripts and
23653# restored at relink time.
23654variables_saved_for_relink="$variables_saved_for_relink"
23655
23656# Whether libtool must link a program against all its dependency libraries.
23657link_all_deplibs=$link_all_deplibs_F77
23658
23659# Compile-time system search path for libraries
23660sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23661
23662# Run-time system search path for libraries
23663sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23664
23665# Fix the shell variable \$srcfile for the compiler.
23666fix_srcfile_path="$fix_srcfile_path_F77"
23667
23668# Set to yes if exported symbols are required.
23669always_export_symbols=$always_export_symbols_F77
23670
23671# The commands to list exported symbols.
23672export_symbols_cmds=$lt_export_symbols_cmds_F77
23673
23674# The commands to extract the exported symbol list from a shared archive.
23675extract_expsyms_cmds=$lt_extract_expsyms_cmds
23676
23677# Symbols that should not be listed in the preloaded symbols.
23678exclude_expsyms=$lt_exclude_expsyms_F77
23679
23680# Symbols that must always be exported.
23681include_expsyms=$lt_include_expsyms_F77
23682
23683# ### END LIBTOOL TAG CONFIG: $tagname
23684
23685__EOF__
23686
23687
23688else
23689 # If there is no Makefile yet, we rely on a make rule to execute
23690 # `config.status --recheck' to rerun these tests and create the
23691 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023692 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23693 if test -f "$ltmain_in"; then
23694 test -f Makefile && make "$ltmain"
23695 fi
John Criswell47fdd832003-07-14 16:52:07 +000023696fi
23697
23698
23699ac_ext=c
23700ac_cpp='$CPP $CPPFLAGS'
23701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703ac_compiler_gnu=$ac_cv_c_compiler_gnu
23704
23705CC="$lt_save_CC"
23706
23707 else
23708 tagname=""
23709 fi
23710 ;;
23711
23712 GCJ)
23713 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023714 ac_ext=c
23715ac_cpp='$CPP $CPPFLAGS'
23716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23718ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023719
23720
23721# Source file extension for Java test sources.
23722ac_ext=java
23723
23724# Object file extension for compiled Java test sources.
23725objext=o
23726objext_GCJ=$objext
23727
23728# Code to be used in simple compile tests
23729lt_simple_compile_test_code="class foo {}\n"
23730
23731# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023732lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023733
23734# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23735
23736# If no C compiler was specified, use CC.
23737LTCC=${LTCC-"$CC"}
23738
Reid Spencera773bd52006-08-04 18:18:08 +000023739# If no C compiler flags were specified, use CFLAGS.
23740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23741
John Criswell47fdd832003-07-14 16:52:07 +000023742# Allow CC to be a program name with arguments.
23743compiler=$CC
23744
23745
Reid Spencera773bd52006-08-04 18:18:08 +000023746# save warnings/boilerplate of simple test code
23747ac_outfile=conftest.$ac_objext
23748printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750_lt_compiler_boilerplate=`cat conftest.err`
23751$rm conftest*
23752
23753ac_outfile=conftest.$ac_objext
23754printf "$lt_simple_link_test_code" >conftest.$ac_ext
23755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23756_lt_linker_boilerplate=`cat conftest.err`
23757$rm conftest*
23758
23759
John Criswell47fdd832003-07-14 16:52:07 +000023760# Allow CC to be a program name with arguments.
23761lt_save_CC="$CC"
23762CC=${GCJ-"gcj"}
23763compiler=$CC
23764compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023765for cc_temp in $compiler""; do
23766 case $cc_temp in
23767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23769 \-*) ;;
23770 *) break;;
23771 esac
23772done
23773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23774
John Criswell47fdd832003-07-14 16:52:07 +000023775
23776# GCJ did not exist at the time GCC didn't implicitly link libc in.
23777archive_cmds_need_lc_GCJ=no
23778
Reid Spencera773bd52006-08-04 18:18:08 +000023779old_archive_cmds_GCJ=$old_archive_cmds
23780
John Criswell47fdd832003-07-14 16:52:07 +000023781
23782lt_prog_compiler_no_builtin_flag_GCJ=
23783
23784if test "$GCC" = yes; then
23785 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23786
Reid Spencer2706f8c2004-09-19 23:53:36 +000023787
Reid Spencera773bd52006-08-04 18:18:08 +000023788{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23789echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023790if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23791 echo $ECHO_N "(cached) $ECHO_C" >&6
23792else
23793 lt_cv_prog_compiler_rtti_exceptions=no
23794 ac_outfile=conftest.$ac_objext
23795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23796 lt_compiler_flag="-fno-rtti -fno-exceptions"
23797 # Insert the option either (1) after the last *FLAGS variable, or
23798 # (2) before a word containing "conftest.", or (3) at the end.
23799 # Note that $ac_compile itself does not contain backslashes and begins
23800 # with a dollar sign (not a hyphen), so the echo should work correctly.
23801 # The option is referenced via a variable to avoid confusing sed.
23802 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23805 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000023806 (eval echo "\"\$as_me:23801: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023807 (eval "$lt_compile" 2>conftest.err)
23808 ac_status=$?
23809 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000023810 echo "$as_me:23805: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023811 if (exit $ac_status) && test -s "$ac_outfile"; then
23812 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023813 # So say no if there are warnings other than the usual output.
23814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023817 lt_cv_prog_compiler_rtti_exceptions=yes
23818 fi
23819 fi
23820 $rm conftest*
23821
23822fi
Reid Spencera773bd52006-08-04 18:18:08 +000023823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23824echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023825
23826if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23827 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23828else
23829 :
23830fi
23831
23832fi
23833
23834lt_prog_compiler_wl_GCJ=
23835lt_prog_compiler_pic_GCJ=
23836lt_prog_compiler_static_GCJ=
23837
Reid Spencera773bd52006-08-04 18:18:08 +000023838{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23839echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023840
23841 if test "$GCC" = yes; then
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_static_GCJ='-static'
23844
23845 case $host_os in
23846 aix*)
23847 # All AIX code is PIC.
23848 if test "$host_cpu" = ia64; then
23849 # AIX 5 now supports IA64 processor
23850 lt_prog_compiler_static_GCJ='-Bstatic'
23851 fi
23852 ;;
23853
23854 amigaos*)
23855 # FIXME: we need at least 68020 code to build shared libraries, but
23856 # adding the `-m68020' flag to GCC prevents building anything better,
23857 # like `-m68040'.
23858 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23859 ;;
23860
23861 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23862 # PIC is the default for these OSes.
23863 ;;
23864
23865 mingw* | pw32* | os2*)
23866 # This hack is so that the source file can tell whether it is being
23867 # built for inclusion in a dll (and should export symbols for example).
23868 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23869 ;;
23870
23871 darwin* | rhapsody*)
23872 # PIC is the default on this platform
23873 # Common symbols not allowed in MH_DYLIB files
23874 lt_prog_compiler_pic_GCJ='-fno-common'
23875 ;;
23876
Reid Spencera773bd52006-08-04 18:18:08 +000023877 interix3*)
23878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23879 # Instead, we relocate shared libraries at runtime.
23880 ;;
23881
John Criswell47fdd832003-07-14 16:52:07 +000023882 msdosdjgpp*)
23883 # Just because we use GCC doesn't mean we suddenly get shared libraries
23884 # on systems that don't support them.
23885 lt_prog_compiler_can_build_shared_GCJ=no
23886 enable_shared=no
23887 ;;
23888
23889 sysv4*MP*)
23890 if test -d /usr/nec; then
23891 lt_prog_compiler_pic_GCJ=-Kconform_pic
23892 fi
23893 ;;
23894
23895 hpux*)
23896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23897 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023898 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023899 hppa*64*|ia64*)
23900 # +Z the default
23901 ;;
23902 *)
23903 lt_prog_compiler_pic_GCJ='-fPIC'
23904 ;;
23905 esac
23906 ;;
23907
23908 *)
23909 lt_prog_compiler_pic_GCJ='-fPIC'
23910 ;;
23911 esac
23912 else
23913 # PORTME Check for flag to pass linker flags through the system compiler.
23914 case $host_os in
23915 aix*)
23916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 if test "$host_cpu" = ia64; then
23918 # AIX 5 now supports IA64 processor
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23920 else
23921 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23922 fi
23923 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023924 darwin*)
23925 # PIC is the default on this platform
23926 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023927 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023928 xlc*)
23929 lt_prog_compiler_pic_GCJ='-qnocommon'
23930 lt_prog_compiler_wl_GCJ='-Wl,'
23931 ;;
23932 esac
23933 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023934
23935 mingw* | pw32* | os2*)
23936 # This hack is so that the source file can tell whether it is being
23937 # built for inclusion in a dll (and should export symbols for example).
23938 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23939 ;;
23940
23941 hpux9* | hpux10* | hpux11*)
23942 lt_prog_compiler_wl_GCJ='-Wl,'
23943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23944 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023945 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023946 hppa*64*|ia64*)
23947 # +Z the default
23948 ;;
23949 *)
23950 lt_prog_compiler_pic_GCJ='+Z'
23951 ;;
23952 esac
23953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23954 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23955 ;;
23956
23957 irix5* | irix6* | nonstopux*)
23958 lt_prog_compiler_wl_GCJ='-Wl,'
23959 # PIC (with -KPIC) is the default.
23960 lt_prog_compiler_static_GCJ='-non_shared'
23961 ;;
23962
23963 newsos6)
23964 lt_prog_compiler_pic_GCJ='-KPIC'
23965 lt_prog_compiler_static_GCJ='-Bstatic'
23966 ;;
23967
23968 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023969 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023970 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_pic_GCJ='-KPIC'
23973 lt_prog_compiler_static_GCJ='-static'
23974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023975 pgcc* | pgf77* | pgf90* | pgf95*)
23976 # Portland Group compilers (*not* the Pentium gcc compiler,
23977 # which looks to be a dead project)
23978 lt_prog_compiler_wl_GCJ='-Wl,'
23979 lt_prog_compiler_pic_GCJ='-fpic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23981 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023982 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 # All Alpha code is PIC.
23985 lt_prog_compiler_static_GCJ='-non_shared'
23986 ;;
23987 esac
23988 ;;
23989
23990 osf3* | osf4* | osf5*)
23991 lt_prog_compiler_wl_GCJ='-Wl,'
23992 # All OSF/1 code is PIC.
23993 lt_prog_compiler_static_GCJ='-non_shared'
23994 ;;
23995
John Criswell47fdd832003-07-14 16:52:07 +000023996 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023997 lt_prog_compiler_pic_GCJ='-KPIC'
23998 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023999 case $cc_basename in
24000 f77* | f90* | f95*)
24001 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24002 *)
24003 lt_prog_compiler_wl_GCJ='-Wl,';;
24004 esac
John Criswell47fdd832003-07-14 16:52:07 +000024005 ;;
24006
24007 sunos4*)
24008 lt_prog_compiler_wl_GCJ='-Qoption ld '
24009 lt_prog_compiler_pic_GCJ='-PIC'
24010 lt_prog_compiler_static_GCJ='-Bstatic'
24011 ;;
24012
Reid Spencera773bd52006-08-04 18:18:08 +000024013 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024014 lt_prog_compiler_wl_GCJ='-Wl,'
24015 lt_prog_compiler_pic_GCJ='-KPIC'
24016 lt_prog_compiler_static_GCJ='-Bstatic'
24017 ;;
24018
24019 sysv4*MP*)
24020 if test -d /usr/nec ;then
24021 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24022 lt_prog_compiler_static_GCJ='-Bstatic'
24023 fi
24024 ;;
24025
Reid Spencera773bd52006-08-04 18:18:08 +000024026 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24027 lt_prog_compiler_wl_GCJ='-Wl,'
24028 lt_prog_compiler_pic_GCJ='-KPIC'
24029 lt_prog_compiler_static_GCJ='-Bstatic'
24030 ;;
24031
24032 unicos*)
24033 lt_prog_compiler_wl_GCJ='-Wl,'
24034 lt_prog_compiler_can_build_shared_GCJ=no
24035 ;;
24036
John Criswell47fdd832003-07-14 16:52:07 +000024037 uts4*)
24038 lt_prog_compiler_pic_GCJ='-pic'
24039 lt_prog_compiler_static_GCJ='-Bstatic'
24040 ;;
24041
24042 *)
24043 lt_prog_compiler_can_build_shared_GCJ=no
24044 ;;
24045 esac
24046 fi
24047
Reid Spencera773bd52006-08-04 18:18:08 +000024048{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24049echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024050
24051#
24052# Check to make sure the PIC flag actually works.
24053#
24054if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024055
Reid Spencera773bd52006-08-04 18:18:08 +000024056{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24057echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024058if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24060else
24061 lt_prog_compiler_pic_works_GCJ=no
24062 ac_outfile=conftest.$ac_objext
24063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24064 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24065 # Insert the option either (1) after the last *FLAGS variable, or
24066 # (2) before a word containing "conftest.", or (3) at the end.
24067 # Note that $ac_compile itself does not contain backslashes and begins
24068 # with a dollar sign (not a hyphen), so the echo should work correctly.
24069 # The option is referenced via a variable to avoid confusing sed.
24070 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24073 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000024074 (eval echo "\"\$as_me:24069: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024075 (eval "$lt_compile" 2>conftest.err)
24076 ac_status=$?
24077 cat conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000024078 echo "$as_me:24073: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024079 if (exit $ac_status) && test -s "$ac_outfile"; then
24080 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024081 # So say no if there are warnings other than the usual output.
24082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024085 lt_prog_compiler_pic_works_GCJ=yes
24086 fi
24087 fi
24088 $rm conftest*
24089
24090fi
Reid Spencera773bd52006-08-04 18:18:08 +000024091{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24092echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024093
24094if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24095 case $lt_prog_compiler_pic_GCJ in
24096 "" | " "*) ;;
24097 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24098 esac
24099else
24100 lt_prog_compiler_pic_GCJ=
24101 lt_prog_compiler_can_build_shared_GCJ=no
24102fi
24103
24104fi
Reid Spencera773bd52006-08-04 18:18:08 +000024105case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024106 # For platforms which do not support PIC, -DPIC is meaningless:
24107 *djgpp*)
24108 lt_prog_compiler_pic_GCJ=
24109 ;;
24110 *)
24111 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24112 ;;
24113esac
24114
Reid Spencera773bd52006-08-04 18:18:08 +000024115#
24116# Check to make sure the static flag actually works.
24117#
24118wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24119{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24120echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24121if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24123else
24124 lt_prog_compiler_static_works_GCJ=no
24125 save_LDFLAGS="$LDFLAGS"
24126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24127 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24129 # The linker can only warn and ignore the option if not recognized
24130 # So say no if there are warnings
24131 if test -s conftest.err; then
24132 # Append any errors to the config.log.
24133 cat conftest.err 1>&5
24134 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24136 if diff conftest.exp conftest.er2 >/dev/null; then
24137 lt_prog_compiler_static_works_GCJ=yes
24138 fi
24139 else
24140 lt_prog_compiler_static_works_GCJ=yes
24141 fi
24142 fi
24143 $rm conftest*
24144 LDFLAGS="$save_LDFLAGS"
24145
24146fi
24147{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24148echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24149
24150if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24151 :
24152else
24153 lt_prog_compiler_static_GCJ=
24154fi
24155
24156
24157{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24158echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024159if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24161else
24162 lt_cv_prog_compiler_c_o_GCJ=no
24163 $rm -r conftest 2>/dev/null
24164 mkdir conftest
24165 cd conftest
24166 mkdir out
24167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24168
John Criswell47fdd832003-07-14 16:52:07 +000024169 lt_compiler_flag="-o out/conftest2.$ac_objext"
24170 # Insert the option either (1) after the last *FLAGS variable, or
24171 # (2) before a word containing "conftest.", or (3) at the end.
24172 # Note that $ac_compile itself does not contain backslashes and begins
24173 # with a dollar sign (not a hyphen), so the echo should work correctly.
24174 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24177 -e 's:$: $lt_compiler_flag:'`
Tanya Lattner49ff6612008-05-10 04:20:38 +000024178 (eval echo "\"\$as_me:24173: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024179 (eval "$lt_compile" 2>out/conftest.err)
24180 ac_status=$?
24181 cat out/conftest.err >&5
Tanya Lattner49ff6612008-05-10 04:20:38 +000024182 echo "$as_me:24177: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24184 then
24185 # The compiler can only warn and ignore the option if not recognized
24186 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024190 lt_cv_prog_compiler_c_o_GCJ=yes
24191 fi
24192 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024193 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024194 $rm conftest*
24195 # SGI C++ compiler will create directory out/ii_files/ for
24196 # template instantiation
24197 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24198 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024199 cd ..
24200 rmdir conftest
24201 $rm conftest*
24202
24203fi
Reid Spencera773bd52006-08-04 18:18:08 +000024204{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24205echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024206
24207
24208hard_links="nottested"
24209if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24210 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024211 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24212echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024213 hard_links=yes
24214 $rm conftest*
24215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24216 touch conftest.a
24217 ln conftest.a conftest.b 2>&5 || hard_links=no
24218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024219 { echo "$as_me:$LINENO: result: $hard_links" >&5
24220echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024221 if test "$hard_links" = no; then
24222 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24223echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24224 need_locks=warn
24225 fi
24226else
24227 need_locks=no
24228fi
24229
Reid Spencera773bd52006-08-04 18:18:08 +000024230{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24231echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024232
24233 runpath_var=
24234 allow_undefined_flag_GCJ=
24235 enable_shared_with_static_runtimes_GCJ=no
24236 archive_cmds_GCJ=
24237 archive_expsym_cmds_GCJ=
24238 old_archive_From_new_cmds_GCJ=
24239 old_archive_from_expsyms_cmds_GCJ=
24240 export_dynamic_flag_spec_GCJ=
24241 whole_archive_flag_spec_GCJ=
24242 thread_safe_flag_spec_GCJ=
24243 hardcode_libdir_flag_spec_GCJ=
24244 hardcode_libdir_flag_spec_ld_GCJ=
24245 hardcode_libdir_separator_GCJ=
24246 hardcode_direct_GCJ=no
24247 hardcode_minus_L_GCJ=no
24248 hardcode_shlibpath_var_GCJ=unsupported
24249 link_all_deplibs_GCJ=unknown
24250 hardcode_automatic_GCJ=no
24251 module_cmds_GCJ=
24252 module_expsym_cmds_GCJ=
24253 always_export_symbols_GCJ=no
24254 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24255 # include_expsyms should be a list of space-separated symbols to be *always*
24256 # included in the symbol list
24257 include_expsyms_GCJ=
24258 # exclude_expsyms can be an extended regexp of symbols to exclude
24259 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24260 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24261 # as well as any symbol that contains `d'.
24262 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24264 # platforms (ab)use it in PIC code, but their linkers get confused if
24265 # the symbol is explicitly referenced. Since portable code cannot
24266 # rely on this symbol name, it's probably fine to never include it in
24267 # preloaded symbol tables.
24268 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024269 # Just being paranoid about ensuring that cc_basename is set.
24270 for cc_temp in $compiler""; do
24271 case $cc_temp in
24272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24274 \-*) ;;
24275 *) break;;
24276 esac
24277done
24278cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024279
24280 case $host_os in
24281 cygwin* | mingw* | pw32*)
24282 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24283 # When not using gcc, we currently assume that we are using
24284 # Microsoft Visual C++.
24285 if test "$GCC" != yes; then
24286 with_gnu_ld=no
24287 fi
24288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024289 interix*)
24290 # we just hope/assume this is gcc and not c89 (= MSVC++)
24291 with_gnu_ld=yes
24292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024293 openbsd*)
24294 with_gnu_ld=no
24295 ;;
24296 esac
24297
24298 ld_shlibs_GCJ=yes
24299 if test "$with_gnu_ld" = yes; then
24300 # If archive_cmds runs LD, not CC, wlarc should be empty
24301 wlarc='${wl}'
24302
Reid Spencera773bd52006-08-04 18:18:08 +000024303 # Set some defaults for GNU ld with shared library support. These
24304 # are reset later if shared libraries are not supported. Putting them
24305 # here allows them to be overridden if necessary.
24306 runpath_var=LD_RUN_PATH
24307 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24308 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24309 # ancient GNU ld didn't support --whole-archive et. al.
24310 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24311 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24312 else
24313 whole_archive_flag_spec_GCJ=
24314 fi
24315 supports_anon_versioning=no
24316 case `$LD -v 2>/dev/null` in
24317 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24318 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24319 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24320 *\ 2.11.*) ;; # other 2.11 versions
24321 *) supports_anon_versioning=yes ;;
24322 esac
24323
John Criswell47fdd832003-07-14 16:52:07 +000024324 # See if GNU ld supports shared libraries.
24325 case $host_os in
24326 aix3* | aix4* | aix5*)
24327 # On AIX/PPC, the GNU linker is very broken
24328 if test "$host_cpu" != ia64; then
24329 ld_shlibs_GCJ=no
24330 cat <<EOF 1>&2
24331
24332*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24333*** to be unable to reliably create shared libraries on AIX.
24334*** Therefore, libtool is disabling shared libraries support. If you
24335*** really care for shared libraries, you may want to modify your PATH
24336*** so that a non-GNU linker is found, and then restart.
24337
24338EOF
24339 fi
24340 ;;
24341
24342 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024343 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 +000024344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24345 hardcode_minus_L_GCJ=yes
24346
24347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24348 # that the semantics of dynamic libraries on AmigaOS, at least up
24349 # to version 4, is to share data among multiple programs linked
24350 # with the same dynamic library. Since this doesn't match the
24351 # behavior of shared libraries on other platforms, we can't use
24352 # them.
24353 ld_shlibs_GCJ=no
24354 ;;
24355
24356 beos*)
24357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24358 allow_undefined_flag_GCJ=unsupported
24359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24360 # support --undefined. This deserves some investigation. FIXME
24361 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24362 else
24363 ld_shlibs_GCJ=no
24364 fi
24365 ;;
24366
24367 cygwin* | mingw* | pw32*)
24368 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24369 # as there is no search path for DLLs.
24370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24371 allow_undefined_flag_GCJ=unsupported
24372 always_export_symbols_GCJ=no
24373 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024374 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 +000024375
24376 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024377 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 +000024378 # If the export-symbols file already is a .def file (1st line
24379 # is EXPORTS), use it as is; otherwise, prepend...
24380 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24381 cp $export_symbols $output_objdir/$soname.def;
24382 else
24383 echo EXPORTS > $output_objdir/$soname.def;
24384 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024385 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024386 $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 +000024387 else
Reid Spencera773bd52006-08-04 18:18:08 +000024388 ld_shlibs_GCJ=no
24389 fi
24390 ;;
24391
24392 interix3*)
24393 hardcode_direct_GCJ=no
24394 hardcode_shlibpath_var_GCJ=no
24395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24396 export_dynamic_flag_spec_GCJ='${wl}-E'
24397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24398 # Instead, shared libraries are loaded at an image base (0x10000000 by
24399 # default) and relocated if they conflict, which is a slow very memory
24400 # consuming and fragmenting process. To avoid this, we pick a random,
24401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24403 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'
24404 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'
24405 ;;
24406
24407 linux*)
24408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24409 tmp_addflag=
24410 case $cc_basename,$host_cpu in
24411 pgcc*) # Portland Group C compiler
24412 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'
24413 tmp_addflag=' $pic_flag'
24414 ;;
24415 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24416 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'
24417 tmp_addflag=' $pic_flag -Mnomain' ;;
24418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24419 tmp_addflag=' -i_dynamic' ;;
24420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24421 tmp_addflag=' -i_dynamic -nofor_main' ;;
24422 ifc* | ifort*) # Intel Fortran compiler
24423 tmp_addflag=' -nofor_main' ;;
24424 esac
24425 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24426
24427 if test $supports_anon_versioning = yes; then
24428 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24430 $echo "local: *; };" >> $output_objdir/$libname.ver~
24431 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24432 fi
24433 else
24434 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024435 fi
24436 ;;
24437
24438 netbsd*)
24439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24440 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24441 wlarc=
24442 else
24443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24445 fi
24446 ;;
24447
Reid Spencera773bd52006-08-04 18:18:08 +000024448 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024449 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24450 ld_shlibs_GCJ=no
24451 cat <<EOF 1>&2
24452
24453*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24454*** create shared libraries on Solaris systems. Therefore, libtool
24455*** is disabling shared libraries support. We urge you to upgrade GNU
24456*** binutils to release 2.9.1 or newer. Another option is to modify
24457*** your PATH or compiler configuration so that the native linker is
24458*** used, and then restart.
24459
24460EOF
24461 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24462 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24463 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24464 else
24465 ld_shlibs_GCJ=no
24466 fi
24467 ;;
24468
Reid Spencera773bd52006-08-04 18:18:08 +000024469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24470 case `$LD -v 2>&1` in
24471 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24472 ld_shlibs_GCJ=no
24473 cat <<_LT_EOF 1>&2
24474
24475*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24476*** reliably create shared libraries on SCO systems. Therefore, libtool
24477*** is disabling shared libraries support. We urge you to upgrade GNU
24478*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24479*** your PATH or compiler configuration so that the native linker is
24480*** used, and then restart.
24481
24482_LT_EOF
24483 ;;
24484 *)
24485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24486 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24487 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24488 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24489 else
24490 ld_shlibs_GCJ=no
24491 fi
24492 ;;
24493 esac
24494 ;;
24495
John Criswell47fdd832003-07-14 16:52:07 +000024496 sunos4*)
24497 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24498 wlarc=
24499 hardcode_direct_GCJ=yes
24500 hardcode_shlibpath_var_GCJ=no
24501 ;;
24502
24503 *)
24504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24507 else
24508 ld_shlibs_GCJ=no
24509 fi
24510 ;;
24511 esac
24512
Reid Spencera773bd52006-08-04 18:18:08 +000024513 if test "$ld_shlibs_GCJ" = no; then
24514 runpath_var=
24515 hardcode_libdir_flag_spec_GCJ=
24516 export_dynamic_flag_spec_GCJ=
24517 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024518 fi
24519 else
24520 # PORTME fill in a description of your system's linker (not GNU ld)
24521 case $host_os in
24522 aix3*)
24523 allow_undefined_flag_GCJ=unsupported
24524 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024525 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 +000024526 # Note: this linker hardcodes the directories in LIBPATH if there
24527 # are no directories specified by -L.
24528 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024529 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024530 # Neither direct hardcoding nor static linking is supported with a
24531 # broken collect2.
24532 hardcode_direct_GCJ=unsupported
24533 fi
24534 ;;
24535
24536 aix4* | aix5*)
24537 if test "$host_cpu" = ia64; then
24538 # On IA64, the linker does run time linking by default, so we don't
24539 # have to do anything special.
24540 aix_use_runtimelinking=no
24541 exp_sym_flag='-Bexport'
24542 no_entry_flag=""
24543 else
24544 # If we're using GNU nm, then we don't want the "-C" option.
24545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24546 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24547 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'
24548 else
24549 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'
24550 fi
24551 aix_use_runtimelinking=no
24552
24553 # Test if we are trying to use run time linking or normal
24554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24555 # need to do runtime linking.
24556 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24557 for ld_flag in $LDFLAGS; do
24558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24559 aix_use_runtimelinking=yes
24560 break
24561 fi
24562 done
Reid Spencera773bd52006-08-04 18:18:08 +000024563 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024564 esac
24565
24566 exp_sym_flag='-bexport'
24567 no_entry_flag='-bnoentry'
24568 fi
24569
24570 # When large executables or shared objects are built, AIX ld can
24571 # have problems creating the table of contents. If linking a library
24572 # or program results in "error TOC overflow" add -mminimal-toc to
24573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24575
24576 archive_cmds_GCJ=''
24577 hardcode_direct_GCJ=yes
24578 hardcode_libdir_separator_GCJ=':'
24579 link_all_deplibs_GCJ=yes
24580
24581 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024582 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024583 # We only want to do this on AIX 4.2 and lower, the check
24584 # below for broken collect2 doesn't work under 4.3+
24585 collect2name=`${CC} -print-prog-name=collect2`
24586 if test -f "$collect2name" && \
24587 strings "$collect2name" | grep resolve_lib_name >/dev/null
24588 then
24589 # We have reworked collect2
24590 hardcode_direct_GCJ=yes
24591 else
24592 # We have old collect2
24593 hardcode_direct_GCJ=unsupported
24594 # It fails to find uninstalled libraries when the uninstalled
24595 # path is not listed in the libpath. Setting hardcode_minus_L
24596 # to unsupported forces relinking
24597 hardcode_minus_L_GCJ=yes
24598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24599 hardcode_libdir_separator_GCJ=
24600 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024601 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024602 esac
24603 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024604 if test "$aix_use_runtimelinking" = yes; then
24605 shared_flag="$shared_flag "'${wl}-G'
24606 fi
John Criswell47fdd832003-07-14 16:52:07 +000024607 else
24608 # not using gcc
24609 if test "$host_cpu" = ia64; then
24610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24611 # chokes on -Wl,-G. The following line is correct:
24612 shared_flag='-G'
24613 else
Reid Spencera773bd52006-08-04 18:18:08 +000024614 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024615 shared_flag='${wl}-G'
24616 else
24617 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024618 fi
John Criswell47fdd832003-07-14 16:52:07 +000024619 fi
24620 fi
24621
24622 # It seems that -bexpall does not export symbols beginning with
24623 # underscore (_), so it is better to generate a list of symbols to export.
24624 always_export_symbols_GCJ=yes
24625 if test "$aix_use_runtimelinking" = yes; then
24626 # Warning - without using the other runtime loading flags (-brtl),
24627 # -berok will link without error, but may produce a broken library.
24628 allow_undefined_flag_GCJ='-berok'
24629 # Determine the default libpath from the value encoded in an empty executable.
24630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024631/* confdefs.h. */
24632_ACEOF
24633cat confdefs.h >>conftest.$ac_ext
24634cat >>conftest.$ac_ext <<_ACEOF
24635/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024636
John Criswell47fdd832003-07-14 16:52:07 +000024637int
24638main ()
24639{
24640
24641 ;
24642 return 0;
24643}
24644_ACEOF
24645rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024646if { (ac_try="$ac_link"
24647case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24650esac
24651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024654 grep -v '^ *+' conftest.er1 >conftest.err
24655 rm -f conftest.er1
24656 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024658 (exit $ac_status); } &&
24659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24660 { (case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24663esac
24664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_try") 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24673esac
24674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_try") 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024679
24680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24681}'`
24682# Check for a 64-bit object if we didn't find anything.
24683if 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; }
24684}'`; fi
24685else
24686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024687sed 's/^/| /' conftest.$ac_ext >&5
24688
Reid Spencera773bd52006-08-04 18:18:08 +000024689
John Criswell47fdd832003-07-14 16:52:07 +000024690fi
Reid Spencera773bd52006-08-04 18:18:08 +000024691
Tanya Lattnercf067672008-01-17 05:57:22 +000024692rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024693 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24695
24696 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024697 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 +000024698 else
24699 if test "$host_cpu" = ia64; then
24700 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24701 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024702 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 +000024703 else
24704 # Determine the default libpath from the value encoded in an empty executable.
24705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024706/* confdefs.h. */
24707_ACEOF
24708cat confdefs.h >>conftest.$ac_ext
24709cat >>conftest.$ac_ext <<_ACEOF
24710/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024711
John Criswell47fdd832003-07-14 16:52:07 +000024712int
24713main ()
24714{
24715
24716 ;
24717 return 0;
24718}
24719_ACEOF
24720rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024721if { (ac_try="$ac_link"
24722case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24725esac
24726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024733 (exit $ac_status); } &&
24734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738esac
24739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_try") 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest$ac_exeext'
24745 { (case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24748esac
24749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_try") 2>&5
24751 ac_status=$?
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024754
24755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24756}'`
24757# Check for a 64-bit object if we didn't find anything.
24758if 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; }
24759}'`; fi
24760else
24761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024762sed 's/^/| /' conftest.$ac_ext >&5
24763
Reid Spencera773bd52006-08-04 18:18:08 +000024764
John Criswell47fdd832003-07-14 16:52:07 +000024765fi
Reid Spencera773bd52006-08-04 18:18:08 +000024766
Tanya Lattnercf067672008-01-17 05:57:22 +000024767rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024768 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24770
24771 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24772 # Warning - without using the other run time loading flags,
24773 # -berok will link without error, but may produce a broken library.
24774 no_undefined_flag_GCJ=' ${wl}-bernotok'
24775 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024776 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024777 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024778 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024779 # This is similar to how AIX traditionally builds its shared libraries.
24780 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 +000024781 fi
24782 fi
24783 ;;
24784
24785 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024786 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 +000024787 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24788 hardcode_minus_L_GCJ=yes
24789 # see comment about different semantics on the GNU ld section
24790 ld_shlibs_GCJ=no
24791 ;;
24792
Reid Spencer2706f8c2004-09-19 23:53:36 +000024793 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024794 export_dynamic_flag_spec_GCJ=-rdynamic
24795 ;;
24796
24797 cygwin* | mingw* | pw32*)
24798 # When not using gcc, we currently assume that we are using
24799 # Microsoft Visual C++.
24800 # hardcode_libdir_flag_spec is actually meaningless, as there is
24801 # no search path for DLLs.
24802 hardcode_libdir_flag_spec_GCJ=' '
24803 allow_undefined_flag_GCJ=unsupported
24804 # Tell ltmain to make .lib files, not .a files.
24805 libext=lib
24806 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024807 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024808 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024809 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 +000024810 # The linker will automatically build a .lib file if we build a DLL.
24811 old_archive_From_new_cmds_GCJ='true'
24812 # FIXME: Should let the user specify the lib program.
24813 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024814 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024815 enable_shared_with_static_runtimes_GCJ=yes
24816 ;;
24817
24818 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024819 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024820 rhapsody* | darwin1.[012])
24821 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24822 ;;
24823 *) # Darwin 1.3 on
24824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24825 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24826 else
24827 case ${MACOSX_DEPLOYMENT_TARGET} in
24828 10.[012])
24829 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24830 ;;
24831 10.*)
24832 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24833 ;;
24834 esac
24835 fi
24836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024837 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024838 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024839 hardcode_direct_GCJ=no
24840 hardcode_automatic_GCJ=yes
24841 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024842 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024843 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024844 if test "$GCC" = yes ; then
24845 output_verbose_link_cmd='echo'
24846 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24847 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024848 # 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 +000024849 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}'
24850 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 +000024851 else
Reid Spencera773bd52006-08-04 18:18:08 +000024852 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024853 xlc*)
24854 output_verbose_link_cmd='echo'
24855 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24856 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024857 # 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 +000024858 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}'
24859 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 +000024860 ;;
24861 *)
24862 ld_shlibs_GCJ=no
24863 ;;
24864 esac
John Criswell47fdd832003-07-14 16:52:07 +000024865 fi
24866 ;;
24867
24868 dgux*)
24869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24871 hardcode_shlibpath_var_GCJ=no
24872 ;;
24873
24874 freebsd1*)
24875 ld_shlibs_GCJ=no
24876 ;;
24877
24878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24879 # support. Future versions do this automatically, but an explicit c++rt0.o
24880 # does not break anything, and helps significantly (at the cost of a little
24881 # extra space).
24882 freebsd2.2*)
24883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24885 hardcode_direct_GCJ=yes
24886 hardcode_shlibpath_var_GCJ=no
24887 ;;
24888
24889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24890 freebsd2*)
24891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24892 hardcode_direct_GCJ=yes
24893 hardcode_minus_L_GCJ=yes
24894 hardcode_shlibpath_var_GCJ=no
24895 ;;
24896
24897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024898 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024899 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24901 hardcode_direct_GCJ=yes
24902 hardcode_shlibpath_var_GCJ=no
24903 ;;
24904
24905 hpux9*)
24906 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024907 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 +000024908 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024909 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 +000024910 fi
24911 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24912 hardcode_libdir_separator_GCJ=:
24913 hardcode_direct_GCJ=yes
24914
24915 # hardcode_minus_L: Not really in the search PATH,
24916 # but as the default location of the library.
24917 hardcode_minus_L_GCJ=yes
24918 export_dynamic_flag_spec_GCJ='${wl}-E'
24919 ;;
24920
Reid Spencera773bd52006-08-04 18:18:08 +000024921 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024923 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24924 else
24925 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24926 fi
24927 if test "$with_gnu_ld" = no; then
24928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24929 hardcode_libdir_separator_GCJ=:
24930
24931 hardcode_direct_GCJ=yes
24932 export_dynamic_flag_spec_GCJ='${wl}-E'
24933
24934 # hardcode_minus_L: Not really in the search PATH,
24935 # but as the default location of the library.
24936 hardcode_minus_L_GCJ=yes
24937 fi
24938 ;;
24939
24940 hpux11*)
24941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24942 case $host_cpu in
24943 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024946 ia64*)
24947 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24948 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024949 *)
24950 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24951 ;;
24952 esac
24953 else
Reid Spencera773bd52006-08-04 18:18:08 +000024954 case $host_cpu in
24955 hppa*64*)
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24957 ;;
24958 ia64*)
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024960 ;;
24961 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024962 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 +000024963 ;;
24964 esac
24965 fi
24966 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24968 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024969
Reid Spencera773bd52006-08-04 18:18:08 +000024970 case $host_cpu in
24971 hppa*64*|ia64*)
24972 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24973 hardcode_direct_GCJ=no
24974 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024975 ;;
24976 *)
John Criswell47fdd832003-07-14 16:52:07 +000024977 hardcode_direct_GCJ=yes
24978 export_dynamic_flag_spec_GCJ='${wl}-E'
24979
24980 # hardcode_minus_L: Not really in the search PATH,
24981 # but as the default location of the library.
24982 hardcode_minus_L_GCJ=yes
24983 ;;
24984 esac
24985 fi
24986 ;;
24987
24988 irix5* | irix6* | nonstopux*)
24989 if test "$GCC" = yes; then
24990 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'
24991 else
24992 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'
24993 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24994 fi
24995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24996 hardcode_libdir_separator_GCJ=:
24997 link_all_deplibs_GCJ=yes
24998 ;;
24999
25000 netbsd*)
25001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25002 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25003 else
25004 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25005 fi
25006 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25007 hardcode_direct_GCJ=yes
25008 hardcode_shlibpath_var_GCJ=no
25009 ;;
25010
25011 newsos6)
25012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013 hardcode_direct_GCJ=yes
25014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25015 hardcode_libdir_separator_GCJ=:
25016 hardcode_shlibpath_var_GCJ=no
25017 ;;
25018
25019 openbsd*)
25020 hardcode_direct_GCJ=yes
25021 hardcode_shlibpath_var_GCJ=no
25022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025024 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 +000025025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25026 export_dynamic_flag_spec_GCJ='${wl}-E'
25027 else
25028 case $host_os in
25029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25030 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25031 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25032 ;;
25033 *)
25034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25036 ;;
25037 esac
25038 fi
25039 ;;
25040
25041 os2*)
25042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25043 hardcode_minus_L_GCJ=yes
25044 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025045 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 +000025046 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25047 ;;
25048
25049 osf3*)
25050 if test "$GCC" = yes; then
25051 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25052 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'
25053 else
25054 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25055 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'
25056 fi
25057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25058 hardcode_libdir_separator_GCJ=:
25059 ;;
25060
25061 osf4* | osf5*) # as osf3* with the addition of -msym flag
25062 if test "$GCC" = yes; then
25063 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25064 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'
25065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25066 else
25067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25068 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 +000025069 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 +000025070 $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 +000025071
John Criswell47fdd832003-07-14 16:52:07 +000025072 # Both c and cxx compiler support -rpath directly
25073 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25074 fi
25075 hardcode_libdir_separator_GCJ=:
25076 ;;
25077
John Criswell47fdd832003-07-14 16:52:07 +000025078 solaris*)
25079 no_undefined_flag_GCJ=' -z text'
25080 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025081 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025082 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084 $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 +000025085 else
Reid Spencera773bd52006-08-04 18:18:08 +000025086 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089 $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 +000025090 fi
25091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092 hardcode_shlibpath_var_GCJ=no
25093 case $host_os in
25094 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025095 *)
25096 # The compiler driver will combine linker options so we
25097 # cannot just pass the convience library names through
25098 # without $wl, iff we do not link with $LD.
25099 # Luckily, gcc supports the same syntax we need for Sun Studio.
25100 # Supported since Solaris 2.6 (maybe 2.5.1?)
25101 case $wlarc in
25102 '')
25103 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25104 *)
25105 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' ;;
25106 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025107 esac
25108 link_all_deplibs_GCJ=yes
25109 ;;
25110
25111 sunos4*)
25112 if test "x$host_vendor" = xsequent; then
25113 # Use $CC to link under sequent, because it throws in some extra .o
25114 # files that make .init and .fini sections work.
25115 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25116 else
25117 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25118 fi
25119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25120 hardcode_direct_GCJ=yes
25121 hardcode_minus_L_GCJ=yes
25122 hardcode_shlibpath_var_GCJ=no
25123 ;;
25124
25125 sysv4)
25126 case $host_vendor in
25127 sni)
25128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129 hardcode_direct_GCJ=yes # is this really true???
25130 ;;
25131 siemens)
25132 ## LD is ld it makes a PLAMLIB
25133 ## CC just makes a GrossModule.
25134 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25135 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25136 hardcode_direct_GCJ=no
25137 ;;
25138 motorola)
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25141 ;;
25142 esac
25143 runpath_var='LD_RUN_PATH'
25144 hardcode_shlibpath_var_GCJ=no
25145 ;;
25146
25147 sysv4.3*)
25148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25149 hardcode_shlibpath_var_GCJ=no
25150 export_dynamic_flag_spec_GCJ='-Bexport'
25151 ;;
25152
25153 sysv4*MP*)
25154 if test -d /usr/nec; then
25155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25156 hardcode_shlibpath_var_GCJ=no
25157 runpath_var=LD_RUN_PATH
25158 hardcode_runpath_var=yes
25159 ld_shlibs_GCJ=yes
25160 fi
25161 ;;
25162
Reid Spencera773bd52006-08-04 18:18:08 +000025163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25164 no_undefined_flag_GCJ='${wl}-z,text'
25165 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025166 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025167 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025168
John Criswell47fdd832003-07-14 16:52:07 +000025169 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025170 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 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 +000025172 else
Reid Spencera773bd52006-08-04 18:18:08 +000025173 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174 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 +000025175 fi
John Criswell47fdd832003-07-14 16:52:07 +000025176 ;;
25177
Reid Spencera773bd52006-08-04 18:18:08 +000025178 sysv5* | sco3.2v5* | sco5v6*)
25179 # Note: We can NOT use -z defs as we might desire, because we do not
25180 # link with -lc, and that would cause any symbols used from libc to
25181 # always be unresolved, which means just about no library would
25182 # ever link correctly. If we're not using GNU ld we use -z text
25183 # though, which does catch some bad symbols but isn't as heavy-handed
25184 # as -z defs.
25185 no_undefined_flag_GCJ='${wl}-z,text'
25186 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25187 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025188 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025189 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25190 hardcode_libdir_separator_GCJ=':'
25191 link_all_deplibs_GCJ=yes
25192 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025193 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025194
25195 if test "$GCC" = yes; then
25196 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198 else
25199 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25201 fi
John Criswell47fdd832003-07-14 16:52:07 +000025202 ;;
25203
25204 uts4*)
25205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207 hardcode_shlibpath_var_GCJ=no
25208 ;;
25209
25210 *)
25211 ld_shlibs_GCJ=no
25212 ;;
25213 esac
25214 fi
25215
Reid Spencera773bd52006-08-04 18:18:08 +000025216{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25217echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025218test "$ld_shlibs_GCJ" = no && can_build_shared=no
25219
John Criswell47fdd832003-07-14 16:52:07 +000025220#
25221# Do we need to explicitly link libc?
25222#
25223case "x$archive_cmds_need_lc_GCJ" in
25224x|xyes)
25225 # Assume -lc should be added
25226 archive_cmds_need_lc_GCJ=yes
25227
25228 if test "$enable_shared" = yes && test "$GCC" = yes; then
25229 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025230 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025231 # FIXME: we may have to deal with multi-command sequences.
25232 ;;
25233 '$CC '*)
25234 # Test whether the compiler implicitly links with -lc since on some
25235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25236 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025237 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25238echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025239 $rm conftest*
25240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25241
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243 (eval $ac_compile) 2>&5
25244 ac_status=$?
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } 2>conftest.err; then
25247 soname=conftest
25248 lib=conftest
25249 libobjs=conftest.$ac_objext
25250 deplibs=
25251 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025252 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025253 compiler_flags=-v
25254 linker_flags=-v
25255 verstring=
25256 output_objdir=.
25257 libname=conftest
25258 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25259 allow_undefined_flag_GCJ=
25260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25261 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25262 ac_status=$?
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }
25265 then
25266 archive_cmds_need_lc_GCJ=no
25267 else
25268 archive_cmds_need_lc_GCJ=yes
25269 fi
25270 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25271 else
25272 cat conftest.err 1>&5
25273 fi
25274 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025275 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25276echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025277 ;;
25278 esac
25279 fi
25280 ;;
25281esac
25282
Reid Spencera773bd52006-08-04 18:18:08 +000025283{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25284echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025285library_names_spec=
25286libname_spec='lib$name'
25287soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025288shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025289postinstall_cmds=
25290postuninstall_cmds=
25291finish_cmds=
25292finish_eval=
25293shlibpath_var=
25294shlibpath_overrides_runpath=unknown
25295version_type=none
25296dynamic_linker="$host_os ld.so"
25297sys_lib_dlsearch_path_spec="/lib /usr/lib"
25298if test "$GCC" = yes; then
25299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25300 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25301 # if the path contains ";" then we assume it to be the separator
25302 # otherwise default to the standard path separator (i.e. ":") - it is
25303 # assumed that no part of a normal pathname contains ";" but that should
25304 # okay in the real world where ";" in dirpaths is itself problematic.
25305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25306 else
25307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25308 fi
25309else
25310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25311fi
25312need_lib_prefix=unknown
25313hardcode_into_libs=no
25314
25315# when you set need_version to no, make sure it does not cause -set_version
25316# flags to be left without arguments
25317need_version=unknown
25318
25319case $host_os in
25320aix3*)
25321 version_type=linux
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25323 shlibpath_var=LIBPATH
25324
25325 # AIX 3 has no versioning support, so we append a major version to the name.
25326 soname_spec='${libname}${release}${shared_ext}$major'
25327 ;;
25328
25329aix4* | aix5*)
25330 version_type=linux
25331 need_lib_prefix=no
25332 need_version=no
25333 hardcode_into_libs=yes
25334 if test "$host_cpu" = ia64; then
25335 # AIX 5 supports IA64
25336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25337 shlibpath_var=LD_LIBRARY_PATH
25338 else
25339 # With GCC up to 2.95.x, collect2 would create an import file
25340 # for dependence libraries. The import file would start with
25341 # the line `#! .'. This would cause the generated library to
25342 # depend on `.', always an invalid library. This was fixed in
25343 # development snapshots of GCC prior to 3.0.
25344 case $host_os in
25345 aix4 | aix4.[01] | aix4.[01].*)
25346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25347 echo ' yes '
25348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25349 :
25350 else
25351 can_build_shared=no
25352 fi
25353 ;;
25354 esac
25355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25356 # soname into executable. Probably we can add versioning support to
25357 # collect2, so additional links can be useful in future.
25358 if test "$aix_use_runtimelinking" = yes; then
25359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25360 # instead of lib<name>.a to let people know that these are not
25361 # typical AIX shared libraries.
25362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25363 else
25364 # We preserve .a as extension for shared libraries through AIX4.2
25365 # and later when we are not doing run time linking.
25366 library_names_spec='${libname}${release}.a $libname.a'
25367 soname_spec='${libname}${release}${shared_ext}$major'
25368 fi
25369 shlibpath_var=LIBPATH
25370 fi
25371 ;;
25372
25373amigaos*)
25374 library_names_spec='$libname.ixlibrary $libname.a'
25375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025376 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 +000025377 ;;
25378
25379beos*)
25380 library_names_spec='${libname}${shared_ext}'
25381 dynamic_linker="$host_os ld.so"
25382 shlibpath_var=LIBRARY_PATH
25383 ;;
25384
Reid Spencer2706f8c2004-09-19 23:53:36 +000025385bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025386 version_type=linux
25387 need_version=no
25388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25389 soname_spec='${libname}${release}${shared_ext}$major'
25390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25394 # the default ld.so.conf also contains /usr/contrib/lib and
25395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25396 # libtool to hard-code these into programs
25397 ;;
25398
25399cygwin* | mingw* | pw32*)
25400 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025401 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025402 need_version=no
25403 need_lib_prefix=no
25404
25405 case $GCC,$host_os in
25406 yes,cygwin* | yes,mingw* | yes,pw32*)
25407 library_names_spec='$libname.dll.a'
25408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025409 postinstall_cmds='base_file=`basename \${file}`~
25410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25411 dldir=$destdir/`dirname \$dlpath`~
25412 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025413 $install_prog $dir/$dlname \$dldir/$dlname~
25414 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25416 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025417 $rm \$dlpath'
25418 shlibpath_overrides_runpath=yes
25419
25420 case $host_os in
25421 cygwin*)
25422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25423 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 +000025424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025425 ;;
25426 mingw*)
25427 # MinGW DLLs use traditional 'lib' prefix
25428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25431 # It is most probably a Windows format PATH printed by
25432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25433 # path with ; separators, and with drive letters. We can handle the
25434 # drive letters (cygwin fileutils understands them), so leave them,
25435 # especially as we might pass files found there to a mingw objdump,
25436 # which wouldn't understand a cygwinified path. Ahh.
25437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25438 else
25439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25440 fi
25441 ;;
25442 pw32*)
25443 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025444 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 +000025445 ;;
25446 esac
25447 ;;
25448
25449 *)
25450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25451 ;;
25452 esac
25453 dynamic_linker='Win32 ld.exe'
25454 # FIXME: first we should search . and the directory the executable is in
25455 shlibpath_var=PATH
25456 ;;
25457
25458darwin* | rhapsody*)
25459 dynamic_linker="$host_os dyld"
25460 version_type=darwin
25461 need_lib_prefix=no
25462 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025464 soname_spec='${libname}${release}${major}$shared_ext'
25465 shlibpath_overrides_runpath=yes
25466 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025467 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025468 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025469 if test "$GCC" = yes; then
25470 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"`
25471 else
25472 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025473 fi
25474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25475 ;;
25476
25477dgux*)
25478 version_type=linux
25479 need_lib_prefix=no
25480 need_version=no
25481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25482 soname_spec='${libname}${release}${shared_ext}$major'
25483 shlibpath_var=LD_LIBRARY_PATH
25484 ;;
25485
25486freebsd1*)
25487 dynamic_linker=no
25488 ;;
25489
Reid Spencer2706f8c2004-09-19 23:53:36 +000025490kfreebsd*-gnu)
25491 version_type=linux
25492 need_lib_prefix=no
25493 need_version=no
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25495 soname_spec='${libname}${release}${shared_ext}$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 shlibpath_overrides_runpath=no
25498 hardcode_into_libs=yes
25499 dynamic_linker='GNU ld.so'
25500 ;;
25501
Reid Spencera773bd52006-08-04 18:18:08 +000025502freebsd* | dragonfly*)
25503 # DragonFly does not have aout. When/if they implement a new
25504 # versioning mechanism, adjust this.
25505 if test -x /usr/bin/objformat; then
25506 objformat=`/usr/bin/objformat`
25507 else
25508 case $host_os in
25509 freebsd[123]*) objformat=aout ;;
25510 *) objformat=elf ;;
25511 esac
25512 fi
John Criswell47fdd832003-07-14 16:52:07 +000025513 version_type=freebsd-$objformat
25514 case $version_type in
25515 freebsd-elf*)
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25517 need_version=no
25518 need_lib_prefix=no
25519 ;;
25520 freebsd-*)
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25522 need_version=yes
25523 ;;
25524 esac
25525 shlibpath_var=LD_LIBRARY_PATH
25526 case $host_os in
25527 freebsd2*)
25528 shlibpath_overrides_runpath=yes
25529 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025530 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025531 shlibpath_overrides_runpath=yes
25532 hardcode_into_libs=yes
25533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025536 shlibpath_overrides_runpath=no
25537 hardcode_into_libs=yes
25538 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025539 freebsd*) # from 4.6 on
25540 shlibpath_overrides_runpath=yes
25541 hardcode_into_libs=yes
25542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025543 esac
25544 ;;
25545
25546gnu*)
25547 version_type=linux
25548 need_lib_prefix=no
25549 need_version=no
25550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25551 soname_spec='${libname}${release}${shared_ext}$major'
25552 shlibpath_var=LD_LIBRARY_PATH
25553 hardcode_into_libs=yes
25554 ;;
25555
25556hpux9* | hpux10* | hpux11*)
25557 # Give a soname corresponding to the major version so that dld.sl refuses to
25558 # link against other versions.
25559 version_type=sunos
25560 need_lib_prefix=no
25561 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025562 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025563 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025564 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025565 hardcode_into_libs=yes
25566 dynamic_linker="$host_os dld.so"
25567 shlibpath_var=LD_LIBRARY_PATH
25568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 if test "X$HPUX_IA64_MODE" = X32; then
25572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25573 else
25574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25575 fi
25576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25577 ;;
25578 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025579 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025580 hardcode_into_libs=yes
25581 dynamic_linker="$host_os dld.sl"
25582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585 soname_spec='${libname}${release}${shared_ext}$major'
25586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25588 ;;
25589 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025590 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025591 dynamic_linker="$host_os dld.sl"
25592 shlibpath_var=SHLIB_PATH
25593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25595 soname_spec='${libname}${release}${shared_ext}$major'
25596 ;;
25597 esac
25598 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25599 postinstall_cmds='chmod 555 $lib'
25600 ;;
25601
Reid Spencera773bd52006-08-04 18:18:08 +000025602interix3*)
25603 version_type=linux
25604 need_lib_prefix=no
25605 need_version=no
25606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25607 soname_spec='${libname}${release}${shared_ext}$major'
25608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 shlibpath_overrides_runpath=no
25611 hardcode_into_libs=yes
25612 ;;
25613
John Criswell47fdd832003-07-14 16:52:07 +000025614irix5* | irix6* | nonstopux*)
25615 case $host_os in
25616 nonstopux*) version_type=nonstopux ;;
25617 *)
25618 if test "$lt_cv_prog_gnu_ld" = yes; then
25619 version_type=linux
25620 else
25621 version_type=irix
25622 fi ;;
25623 esac
25624 need_lib_prefix=no
25625 need_version=no
25626 soname_spec='${libname}${release}${shared_ext}$major'
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25628 case $host_os in
25629 irix5* | nonstopux*)
25630 libsuff= shlibsuff=
25631 ;;
25632 *)
25633 case $LD in # libtool.m4 will add one of these switches to LD
25634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25635 libsuff= shlibsuff= libmagic=32-bit;;
25636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25637 libsuff=32 shlibsuff=N32 libmagic=N32;;
25638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25639 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25640 *) libsuff= shlibsuff= libmagic=never-match;;
25641 esac
25642 ;;
25643 esac
25644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25645 shlibpath_overrides_runpath=no
25646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25648 hardcode_into_libs=yes
25649 ;;
25650
25651# No shared lib support for Linux oldld, aout, or coff.
25652linux*oldld* | linux*aout* | linux*coff*)
25653 dynamic_linker=no
25654 ;;
25655
25656# This must be Linux ELF.
25657linux*)
25658 version_type=linux
25659 need_lib_prefix=no
25660 need_version=no
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25664 shlibpath_var=LD_LIBRARY_PATH
25665 shlibpath_overrides_runpath=no
25666 # This implies no fast_install, which is unacceptable.
25667 # Some rework will be needed to allow for fast_install
25668 # before this can be enabled.
25669 hardcode_into_libs=yes
25670
Reid Spencer2706f8c2004-09-19 23:53:36 +000025671 # Append ld.so.conf contents to the search path
25672 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025673 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 +000025674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25675 fi
25676
John Criswell47fdd832003-07-14 16:52:07 +000025677 # We used to test for /lib/ld.so.1 and disable shared libraries on
25678 # powerpc, because MkLinux only supported shared libraries with the
25679 # GNU dynamic linker. Since this was broken with cross compilers,
25680 # most powerpc-linux boxes support dynamic linking these days and
25681 # people can always --disable-shared, the test was removed, and we
25682 # assume the GNU/Linux dynamic linker is in use.
25683 dynamic_linker='GNU/Linux ld.so'
25684 ;;
25685
Reid Spencer2706f8c2004-09-19 23:53:36 +000025686knetbsd*-gnu)
25687 version_type=linux
25688 need_lib_prefix=no
25689 need_version=no
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=no
25694 hardcode_into_libs=yes
25695 dynamic_linker='GNU ld.so'
25696 ;;
25697
John Criswell47fdd832003-07-14 16:52:07 +000025698netbsd*)
25699 version_type=sunos
25700 need_lib_prefix=no
25701 need_version=no
25702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25705 dynamic_linker='NetBSD (a.out) ld.so'
25706 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025708 soname_spec='${libname}${release}${shared_ext}$major'
25709 dynamic_linker='NetBSD ld.elf_so'
25710 fi
25711 shlibpath_var=LD_LIBRARY_PATH
25712 shlibpath_overrides_runpath=yes
25713 hardcode_into_libs=yes
25714 ;;
25715
25716newsos6)
25717 version_type=linux
25718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25719 shlibpath_var=LD_LIBRARY_PATH
25720 shlibpath_overrides_runpath=yes
25721 ;;
25722
Reid Spencer2706f8c2004-09-19 23:53:36 +000025723nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025724 version_type=linux
25725 need_lib_prefix=no
25726 need_version=no
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728 soname_spec='${libname}${release}${shared_ext}$major'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25731 ;;
25732
25733openbsd*)
25734 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025735 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025736 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25738 case $host_os in
25739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25740 *) need_version=no ;;
25741 esac
John Criswell47fdd832003-07-14 16:52:07 +000025742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25744 shlibpath_var=LD_LIBRARY_PATH
25745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25746 case $host_os in
25747 openbsd2.[89] | openbsd2.[89].*)
25748 shlibpath_overrides_runpath=no
25749 ;;
25750 *)
25751 shlibpath_overrides_runpath=yes
25752 ;;
25753 esac
25754 else
25755 shlibpath_overrides_runpath=yes
25756 fi
25757 ;;
25758
25759os2*)
25760 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025761 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025762 need_lib_prefix=no
25763 library_names_spec='$libname${shared_ext} $libname.a'
25764 dynamic_linker='OS/2 ld.exe'
25765 shlibpath_var=LIBPATH
25766 ;;
25767
25768osf3* | osf4* | osf5*)
25769 version_type=osf
25770 need_lib_prefix=no
25771 need_version=no
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25774 shlibpath_var=LD_LIBRARY_PATH
25775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25777 ;;
25778
John Criswell47fdd832003-07-14 16:52:07 +000025779solaris*)
25780 version_type=linux
25781 need_lib_prefix=no
25782 need_version=no
25783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25784 soname_spec='${libname}${release}${shared_ext}$major'
25785 shlibpath_var=LD_LIBRARY_PATH
25786 shlibpath_overrides_runpath=yes
25787 hardcode_into_libs=yes
25788 # ldd complains unless libraries are executable
25789 postinstall_cmds='chmod +x $lib'
25790 ;;
25791
25792sunos4*)
25793 version_type=sunos
25794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25796 shlibpath_var=LD_LIBRARY_PATH
25797 shlibpath_overrides_runpath=yes
25798 if test "$with_gnu_ld" = yes; then
25799 need_lib_prefix=no
25800 fi
25801 need_version=yes
25802 ;;
25803
Reid Spencera773bd52006-08-04 18:18:08 +000025804sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025805 version_type=linux
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 shlibpath_var=LD_LIBRARY_PATH
25809 case $host_vendor in
25810 sni)
25811 shlibpath_overrides_runpath=no
25812 need_lib_prefix=no
25813 export_dynamic_flag_spec='${wl}-Blargedynsym'
25814 runpath_var=LD_RUN_PATH
25815 ;;
25816 siemens)
25817 need_lib_prefix=no
25818 ;;
25819 motorola)
25820 need_lib_prefix=no
25821 need_version=no
25822 shlibpath_overrides_runpath=no
25823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25824 ;;
25825 esac
25826 ;;
25827
25828sysv4*MP*)
25829 if test -d /usr/nec ;then
25830 version_type=linux
25831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25832 soname_spec='$libname${shared_ext}.$major'
25833 shlibpath_var=LD_LIBRARY_PATH
25834 fi
25835 ;;
25836
Reid Spencera773bd52006-08-04 18:18:08 +000025837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25838 version_type=freebsd-elf
25839 need_lib_prefix=no
25840 need_version=no
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25844 hardcode_into_libs=yes
25845 if test "$with_gnu_ld" = yes; then
25846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25847 shlibpath_overrides_runpath=no
25848 else
25849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25850 shlibpath_overrides_runpath=yes
25851 case $host_os in
25852 sco3.2v5*)
25853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25854 ;;
25855 esac
25856 fi
25857 sys_lib_dlsearch_path_spec='/usr/lib'
25858 ;;
25859
John Criswell47fdd832003-07-14 16:52:07 +000025860uts4*)
25861 version_type=linux
25862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863 soname_spec='${libname}${release}${shared_ext}$major'
25864 shlibpath_var=LD_LIBRARY_PATH
25865 ;;
25866
25867*)
25868 dynamic_linker=no
25869 ;;
25870esac
Reid Spencera773bd52006-08-04 18:18:08 +000025871{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25872echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025873test "$dynamic_linker" = no && can_build_shared=no
25874
Reid Spencera773bd52006-08-04 18:18:08 +000025875variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25876if test "$GCC" = yes; then
25877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25878fi
25879
25880{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25881echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025882hardcode_action_GCJ=
25883if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25884 test -n "$runpath_var_GCJ" || \
25885 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25886
25887 # We can hardcode non-existant directories.
25888 if test "$hardcode_direct_GCJ" != no &&
25889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25890 # have to relink, otherwise we might link with an installed library
25891 # when we should be linking with a yet-to-be-installed one
25892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25893 test "$hardcode_minus_L_GCJ" != no; then
25894 # Linking always hardcodes the temporary library directory.
25895 hardcode_action_GCJ=relink
25896 else
25897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25898 hardcode_action_GCJ=immediate
25899 fi
25900else
25901 # We cannot hardcode anything, or else we can only hardcode existing
25902 # directories.
25903 hardcode_action_GCJ=unsupported
25904fi
Reid Spencera773bd52006-08-04 18:18:08 +000025905{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25906echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025907
25908if test "$hardcode_action_GCJ" = relink; then
25909 # Fast installation is not supported
25910 enable_fast_install=no
25911elif test "$shlibpath_overrides_runpath" = yes ||
25912 test "$enable_shared" = no; then
25913 # Fast installation is not necessary
25914 enable_fast_install=needless
25915fi
25916
John Criswell47fdd832003-07-14 16:52:07 +000025917
25918# The else clause should only fire when bootstrapping the
25919# libtool distribution, otherwise you forgot to ship ltmain.sh
25920# with your package, and you will get complaints that there are
25921# no rules to generate ltmain.sh.
25922if test -f "$ltmain"; then
25923 # See if we are running on zsh, and set the options which allow our commands through
25924 # without removal of \ escapes.
25925 if test -n "${ZSH_VERSION+set}" ; then
25926 setopt NO_GLOB_SUBST
25927 fi
25928 # Now quote all the things that may contain metacharacters while being
25929 # careful not to overquote the AC_SUBSTed values. We take copies of the
25930 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025931 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 +000025932 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25935 deplibs_check_method reload_flag reload_cmds need_locks \
25936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25937 lt_cv_sys_global_symbol_to_c_name_address \
25938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25939 old_postinstall_cmds old_postuninstall_cmds \
25940 compiler_GCJ \
25941 CC_GCJ \
25942 LD_GCJ \
25943 lt_prog_compiler_wl_GCJ \
25944 lt_prog_compiler_pic_GCJ \
25945 lt_prog_compiler_static_GCJ \
25946 lt_prog_compiler_no_builtin_flag_GCJ \
25947 export_dynamic_flag_spec_GCJ \
25948 thread_safe_flag_spec_GCJ \
25949 whole_archive_flag_spec_GCJ \
25950 enable_shared_with_static_runtimes_GCJ \
25951 old_archive_cmds_GCJ \
25952 old_archive_from_new_cmds_GCJ \
25953 predep_objects_GCJ \
25954 postdep_objects_GCJ \
25955 predeps_GCJ \
25956 postdeps_GCJ \
25957 compiler_lib_search_path_GCJ \
25958 archive_cmds_GCJ \
25959 archive_expsym_cmds_GCJ \
25960 postinstall_cmds_GCJ \
25961 postuninstall_cmds_GCJ \
25962 old_archive_from_expsyms_cmds_GCJ \
25963 allow_undefined_flag_GCJ \
25964 no_undefined_flag_GCJ \
25965 export_symbols_cmds_GCJ \
25966 hardcode_libdir_flag_spec_GCJ \
25967 hardcode_libdir_flag_spec_ld_GCJ \
25968 hardcode_libdir_separator_GCJ \
25969 hardcode_automatic_GCJ \
25970 module_cmds_GCJ \
25971 module_expsym_cmds_GCJ \
25972 lt_cv_prog_compiler_c_o_GCJ \
25973 exclude_expsyms_GCJ \
25974 include_expsyms_GCJ; do
25975
25976 case $var in
25977 old_archive_cmds_GCJ | \
25978 old_archive_from_new_cmds_GCJ | \
25979 archive_cmds_GCJ | \
25980 archive_expsym_cmds_GCJ | \
25981 module_cmds_GCJ | \
25982 module_expsym_cmds_GCJ | \
25983 old_archive_from_expsyms_cmds_GCJ | \
25984 export_symbols_cmds_GCJ | \
25985 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25986 postinstall_cmds | postuninstall_cmds | \
25987 old_postinstall_cmds | old_postuninstall_cmds | \
25988 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25989 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025990 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 +000025991 ;;
25992 *)
25993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25994 ;;
25995 esac
25996 done
25997
25998 case $lt_echo in
25999 *'\$0 --fallback-echo"')
26000 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26001 ;;
26002 esac
26003
26004cfgfile="$ofile"
26005
26006 cat <<__EOF__ >> "$cfgfile"
26007# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26008
26009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26010
26011# Shell to use when invoking shell scripts.
26012SHELL=$lt_SHELL
26013
26014# Whether or not to build shared libraries.
26015build_libtool_libs=$enable_shared
26016
26017# Whether or not to build static libraries.
26018build_old_libs=$enable_static
26019
26020# Whether or not to add -lc for building shared libraries.
26021build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26022
26023# Whether or not to disallow shared libs when runtime libs are static
26024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26025
26026# Whether or not to optimize for fast installation.
26027fast_install=$enable_fast_install
26028
26029# The host system.
26030host_alias=$host_alias
26031host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026032host_os=$host_os
26033
26034# The build system.
26035build_alias=$build_alias
26036build=$build
26037build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026038
26039# An echo program that does not interpret backslashes.
26040echo=$lt_echo
26041
26042# The archiver.
26043AR=$lt_AR
26044AR_FLAGS=$lt_AR_FLAGS
26045
26046# A C compiler.
26047LTCC=$lt_LTCC
26048
Reid Spencera773bd52006-08-04 18:18:08 +000026049# LTCC compiler flags.
26050LTCFLAGS=$lt_LTCFLAGS
26051
John Criswell47fdd832003-07-14 16:52:07 +000026052# A language-specific compiler.
26053CC=$lt_compiler_GCJ
26054
26055# Is the compiler the GNU C compiler?
26056with_gcc=$GCC_GCJ
26057
26058# An ERE matcher.
26059EGREP=$lt_EGREP
26060
26061# The linker used to build libraries.
26062LD=$lt_LD_GCJ
26063
26064# Whether we need hard or soft links.
26065LN_S=$lt_LN_S
26066
26067# A BSD-compatible nm program.
26068NM=$lt_NM
26069
26070# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026071STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026072
26073# Used to examine libraries when file_magic_cmd begins "file"
26074MAGIC_CMD=$MAGIC_CMD
26075
26076# Used on cygwin: DLL creation program.
26077DLLTOOL="$DLLTOOL"
26078
26079# Used on cygwin: object dumper.
26080OBJDUMP="$OBJDUMP"
26081
26082# Used on cygwin: assembler.
26083AS="$AS"
26084
26085# The name of the directory that contains temporary libtool files.
26086objdir=$objdir
26087
26088# How to create reloadable object files.
26089reload_flag=$lt_reload_flag
26090reload_cmds=$lt_reload_cmds
26091
26092# How to pass a linker flag through the compiler.
26093wl=$lt_lt_prog_compiler_wl_GCJ
26094
26095# Object file suffix (normally "o").
26096objext="$ac_objext"
26097
26098# Old archive suffix (normally "a").
26099libext="$libext"
26100
26101# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026102shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026103
26104# Executable file suffix (normally "").
26105exeext="$exeext"
26106
26107# Additional compiler flags for building library objects.
26108pic_flag=$lt_lt_prog_compiler_pic_GCJ
26109pic_mode=$pic_mode
26110
26111# What is the maximum length of a command?
26112max_cmd_len=$lt_cv_sys_max_cmd_len
26113
26114# Does compiler simultaneously support -c and -o options?
26115compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26116
Reid Spencera773bd52006-08-04 18:18:08 +000026117# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026118need_locks=$lt_need_locks
26119
26120# Do we need the lib prefix for modules?
26121need_lib_prefix=$need_lib_prefix
26122
26123# Do we need a version for libraries?
26124need_version=$need_version
26125
26126# Whether dlopen is supported.
26127dlopen_support=$enable_dlopen
26128
26129# Whether dlopen of programs is supported.
26130dlopen_self=$enable_dlopen_self
26131
26132# Whether dlopen of statically linked programs is supported.
26133dlopen_self_static=$enable_dlopen_self_static
26134
26135# Compiler flag to prevent dynamic linking.
26136link_static_flag=$lt_lt_prog_compiler_static_GCJ
26137
26138# Compiler flag to turn off builtin functions.
26139no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26140
26141# Compiler flag to allow reflexive dlopens.
26142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26143
26144# Compiler flag to generate shared objects directly from archives.
26145whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26146
26147# Compiler flag to generate thread-safe objects.
26148thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26149
26150# Library versioning type.
26151version_type=$version_type
26152
26153# Format of library name prefix.
26154libname_spec=$lt_libname_spec
26155
26156# List of archive names. First name is the real one, the rest are links.
26157# The last name is the one that the linker finds with -lNAME.
26158library_names_spec=$lt_library_names_spec
26159
26160# The coded name of the library, if different from the real name.
26161soname_spec=$lt_soname_spec
26162
26163# Commands used to build and install an old-style archive.
26164RANLIB=$lt_RANLIB
26165old_archive_cmds=$lt_old_archive_cmds_GCJ
26166old_postinstall_cmds=$lt_old_postinstall_cmds
26167old_postuninstall_cmds=$lt_old_postuninstall_cmds
26168
26169# Create an old-style archive from a shared archive.
26170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26171
26172# Create a temporary old-style archive to link instead of a shared archive.
26173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26174
26175# Commands used to build and install a shared archive.
26176archive_cmds=$lt_archive_cmds_GCJ
26177archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26178postinstall_cmds=$lt_postinstall_cmds
26179postuninstall_cmds=$lt_postuninstall_cmds
26180
26181# Commands used to build a loadable module (assumed same as above if empty)
26182module_cmds=$lt_module_cmds_GCJ
26183module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26184
26185# Commands to strip libraries.
26186old_striplib=$lt_old_striplib
26187striplib=$lt_striplib
26188
26189# Dependencies to place before the objects being linked to create a
26190# shared library.
26191predep_objects=$lt_predep_objects_GCJ
26192
26193# Dependencies to place after the objects being linked to create a
26194# shared library.
26195postdep_objects=$lt_postdep_objects_GCJ
26196
26197# Dependencies to place before the objects being linked to create a
26198# shared library.
26199predeps=$lt_predeps_GCJ
26200
26201# Dependencies to place after the objects being linked to create a
26202# shared library.
26203postdeps=$lt_postdeps_GCJ
26204
26205# The library search path used internally by the compiler when linking
26206# a shared library.
26207compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26208
26209# Method to check whether dependent libraries are shared objects.
26210deplibs_check_method=$lt_deplibs_check_method
26211
26212# Command to use when deplibs_check_method == file_magic.
26213file_magic_cmd=$lt_file_magic_cmd
26214
26215# Flag that allows shared libraries with undefined symbols to be built.
26216allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26217
26218# Flag that forces no undefined symbols.
26219no_undefined_flag=$lt_no_undefined_flag_GCJ
26220
26221# Commands used to finish a libtool library installation in a directory.
26222finish_cmds=$lt_finish_cmds
26223
26224# Same as above, but a single script fragment to be evaled but not shown.
26225finish_eval=$lt_finish_eval
26226
26227# Take the output of nm and produce a listing of raw symbols and C names.
26228global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26229
26230# Transform the output of nm in a proper C declaration
26231global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26232
26233# Transform the output of nm in a C name address pair
26234global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26235
26236# This is the shared library runtime path variable.
26237runpath_var=$runpath_var
26238
26239# This is the shared library path variable.
26240shlibpath_var=$shlibpath_var
26241
26242# Is shlibpath searched before the hard-coded library search path?
26243shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26244
26245# How to hardcode a shared library path into an executable.
26246hardcode_action=$hardcode_action_GCJ
26247
26248# Whether we should hardcode library paths into libraries.
26249hardcode_into_libs=$hardcode_into_libs
26250
26251# Flag to hardcode \$libdir into a binary during linking.
26252# This must work even if \$libdir does not exist.
26253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26254
26255# If ld is used when linking, flag to hardcode \$libdir into
26256# a binary during linking. This must work even if \$libdir does
26257# not exist.
26258hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26259
26260# Whether we need a single -rpath flag with a separated argument.
26261hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26262
26263# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26264# resulting binary.
26265hardcode_direct=$hardcode_direct_GCJ
26266
26267# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26268# resulting binary.
26269hardcode_minus_L=$hardcode_minus_L_GCJ
26270
26271# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26272# the resulting binary.
26273hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26274
26275# Set to yes if building a shared library automatically hardcodes DIR into the library
26276# and all subsequent libraries and executables linked against it.
26277hardcode_automatic=$hardcode_automatic_GCJ
26278
26279# Variables whose values should be saved in libtool wrapper scripts and
26280# restored at relink time.
26281variables_saved_for_relink="$variables_saved_for_relink"
26282
26283# Whether libtool must link a program against all its dependency libraries.
26284link_all_deplibs=$link_all_deplibs_GCJ
26285
26286# Compile-time system search path for libraries
26287sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26288
26289# Run-time system search path for libraries
26290sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26291
26292# Fix the shell variable \$srcfile for the compiler.
26293fix_srcfile_path="$fix_srcfile_path_GCJ"
26294
26295# Set to yes if exported symbols are required.
26296always_export_symbols=$always_export_symbols_GCJ
26297
26298# The commands to list exported symbols.
26299export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26300
26301# The commands to extract the exported symbol list from a shared archive.
26302extract_expsyms_cmds=$lt_extract_expsyms_cmds
26303
26304# Symbols that should not be listed in the preloaded symbols.
26305exclude_expsyms=$lt_exclude_expsyms_GCJ
26306
26307# Symbols that must always be exported.
26308include_expsyms=$lt_include_expsyms_GCJ
26309
26310# ### END LIBTOOL TAG CONFIG: $tagname
26311
26312__EOF__
26313
26314
26315else
26316 # If there is no Makefile yet, we rely on a make rule to execute
26317 # `config.status --recheck' to rerun these tests and create the
26318 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26320 if test -f "$ltmain_in"; then
26321 test -f Makefile && make "$ltmain"
26322 fi
John Criswell47fdd832003-07-14 16:52:07 +000026323fi
26324
26325
26326ac_ext=c
26327ac_cpp='$CPP $CPPFLAGS'
26328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26330ac_compiler_gnu=$ac_cv_c_compiler_gnu
26331
26332CC="$lt_save_CC"
26333
26334 else
26335 tagname=""
26336 fi
26337 ;;
26338
26339 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026340 ac_ext=c
26341ac_cpp='$CPP $CPPFLAGS'
26342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26344ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026345
26346
26347# Source file extension for RC test sources.
26348ac_ext=rc
26349
26350# Object file extension for compiled RC test sources.
26351objext=o
26352objext_RC=$objext
26353
26354# Code to be used in simple compile tests
26355lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26356
26357# Code to be used in simple link tests
26358lt_simple_link_test_code="$lt_simple_compile_test_code"
26359
26360# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26361
26362# If no C compiler was specified, use CC.
26363LTCC=${LTCC-"$CC"}
26364
Reid Spencera773bd52006-08-04 18:18:08 +000026365# If no C compiler flags were specified, use CFLAGS.
26366LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26367
John Criswell47fdd832003-07-14 16:52:07 +000026368# Allow CC to be a program name with arguments.
26369compiler=$CC
26370
26371
Reid Spencera773bd52006-08-04 18:18:08 +000026372# save warnings/boilerplate of simple test code
26373ac_outfile=conftest.$ac_objext
26374printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376_lt_compiler_boilerplate=`cat conftest.err`
26377$rm conftest*
26378
26379ac_outfile=conftest.$ac_objext
26380printf "$lt_simple_link_test_code" >conftest.$ac_ext
26381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26382_lt_linker_boilerplate=`cat conftest.err`
26383$rm conftest*
26384
26385
John Criswell47fdd832003-07-14 16:52:07 +000026386# Allow CC to be a program name with arguments.
26387lt_save_CC="$CC"
26388CC=${RC-"windres"}
26389compiler=$CC
26390compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026391for cc_temp in $compiler""; do
26392 case $cc_temp in
26393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26395 \-*) ;;
26396 *) break;;
26397 esac
26398done
26399cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26400
John Criswell47fdd832003-07-14 16:52:07 +000026401lt_cv_prog_compiler_c_o_RC=yes
26402
26403# The else clause should only fire when bootstrapping the
26404# libtool distribution, otherwise you forgot to ship ltmain.sh
26405# with your package, and you will get complaints that there are
26406# no rules to generate ltmain.sh.
26407if test -f "$ltmain"; then
26408 # See if we are running on zsh, and set the options which allow our commands through
26409 # without removal of \ escapes.
26410 if test -n "${ZSH_VERSION+set}" ; then
26411 setopt NO_GLOB_SUBST
26412 fi
26413 # Now quote all the things that may contain metacharacters while being
26414 # careful not to overquote the AC_SUBSTed values. We take copies of the
26415 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026416 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 +000026417 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26420 deplibs_check_method reload_flag reload_cmds need_locks \
26421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26422 lt_cv_sys_global_symbol_to_c_name_address \
26423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26424 old_postinstall_cmds old_postuninstall_cmds \
26425 compiler_RC \
26426 CC_RC \
26427 LD_RC \
26428 lt_prog_compiler_wl_RC \
26429 lt_prog_compiler_pic_RC \
26430 lt_prog_compiler_static_RC \
26431 lt_prog_compiler_no_builtin_flag_RC \
26432 export_dynamic_flag_spec_RC \
26433 thread_safe_flag_spec_RC \
26434 whole_archive_flag_spec_RC \
26435 enable_shared_with_static_runtimes_RC \
26436 old_archive_cmds_RC \
26437 old_archive_from_new_cmds_RC \
26438 predep_objects_RC \
26439 postdep_objects_RC \
26440 predeps_RC \
26441 postdeps_RC \
26442 compiler_lib_search_path_RC \
26443 archive_cmds_RC \
26444 archive_expsym_cmds_RC \
26445 postinstall_cmds_RC \
26446 postuninstall_cmds_RC \
26447 old_archive_from_expsyms_cmds_RC \
26448 allow_undefined_flag_RC \
26449 no_undefined_flag_RC \
26450 export_symbols_cmds_RC \
26451 hardcode_libdir_flag_spec_RC \
26452 hardcode_libdir_flag_spec_ld_RC \
26453 hardcode_libdir_separator_RC \
26454 hardcode_automatic_RC \
26455 module_cmds_RC \
26456 module_expsym_cmds_RC \
26457 lt_cv_prog_compiler_c_o_RC \
26458 exclude_expsyms_RC \
26459 include_expsyms_RC; do
26460
26461 case $var in
26462 old_archive_cmds_RC | \
26463 old_archive_from_new_cmds_RC | \
26464 archive_cmds_RC | \
26465 archive_expsym_cmds_RC | \
26466 module_cmds_RC | \
26467 module_expsym_cmds_RC | \
26468 old_archive_from_expsyms_cmds_RC | \
26469 export_symbols_cmds_RC | \
26470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26471 postinstall_cmds | postuninstall_cmds | \
26472 old_postinstall_cmds | old_postuninstall_cmds | \
26473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26474 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026475 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 +000026476 ;;
26477 *)
26478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26479 ;;
26480 esac
26481 done
26482
26483 case $lt_echo in
26484 *'\$0 --fallback-echo"')
26485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26486 ;;
26487 esac
26488
26489cfgfile="$ofile"
26490
26491 cat <<__EOF__ >> "$cfgfile"
26492# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26493
26494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26495
26496# Shell to use when invoking shell scripts.
26497SHELL=$lt_SHELL
26498
26499# Whether or not to build shared libraries.
26500build_libtool_libs=$enable_shared
26501
26502# Whether or not to build static libraries.
26503build_old_libs=$enable_static
26504
26505# Whether or not to add -lc for building shared libraries.
26506build_libtool_need_lc=$archive_cmds_need_lc_RC
26507
26508# Whether or not to disallow shared libs when runtime libs are static
26509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26510
26511# Whether or not to optimize for fast installation.
26512fast_install=$enable_fast_install
26513
26514# The host system.
26515host_alias=$host_alias
26516host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026517host_os=$host_os
26518
26519# The build system.
26520build_alias=$build_alias
26521build=$build
26522build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026523
26524# An echo program that does not interpret backslashes.
26525echo=$lt_echo
26526
26527# The archiver.
26528AR=$lt_AR
26529AR_FLAGS=$lt_AR_FLAGS
26530
26531# A C compiler.
26532LTCC=$lt_LTCC
26533
Reid Spencera773bd52006-08-04 18:18:08 +000026534# LTCC compiler flags.
26535LTCFLAGS=$lt_LTCFLAGS
26536
John Criswell47fdd832003-07-14 16:52:07 +000026537# A language-specific compiler.
26538CC=$lt_compiler_RC
26539
26540# Is the compiler the GNU C compiler?
26541with_gcc=$GCC_RC
26542
26543# An ERE matcher.
26544EGREP=$lt_EGREP
26545
26546# The linker used to build libraries.
26547LD=$lt_LD_RC
26548
26549# Whether we need hard or soft links.
26550LN_S=$lt_LN_S
26551
26552# A BSD-compatible nm program.
26553NM=$lt_NM
26554
26555# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026556STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026557
26558# Used to examine libraries when file_magic_cmd begins "file"
26559MAGIC_CMD=$MAGIC_CMD
26560
26561# Used on cygwin: DLL creation program.
26562DLLTOOL="$DLLTOOL"
26563
26564# Used on cygwin: object dumper.
26565OBJDUMP="$OBJDUMP"
26566
26567# Used on cygwin: assembler.
26568AS="$AS"
26569
26570# The name of the directory that contains temporary libtool files.
26571objdir=$objdir
26572
26573# How to create reloadable object files.
26574reload_flag=$lt_reload_flag
26575reload_cmds=$lt_reload_cmds
26576
26577# How to pass a linker flag through the compiler.
26578wl=$lt_lt_prog_compiler_wl_RC
26579
26580# Object file suffix (normally "o").
26581objext="$ac_objext"
26582
26583# Old archive suffix (normally "a").
26584libext="$libext"
26585
26586# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026587shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026588
26589# Executable file suffix (normally "").
26590exeext="$exeext"
26591
26592# Additional compiler flags for building library objects.
26593pic_flag=$lt_lt_prog_compiler_pic_RC
26594pic_mode=$pic_mode
26595
26596# What is the maximum length of a command?
26597max_cmd_len=$lt_cv_sys_max_cmd_len
26598
26599# Does compiler simultaneously support -c and -o options?
26600compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26601
Reid Spencera773bd52006-08-04 18:18:08 +000026602# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026603need_locks=$lt_need_locks
26604
26605# Do we need the lib prefix for modules?
26606need_lib_prefix=$need_lib_prefix
26607
26608# Do we need a version for libraries?
26609need_version=$need_version
26610
26611# Whether dlopen is supported.
26612dlopen_support=$enable_dlopen
26613
26614# Whether dlopen of programs is supported.
26615dlopen_self=$enable_dlopen_self
26616
26617# Whether dlopen of statically linked programs is supported.
26618dlopen_self_static=$enable_dlopen_self_static
26619
26620# Compiler flag to prevent dynamic linking.
26621link_static_flag=$lt_lt_prog_compiler_static_RC
26622
26623# Compiler flag to turn off builtin functions.
26624no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26625
26626# Compiler flag to allow reflexive dlopens.
26627export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26628
26629# Compiler flag to generate shared objects directly from archives.
26630whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26631
26632# Compiler flag to generate thread-safe objects.
26633thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26634
26635# Library versioning type.
26636version_type=$version_type
26637
26638# Format of library name prefix.
26639libname_spec=$lt_libname_spec
26640
26641# List of archive names. First name is the real one, the rest are links.
26642# The last name is the one that the linker finds with -lNAME.
26643library_names_spec=$lt_library_names_spec
26644
26645# The coded name of the library, if different from the real name.
26646soname_spec=$lt_soname_spec
26647
26648# Commands used to build and install an old-style archive.
26649RANLIB=$lt_RANLIB
26650old_archive_cmds=$lt_old_archive_cmds_RC
26651old_postinstall_cmds=$lt_old_postinstall_cmds
26652old_postuninstall_cmds=$lt_old_postuninstall_cmds
26653
26654# Create an old-style archive from a shared archive.
26655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26656
26657# Create a temporary old-style archive to link instead of a shared archive.
26658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26659
26660# Commands used to build and install a shared archive.
26661archive_cmds=$lt_archive_cmds_RC
26662archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26663postinstall_cmds=$lt_postinstall_cmds
26664postuninstall_cmds=$lt_postuninstall_cmds
26665
26666# Commands used to build a loadable module (assumed same as above if empty)
26667module_cmds=$lt_module_cmds_RC
26668module_expsym_cmds=$lt_module_expsym_cmds_RC
26669
26670# Commands to strip libraries.
26671old_striplib=$lt_old_striplib
26672striplib=$lt_striplib
26673
26674# Dependencies to place before the objects being linked to create a
26675# shared library.
26676predep_objects=$lt_predep_objects_RC
26677
26678# Dependencies to place after the objects being linked to create a
26679# shared library.
26680postdep_objects=$lt_postdep_objects_RC
26681
26682# Dependencies to place before the objects being linked to create a
26683# shared library.
26684predeps=$lt_predeps_RC
26685
26686# Dependencies to place after the objects being linked to create a
26687# shared library.
26688postdeps=$lt_postdeps_RC
26689
26690# The library search path used internally by the compiler when linking
26691# a shared library.
26692compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26693
26694# Method to check whether dependent libraries are shared objects.
26695deplibs_check_method=$lt_deplibs_check_method
26696
26697# Command to use when deplibs_check_method == file_magic.
26698file_magic_cmd=$lt_file_magic_cmd
26699
26700# Flag that allows shared libraries with undefined symbols to be built.
26701allow_undefined_flag=$lt_allow_undefined_flag_RC
26702
26703# Flag that forces no undefined symbols.
26704no_undefined_flag=$lt_no_undefined_flag_RC
26705
26706# Commands used to finish a libtool library installation in a directory.
26707finish_cmds=$lt_finish_cmds
26708
26709# Same as above, but a single script fragment to be evaled but not shown.
26710finish_eval=$lt_finish_eval
26711
26712# Take the output of nm and produce a listing of raw symbols and C names.
26713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26714
26715# Transform the output of nm in a proper C declaration
26716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26717
26718# Transform the output of nm in a C name address pair
26719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26720
26721# This is the shared library runtime path variable.
26722runpath_var=$runpath_var
26723
26724# This is the shared library path variable.
26725shlibpath_var=$shlibpath_var
26726
26727# Is shlibpath searched before the hard-coded library search path?
26728shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26729
26730# How to hardcode a shared library path into an executable.
26731hardcode_action=$hardcode_action_RC
26732
26733# Whether we should hardcode library paths into libraries.
26734hardcode_into_libs=$hardcode_into_libs
26735
26736# Flag to hardcode \$libdir into a binary during linking.
26737# This must work even if \$libdir does not exist.
26738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26739
26740# If ld is used when linking, flag to hardcode \$libdir into
26741# a binary during linking. This must work even if \$libdir does
26742# not exist.
26743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26744
26745# Whether we need a single -rpath flag with a separated argument.
26746hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26747
26748# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26749# resulting binary.
26750hardcode_direct=$hardcode_direct_RC
26751
26752# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26753# resulting binary.
26754hardcode_minus_L=$hardcode_minus_L_RC
26755
26756# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26757# the resulting binary.
26758hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26759
26760# Set to yes if building a shared library automatically hardcodes DIR into the library
26761# and all subsequent libraries and executables linked against it.
26762hardcode_automatic=$hardcode_automatic_RC
26763
26764# Variables whose values should be saved in libtool wrapper scripts and
26765# restored at relink time.
26766variables_saved_for_relink="$variables_saved_for_relink"
26767
26768# Whether libtool must link a program against all its dependency libraries.
26769link_all_deplibs=$link_all_deplibs_RC
26770
26771# Compile-time system search path for libraries
26772sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26773
26774# Run-time system search path for libraries
26775sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26776
26777# Fix the shell variable \$srcfile for the compiler.
26778fix_srcfile_path="$fix_srcfile_path_RC"
26779
26780# Set to yes if exported symbols are required.
26781always_export_symbols=$always_export_symbols_RC
26782
26783# The commands to list exported symbols.
26784export_symbols_cmds=$lt_export_symbols_cmds_RC
26785
26786# The commands to extract the exported symbol list from a shared archive.
26787extract_expsyms_cmds=$lt_extract_expsyms_cmds
26788
26789# Symbols that should not be listed in the preloaded symbols.
26790exclude_expsyms=$lt_exclude_expsyms_RC
26791
26792# Symbols that must always be exported.
26793include_expsyms=$lt_include_expsyms_RC
26794
26795# ### END LIBTOOL TAG CONFIG: $tagname
26796
26797__EOF__
26798
26799
26800else
26801 # If there is no Makefile yet, we rely on a make rule to execute
26802 # `config.status --recheck' to rerun these tests and create the
26803 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26805 if test -f "$ltmain_in"; then
26806 test -f Makefile && make "$ltmain"
26807 fi
John Criswell47fdd832003-07-14 16:52:07 +000026808fi
26809
26810
26811ac_ext=c
26812ac_cpp='$CPP $CPPFLAGS'
26813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26815ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816
26817CC="$lt_save_CC"
26818
26819 ;;
26820
26821 *)
26822 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26823echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26824 { (exit 1); exit 1; }; }
26825 ;;
26826 esac
26827
26828 # Append the new tag name to the list of available tags.
26829 if test -n "$tagname" ; then
26830 available_tags="$available_tags $tagname"
26831 fi
26832 fi
26833 done
26834 IFS="$lt_save_ifs"
26835
26836 # Now substitute the updated list of available tags.
26837 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26838 mv "${ofile}T" "$ofile"
26839 chmod +x "$ofile"
26840 else
26841 rm -f "${ofile}T"
26842 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26843echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26844 { (exit 1); exit 1; }; }
26845 fi
26846fi
John Criswell7a73b802003-06-30 21:59:07 +000026847
26848
26849
26850# This can be used to rebuild libtool when needed
26851LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26852
26853# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026854LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026855
26856# Prevent multiple expansion
26857
26858
26859
John Criswell47fdd832003-07-14 16:52:07 +000026860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026877
Reid Spencer582a23c2004-12-29 07:07:57 +000026878if test "$lt_cv_dlopen_self" = "yes" ; then
26879
26880cat >>confdefs.h <<\_ACEOF
26881#define CAN_DLOPEN_SELF 1
26882_ACEOF
26883
26884fi
26885
Reid Spencer7931a782004-12-27 06:15:02 +000026886if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026887 LLVMGCC="llvm-gcc${EXEEXT}"
26888 LLVMGXX="llvm-g++${EXEEXT}"
26889 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26890set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026893if test "${ac_cv_path_LLVMGCC+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 case $LLVMGCC in
26897 [\\/]* | ?:[\\/]*)
26898 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26899 ;;
26900 *)
26901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902for as_dir in $PATH
26903do
26904 IFS=$as_save_IFS
26905 test -z "$as_dir" && as_dir=.
26906 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026907 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 +000026908 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26910 break 2
26911 fi
26912done
26913done
Reid Spencera773bd52006-08-04 18:18:08 +000026914IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026915
Reid Spencer59473af2004-12-25 07:31:29 +000026916 ;;
26917esac
26918fi
26919LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026920if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026921 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26922echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026923else
Reid Spencera773bd52006-08-04 18:18:08 +000026924 { echo "$as_me:$LINENO: result: no" >&5
26925echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026926fi
26927
Reid Spencera773bd52006-08-04 18:18:08 +000026928
Reid Spencerc84492c2005-06-02 22:34:49 +000026929 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26930set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026933if test "${ac_cv_path_LLVMGXX+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
26936 case $LLVMGXX in
26937 [\\/]* | ?:[\\/]*)
26938 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26939 ;;
26940 *)
26941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942for as_dir in $PATH
26943do
26944 IFS=$as_save_IFS
26945 test -z "$as_dir" && as_dir=.
26946 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026947 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 +000026948 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26950 break 2
26951 fi
26952done
26953done
Reid Spencera773bd52006-08-04 18:18:08 +000026954IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026955
Reid Spencer59473af2004-12-25 07:31:29 +000026956 ;;
26957esac
26958fi
26959LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026960if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026961 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26962echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026963else
Reid Spencera773bd52006-08-04 18:18:08 +000026964 { echo "$as_me:$LINENO: result: no" >&5
26965echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026966fi
26967
Reid Spencera773bd52006-08-04 18:18:08 +000026968
Reid Spencer59473af2004-12-25 07:31:29 +000026969else
Devang Patel5d28b882007-12-04 22:54:47 +000026970 if test -z "$LLVMGCC"; then
26971 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26972 fi
26973 if test -z "$LLVMGXX"; then
26974 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26975 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026976 LLVMGCC=$LLVMGCC
26977
26978 LLVMGXX=$LLVMGXX
26979
26980fi
26981
Reid Spencera773bd52006-08-04 18:18:08 +000026982{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26983echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026984
Reid Spencer86901802004-12-08 23:07:27 +000026985ICC=no
26986IXX=no
26987case $CC in
26988 icc*|icpc*)
26989 ICC=yes
26990 IXX=yes
26991 ;;
26992 *)
26993 ;;
26994esac
26995
Duraid Madina937c60a2006-02-15 07:57:42 +000026996if test "$GCC" != "yes" && test "$ICC" != "yes"
26997then
26998 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26999echo "$as_me: error: gcc|icc required but not found" >&2;}
27000 { (exit 1); exit 1; }; }
27001fi
27002
27003if test "$GXX" != "yes" && test "$IXX" != "yes"
27004then
27005 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27006echo "$as_me: error: g++|icc required but not found" >&2;}
27007 { (exit 1); exit 1; }; }
27008fi
27009
Reid Spencer86901802004-12-08 23:07:27 +000027010if test "$GCC" = "yes"
27011then
Chris Lattner399c7c72008-02-05 19:43:53 +000027012 cat >conftest.$ac_ext <<_ACEOF
27013#if !defined(__GNUC__) || __GNUC__ < 3
27014#error Unsupported GCC version
27015#endif
27016
27017_ACEOF
27018rm -f conftest.$ac_objext
27019if { (ac_try="$ac_compile"
27020case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27023esac
27024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_compile") 2>conftest.er1
27026 ac_status=$?
27027 grep -v '^ *+' conftest.er1 >conftest.err
27028 rm -f conftest.er1
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036esac
27037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest.$ac_objext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27046esac
27047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 :
27053else
27054 echo "$as_me: failed program was:" >&5
27055sed 's/^/| /' conftest.$ac_ext >&5
27056
27057 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027058echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27059 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027060fi
27061
27062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027063fi
27064
27065if test -z "$llvm_cv_gnu_make_command"
27066then
27067 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27068echo "$as_me: error: GNU Make required but not found" >&2;}
27069 { (exit 1); exit 1; }; }
27070fi
27071
Reid Spencera773bd52006-08-04 18:18:08 +000027072{ echo "$as_me:$LINENO: result: ok" >&5
27073echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027074
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027075
John Criswell7a73b802003-06-30 21:59:07 +000027076
Reid Spencera773bd52006-08-04 18:18:08 +000027077{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27078echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027079if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27081else
27082 ac_check_lib_save_LIBS=$LIBS
27083LIBS="-lelf $LIBS"
27084cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027085/* confdefs.h. */
27086_ACEOF
27087cat confdefs.h >>conftest.$ac_ext
27088cat >>conftest.$ac_ext <<_ACEOF
27089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027090
Reid Spencera773bd52006-08-04 18:18:08 +000027091/* Override any GCC internal prototype to avoid an error.
27092 Use char because int might match the return type of a GCC
27093 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027094#ifdef __cplusplus
27095extern "C"
27096#endif
John Criswell7a73b802003-06-30 21:59:07 +000027097char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027098int
27099main ()
27100{
Reid Spencera773bd52006-08-04 18:18:08 +000027101return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027102 ;
27103 return 0;
27104}
27105_ACEOF
27106rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027107if { (ac_try="$ac_link"
27108case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27111esac
27112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027115 grep -v '^ *+' conftest.er1 >conftest.err
27116 rm -f conftest.er1
27117 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027119 (exit $ac_status); } &&
27120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27121 { (case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27124esac
27125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_try") 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest$ac_exeext'
27131 { (case "(($ac_try" in
27132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133 *) ac_try_echo=$ac_try;;
27134esac
27135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136 (eval "$ac_try") 2>&5
27137 ac_status=$?
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027140 ac_cv_lib_elf_elf_begin=yes
27141else
27142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027143sed 's/^/| /' conftest.$ac_ext >&5
27144
Reid Spencera773bd52006-08-04 18:18:08 +000027145 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027146fi
Reid Spencera773bd52006-08-04 18:18:08 +000027147
Tanya Lattnercf067672008-01-17 05:57:22 +000027148rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027149 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027150LIBS=$ac_check_lib_save_LIBS
27151fi
Reid Spencera773bd52006-08-04 18:18:08 +000027152{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27153echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027154if test $ac_cv_lib_elf_elf_begin = yes; then
27155 cat >>confdefs.h <<_ACEOF
27156#define HAVE_LIBELF 1
27157_ACEOF
27158
27159 LIBS="-lelf $LIBS"
27160
27161fi
27162
27163
Reid Spencera773bd52006-08-04 18:18:08 +000027164{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27165echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027166if test "${ac_cv_lib_m_sin+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27168else
27169 ac_check_lib_save_LIBS=$LIBS
27170LIBS="-lm $LIBS"
27171cat >conftest.$ac_ext <<_ACEOF
27172/* confdefs.h. */
27173_ACEOF
27174cat confdefs.h >>conftest.$ac_ext
27175cat >>conftest.$ac_ext <<_ACEOF
27176/* end confdefs.h. */
27177
Reid Spencera773bd52006-08-04 18:18:08 +000027178/* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027181#ifdef __cplusplus
27182extern "C"
27183#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027184char sin ();
27185int
27186main ()
27187{
Reid Spencera773bd52006-08-04 18:18:08 +000027188return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027189 ;
27190 return 0;
27191}
27192_ACEOF
27193rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027194if { (ac_try="$ac_link"
27195case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27198esac
27199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027201 ac_status=$?
27202 grep -v '^ *+' conftest.er1 >conftest.err
27203 rm -f conftest.er1
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27211esac
27212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest$ac_exeext'
27218 { (case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27221esac
27222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_try") 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027227 ac_cv_lib_m_sin=yes
27228else
27229 echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
Reid Spencera773bd52006-08-04 18:18:08 +000027232 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027233fi
Reid Spencera773bd52006-08-04 18:18:08 +000027234
Tanya Lattnercf067672008-01-17 05:57:22 +000027235rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027236 conftest$ac_exeext conftest.$ac_ext
27237LIBS=$ac_check_lib_save_LIBS
27238fi
Reid Spencera773bd52006-08-04 18:18:08 +000027239{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27240echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027241if test $ac_cv_lib_m_sin = yes; then
27242 cat >>confdefs.h <<_ACEOF
27243#define HAVE_LIBM 1
27244_ACEOF
27245
27246 LIBS="-lm $LIBS"
27247
27248fi
27249
Jeff Cohen28783c32007-01-12 18:22:38 +000027250if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027251
Reid Spencera773bd52006-08-04 18:18:08 +000027252{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27253echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027254if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027255 echo $ECHO_N "(cached) $ECHO_C" >&6
27256else
27257 ac_check_lib_save_LIBS=$LIBS
27258LIBS="-limagehlp $LIBS"
27259cat >conftest.$ac_ext <<_ACEOF
27260/* confdefs.h. */
27261_ACEOF
27262cat confdefs.h >>conftest.$ac_ext
27263cat >>conftest.$ac_ext <<_ACEOF
27264/* end confdefs.h. */
27265
Reid Spencer48fdf912006-06-01 19:03:21 +000027266
Reid Spencer484fc8e2006-06-01 16:55:59 +000027267int
27268main ()
27269{
Reid Spencera773bd52006-08-04 18:18:08 +000027270return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027271 ;
27272 return 0;
27273}
27274_ACEOF
27275rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027276if { (ac_try="$ac_link"
27277case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27280esac
27281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027283 ac_status=$?
27284 grep -v '^ *+' conftest.er1 >conftest.err
27285 rm -f conftest.er1
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027288 (exit $ac_status); } &&
27289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27293esac
27294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest$ac_exeext'
27300 { (case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27303esac
27304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_try") 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027309 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027310else
27311 echo "$as_me: failed program was:" >&5
27312sed 's/^/| /' conftest.$ac_ext >&5
27313
Reid Spencera773bd52006-08-04 18:18:08 +000027314 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027315fi
Reid Spencera773bd52006-08-04 18:18:08 +000027316
Tanya Lattnercf067672008-01-17 05:57:22 +000027317rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027318 conftest$ac_exeext conftest.$ac_ext
27319LIBS=$ac_check_lib_save_LIBS
27320fi
Reid Spencera773bd52006-08-04 18:18:08 +000027321{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27322echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027323if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027324 cat >>confdefs.h <<_ACEOF
27325#define HAVE_LIBIMAGEHLP 1
27326_ACEOF
27327
27328 LIBS="-limagehlp $LIBS"
27329
27330fi
27331
27332
Reid Spencera773bd52006-08-04 18:18:08 +000027333{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27334echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027335if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027336 echo $ECHO_N "(cached) $ECHO_C" >&6
27337else
27338 ac_check_lib_save_LIBS=$LIBS
27339LIBS="-lpsapi $LIBS"
27340cat >conftest.$ac_ext <<_ACEOF
27341/* confdefs.h. */
27342_ACEOF
27343cat confdefs.h >>conftest.$ac_ext
27344cat >>conftest.$ac_ext <<_ACEOF
27345/* end confdefs.h. */
27346
Reid Spencer48fdf912006-06-01 19:03:21 +000027347
Reid Spencer484fc8e2006-06-01 16:55:59 +000027348int
27349main ()
27350{
Reid Spencera773bd52006-08-04 18:18:08 +000027351return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027352 ;
27353 return 0;
27354}
27355_ACEOF
27356rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027357if { (ac_try="$ac_link"
27358case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27361esac
27362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027364 ac_status=$?
27365 grep -v '^ *+' conftest.er1 >conftest.err
27366 rm -f conftest.er1
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027369 (exit $ac_status); } &&
27370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27371 { (case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27374esac
27375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_try") 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; } &&
27380 { ac_try='test -s conftest$ac_exeext'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27384esac
27385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27387 ac_status=$?
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027390 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027391else
27392 echo "$as_me: failed program was:" >&5
27393sed 's/^/| /' conftest.$ac_ext >&5
27394
Reid Spencera773bd52006-08-04 18:18:08 +000027395 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027396fi
Reid Spencera773bd52006-08-04 18:18:08 +000027397
Tanya Lattnercf067672008-01-17 05:57:22 +000027398rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027399 conftest$ac_exeext conftest.$ac_ext
27400LIBS=$ac_check_lib_save_LIBS
27401fi
Reid Spencera773bd52006-08-04 18:18:08 +000027402{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27403echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027404if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027405 cat >>confdefs.h <<_ACEOF
27406#define HAVE_LIBPSAPI 1
27407_ACEOF
27408
27409 LIBS="-lpsapi $LIBS"
27410
27411fi
27412
27413fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027414
Reid Spencera773bd52006-08-04 18:18:08 +000027415{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27416echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027417if test "${ac_cv_search_dlopen+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27419else
27420 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027421cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027422/* confdefs.h. */
27423_ACEOF
27424cat confdefs.h >>conftest.$ac_ext
27425cat >>conftest.$ac_ext <<_ACEOF
27426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027427
Reid Spencera773bd52006-08-04 18:18:08 +000027428/* Override any GCC internal prototype to avoid an error.
27429 Use char because int might match the return type of a GCC
27430 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027431#ifdef __cplusplus
27432extern "C"
27433#endif
John Criswell7a73b802003-06-30 21:59:07 +000027434char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027435int
27436main ()
27437{
Reid Spencera773bd52006-08-04 18:18:08 +000027438return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027439 ;
27440 return 0;
27441}
27442_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027443for ac_lib in '' dl; do
27444 if test -z "$ac_lib"; then
27445 ac_res="none required"
27446 else
27447 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027449 fi
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451if { (ac_try="$ac_link"
27452case "(($ac_try" in
27453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454 *) ac_try_echo=$ac_try;;
27455esac
27456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027458 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027459 grep -v '^ *+' conftest.er1 >conftest.err
27460 rm -f conftest.er1
27461 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027463 (exit $ac_status); } &&
27464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27465 { (case "(($ac_try" in
27466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467 *) ac_try_echo=$ac_try;;
27468esac
27469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27470 (eval "$ac_try") 2>&5
27471 ac_status=$?
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); }; } &&
27474 { ac_try='test -s conftest$ac_exeext'
27475 { (case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27478esac
27479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_try") 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027484 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027485else
27486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027487sed 's/^/| /' conftest.$ac_ext >&5
27488
Reid Spencera773bd52006-08-04 18:18:08 +000027489
John Criswell7a73b802003-06-30 21:59:07 +000027490fi
Reid Spencera773bd52006-08-04 18:18:08 +000027491
Tanya Lattnercf067672008-01-17 05:57:22 +000027492rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027493 conftest$ac_exeext
27494 if test "${ac_cv_search_dlopen+set}" = set; then
27495 break
John Criswell7a73b802003-06-30 21:59:07 +000027496fi
Reid Spencera773bd52006-08-04 18:18:08 +000027497done
27498if test "${ac_cv_search_dlopen+set}" = set; then
27499 :
27500else
27501 ac_cv_search_dlopen=no
27502fi
27503rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027504LIBS=$ac_func_search_save_LIBS
27505fi
Reid Spencera773bd52006-08-04 18:18:08 +000027506{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27507echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27508ac_res=$ac_cv_search_dlopen
27509if test "$ac_res" != no; then
27510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027511
27512cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027513#define HAVE_DLOPEN 1
27514_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027515
27516else
Brian Gaekec45be042003-10-07 06:01:34 +000027517 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27518echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027519fi
27520
27521
Reid Spencera773bd52006-08-04 18:18:08 +000027522{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27523echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027524if test "${ac_cv_search_mallinfo+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27526else
27527 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027528cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027529/* confdefs.h. */
27530_ACEOF
27531cat confdefs.h >>conftest.$ac_ext
27532cat >>conftest.$ac_ext <<_ACEOF
27533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027534
Reid Spencera773bd52006-08-04 18:18:08 +000027535/* Override any GCC internal prototype to avoid an error.
27536 Use char because int might match the return type of a GCC
27537 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027538#ifdef __cplusplus
27539extern "C"
27540#endif
John Criswell7a73b802003-06-30 21:59:07 +000027541char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027542int
27543main ()
27544{
Reid Spencera773bd52006-08-04 18:18:08 +000027545return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027546 ;
27547 return 0;
27548}
27549_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027550for ac_lib in '' malloc; do
27551 if test -z "$ac_lib"; then
27552 ac_res="none required"
27553 else
27554 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027556 fi
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558if { (ac_try="$ac_link"
27559case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562esac
27563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027565 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027566 grep -v '^ *+' conftest.er1 >conftest.err
27567 rm -f conftest.er1
27568 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27578 ac_status=$?
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27585esac
27586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027591 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027592else
27593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027594sed 's/^/| /' conftest.$ac_ext >&5
27595
Reid Spencera773bd52006-08-04 18:18:08 +000027596
John Criswell7a73b802003-06-30 21:59:07 +000027597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598
Tanya Lattnercf067672008-01-17 05:57:22 +000027599rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027600 conftest$ac_exeext
27601 if test "${ac_cv_search_mallinfo+set}" = set; then
27602 break
John Criswell7a73b802003-06-30 21:59:07 +000027603fi
Reid Spencera773bd52006-08-04 18:18:08 +000027604done
27605if test "${ac_cv_search_mallinfo+set}" = set; then
27606 :
27607else
27608 ac_cv_search_mallinfo=no
27609fi
27610rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027611LIBS=$ac_func_search_save_LIBS
27612fi
Reid Spencera773bd52006-08-04 18:18:08 +000027613{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27614echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27615ac_res=$ac_cv_search_mallinfo
27616if test "$ac_res" != no; then
27617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027618
27619cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027620#define HAVE_MALLINFO 1
27621_ACEOF
27622
27623fi
27624
27625
Reid Spencer0a262ba2005-08-24 10:07:20 +000027626if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027627
Reid Spencera773bd52006-08-04 18:18:08 +000027628{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27629echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027630if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27632else
27633 ac_check_lib_save_LIBS=$LIBS
27634LIBS="-lpthread $LIBS"
27635cat >conftest.$ac_ext <<_ACEOF
27636/* confdefs.h. */
27637_ACEOF
27638cat confdefs.h >>conftest.$ac_ext
27639cat >>conftest.$ac_ext <<_ACEOF
27640/* end confdefs.h. */
27641
Reid Spencera773bd52006-08-04 18:18:08 +000027642/* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027645#ifdef __cplusplus
27646extern "C"
27647#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027648char pthread_mutex_init ();
27649int
27650main ()
27651{
Reid Spencera773bd52006-08-04 18:18:08 +000027652return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027653 ;
27654 return 0;
27655}
27656_ACEOF
27657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027658if { (ac_try="$ac_link"
27659case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27662esac
27663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027665 ac_status=$?
27666 grep -v '^ *+' conftest.er1 >conftest.err
27667 rm -f conftest.er1
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027670 (exit $ac_status); } &&
27671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27675esac
27676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest$ac_exeext'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685esac
27686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027691 ac_cv_lib_pthread_pthread_mutex_init=yes
27692else
27693 echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
Reid Spencera773bd52006-08-04 18:18:08 +000027696 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027697fi
Reid Spencera773bd52006-08-04 18:18:08 +000027698
Tanya Lattnercf067672008-01-17 05:57:22 +000027699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027700 conftest$ac_exeext conftest.$ac_ext
27701LIBS=$ac_check_lib_save_LIBS
27702fi
Reid Spencera773bd52006-08-04 18:18:08 +000027703{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27704echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027705if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27706 cat >>confdefs.h <<_ACEOF
27707#define HAVE_LIBPTHREAD 1
27708_ACEOF
27709
27710 LIBS="-lpthread $LIBS"
27711
27712fi
27713
Reid Spencera773bd52006-08-04 18:18:08 +000027714 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27715echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027716if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27718else
27719 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027720cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726
Reid Spencera773bd52006-08-04 18:18:08 +000027727/* Override any GCC internal prototype to avoid an error.
27728 Use char because int might match the return type of a GCC
27729 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027730#ifdef __cplusplus
27731extern "C"
27732#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027733char pthread_mutex_lock ();
27734int
27735main ()
27736{
Reid Spencera773bd52006-08-04 18:18:08 +000027737return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027738 ;
27739 return 0;
27740}
27741_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027742for ac_lib in '' pthread; do
27743 if test -z "$ac_lib"; then
27744 ac_res="none required"
27745 else
27746 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027748 fi
27749 rm -f conftest.$ac_objext conftest$ac_exeext
27750if { (ac_try="$ac_link"
27751case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027758 grep -v '^ *+' conftest.er1 >conftest.err
27759 rm -f conftest.er1
27760 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027762 (exit $ac_status); } &&
27763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; } &&
27773 { ac_try='test -s conftest$ac_exeext'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27777esac
27778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027783 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027784else
27785 echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
Reid Spencera773bd52006-08-04 18:18:08 +000027788
Brian Gaeke5f268f72003-12-05 19:29:01 +000027789fi
Reid Spencera773bd52006-08-04 18:18:08 +000027790
Tanya Lattnercf067672008-01-17 05:57:22 +000027791rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027792 conftest$ac_exeext
27793 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27794 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027795fi
Reid Spencera773bd52006-08-04 18:18:08 +000027796done
27797if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27798 :
27799else
27800 ac_cv_search_pthread_mutex_lock=no
27801fi
27802rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803LIBS=$ac_func_search_save_LIBS
27804fi
Reid Spencera773bd52006-08-04 18:18:08 +000027805{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27806echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27807ac_res=$ac_cv_search_pthread_mutex_lock
27808if test "$ac_res" != no; then
27809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027810
John Criswell40468462004-09-24 21:19:06 +000027811cat >>confdefs.h <<\_ACEOF
27812#define HAVE_PTHREAD_MUTEX_LOCK 1
27813_ACEOF
27814
27815fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027816
Reid Spencer0a262ba2005-08-24 10:07:20 +000027817fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027818
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027819
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027820# Check whether --with-udis86 was given.
27821if test "${with_udis86+set}" = set; then
27822 withval=$with_udis86;
27823 USE_UDIS86=1
27824
27825 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027826 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027827 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27828 esac
27829
27830{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27831echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27832if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 ac_check_lib_save_LIBS=$LIBS
27836LIBS="-ludis86 $LIBS"
27837cat >conftest.$ac_ext <<_ACEOF
27838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843
27844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27847#ifdef __cplusplus
27848extern "C"
27849#endif
27850char ud_init ();
27851int
27852main ()
27853{
27854return ud_init ();
27855 ;
27856 return 0;
27857}
27858_ACEOF
27859rm -f conftest.$ac_objext conftest$ac_exeext
27860if { (ac_try="$ac_link"
27861case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27864esac
27865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_link") 2>conftest.er1
27867 ac_status=$?
27868 grep -v '^ *+' conftest.er1 >conftest.err
27869 rm -f conftest.er1
27870 cat conftest.err >&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027872 (exit $ac_status); } &&
27873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27874 { (case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27877esac
27878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_try") 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest$ac_exeext'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27887esac
27888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_try") 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027893 ac_cv_lib_udis86_ud_init=yes
27894else
27895 echo "$as_me: failed program was:" >&5
27896sed 's/^/| /' conftest.$ac_ext >&5
27897
27898 ac_cv_lib_udis86_ud_init=no
27899fi
27900
Tanya Lattnercf067672008-01-17 05:57:22 +000027901rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027902 conftest$ac_exeext conftest.$ac_ext
27903LIBS=$ac_check_lib_save_LIBS
27904fi
27905{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27906echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27907if test $ac_cv_lib_udis86_ud_init = yes; then
27908 cat >>confdefs.h <<_ACEOF
27909#define HAVE_LIBUDIS86 1
27910_ACEOF
27911
27912 LIBS="-ludis86 $LIBS"
27913
27914else
27915
27916 echo "Error! You need to have libudis86 around."
27917 exit -1
27918
27919fi
27920
27921
27922else
27923 USE_UDIS86=0
27924
27925fi
27926
27927
27928cat >>confdefs.h <<_ACEOF
27929#define USE_UDIS86 $USE_UDIS86
27930_ACEOF
27931
27932
27933
Reid Spencer59473af2004-12-25 07:31:29 +000027934
27935
27936
27937
27938
27939ac_header_dirent=no
27940for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027942{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27943echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027945 echo $ECHO_N "(cached) $ECHO_C" >&6
27946else
27947 cat >conftest.$ac_ext <<_ACEOF
27948/* confdefs.h. */
27949_ACEOF
27950cat confdefs.h >>conftest.$ac_ext
27951cat >>conftest.$ac_ext <<_ACEOF
27952/* end confdefs.h. */
27953#include <sys/types.h>
27954#include <$ac_hdr>
27955
27956int
27957main ()
27958{
27959if ((DIR *) 0)
27960return 0;
27961 ;
27962 return 0;
27963}
27964_ACEOF
27965rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027966if { (ac_try="$ac_compile"
27967case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27970esac
27971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027973 ac_status=$?
27974 grep -v '^ *+' conftest.er1 >conftest.err
27975 rm -f conftest.er1
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027978 (exit $ac_status); } &&
27979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27980 { (case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27983esac
27984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_try") 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; } &&
27989 { ac_try='test -s conftest.$ac_objext'
27990 { (case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27993esac
27994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_try") 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027999 eval "$as_ac_Header=yes"
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
Reid Spencera773bd52006-08-04 18:18:08 +000028004 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028005fi
Reid Spencera773bd52006-08-04 18:18:08 +000028006
28007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028008fi
Reid Spencera773bd52006-08-04 18:18:08 +000028009ac_res=`eval echo '${'$as_ac_Header'}'`
28010 { echo "$as_me:$LINENO: result: $ac_res" >&5
28011echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028012if test `eval echo '${'$as_ac_Header'}'` = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28015_ACEOF
28016
28017ac_header_dirent=$ac_hdr; break
28018fi
28019
28020done
28021# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28022if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028025if test "${ac_cv_search_opendir+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028029cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035
Reid Spencera773bd52006-08-04 18:18:08 +000028036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028039#ifdef __cplusplus
28040extern "C"
28041#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028042char opendir ();
28043int
28044main ()
28045{
Reid Spencera773bd52006-08-04 18:18:08 +000028046return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028047 ;
28048 return 0;
28049}
28050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028051for ac_lib in '' dir; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28054 else
28055 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028057 fi
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059if { (ac_try="$ac_link"
28060case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28063esac
28064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028066 ac_status=$?
28067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28076esac
28077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028092 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
Reid Spencera773bd52006-08-04 18:18:08 +000028097
Reid Spencer59473af2004-12-25 07:31:29 +000028098fi
Reid Spencera773bd52006-08-04 18:18:08 +000028099
Tanya Lattnercf067672008-01-17 05:57:22 +000028100rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028101 conftest$ac_exeext
28102 if test "${ac_cv_search_opendir+set}" = set; then
28103 break
Reid Spencer59473af2004-12-25 07:31:29 +000028104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105done
28106if test "${ac_cv_search_opendir+set}" = set; then
28107 :
28108else
28109 ac_cv_search_opendir=no
28110fi
28111rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028112LIBS=$ac_func_search_save_LIBS
28113fi
Reid Spencera773bd52006-08-04 18:18:08 +000028114{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116ac_res=$ac_cv_search_opendir
28117if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028119
28120fi
28121
28122else
Reid Spencera773bd52006-08-04 18:18:08 +000028123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28124echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028125if test "${ac_cv_search_opendir+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28127else
28128 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028129cat >conftest.$ac_ext <<_ACEOF
28130/* confdefs.h. */
28131_ACEOF
28132cat confdefs.h >>conftest.$ac_ext
28133cat >>conftest.$ac_ext <<_ACEOF
28134/* end confdefs.h. */
28135
Reid Spencera773bd52006-08-04 18:18:08 +000028136/* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028139#ifdef __cplusplus
28140extern "C"
28141#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028142char opendir ();
28143int
28144main ()
28145{
Reid Spencera773bd52006-08-04 18:18:08 +000028146return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028147 ;
28148 return 0;
28149}
28150_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028151for ac_lib in '' x; do
28152 if test -z "$ac_lib"; then
28153 ac_res="none required"
28154 else
28155 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028157 fi
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159if { (ac_try="$ac_link"
28160case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163esac
28164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176esac
28177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest$ac_exeext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028192 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028193else
28194 echo "$as_me: failed program was:" >&5
28195sed 's/^/| /' conftest.$ac_ext >&5
28196
Reid Spencera773bd52006-08-04 18:18:08 +000028197
Reid Spencer59473af2004-12-25 07:31:29 +000028198fi
Reid Spencera773bd52006-08-04 18:18:08 +000028199
Tanya Lattnercf067672008-01-17 05:57:22 +000028200rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028201 conftest$ac_exeext
28202 if test "${ac_cv_search_opendir+set}" = set; then
28203 break
Reid Spencer59473af2004-12-25 07:31:29 +000028204fi
Reid Spencera773bd52006-08-04 18:18:08 +000028205done
28206if test "${ac_cv_search_opendir+set}" = set; then
28207 :
28208else
28209 ac_cv_search_opendir=no
28210fi
28211rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028212LIBS=$ac_func_search_save_LIBS
28213fi
Reid Spencera773bd52006-08-04 18:18:08 +000028214{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28215echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28216ac_res=$ac_cv_search_opendir
28217if test "$ac_res" != no; then
28218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028219
28220fi
28221
28222fi
28223
Reid Spencera773bd52006-08-04 18:18:08 +000028224{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28225echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028226if test "${ac_cv_header_mmap_anon+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28228else
28229 ac_ext=c
28230ac_cpp='$CPP $CPPFLAGS'
28231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233ac_compiler_gnu=$ac_cv_c_compiler_gnu
28234
28235 cat >conftest.$ac_ext <<_ACEOF
28236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
28241#include <sys/mman.h>
28242#include <unistd.h>
28243#include <fcntl.h>
28244int
28245main ()
28246{
28247mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28248 ;
28249 return 0;
28250}
28251_ACEOF
28252rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028253if { (ac_try="$ac_compile"
28254case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28257esac
28258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028260 ac_status=$?
28261 grep -v '^ *+' conftest.er1 >conftest.err
28262 rm -f conftest.er1
28263 cat conftest.err >&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028265 (exit $ac_status); } &&
28266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28270esac
28271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; } &&
28276 { ac_try='test -s conftest.$ac_objext'
28277 { (case "(($ac_try" in
28278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279 *) ac_try_echo=$ac_try;;
28280esac
28281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282 (eval "$ac_try") 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028286 ac_cv_header_mmap_anon=yes
28287else
28288 echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
Reid Spencera773bd52006-08-04 18:18:08 +000028291 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028292fi
Reid Spencera773bd52006-08-04 18:18:08 +000028293
28294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028295 ac_ext=c
28296ac_cpp='$CPP $CPPFLAGS'
28297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28299ac_compiler_gnu=$ac_cv_c_compiler_gnu
28300
28301
28302fi
Reid Spencera773bd52006-08-04 18:18:08 +000028303{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28304echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028305if test "$ac_cv_header_mmap_anon" = yes; then
28306
28307cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028308#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028309_ACEOF
28310
28311fi
28312
Reid Spencera773bd52006-08-04 18:18:08 +000028313{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28314echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028315if test "${ac_cv_header_stat_broken+set}" = set; then
28316 echo $ECHO_N "(cached) $ECHO_C" >&6
28317else
28318 cat >conftest.$ac_ext <<_ACEOF
28319/* confdefs.h. */
28320_ACEOF
28321cat confdefs.h >>conftest.$ac_ext
28322cat >>conftest.$ac_ext <<_ACEOF
28323/* end confdefs.h. */
28324#include <sys/types.h>
28325#include <sys/stat.h>
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028328# if S_ISBLK (S_IFDIR)
28329You lose.
28330# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028331#endif
28332
Reid Spencera773bd52006-08-04 18:18:08 +000028333#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028334# if S_ISBLK (S_IFCHR)
28335You lose.
28336# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028337#endif
28338
Reid Spencera773bd52006-08-04 18:18:08 +000028339#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028340# if S_ISLNK (S_IFREG)
28341You lose.
28342# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028343#endif
28344
Reid Spencera773bd52006-08-04 18:18:08 +000028345#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028346# if S_ISSOCK (S_IFREG)
28347You lose.
28348# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028349#endif
28350
28351_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28353 $EGREP "You lose" >/dev/null 2>&1; then
28354 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028355else
Tanya Lattnercf067672008-01-17 05:57:22 +000028356 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028357fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028358rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028359
Reid Spencer59473af2004-12-25 07:31:29 +000028360fi
Reid Spencera773bd52006-08-04 18:18:08 +000028361{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28362echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028363if test $ac_cv_header_stat_broken = yes; then
28364
28365cat >>confdefs.h <<\_ACEOF
28366#define STAT_MACROS_BROKEN 1
28367_ACEOF
28368
28369fi
28370
Reid Spencera773bd52006-08-04 18:18:08 +000028371{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028373if test "${ac_cv_header_stdc+set}" = set; then
28374 echo $ECHO_N "(cached) $ECHO_C" >&6
28375else
28376 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028382#include <stdlib.h>
28383#include <stdarg.h>
28384#include <string.h>
28385#include <float.h>
28386
John Criswell0c38eaf2003-09-10 15:17:25 +000028387int
28388main ()
28389{
28390
28391 ;
28392 return 0;
28393}
John Criswell7a73b802003-06-30 21:59:07 +000028394_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028395rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028396if { (ac_try="$ac_compile"
28397case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28413esac
28414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest.$ac_objext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28423esac
28424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028429 ac_cv_header_stdc=yes
28430else
28431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028432sed 's/^/| /' conftest.$ac_ext >&5
28433
Reid Spencera773bd52006-08-04 18:18:08 +000028434 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028435fi
Reid Spencera773bd52006-08-04 18:18:08 +000028436
28437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028438
28439if test $ac_cv_header_stdc = yes; then
28440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28441 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028442/* confdefs.h. */
28443_ACEOF
28444cat confdefs.h >>conftest.$ac_ext
28445cat >>conftest.$ac_ext <<_ACEOF
28446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028447#include <string.h>
28448
28449_ACEOF
28450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028451 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028452 :
28453else
28454 ac_cv_header_stdc=no
28455fi
28456rm -f conftest*
28457
28458fi
28459
28460if test $ac_cv_header_stdc = yes; then
28461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028463/* confdefs.h. */
28464_ACEOF
28465cat confdefs.h >>conftest.$ac_ext
28466cat >>conftest.$ac_ext <<_ACEOF
28467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028468#include <stdlib.h>
28469
28470_ACEOF
28471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028472 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028473 :
28474else
28475 ac_cv_header_stdc=no
28476fi
28477rm -f conftest*
28478
28479fi
28480
28481if test $ac_cv_header_stdc = yes; then
28482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28483 if test "$cross_compiling" = yes; then
28484 :
28485else
28486 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028487/* confdefs.h. */
28488_ACEOF
28489cat confdefs.h >>conftest.$ac_ext
28490cat >>conftest.$ac_ext <<_ACEOF
28491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028492#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028493#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028494#if ((' ' & 0x0FF) == 0x020)
28495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28497#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028498# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028499 (('a' <= (c) && (c) <= 'i') \
28500 || ('j' <= (c) && (c) <= 'r') \
28501 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28503#endif
28504
28505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28506int
28507main ()
28508{
28509 int i;
28510 for (i = 0; i < 256; i++)
28511 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028512 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028513 return 2;
28514 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028515}
28516_ACEOF
28517rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028518if { (ac_try="$ac_link"
28519case "(($ac_try" in
28520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521 *) ac_try_echo=$ac_try;;
28522esac
28523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028528 { (case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28531esac
28532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028534 ac_status=$?
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); }; }; then
28537 :
28538else
28539 echo "$as_me: program exited with status $ac_status" >&5
28540echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028541sed 's/^/| /' conftest.$ac_ext >&5
28542
John Criswell7a73b802003-06-30 21:59:07 +000028543( exit $ac_status )
28544ac_cv_header_stdc=no
28545fi
Reid Spencera773bd52006-08-04 18:18:08 +000028546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28547fi
28548
28549
John Criswell7a73b802003-06-30 21:59:07 +000028550fi
28551fi
Reid Spencera773bd52006-08-04 18:18:08 +000028552{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28553echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028554if test $ac_cv_header_stdc = yes; then
28555
28556cat >>confdefs.h <<\_ACEOF
28557#define STDC_HEADERS 1
28558_ACEOF
28559
28560fi
28561
Reid Spencera773bd52006-08-04 18:18:08 +000028562{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28563echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028564if test "${ac_cv_header_sys_wait_h+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028573#include <sys/types.h>
28574#include <sys/wait.h>
28575#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028576# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028577#endif
28578#ifndef WIFEXITED
28579# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28580#endif
28581
John Criswell7a73b802003-06-30 21:59:07 +000028582int
28583main ()
28584{
28585 int s;
28586 wait (&s);
28587 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28588 ;
28589 return 0;
28590}
28591_ACEOF
28592rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028593if { (ac_try="$ac_compile"
28594case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28597esac
28598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028601 grep -v '^ *+' conftest.er1 >conftest.err
28602 rm -f conftest.er1
28603 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028605 (exit $ac_status); } &&
28606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28607 { (case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28610esac
28611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_try") 2>&5
28613 ac_status=$?
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; } &&
28616 { ac_try='test -s conftest.$ac_objext'
28617 { (case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28620esac
28621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_try") 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028626 ac_cv_header_sys_wait_h=yes
28627else
28628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028629sed 's/^/| /' conftest.$ac_ext >&5
28630
Reid Spencera773bd52006-08-04 18:18:08 +000028631 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028632fi
Reid Spencera773bd52006-08-04 18:18:08 +000028633
28634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028635fi
Reid Spencera773bd52006-08-04 18:18:08 +000028636{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28637echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028638if test $ac_cv_header_sys_wait_h = yes; then
28639
28640cat >>confdefs.h <<\_ACEOF
28641#define HAVE_SYS_WAIT_H 1
28642_ACEOF
28643
28644fi
28645
Reid Spencera773bd52006-08-04 18:18:08 +000028646{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28647echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028648if test "${ac_cv_header_time+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651 cat >conftest.$ac_ext <<_ACEOF
28652/* confdefs.h. */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028657#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028658#include <sys/time.h>
28659#include <time.h>
28660
28661int
28662main ()
28663{
28664if ((struct tm *) 0)
28665return 0;
28666 ;
28667 return 0;
28668}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028669_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028670rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028671if { (ac_try="$ac_compile"
28672case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28675esac
28676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028678 ac_status=$?
28679 grep -v '^ *+' conftest.er1 >conftest.err
28680 rm -f conftest.er1
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685 { (case "(($ac_try" in
28686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687 *) ac_try_echo=$ac_try;;
28688esac
28689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690 (eval "$ac_try") 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest.$ac_objext'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698esac
28699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028704 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028705else
28706 echo "$as_me: failed program was:" >&5
28707sed 's/^/| /' conftest.$ac_ext >&5
28708
Reid Spencera773bd52006-08-04 18:18:08 +000028709 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028710fi
Reid Spencera773bd52006-08-04 18:18:08 +000028711
28712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028713fi
Reid Spencera773bd52006-08-04 18:18:08 +000028714{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28715echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028716if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028718cat >>confdefs.h <<\_ACEOF
28719#define TIME_WITH_SYS_TIME 1
28720_ACEOF
28721
28722fi
28723
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028724
Reid Spencer59473af2004-12-25 07:31:29 +000028725
28726
28727
28728
28729
28730
28731for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28732do
28733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028738 echo $ECHO_N "(cached) $ECHO_C" >&6
28739fi
Reid Spencera773bd52006-08-04 18:18:08 +000028740ac_res=`eval echo '${'$as_ac_Header'}'`
28741 { echo "$as_me:$LINENO: result: $ac_res" >&5
28742echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028743else
28744 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028747cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028748/* confdefs.h. */
28749_ACEOF
28750cat confdefs.h >>conftest.$ac_ext
28751cat >>conftest.$ac_ext <<_ACEOF
28752/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028753$ac_includes_default
28754#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028755_ACEOF
28756rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028757if { (ac_try="$ac_compile"
28758case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28761esac
28762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028764 ac_status=$?
28765 grep -v '^ *+' conftest.er1 >conftest.err
28766 rm -f conftest.er1
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028769 (exit $ac_status); } &&
28770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28771 { (case "(($ac_try" in
28772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28773 *) ac_try_echo=$ac_try;;
28774esac
28775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28776 (eval "$ac_try") 2>&5
28777 ac_status=$?
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); }; } &&
28780 { ac_try='test -s conftest.$ac_objext'
28781 { (case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28784esac
28785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786 (eval "$ac_try") 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028790 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028791else
28792 echo "$as_me: failed program was:" >&5
28793sed 's/^/| /' conftest.$ac_ext >&5
28794
Reid Spencera773bd52006-08-04 18:18:08 +000028795 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028796fi
Reid Spencera773bd52006-08-04 18:18:08 +000028797
28798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028801
Reid Spencer59473af2004-12-25 07:31:29 +000028802# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028805cat >conftest.$ac_ext <<_ACEOF
28806/* confdefs.h. */
28807_ACEOF
28808cat confdefs.h >>conftest.$ac_ext
28809cat >>conftest.$ac_ext <<_ACEOF
28810/* end confdefs.h. */
28811#include <$ac_header>
28812_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028813if { (ac_try="$ac_cpp conftest.$ac_ext"
28814case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028820 ac_status=$?
28821 grep -v '^ *+' conftest.er1 >conftest.err
28822 rm -f conftest.er1
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028825 (exit $ac_status); } >/dev/null; then
28826 if test -s conftest.err; then
28827 ac_cpp_err=$ac_c_preproc_warn_flag
28828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28829 else
28830 ac_cpp_err=
28831 fi
28832else
28833 ac_cpp_err=yes
28834fi
28835if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028836 ac_header_preproc=yes
28837else
28838 echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
28841 ac_header_preproc=no
28842fi
Reid Spencera773bd52006-08-04 18:18:08 +000028843
Reid Spencer59473af2004-12-25 07:31:29 +000028844rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28846echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028847
28848# So? What about this header?
28849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28850 yes:no: )
28851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28855 ac_header_preproc=yes
28856 ;;
28857 no:yes:* )
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028870 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028871## ----------------------------------- ##
28872## Report this to llvmbugs@cs.uiuc.edu ##
28873## ----------------------------------- ##
28874_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028875 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028876 ;;
28877esac
Reid Spencera773bd52006-08-04 18:18:08 +000028878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028881 echo $ECHO_N "(cached) $ECHO_C" >&6
28882else
28883 eval "$as_ac_Header=\$ac_header_preproc"
28884fi
Reid Spencera773bd52006-08-04 18:18:08 +000028885ac_res=`eval echo '${'$as_ac_Header'}'`
28886 { echo "$as_me:$LINENO: result: $ac_res" >&5
28887echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028888
28889fi
Reid Spencer59473af2004-12-25 07:31:29 +000028890if test `eval echo '${'$as_ac_Header'}'` = yes; then
28891 cat >>confdefs.h <<_ACEOF
28892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028893_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028894
28895fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028896
Reid Spencer59473af2004-12-25 07:31:29 +000028897done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028898
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028899
28900
Reid Spencer59473af2004-12-25 07:31:29 +000028901
28902
28903
28904
Reid Spencercdb08a32006-06-05 16:11:07 +000028905for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028906do
28907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909 { 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
28913fi
Reid Spencera773bd52006-08-04 18:18:08 +000028914ac_res=`eval echo '${'$as_ac_Header'}'`
28915 { echo "$as_me:$LINENO: result: $ac_res" >&5
28916echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028917else
28918 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028919{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028921cat >conftest.$ac_ext <<_ACEOF
28922/* confdefs.h. */
28923_ACEOF
28924cat confdefs.h >>conftest.$ac_ext
28925cat >>conftest.$ac_ext <<_ACEOF
28926/* end confdefs.h. */
28927$ac_includes_default
28928#include <$ac_header>
28929_ACEOF
28930rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028931if { (ac_try="$ac_compile"
28932case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28935esac
28936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028938 ac_status=$?
28939 grep -v '^ *+' conftest.er1 >conftest.err
28940 rm -f conftest.er1
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028943 (exit $ac_status); } &&
28944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28948esac
28949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
28951 ac_status=$?
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; } &&
28954 { ac_try='test -s conftest.$ac_objext'
28955 { (case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28958esac
28959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_try") 2>&5
28961 ac_status=$?
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028964 ac_header_compiler=yes
28965else
28966 echo "$as_me: failed program was:" >&5
28967sed 's/^/| /' conftest.$ac_ext >&5
28968
Reid Spencera773bd52006-08-04 18:18:08 +000028969 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028970fi
Reid Spencera773bd52006-08-04 18:18:08 +000028971
28972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28974echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028975
28976# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028979cat >conftest.$ac_ext <<_ACEOF
28980/* confdefs.h. */
28981_ACEOF
28982cat confdefs.h >>conftest.$ac_ext
28983cat >>conftest.$ac_ext <<_ACEOF
28984/* end confdefs.h. */
28985#include <$ac_header>
28986_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028987if { (ac_try="$ac_cpp conftest.$ac_ext"
28988case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28991esac
28992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028994 ac_status=$?
28995 grep -v '^ *+' conftest.er1 >conftest.err
28996 rm -f conftest.er1
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028999 (exit $ac_status); } >/dev/null; then
29000 if test -s conftest.err; then
29001 ac_cpp_err=$ac_c_preproc_warn_flag
29002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29003 else
29004 ac_cpp_err=
29005 fi
29006else
29007 ac_cpp_err=yes
29008fi
29009if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029010 ac_header_preproc=yes
29011else
29012 echo "$as_me: failed program was:" >&5
29013sed 's/^/| /' conftest.$ac_ext >&5
29014
29015 ac_header_preproc=no
29016fi
Reid Spencera773bd52006-08-04 18:18:08 +000029017
Reid Spencer59473af2004-12-25 07:31:29 +000029018rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29020echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029021
29022# So? What about this header?
29023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29024 yes:no: )
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29029 ac_header_preproc=yes
29030 ;;
29031 no:yes:* )
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029044 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029045## ----------------------------------- ##
29046## Report this to llvmbugs@cs.uiuc.edu ##
29047## ----------------------------------- ##
29048_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029049 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029050 ;;
29051esac
Reid Spencera773bd52006-08-04 18:18:08 +000029052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056else
29057 eval "$as_ac_Header=\$ac_header_preproc"
29058fi
Reid Spencera773bd52006-08-04 18:18:08 +000029059ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029062
29063fi
29064if test `eval echo '${'$as_ac_Header'}'` = yes; then
29065 cat >>confdefs.h <<_ACEOF
29066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29067_ACEOF
29068
29069fi
29070
29071done
29072
29073
Reid Spencerbe3e4192007-08-17 05:45:26 +000029074for ac_header in windows.h
29075do
29076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082fi
29083ac_res=`eval echo '${'$as_ac_Header'}'`
29084 { echo "$as_me:$LINENO: result: $ac_res" >&5
29085echo "${ECHO_T}$ac_res" >&6; }
29086else
29087 # Is the header compilable?
29088{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29090cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h. */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h. */
29096$ac_includes_default
29097#include <$ac_header>
29098_ACEOF
29099rm -f conftest.$ac_objext
29100if { (ac_try="$ac_compile"
29101case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29104esac
29105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29107 ac_status=$?
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117esac
29118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127esac
29128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029133 ac_header_compiler=yes
29134else
29135 echo "$as_me: failed program was:" >&5
29136sed 's/^/| /' conftest.$ac_ext >&5
29137
29138 ac_header_compiler=no
29139fi
29140
29141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29143echo "${ECHO_T}$ac_header_compiler" >&6; }
29144
29145# Is the header present?
29146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29148cat >conftest.$ac_ext <<_ACEOF
29149/* confdefs.h. */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h. */
29154#include <$ac_header>
29155_ACEOF
29156if { (ac_try="$ac_cpp conftest.$ac_ext"
29157case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29160esac
29161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29163 ac_status=$?
29164 grep -v '^ *+' conftest.er1 >conftest.err
29165 rm -f conftest.er1
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029168 (exit $ac_status); } >/dev/null; then
29169 if test -s conftest.err; then
29170 ac_cpp_err=$ac_c_preproc_warn_flag
29171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29172 else
29173 ac_cpp_err=
29174 fi
29175else
29176 ac_cpp_err=yes
29177fi
29178if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029179 ac_header_preproc=yes
29180else
29181 echo "$as_me: failed program was:" >&5
29182sed 's/^/| /' conftest.$ac_ext >&5
29183
29184 ac_header_preproc=no
29185fi
29186
29187rm -f conftest.err conftest.$ac_ext
29188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29189echo "${ECHO_T}$ac_header_preproc" >&6; }
29190
29191# So? What about this header?
29192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29193 yes:no: )
29194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29198 ac_header_preproc=yes
29199 ;;
29200 no:yes:* )
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29213 ( cat <<\_ASBOX
29214## ----------------------------------- ##
29215## Report this to llvmbugs@cs.uiuc.edu ##
29216## ----------------------------------- ##
29217_ASBOX
29218 ) | sed "s/^/$as_me: WARNING: /" >&2
29219 ;;
29220esac
29221{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29225else
29226 eval "$as_ac_Header=\$ac_header_preproc"
29227fi
29228ac_res=`eval echo '${'$as_ac_Header'}'`
29229 { echo "$as_me:$LINENO: result: $ac_res" >&5
29230echo "${ECHO_T}$ac_res" >&6; }
29231
29232fi
29233if test `eval echo '${'$as_ac_Header'}'` = yes; then
29234 cat >>confdefs.h <<_ACEOF
29235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29236_ACEOF
29237
29238fi
29239
29240done
Reid Spencer59473af2004-12-25 07:31:29 +000029241
29242
29243
29244
Reid Spencerbe3e4192007-08-17 05:45:26 +000029245
29246for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029247do
29248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029253 echo $ECHO_N "(cached) $ECHO_C" >&6
29254fi
Reid Spencera773bd52006-08-04 18:18:08 +000029255ac_res=`eval echo '${'$as_ac_Header'}'`
29256 { echo "$as_me:$LINENO: result: $ac_res" >&5
29257echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029258else
29259 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029262cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
29268$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029269#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029270_ACEOF
29271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029272if { (ac_try="$ac_compile"
29273case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29276esac
29277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029280 grep -v '^ *+' conftest.er1 >conftest.err
29281 rm -f conftest.er1
29282 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029284 (exit $ac_status); } &&
29285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29286 { (case "(($ac_try" in
29287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288 *) ac_try_echo=$ac_try;;
29289esac
29290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291 (eval "$ac_try") 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest.$ac_objext'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29299esac
29300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029305 ac_header_compiler=yes
29306else
29307 echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
Reid Spencera773bd52006-08-04 18:18:08 +000029310 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029311fi
Reid Spencera773bd52006-08-04 18:18:08 +000029312
29313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29315echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029316
29317# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029318{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029320cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029321/* confdefs.h. */
29322_ACEOF
29323cat confdefs.h >>conftest.$ac_ext
29324cat >>conftest.$ac_ext <<_ACEOF
29325/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029326#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029327_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029328if { (ac_try="$ac_cpp conftest.$ac_ext"
29329case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29332esac
29333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029335 ac_status=$?
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029340 (exit $ac_status); } >/dev/null; then
29341 if test -s conftest.err; then
29342 ac_cpp_err=$ac_c_preproc_warn_flag
29343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29344 else
29345 ac_cpp_err=
29346 fi
29347else
29348 ac_cpp_err=yes
29349fi
29350if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029351 ac_header_preproc=yes
29352else
29353 echo "$as_me: failed program was:" >&5
29354sed 's/^/| /' conftest.$ac_ext >&5
29355
29356 ac_header_preproc=no
29357fi
Reid Spencera773bd52006-08-04 18:18:08 +000029358
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029359rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29361echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029362
29363# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29365 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029370 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029371 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029372 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029385 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386## ----------------------------------- ##
29387## Report this to llvmbugs@cs.uiuc.edu ##
29388## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029389_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029390 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029391 ;;
29392esac
Reid Spencera773bd52006-08-04 18:18:08 +000029393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029396 echo $ECHO_N "(cached) $ECHO_C" >&6
29397else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029398 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029399fi
Reid Spencera773bd52006-08-04 18:18:08 +000029400ac_res=`eval echo '${'$as_ac_Header'}'`
29401 { echo "$as_me:$LINENO: result: $ac_res" >&5
29402echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029403
29404fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029405if test `eval echo '${'$as_ac_Header'}'` = yes; then
29406 cat >>confdefs.h <<_ACEOF
29407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029408_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029409
29410fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029411
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029412done
29413
John Criswell7ed43ad2004-07-19 16:12:29 +000029414
Reid Spencercdb08a32006-06-05 16:11:07 +000029415
Reid Spencera6d990a2006-09-14 06:17:21 +000029416
29417for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029418do
29419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029424 echo $ECHO_N "(cached) $ECHO_C" >&6
29425fi
Reid Spencera773bd52006-08-04 18:18:08 +000029426ac_res=`eval echo '${'$as_ac_Header'}'`
29427 { echo "$as_me:$LINENO: result: $ac_res" >&5
29428echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029429else
29430 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029431{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029433cat >conftest.$ac_ext <<_ACEOF
29434/* confdefs.h. */
29435_ACEOF
29436cat confdefs.h >>conftest.$ac_ext
29437cat >>conftest.$ac_ext <<_ACEOF
29438/* end confdefs.h. */
29439$ac_includes_default
29440#include <$ac_header>
29441_ACEOF
29442rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029443if { (ac_try="$ac_compile"
29444case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447esac
29448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029450 ac_status=$?
29451 grep -v '^ *+' conftest.er1 >conftest.err
29452 rm -f conftest.er1
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29457 { (case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29460esac
29461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462 (eval "$ac_try") 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest.$ac_objext'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470esac
29471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029476 ac_header_compiler=yes
29477else
29478 echo "$as_me: failed program was:" >&5
29479sed 's/^/| /' conftest.$ac_ext >&5
29480
Reid Spencera773bd52006-08-04 18:18:08 +000029481 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029482fi
Reid Spencera773bd52006-08-04 18:18:08 +000029483
29484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029487
29488# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029489{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029491cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
29497#include <$ac_header>
29498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029499if { (ac_try="$ac_cpp conftest.$ac_ext"
29500case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29503esac
29504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029506 ac_status=$?
29507 grep -v '^ *+' conftest.er1 >conftest.err
29508 rm -f conftest.er1
29509 cat conftest.err >&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029511 (exit $ac_status); } >/dev/null; then
29512 if test -s conftest.err; then
29513 ac_cpp_err=$ac_c_preproc_warn_flag
29514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29515 else
29516 ac_cpp_err=
29517 fi
29518else
29519 ac_cpp_err=yes
29520fi
29521if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029522 ac_header_preproc=yes
29523else
29524 echo "$as_me: failed program was:" >&5
29525sed 's/^/| /' conftest.$ac_ext >&5
29526
29527 ac_header_preproc=no
29528fi
Reid Spencera773bd52006-08-04 18:18:08 +000029529
Chris Lattner0b142592005-11-14 06:57:34 +000029530rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29532echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029533
29534# So? What about this header?
29535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29536 yes:no: )
29537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29541 ac_header_preproc=yes
29542 ;;
29543 no:yes:* )
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29551echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029556 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029557## ----------------------------------- ##
29558## Report this to llvmbugs@cs.uiuc.edu ##
29559## ----------------------------------- ##
29560_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029561 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029562 ;;
29563esac
Reid Spencera773bd52006-08-04 18:18:08 +000029564{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029567 echo $ECHO_N "(cached) $ECHO_C" >&6
29568else
29569 eval "$as_ac_Header=\$ac_header_preproc"
29570fi
Reid Spencera773bd52006-08-04 18:18:08 +000029571ac_res=`eval echo '${'$as_ac_Header'}'`
29572 { echo "$as_me:$LINENO: result: $ac_res" >&5
29573echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029574
29575fi
29576if test `eval echo '${'$as_ac_Header'}'` = yes; then
29577 cat >>confdefs.h <<_ACEOF
29578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29579_ACEOF
29580
29581fi
29582
29583done
29584
Reid Spencer0a262ba2005-08-24 10:07:20 +000029585if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029586
29587for ac_header in pthread.h
29588do
29589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029594 echo $ECHO_N "(cached) $ECHO_C" >&6
29595fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029596ac_res=`eval echo '${'$as_ac_Header'}'`
29597 { echo "$as_me:$LINENO: result: $ac_res" >&5
29598echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029599else
29600 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029601{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029603cat >conftest.$ac_ext <<_ACEOF
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029610#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029611_ACEOF
29612rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029613if { (ac_try="$ac_compile"
29614case "(($ac_try" in
29615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29617esac
29618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029620 ac_status=$?
29621 grep -v '^ *+' conftest.er1 >conftest.err
29622 rm -f conftest.er1
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029625 (exit $ac_status); } &&
29626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29627 { (case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630esac
29631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_try") 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; } &&
29636 { ac_try='test -s conftest.$ac_objext'
29637 { (case "(($ac_try" in
29638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639 *) ac_try_echo=$ac_try;;
29640esac
29641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29642 (eval "$ac_try") 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029646 ac_header_compiler=yes
29647else
29648 echo "$as_me: failed program was:" >&5
29649sed 's/^/| /' conftest.$ac_ext >&5
29650
Reid Spencera773bd52006-08-04 18:18:08 +000029651 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029652fi
Reid Spencera773bd52006-08-04 18:18:08 +000029653
29654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029657
29658# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029659{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029661cat >conftest.$ac_ext <<_ACEOF
29662/* confdefs.h. */
29663_ACEOF
29664cat confdefs.h >>conftest.$ac_ext
29665cat >>conftest.$ac_ext <<_ACEOF
29666/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029667#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029669if { (ac_try="$ac_cpp conftest.$ac_ext"
29670case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29673esac
29674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029676 ac_status=$?
29677 grep -v '^ *+' conftest.er1 >conftest.err
29678 rm -f conftest.er1
29679 cat conftest.err >&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029681 (exit $ac_status); } >/dev/null; then
29682 if test -s conftest.err; then
29683 ac_cpp_err=$ac_c_preproc_warn_flag
29684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29685 else
29686 ac_cpp_err=
29687 fi
29688else
29689 ac_cpp_err=yes
29690fi
29691if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029692 ac_header_preproc=yes
29693else
29694 echo "$as_me: failed program was:" >&5
29695sed 's/^/| /' conftest.$ac_ext >&5
29696
29697 ac_header_preproc=no
29698fi
Reid Spencera773bd52006-08-04 18:18:08 +000029699
Reid Spencer0a262ba2005-08-24 10:07:20 +000029700rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29702echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029703
29704# So? What about this header?
29705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29706 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029711 ac_header_preproc=yes
29712 ;;
29713 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029726 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029727## ----------------------------------- ##
29728## Report this to llvmbugs@cs.uiuc.edu ##
29729## ----------------------------------- ##
29730_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029731 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029732 ;;
29733esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029739 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029740fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029741ac_res=`eval echo '${'$as_ac_Header'}'`
29742 { echo "$as_me:$LINENO: result: $ac_res" >&5
29743echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029744
29745fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029746if test `eval echo '${'$as_ac_Header'}'` = yes; then
29747 cat >>confdefs.h <<_ACEOF
29748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29749_ACEOF
29750 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029751
29752else
29753 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029754
29755fi
29756
Reid Spencerbe3e4192007-08-17 05:45:26 +000029757done
Reid Spencer1000b732006-12-01 00:37:14 +000029758
29759else
29760 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029761
29762fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029763
29764
Reid Spencerb2ed05262006-11-03 18:04:08 +000029765
29766 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29767echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29768if test "${ac_cv_huge_val_sanity+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29770else
29771
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029772 ac_ext=cpp
29773ac_cpp='$CXXCPP $CPPFLAGS'
29774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029777
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029778 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029779 if test "$cross_compiling" = yes; then
29780 ac_cv_huge_val_sanity=yes
29781else
29782 cat >conftest.$ac_ext <<_ACEOF
29783/* confdefs.h. */
29784_ACEOF
29785cat confdefs.h >>conftest.$ac_ext
29786cat >>conftest.$ac_ext <<_ACEOF
29787/* end confdefs.h. */
29788#include <math.h>
29789int
29790main ()
29791{
29792double x = HUGE_VAL; return x != x;
29793 ;
29794 return 0;
29795}
29796_ACEOF
29797rm -f conftest$ac_exeext
29798if { (ac_try="$ac_link"
29799case "(($ac_try" in
29800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801 *) ac_try_echo=$ac_try;;
29802esac
29803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804 (eval "$ac_link") 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29808 { (case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29811esac
29812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_try") 2>&5
29814 ac_status=$?
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; }; then
29817 ac_cv_huge_val_sanity=yes
29818else
29819 echo "$as_me: program exited with status $ac_status" >&5
29820echo "$as_me: failed program was:" >&5
29821sed 's/^/| /' conftest.$ac_ext >&5
29822
29823( exit $ac_status )
29824ac_cv_huge_val_sanity=no
29825fi
29826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29827fi
29828
29829
29830 ac_ext=c
29831ac_cpp='$CPP $CPPFLAGS'
29832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29834ac_compiler_gnu=$ac_cv_c_compiler_gnu
29835
29836
29837fi
29838{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29839echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29840 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29841
29842
Reid Spencera773bd52006-08-04 18:18:08 +000029843{ echo "$as_me:$LINENO: checking for pid_t" >&5
29844echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029845if test "${ac_cv_type_pid_t+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29847else
29848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029849/* confdefs.h. */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029854$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029855typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029856int
29857main ()
29858{
Reid Spencera773bd52006-08-04 18:18:08 +000029859if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029860 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029861if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029862 return 0;
29863 ;
29864 return 0;
29865}
29866_ACEOF
29867rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029868if { (ac_try="$ac_compile"
29869case "(($ac_try" in
29870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871 *) ac_try_echo=$ac_try;;
29872esac
29873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029876 grep -v '^ *+' conftest.er1 >conftest.err
29877 rm -f conftest.er1
29878 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029880 (exit $ac_status); } &&
29881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29882 { (case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29885esac
29886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_try") 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest.$ac_objext'
29892 { (case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895esac
29896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_try") 2>&5
29898 ac_status=$?
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029901 ac_cv_type_pid_t=yes
29902else
29903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029904sed 's/^/| /' conftest.$ac_ext >&5
29905
Reid Spencera773bd52006-08-04 18:18:08 +000029906 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029907fi
Reid Spencera773bd52006-08-04 18:18:08 +000029908
29909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029910fi
Reid Spencera773bd52006-08-04 18:18:08 +000029911{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29912echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029913if test $ac_cv_type_pid_t = yes; then
29914 :
29915else
29916
29917cat >>confdefs.h <<_ACEOF
29918#define pid_t int
29919_ACEOF
29920
29921fi
29922
Reid Spencera773bd52006-08-04 18:18:08 +000029923{ echo "$as_me:$LINENO: checking for size_t" >&5
29924echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029925if test "${ac_cv_type_size_t+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29927else
29928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029934$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029935typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029936int
29937main ()
29938{
Reid Spencera773bd52006-08-04 18:18:08 +000029939if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029940 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029941if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029942 return 0;
29943 ;
29944 return 0;
29945}
29946_ACEOF
29947rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029948if { (ac_try="$ac_compile"
29949case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029955 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029956 grep -v '^ *+' conftest.er1 >conftest.err
29957 rm -f conftest.er1
29958 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029960 (exit $ac_status); } &&
29961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29965esac
29966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest.$ac_objext'
29972 { (case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975esac
29976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029981 ac_cv_type_size_t=yes
29982else
29983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029984sed 's/^/| /' conftest.$ac_ext >&5
29985
Reid Spencera773bd52006-08-04 18:18:08 +000029986 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029987fi
Reid Spencera773bd52006-08-04 18:18:08 +000029988
29989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029990fi
Reid Spencera773bd52006-08-04 18:18:08 +000029991{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29992echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029993if test $ac_cv_type_size_t = yes; then
29994 :
29995else
29996
29997cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029998#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029999_ACEOF
30000
30001fi
30002
Reid Spencera773bd52006-08-04 18:18:08 +000030003{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30004echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030005if test "${ac_cv_type_signal+set}" = set; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30007else
30008 cat >conftest.$ac_ext <<_ACEOF
30009/* confdefs.h. */
30010_ACEOF
30011cat confdefs.h >>conftest.$ac_ext
30012cat >>conftest.$ac_ext <<_ACEOF
30013/* end confdefs.h. */
30014#include <sys/types.h>
30015#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016
30017int
30018main ()
30019{
Reid Spencera773bd52006-08-04 18:18:08 +000030020return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030021 ;
30022 return 0;
30023}
30024_ACEOF
30025rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030026if { (ac_try="$ac_compile"
30027case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30030esac
30031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030033 ac_status=$?
30034 grep -v '^ *+' conftest.er1 >conftest.err
30035 rm -f conftest.er1
30036 cat conftest.err >&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030038 (exit $ac_status); } &&
30039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30040 { (case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30043esac
30044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30045 (eval "$ac_try") 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
30049 { ac_try='test -s conftest.$ac_objext'
30050 { (case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30053esac
30054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055 (eval "$ac_try") 2>&5
30056 ac_status=$?
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030059 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030060else
30061 echo "$as_me: failed program was:" >&5
30062sed 's/^/| /' conftest.$ac_ext >&5
30063
Reid Spencera773bd52006-08-04 18:18:08 +000030064 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030065fi
Reid Spencera773bd52006-08-04 18:18:08 +000030066
30067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030068fi
Reid Spencera773bd52006-08-04 18:18:08 +000030069{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30070echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030071
30072cat >>confdefs.h <<_ACEOF
30073#define RETSIGTYPE $ac_cv_type_signal
30074_ACEOF
30075
30076
Reid Spencera773bd52006-08-04 18:18:08 +000030077{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30078echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030079if test "${ac_cv_struct_tm+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
30088#include <sys/types.h>
30089#include <time.h>
30090
30091int
30092main ()
30093{
Tanya Lattnercf067672008-01-17 05:57:22 +000030094struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030095 ;
30096 return 0;
30097}
30098_ACEOF
30099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030100if { (ac_try="$ac_compile"
30101case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030107 ac_status=$?
30108 grep -v '^ *+' conftest.er1 >conftest.err
30109 rm -f conftest.er1
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30127esac
30128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030133 ac_cv_struct_tm=time.h
30134else
30135 echo "$as_me: failed program was:" >&5
30136sed 's/^/| /' conftest.$ac_ext >&5
30137
Reid Spencera773bd52006-08-04 18:18:08 +000030138 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139fi
Reid Spencera773bd52006-08-04 18:18:08 +000030140
30141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030142fi
Reid Spencera773bd52006-08-04 18:18:08 +000030143{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30144echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030145if test $ac_cv_struct_tm = sys/time.h; then
30146
30147cat >>confdefs.h <<\_ACEOF
30148#define TM_IN_SYS_TIME 1
30149_ACEOF
30150
30151fi
30152
Reid Spencera773bd52006-08-04 18:18:08 +000030153{ echo "$as_me:$LINENO: checking for int64_t" >&5
30154echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030155if test "${ac_cv_type_int64_t+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157else
30158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030159/* confdefs.h. */
30160_ACEOF
30161cat confdefs.h >>conftest.$ac_ext
30162cat >>conftest.$ac_ext <<_ACEOF
30163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030164$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030165typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030166int
30167main ()
30168{
Reid Spencera773bd52006-08-04 18:18:08 +000030169if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030170 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030171if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030172 return 0;
30173 ;
30174 return 0;
30175}
30176_ACEOF
30177rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030178if { (ac_try="$ac_compile"
30179case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30182esac
30183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030185 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030186 grep -v '^ *+' conftest.er1 >conftest.err
30187 rm -f conftest.er1
30188 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30195esac
30196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest.$ac_objext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30205esac
30206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030211 ac_cv_type_int64_t=yes
30212else
30213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030214sed 's/^/| /' conftest.$ac_ext >&5
30215
Reid Spencera773bd52006-08-04 18:18:08 +000030216 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030217fi
Reid Spencera773bd52006-08-04 18:18:08 +000030218
30219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030220fi
Reid Spencera773bd52006-08-04 18:18:08 +000030221{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30222echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030223if test $ac_cv_type_int64_t = yes; then
30224
30225cat >>confdefs.h <<_ACEOF
30226#define HAVE_INT64_T 1
30227_ACEOF
30228
30229
30230else
30231 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30232echo "$as_me: error: Type int64_t required but not found" >&2;}
30233 { (exit 1); exit 1; }; }
30234fi
30235
Reid Spencera773bd52006-08-04 18:18:08 +000030236{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30237echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030238if test "${ac_cv_type_uint64_t+set}" = set; then
30239 echo $ECHO_N "(cached) $ECHO_C" >&6
30240else
30241 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030242/* confdefs.h. */
30243_ACEOF
30244cat confdefs.h >>conftest.$ac_ext
30245cat >>conftest.$ac_ext <<_ACEOF
30246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030247$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030248typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030249int
30250main ()
30251{
Reid Spencera773bd52006-08-04 18:18:08 +000030252if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030253 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030254if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030255 return 0;
30256 ;
30257 return 0;
30258}
30259_ACEOF
30260rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030261if { (ac_try="$ac_compile"
30262case "(($ac_try" in
30263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264 *) ac_try_echo=$ac_try;;
30265esac
30266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030269 grep -v '^ *+' conftest.er1 >conftest.err
30270 rm -f conftest.er1
30271 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030273 (exit $ac_status); } &&
30274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
30285 { (case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_try") 2>&5
30291 ac_status=$?
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030294 ac_cv_type_uint64_t=yes
30295else
30296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030297sed 's/^/| /' conftest.$ac_ext >&5
30298
Reid Spencera773bd52006-08-04 18:18:08 +000030299 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030300fi
Reid Spencera773bd52006-08-04 18:18:08 +000030301
30302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030303fi
Reid Spencera773bd52006-08-04 18:18:08 +000030304{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30305echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030306if test $ac_cv_type_uint64_t = yes; then
30307
30308cat >>confdefs.h <<_ACEOF
30309#define HAVE_UINT64_T 1
30310_ACEOF
30311
30312
30313else
Reid Spencera773bd52006-08-04 18:18:08 +000030314 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30315echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030316if test "${ac_cv_type_u_int64_t+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30318else
30319 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030320/* confdefs.h. */
30321_ACEOF
30322cat confdefs.h >>conftest.$ac_ext
30323cat >>conftest.$ac_ext <<_ACEOF
30324/* end confdefs.h. */
30325$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030326typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030327int
30328main ()
30329{
Reid Spencera773bd52006-08-04 18:18:08 +000030330if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030331 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030332if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030333 return 0;
30334 ;
30335 return 0;
30336}
30337_ACEOF
30338rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030339if { (ac_try="$ac_compile"
30340case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30343esac
30344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30356esac
30357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30366esac
30367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030372 ac_cv_type_u_int64_t=yes
30373else
30374 echo "$as_me: failed program was:" >&5
30375sed 's/^/| /' conftest.$ac_ext >&5
30376
Reid Spencera773bd52006-08-04 18:18:08 +000030377 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030378fi
Reid Spencera773bd52006-08-04 18:18:08 +000030379
30380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030381fi
Reid Spencera773bd52006-08-04 18:18:08 +000030382{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30383echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030384if test $ac_cv_type_u_int64_t = yes; then
30385
30386cat >>confdefs.h <<_ACEOF
30387#define HAVE_U_INT64_T 1
30388_ACEOF
30389
30390
Misha Brukmanceca9042004-09-02 23:02:30 +000030391else
30392 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30393echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30394 { (exit 1); exit 1; }; }
30395fi
30396
John Criswell679ff312004-09-02 18:44:44 +000030397fi
30398
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030399
30400
30401
30402
30403
30404
30405
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030406
30407
Reid Spencerdf3be822006-01-23 08:15:53 +000030408for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030409do
30410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030411{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030414 echo $ECHO_N "(cached) $ECHO_C" >&6
30415else
30416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030417/* confdefs.h. */
30418_ACEOF
30419cat confdefs.h >>conftest.$ac_ext
30420cat >>conftest.$ac_ext <<_ACEOF
30421/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30424#define $ac_func innocuous_$ac_func
30425
30426/* System header to define __stub macros and hopefully few prototypes,
30427 which can conflict with char $ac_func (); below.
30428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30429 <limits.h> exists even on freestanding compilers. */
30430
30431#ifdef __STDC__
30432# include <limits.h>
30433#else
30434# include <assert.h>
30435#endif
30436
30437#undef $ac_func
30438
Reid Spencera773bd52006-08-04 18:18:08 +000030439/* Override any GCC internal prototype to avoid an error.
30440 Use char because int might match the return type of a GCC
30441 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030442#ifdef __cplusplus
30443extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030444#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445char $ac_func ();
30446/* The GNU C library defines this for functions which it implements
30447 to always fail with ENOSYS. Some functions are actually named
30448 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030449#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030450choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030451#endif
John Criswell7a73b802003-06-30 21:59:07 +000030452
John Criswell7a73b802003-06-30 21:59:07 +000030453int
30454main ()
30455{
Reid Spencera773bd52006-08-04 18:18:08 +000030456return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030457 ;
30458 return 0;
30459}
30460_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030461rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030462if { (ac_try="$ac_link"
30463case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30466esac
30467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30468 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030470 grep -v '^ *+' conftest.er1 >conftest.err
30471 rm -f conftest.er1
30472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030474 (exit $ac_status); } &&
30475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30476 { (case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_try") 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; } &&
30485 { ac_try='test -s conftest$ac_exeext'
30486 { (case "(($ac_try" in
30487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 *) ac_try_echo=$ac_try;;
30489esac
30490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 (eval "$ac_try") 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030495 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030496else
30497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030498sed 's/^/| /' conftest.$ac_ext >&5
30499
Reid Spencera773bd52006-08-04 18:18:08 +000030500 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030501fi
Reid Spencera773bd52006-08-04 18:18:08 +000030502
Tanya Lattnercf067672008-01-17 05:57:22 +000030503rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030504 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030505fi
Reid Spencera773bd52006-08-04 18:18:08 +000030506ac_res=`eval echo '${'$as_ac_var'}'`
30507 { echo "$as_me:$LINENO: result: $ac_res" >&5
30508echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030509if test `eval echo '${'$as_ac_var'}'` = yes; then
30510 cat >>confdefs.h <<_ACEOF
30511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030512_ACEOF
30513
30514fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030515done
John Criswell7a73b802003-06-30 21:59:07 +000030516
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030517
30518
30519
Reid Spencer6af3d262004-12-15 04:01:48 +000030520
Reid Spencer96cf5872007-07-13 10:05:30 +000030521for ac_func in powf fmodf strtof round
30522do
30523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30524{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30526if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30528else
30529 cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
30535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30537#define $ac_func innocuous_$ac_func
30538
30539/* System header to define __stub macros and hopefully few prototypes,
30540 which can conflict with char $ac_func (); below.
30541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542 <limits.h> exists even on freestanding compilers. */
30543
30544#ifdef __STDC__
30545# include <limits.h>
30546#else
30547# include <assert.h>
30548#endif
30549
30550#undef $ac_func
30551
30552/* Override any GCC internal prototype to avoid an error.
30553 Use char because int might match the return type of a GCC
30554 builtin and then its argument prototype would still apply. */
30555#ifdef __cplusplus
30556extern "C"
30557#endif
30558char $ac_func ();
30559/* The GNU C library defines this for functions which it implements
30560 to always fail with ENOSYS. Some functions are actually named
30561 something starting with __ and the normal name is an alias. */
30562#if defined __stub_$ac_func || defined __stub___$ac_func
30563choke me
30564#endif
30565
30566int
30567main ()
30568{
30569return $ac_func ();
30570 ;
30571 return 0;
30572}
30573_ACEOF
30574rm -f conftest.$ac_objext conftest$ac_exeext
30575if { (ac_try="$ac_link"
30576case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30579esac
30580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_link") 2>conftest.er1
30582 ac_status=$?
30583 grep -v '^ *+' conftest.er1 >conftest.err
30584 rm -f conftest.er1
30585 cat conftest.err >&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030587 (exit $ac_status); } &&
30588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30589 { (case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30592esac
30593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_try") 2>&5
30595 ac_status=$?
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; } &&
30598 { ac_try='test -s conftest$ac_exeext'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030608 eval "$as_ac_var=yes"
30609else
30610 echo "$as_me: failed program was:" >&5
30611sed 's/^/| /' conftest.$ac_ext >&5
30612
30613 eval "$as_ac_var=no"
30614fi
30615
Tanya Lattnercf067672008-01-17 05:57:22 +000030616rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030617 conftest$ac_exeext conftest.$ac_ext
30618fi
30619ac_res=`eval echo '${'$as_ac_var'}'`
30620 { echo "$as_me:$LINENO: result: $ac_res" >&5
30621echo "${ECHO_T}$ac_res" >&6; }
30622if test `eval echo '${'$as_ac_var'}'` = yes; then
30623 cat >>confdefs.h <<_ACEOF
30624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30625_ACEOF
30626
30627fi
30628done
30629
30630
30631
30632
30633
Reid Spencer6af3d262004-12-15 04:01:48 +000030634
Reid Spencerb90645c2007-02-16 19:17:20 +000030635for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30636do
30637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30638{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30640if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642else
30643 cat >conftest.$ac_ext <<_ACEOF
30644/* confdefs.h. */
30645_ACEOF
30646cat confdefs.h >>conftest.$ac_ext
30647cat >>conftest.$ac_ext <<_ACEOF
30648/* end confdefs.h. */
30649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30651#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030652
Reid Spencerb90645c2007-02-16 19:17:20 +000030653/* System header to define __stub macros and hopefully few prototypes,
30654 which can conflict with char $ac_func (); below.
30655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30656 <limits.h> exists even on freestanding compilers. */
30657
30658#ifdef __STDC__
30659# include <limits.h>
30660#else
30661# include <assert.h>
30662#endif
30663
30664#undef $ac_func
30665
30666/* Override any GCC internal prototype to avoid an error.
30667 Use char because int might match the return type of a GCC
30668 builtin and then its argument prototype would still apply. */
30669#ifdef __cplusplus
30670extern "C"
30671#endif
30672char $ac_func ();
30673/* The GNU C library defines this for functions which it implements
30674 to always fail with ENOSYS. Some functions are actually named
30675 something starting with __ and the normal name is an alias. */
30676#if defined __stub_$ac_func || defined __stub___$ac_func
30677choke me
30678#endif
30679
30680int
30681main ()
30682{
30683return $ac_func ();
30684 ;
30685 return 0;
30686}
30687_ACEOF
30688rm -f conftest.$ac_objext conftest$ac_exeext
30689if { (ac_try="$ac_link"
30690case "(($ac_try" in
30691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30692 *) ac_try_echo=$ac_try;;
30693esac
30694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30695 (eval "$ac_link") 2>conftest.er1
30696 ac_status=$?
30697 grep -v '^ *+' conftest.er1 >conftest.err
30698 rm -f conftest.er1
30699 cat conftest.err >&5
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030701 (exit $ac_status); } &&
30702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30703 { (case "(($ac_try" in
30704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705 *) ac_try_echo=$ac_try;;
30706esac
30707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708 (eval "$ac_try") 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; } &&
30712 { ac_try='test -s conftest$ac_exeext'
30713 { (case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30716esac
30717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_try") 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030722 eval "$as_ac_var=yes"
30723else
30724 echo "$as_me: failed program was:" >&5
30725sed 's/^/| /' conftest.$ac_ext >&5
30726
30727 eval "$as_ac_var=no"
30728fi
30729
Tanya Lattnercf067672008-01-17 05:57:22 +000030730rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030731 conftest$ac_exeext conftest.$ac_ext
30732fi
30733ac_res=`eval echo '${'$as_ac_var'}'`
30734 { echo "$as_me:$LINENO: result: $ac_res" >&5
30735echo "${ECHO_T}$ac_res" >&6; }
30736if test `eval echo '${'$as_ac_var'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30739_ACEOF
30740
30741fi
30742done
30743
30744
30745
30746
30747for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030748do
30749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030753 echo $ECHO_N "(cached) $ECHO_C" >&6
30754else
30755 cat >conftest.$ac_ext <<_ACEOF
30756/* confdefs.h. */
30757_ACEOF
30758cat confdefs.h >>conftest.$ac_ext
30759cat >>conftest.$ac_ext <<_ACEOF
30760/* end confdefs.h. */
30761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30763#define $ac_func innocuous_$ac_func
30764
30765/* System header to define __stub macros and hopefully few prototypes,
30766 which can conflict with char $ac_func (); below.
30767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30768 <limits.h> exists even on freestanding compilers. */
30769
30770#ifdef __STDC__
30771# include <limits.h>
30772#else
30773# include <assert.h>
30774#endif
30775
30776#undef $ac_func
30777
Reid Spencera773bd52006-08-04 18:18:08 +000030778/* Override any GCC internal prototype to avoid an error.
30779 Use char because int might match the return type of a GCC
30780 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030781#ifdef __cplusplus
30782extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030783#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030784char $ac_func ();
30785/* The GNU C library defines this for functions which it implements
30786 to always fail with ENOSYS. Some functions are actually named
30787 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030788#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030789choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030790#endif
30791
30792int
30793main ()
30794{
Reid Spencera773bd52006-08-04 18:18:08 +000030795return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030796 ;
30797 return 0;
30798}
30799_ACEOF
30800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030801if { (ac_try="$ac_link"
30802case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30805esac
30806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030808 ac_status=$?
30809 grep -v '^ *+' conftest.er1 >conftest.err
30810 rm -f conftest.er1
30811 cat conftest.err >&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30818esac
30819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest$ac_exeext'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30828esac
30829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30831 ac_status=$?
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030834 eval "$as_ac_var=yes"
30835else
30836 echo "$as_me: failed program was:" >&5
30837sed 's/^/| /' conftest.$ac_ext >&5
30838
Reid Spencera773bd52006-08-04 18:18:08 +000030839 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030840fi
Reid Spencera773bd52006-08-04 18:18:08 +000030841
Tanya Lattnercf067672008-01-17 05:57:22 +000030842rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030843 conftest$ac_exeext conftest.$ac_ext
30844fi
Reid Spencera773bd52006-08-04 18:18:08 +000030845ac_res=`eval echo '${'$as_ac_var'}'`
30846 { echo "$as_me:$LINENO: result: $ac_res" >&5
30847echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030848if test `eval echo '${'$as_ac_var'}'` = yes; then
30849 cat >>confdefs.h <<_ACEOF
30850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30851_ACEOF
30852
30853fi
30854done
30855
30856
30857
30858
30859
30860
30861
30862
30863for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030864do
30865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030866{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030869 echo $ECHO_N "(cached) $ECHO_C" >&6
30870else
30871 cat >conftest.$ac_ext <<_ACEOF
30872/* confdefs.h. */
30873_ACEOF
30874cat confdefs.h >>conftest.$ac_ext
30875cat >>conftest.$ac_ext <<_ACEOF
30876/* end confdefs.h. */
30877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30879#define $ac_func innocuous_$ac_func
30880
30881/* System header to define __stub macros and hopefully few prototypes,
30882 which can conflict with char $ac_func (); below.
30883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884 <limits.h> exists even on freestanding compilers. */
30885
30886#ifdef __STDC__
30887# include <limits.h>
30888#else
30889# include <assert.h>
30890#endif
30891
30892#undef $ac_func
30893
Reid Spencera773bd52006-08-04 18:18:08 +000030894/* Override any GCC internal prototype to avoid an error.
30895 Use char because int might match the return type of a GCC
30896 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030897#ifdef __cplusplus
30898extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030899#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030900char $ac_func ();
30901/* The GNU C library defines this for functions which it implements
30902 to always fail with ENOSYS. Some functions are actually named
30903 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030904#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030905choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030906#endif
30907
30908int
30909main ()
30910{
Reid Spencera773bd52006-08-04 18:18:08 +000030911return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030912 ;
30913 return 0;
30914}
30915_ACEOF
30916rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030917if { (ac_try="$ac_link"
30918case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30921esac
30922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030924 ac_status=$?
30925 grep -v '^ *+' conftest.er1 >conftest.err
30926 rm -f conftest.er1
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030929 (exit $ac_status); } &&
30930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30931 { (case "(($ac_try" in
30932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30933 *) ac_try_echo=$ac_try;;
30934esac
30935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30936 (eval "$ac_try") 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; } &&
30940 { ac_try='test -s conftest$ac_exeext'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30944esac
30945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030950 eval "$as_ac_var=yes"
30951else
30952 echo "$as_me: failed program was:" >&5
30953sed 's/^/| /' conftest.$ac_ext >&5
30954
Reid Spencera773bd52006-08-04 18:18:08 +000030955 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030956fi
Reid Spencera773bd52006-08-04 18:18:08 +000030957
Tanya Lattnercf067672008-01-17 05:57:22 +000030958rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030959 conftest$ac_exeext conftest.$ac_ext
30960fi
Reid Spencera773bd52006-08-04 18:18:08 +000030961ac_res=`eval echo '${'$as_ac_var'}'`
30962 { echo "$as_me:$LINENO: result: $ac_res" >&5
30963echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030964if test `eval echo '${'$as_ac_var'}'` = yes; then
30965 cat >>confdefs.h <<_ACEOF
30966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30967_ACEOF
30968
30969fi
30970done
30971
30972
Reid Spencerba46ca32004-12-31 05:49:15 +000030973
30974
Chris Lattner0b142592005-11-14 06:57:34 +000030975
Chris Lattner511f11d2005-11-14 07:25:50 +000030976for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030977do
30978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983else
30984 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030985/* confdefs.h. */
30986_ACEOF
30987cat confdefs.h >>conftest.$ac_ext
30988cat >>conftest.$ac_ext <<_ACEOF
30989/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992#define $ac_func innocuous_$ac_func
30993
30994/* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
30998
30999#ifdef __STDC__
31000# include <limits.h>
31001#else
31002# include <assert.h>
31003#endif
31004
31005#undef $ac_func
31006
Reid Spencera773bd52006-08-04 18:18:08 +000031007/* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010#ifdef __cplusplus
31011extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031012#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013char $ac_func ();
31014/* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031017#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031018choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031019#endif
John Criswell7a73b802003-06-30 21:59:07 +000031020
John Criswell7a73b802003-06-30 21:59:07 +000031021int
31022main ()
31023{
Reid Spencera773bd52006-08-04 18:18:08 +000031024return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031025 ;
31026 return 0;
31027}
31028_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031029rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031030if { (ac_try="$ac_link"
31031case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31034esac
31035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031038 grep -v '^ *+' conftest.er1 >conftest.err
31039 rm -f conftest.er1
31040 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031042 (exit $ac_status); } &&
31043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044 { (case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31047esac
31048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_try") 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31057esac
31058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031064else
31065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031066sed 's/^/| /' conftest.$ac_ext >&5
31067
Reid Spencera773bd52006-08-04 18:18:08 +000031068 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031069fi
Reid Spencera773bd52006-08-04 18:18:08 +000031070
Tanya Lattnercf067672008-01-17 05:57:22 +000031071rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031072 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031073fi
Reid Spencera773bd52006-08-04 18:18:08 +000031074ac_res=`eval echo '${'$as_ac_var'}'`
31075 { echo "$as_me:$LINENO: result: $ac_res" >&5
31076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031077if test `eval echo '${'$as_ac_var'}'` = yes; then
31078 cat >>confdefs.h <<_ACEOF
31079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031080_ACEOF
31081
31082fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083done
John Criswell7a73b802003-06-30 21:59:07 +000031084
Reid Spencercdb08a32006-06-05 16:11:07 +000031085
31086
31087
31088
Reid Spencerafa22e22006-12-10 23:29:19 +000031089for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031090do
31091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031092{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31094if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031095 echo $ECHO_N "(cached) $ECHO_C" >&6
31096else
31097 cat >conftest.$ac_ext <<_ACEOF
31098/* confdefs.h. */
31099_ACEOF
31100cat confdefs.h >>conftest.$ac_ext
31101cat >>conftest.$ac_ext <<_ACEOF
31102/* end confdefs.h. */
31103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31105#define $ac_func innocuous_$ac_func
31106
31107/* System header to define __stub macros and hopefully few prototypes,
31108 which can conflict with char $ac_func (); below.
31109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31110 <limits.h> exists even on freestanding compilers. */
31111
31112#ifdef __STDC__
31113# include <limits.h>
31114#else
31115# include <assert.h>
31116#endif
31117
31118#undef $ac_func
31119
Reid Spencera773bd52006-08-04 18:18:08 +000031120/* Override any GCC internal prototype to avoid an error.
31121 Use char because int might match the return type of a GCC
31122 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031123#ifdef __cplusplus
31124extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031125#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031126char $ac_func ();
31127/* The GNU C library defines this for functions which it implements
31128 to always fail with ENOSYS. Some functions are actually named
31129 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031130#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031131choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031132#endif
31133
31134int
31135main ()
31136{
Reid Spencera773bd52006-08-04 18:18:08 +000031137return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031138 ;
31139 return 0;
31140}
31141_ACEOF
31142rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031143if { (ac_try="$ac_link"
31144case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31147esac
31148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031150 ac_status=$?
31151 grep -v '^ *+' conftest.er1 >conftest.err
31152 rm -f conftest.er1
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031155 (exit $ac_status); } &&
31156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31157 { (case "(($ac_try" in
31158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31159 *) ac_try_echo=$ac_try;;
31160esac
31161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31162 (eval "$ac_try") 2>&5
31163 ac_status=$?
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); }; } &&
31166 { ac_try='test -s conftest$ac_exeext'
31167 { (case "(($ac_try" in
31168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169 *) ac_try_echo=$ac_try;;
31170esac
31171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172 (eval "$ac_try") 2>&5
31173 ac_status=$?
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031176 eval "$as_ac_var=yes"
31177else
31178 echo "$as_me: failed program was:" >&5
31179sed 's/^/| /' conftest.$ac_ext >&5
31180
Reid Spencera773bd52006-08-04 18:18:08 +000031181 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031182fi
Reid Spencera773bd52006-08-04 18:18:08 +000031183
Tanya Lattnercf067672008-01-17 05:57:22 +000031184rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031185 conftest$ac_exeext conftest.$ac_ext
31186fi
Reid Spencera773bd52006-08-04 18:18:08 +000031187ac_res=`eval echo '${'$as_ac_var'}'`
31188 { echo "$as_me:$LINENO: result: $ac_res" >&5
31189echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031190if test `eval echo '${'$as_ac_var'}'` = yes; then
31191 cat >>confdefs.h <<_ACEOF
31192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31193_ACEOF
31194
31195fi
31196done
31197
Reid Spencera773bd52006-08-04 18:18:08 +000031198{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31199echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031200if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031201 echo $ECHO_N "(cached) $ECHO_C" >&6
31202else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031203 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031204ac_cpp='$CPP $CPPFLAGS'
31205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31207ac_compiler_gnu=$ac_cv_c_compiler_gnu
31208
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031210 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031211else
31212 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031213
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031219
John Criswella0137d32003-10-13 16:22:01 +000031220#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031221#include <stdlib.h>
31222
John Criswella0137d32003-10-13 16:22:01 +000031223int
31224main ()
31225{
31226
Reid Spencer2706f8c2004-09-19 23:53:36 +000031227volatile double A, B;
31228char Buffer[100];
31229A = 1;
31230A /= 10.0;
31231sprintf(Buffer, "%a", A);
31232B = atof(Buffer);
31233if (A != B)
31234 return (1);
31235if (A != 0x1.999999999999ap-4)
31236 return (1);
31237return (0);
John Criswella0137d32003-10-13 16:22:01 +000031238 ;
31239 return 0;
31240}
31241_ACEOF
31242rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031243if { (ac_try="$ac_link"
31244case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247esac
31248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031253 { (case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31256esac
31257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031259 ac_status=$?
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031262 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031263else
31264 echo "$as_me: program exited with status $ac_status" >&5
31265echo "$as_me: failed program was:" >&5
31266sed 's/^/| /' conftest.$ac_ext >&5
31267
31268( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031269llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031270fi
Reid Spencera773bd52006-08-04 18:18:08 +000031271rm -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 +000031272fi
Reid Spencera773bd52006-08-04 18:18:08 +000031273
31274
Reid Spencer2706f8c2004-09-19 23:53:36 +000031275 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031276ac_cpp='$CPP $CPPFLAGS'
31277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31279ac_compiler_gnu=$ac_cv_c_compiler_gnu
31280
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031281fi
Reid Spencera773bd52006-08-04 18:18:08 +000031282{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31283echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031284 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031285
31286cat >>confdefs.h <<\_ACEOF
31287#define HAVE_PRINTF_A 1
31288_ACEOF
31289
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 fi
John Criswella0137d32003-10-13 16:22:01 +000031291
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31293# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031294{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31295echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031296if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031297 echo $ECHO_N "(cached) $ECHO_C" >&6
31298else
John Criswell0021c312004-02-13 21:57:29 +000031299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031300/* confdefs.h. */
31301_ACEOF
31302cat confdefs.h >>conftest.$ac_ext
31303cat >>conftest.$ac_ext <<_ACEOF
31304/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031305#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031306int
31307main ()
31308{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031310 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031311 ;
31312 return 0;
31313}
31314_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031316if { (ac_try="$ac_link"
31317case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31320esac
31321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031324 grep -v '^ *+' conftest.er1 >conftest.err
31325 rm -f conftest.er1
31326 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031328 (exit $ac_status); } &&
31329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31333esac
31334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest$ac_exeext'
31340 { (case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31343esac
31344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_try") 2>&5
31346 ac_status=$?
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031349 ac_cv_working_alloca_h=yes
31350else
31351 echo "$as_me: failed program was:" >&5
31352sed 's/^/| /' conftest.$ac_ext >&5
31353
Reid Spencera773bd52006-08-04 18:18:08 +000031354 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031355fi
Reid Spencera773bd52006-08-04 18:18:08 +000031356
Tanya Lattnercf067672008-01-17 05:57:22 +000031357rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031358 conftest$ac_exeext conftest.$ac_ext
31359fi
Reid Spencera773bd52006-08-04 18:18:08 +000031360{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31361echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031362if test $ac_cv_working_alloca_h = yes; then
31363
31364cat >>confdefs.h <<\_ACEOF
31365#define HAVE_ALLOCA_H 1
31366_ACEOF
31367
31368fi
31369
Reid Spencera773bd52006-08-04 18:18:08 +000031370{ echo "$as_me:$LINENO: checking for alloca" >&5
31371echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031372if test "${ac_cv_func_alloca_works+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31374else
31375 cat >conftest.$ac_ext <<_ACEOF
31376/* confdefs.h. */
31377_ACEOF
31378cat confdefs.h >>conftest.$ac_ext
31379cat >>conftest.$ac_ext <<_ACEOF
31380/* end confdefs.h. */
31381#ifdef __GNUC__
31382# define alloca __builtin_alloca
31383#else
31384# ifdef _MSC_VER
31385# include <malloc.h>
31386# define alloca _alloca
31387# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031388# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389# include <alloca.h>
31390# else
31391# ifdef _AIX
31392 #pragma alloca
31393# else
31394# ifndef alloca /* predefined by HP cc +Olibcalls */
31395char *alloca ();
31396# endif
31397# endif
31398# endif
31399# endif
31400#endif
31401
31402int
31403main ()
31404{
31405char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031406 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031407 ;
31408 return 0;
31409}
31410_ACEOF
31411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031412if { (ac_try="$ac_link"
31413case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416esac
31417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031419 ac_status=$?
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031424 (exit $ac_status); } &&
31425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31429esac
31430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
31436 { (case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31439esac
31440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_try") 2>&5
31442 ac_status=$?
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031445 ac_cv_func_alloca_works=yes
31446else
31447 echo "$as_me: failed program was:" >&5
31448sed 's/^/| /' conftest.$ac_ext >&5
31449
Reid Spencera773bd52006-08-04 18:18:08 +000031450 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031451fi
Reid Spencera773bd52006-08-04 18:18:08 +000031452
Tanya Lattnercf067672008-01-17 05:57:22 +000031453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454 conftest$ac_exeext conftest.$ac_ext
31455fi
Reid Spencera773bd52006-08-04 18:18:08 +000031456{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31457echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031458
31459if test $ac_cv_func_alloca_works = yes; then
31460
31461cat >>confdefs.h <<\_ACEOF
31462#define HAVE_ALLOCA 1
31463_ACEOF
31464
31465else
31466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31467# that cause trouble. Some versions do not even contain alloca or
31468# contain a buggy version. If you still want to use their alloca,
31469# use ar to extract alloca.o from them instead of compiling alloca.c.
31470
Reid Spencera773bd52006-08-04 18:18:08 +000031471ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031472
31473cat >>confdefs.h <<\_ACEOF
31474#define C_ALLOCA 1
31475_ACEOF
31476
31477
Reid Spencera773bd52006-08-04 18:18:08 +000031478{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31479echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031480if test "${ac_cv_os_cray+set}" = set; then
31481 echo $ECHO_N "(cached) $ECHO_C" >&6
31482else
31483 cat >conftest.$ac_ext <<_ACEOF
31484/* confdefs.h. */
31485_ACEOF
31486cat confdefs.h >>conftest.$ac_ext
31487cat >>conftest.$ac_ext <<_ACEOF
31488/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031489#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490webecray
31491#else
31492wenotbecray
31493#endif
31494
31495_ACEOF
31496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31497 $EGREP "webecray" >/dev/null 2>&1; then
31498 ac_cv_os_cray=yes
31499else
31500 ac_cv_os_cray=no
31501fi
31502rm -f conftest*
31503
31504fi
Reid Spencera773bd52006-08-04 18:18:08 +000031505{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31506echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031507if test $ac_cv_os_cray = yes; then
31508 for ac_func in _getb67 GETB67 getb67; do
31509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031513 echo $ECHO_N "(cached) $ECHO_C" >&6
31514else
31515 cat >conftest.$ac_ext <<_ACEOF
31516/* confdefs.h. */
31517_ACEOF
31518cat confdefs.h >>conftest.$ac_ext
31519cat >>conftest.$ac_ext <<_ACEOF
31520/* end confdefs.h. */
31521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31523#define $ac_func innocuous_$ac_func
31524
31525/* System header to define __stub macros and hopefully few prototypes,
31526 which can conflict with char $ac_func (); below.
31527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31528 <limits.h> exists even on freestanding compilers. */
31529
31530#ifdef __STDC__
31531# include <limits.h>
31532#else
31533# include <assert.h>
31534#endif
31535
31536#undef $ac_func
31537
Reid Spencera773bd52006-08-04 18:18:08 +000031538/* Override any GCC internal prototype to avoid an error.
31539 Use char because int might match the return type of a GCC
31540 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031541#ifdef __cplusplus
31542extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031543#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031544char $ac_func ();
31545/* The GNU C library defines this for functions which it implements
31546 to always fail with ENOSYS. Some functions are actually named
31547 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031548#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031549choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031550#endif
31551
31552int
31553main ()
31554{
Reid Spencera773bd52006-08-04 18:18:08 +000031555return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556 ;
31557 return 0;
31558}
31559_ACEOF
31560rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031561if { (ac_try="$ac_link"
31562case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565esac
31566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31575 { (case "(($ac_try" in
31576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577 *) ac_try_echo=$ac_try;;
31578esac
31579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580 (eval "$ac_try") 2>&5
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest$ac_exeext'
31585 { (case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31588esac
31589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_try") 2>&5
31591 ac_status=$?
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031594 eval "$as_ac_var=yes"
31595else
31596 echo "$as_me: failed program was:" >&5
31597sed 's/^/| /' conftest.$ac_ext >&5
31598
Reid Spencera773bd52006-08-04 18:18:08 +000031599 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031600fi
Reid Spencera773bd52006-08-04 18:18:08 +000031601
Tanya Lattnercf067672008-01-17 05:57:22 +000031602rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603 conftest$ac_exeext conftest.$ac_ext
31604fi
Reid Spencera773bd52006-08-04 18:18:08 +000031605ac_res=`eval echo '${'$as_ac_var'}'`
31606 { echo "$as_me:$LINENO: result: $ac_res" >&5
31607echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031608if test `eval echo '${'$as_ac_var'}'` = yes; then
31609
31610cat >>confdefs.h <<_ACEOF
31611#define CRAY_STACKSEG_END $ac_func
31612_ACEOF
31613
31614 break
31615fi
31616
31617 done
31618fi
31619
Reid Spencera773bd52006-08-04 18:18:08 +000031620{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31621echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031622if test "${ac_cv_c_stack_direction+set}" = set; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31624else
31625 if test "$cross_compiling" = yes; then
31626 ac_cv_c_stack_direction=0
31627else
31628 cat >conftest.$ac_ext <<_ACEOF
31629/* confdefs.h. */
31630_ACEOF
31631cat confdefs.h >>conftest.$ac_ext
31632cat >>conftest.$ac_ext <<_ACEOF
31633/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031634$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031635int
31636find_stack_direction ()
31637{
31638 static char *addr = 0;
31639 auto char dummy;
31640 if (addr == 0)
31641 {
31642 addr = &dummy;
31643 return find_stack_direction ();
31644 }
John Criswell0021c312004-02-13 21:57:29 +000031645 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031646 return (&dummy > addr) ? 1 : -1;
31647}
John Criswell0021c312004-02-13 21:57:29 +000031648
John Criswell0021c312004-02-13 21:57:29 +000031649int
31650main ()
31651{
Reid Spencera773bd52006-08-04 18:18:08 +000031652 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031653}
31654_ACEOF
31655rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031656if { (ac_try="$ac_link"
31657case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31660esac
31661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031663 ac_status=$?
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31669esac
31670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031676else
31677 echo "$as_me: program exited with status $ac_status" >&5
31678echo "$as_me: failed program was:" >&5
31679sed 's/^/| /' conftest.$ac_ext >&5
31680
31681( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031682ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031683fi
Reid Spencera773bd52006-08-04 18:18:08 +000031684rm -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 +000031685fi
Reid Spencera773bd52006-08-04 18:18:08 +000031686
31687
John Criswell0021c312004-02-13 21:57:29 +000031688fi
Reid Spencera773bd52006-08-04 18:18:08 +000031689{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31690echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691
31692cat >>confdefs.h <<_ACEOF
31693#define STACK_DIRECTION $ac_cv_c_stack_direction
31694_ACEOF
31695
31696
John Criswell0021c312004-02-13 21:57:29 +000031697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031698
31699
Reid Spencera773bd52006-08-04 18:18:08 +000031700{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31701echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702if test "${ac_cv_func_rand48+set}" = set; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31704else
Reid Spencera773bd52006-08-04 18:18:08 +000031705 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031706ac_cpp='$CXXCPP $CPPFLAGS'
31707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31710
31711 cat >conftest.$ac_ext <<_ACEOF
31712/* confdefs.h. */
31713_ACEOF
31714cat confdefs.h >>conftest.$ac_ext
31715cat >>conftest.$ac_ext <<_ACEOF
31716/* end confdefs.h. */
31717#include <stdlib.h>
31718int
31719main ()
31720{
31721srand48(0);lrand48();drand48();
31722 ;
31723 return 0;
31724}
31725_ACEOF
31726rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031727if { (ac_try="$ac_compile"
31728case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31731esac
31732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031734 ac_status=$?
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741 { (case "(($ac_try" in
31742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 *) ac_try_echo=$ac_try;;
31744esac
31745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 (eval "$ac_try") 2>&5
31747 ac_status=$?
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; } &&
31750 { ac_try='test -s conftest.$ac_objext'
31751 { (case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31754esac
31755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_try") 2>&5
31757 ac_status=$?
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031760 ac_cv_func_rand48=yes
31761else
31762 echo "$as_me: failed program was:" >&5
31763sed 's/^/| /' conftest.$ac_ext >&5
31764
Reid Spencera773bd52006-08-04 18:18:08 +000031765 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031766fi
Reid Spencera773bd52006-08-04 18:18:08 +000031767
31768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031769 ac_ext=c
31770ac_cpp='$CPP $CPPFLAGS'
31771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773ac_compiler_gnu=$ac_cv_c_compiler_gnu
31774
31775fi
Reid Spencera773bd52006-08-04 18:18:08 +000031776{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31777echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778
31779if test "$ac_cv_func_rand48" = "yes" ; then
31780
31781cat >>confdefs.h <<\_ACEOF
31782#define HAVE_RAND48 1
31783_ACEOF
31784
31785fi
John Criswell0021c312004-02-13 21:57:29 +000031786
31787
Reid Spencera773bd52006-08-04 18:18:08 +000031788{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31789echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031790if test "${ac_cv_cxx_namespaces+set}" = set; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31792else
Reid Spencera773bd52006-08-04 18:18:08 +000031793 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031794ac_cpp='$CXXCPP $CPPFLAGS'
31795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31798
31799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031800/* confdefs.h. */
31801_ACEOF
31802cat confdefs.h >>conftest.$ac_ext
31803cat >>conftest.$ac_ext <<_ACEOF
31804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031805namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031806int
31807main ()
31808{
31809using namespace Outer::Inner; return i;
31810 ;
31811 return 0;
31812}
31813_ACEOF
31814rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031815if { (ac_try="$ac_compile"
31816case "(($ac_try" in
31817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818 *) ac_try_echo=$ac_try;;
31819esac
31820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031822 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031823 grep -v '^ *+' conftest.er1 >conftest.err
31824 rm -f conftest.er1
31825 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031827 (exit $ac_status); } &&
31828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31829 { (case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31832esac
31833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_try") 2>&5
31835 ac_status=$?
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); }; } &&
31838 { ac_try='test -s conftest.$ac_objext'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31842esac
31843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31845 ac_status=$?
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031848 ac_cv_cxx_namespaces=yes
31849else
31850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031851sed 's/^/| /' conftest.$ac_ext >&5
31852
Reid Spencera773bd52006-08-04 18:18:08 +000031853 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031854fi
Reid Spencera773bd52006-08-04 18:18:08 +000031855
31856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031857 ac_ext=c
31858ac_cpp='$CPP $CPPFLAGS'
31859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861ac_compiler_gnu=$ac_cv_c_compiler_gnu
31862
31863
31864fi
Reid Spencera773bd52006-08-04 18:18:08 +000031865{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31866echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031867if test "$ac_cv_cxx_namespaces" = yes; then
31868
31869cat >>confdefs.h <<\_ACEOF
31870#define HAVE_NAMESPACES
31871_ACEOF
31872
31873fi
31874
Reid Spencera773bd52006-08-04 18:18:08 +000031875{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31876echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031877if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031878 echo $ECHO_N "(cached) $ECHO_C" >&6
31879else
31880
Reid Spencera773bd52006-08-04 18:18:08 +000031881 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031882ac_cpp='$CXXCPP $CPPFLAGS'
31883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31886
31887 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031888/* confdefs.h. */
31889_ACEOF
31890cat confdefs.h >>conftest.$ac_ext
31891cat >>conftest.$ac_ext <<_ACEOF
31892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031893#include <ext/hash_map>
31894#ifdef HAVE_NAMESPACES
31895using namespace std;
31896#endif
John Criswell7a73b802003-06-30 21:59:07 +000031897int
31898main ()
31899{
Brian Gaeke90583492003-11-10 03:06:28 +000031900hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031901 ;
31902 return 0;
31903}
31904_ACEOF
31905rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031906if { (ac_try="$ac_compile"
31907case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31910esac
31911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031913 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031914 grep -v '^ *+' conftest.er1 >conftest.err
31915 rm -f conftest.er1
31916 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031918 (exit $ac_status); } &&
31919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31920 { (case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31923esac
31924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_try") 2>&5
31926 ac_status=$?
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); }; } &&
31929 { ac_try='test -s conftest.$ac_objext'
31930 { (case "(($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_try") 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031939 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031940else
31941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031942sed 's/^/| /' conftest.$ac_ext >&5
31943
Reid Spencera773bd52006-08-04 18:18:08 +000031944 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031945fi
Reid Spencera773bd52006-08-04 18:18:08 +000031946
31947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031948 ac_ext=c
31949ac_cpp='$CPP $CPPFLAGS'
31950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952ac_compiler_gnu=$ac_cv_c_compiler_gnu
31953
John Criswell7a73b802003-06-30 21:59:07 +000031954fi
Reid Spencera773bd52006-08-04 18:18:08 +000031955{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31956echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031957 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31958 then
John Criswell9f011862004-09-24 18:28:00 +000031959
31960cat >>confdefs.h <<\_ACEOF
31961#define HAVE_STD_EXT_HASH_MAP 1
31962_ACEOF
31963
31964 else
31965
31966cat >>confdefs.h <<\_ACEOF
31967#define HAVE_STD_EXT_HASH_MAP 0
31968_ACEOF
31969
Brian Gaeke90583492003-11-10 03:06:28 +000031970 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031971
Reid Spencera773bd52006-08-04 18:18:08 +000031972 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31973echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031974if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31976else
31977
Reid Spencera773bd52006-08-04 18:18:08 +000031978 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031979ac_cpp='$CXXCPP $CPPFLAGS'
31980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983
31984 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031985/* confdefs.h. */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h. */
31990#include <ext/hash_map>
31991#ifdef HAVE_NAMESPACES
31992using namespace __gnu_cxx;
31993#endif
31994int
31995main ()
31996{
31997hash_map<int,int> t;
31998 ;
31999 return 0;
32000}
32001_ACEOF
32002rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032003if { (ac_try="$ac_compile"
32004case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32007esac
32008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032011 grep -v '^ *+' conftest.er1 >conftest.err
32012 rm -f conftest.er1
32013 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32017 { (case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32020esac
32021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_try") 2>&5
32023 ac_status=$?
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; } &&
32026 { ac_try='test -s conftest.$ac_objext'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32030esac
32031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032036 ac_cv_cxx_have_gnu_ext_hash_map=yes
32037else
32038 echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
Reid Spencera773bd52006-08-04 18:18:08 +000032041 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032042fi
Reid Spencera773bd52006-08-04 18:18:08 +000032043
32044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032045 ac_ext=c
32046ac_cpp='$CPP $CPPFLAGS'
32047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049ac_compiler_gnu=$ac_cv_c_compiler_gnu
32050
32051fi
Reid Spencera773bd52006-08-04 18:18:08 +000032052{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32053echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032054 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32055 then
John Criswell9f011862004-09-24 18:28:00 +000032056
32057cat >>confdefs.h <<\_ACEOF
32058#define HAVE_GNU_EXT_HASH_MAP 1
32059_ACEOF
32060
32061 else
32062
32063cat >>confdefs.h <<\_ACEOF
32064#define HAVE_GNU_EXT_HASH_MAP 0
32065_ACEOF
32066
Brian Gaeke90583492003-11-10 03:06:28 +000032067 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032068
Reid Spencera773bd52006-08-04 18:18:08 +000032069 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32070echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032071if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32072 echo $ECHO_N "(cached) $ECHO_C" >&6
32073else
John Criswell7a73b802003-06-30 21:59:07 +000032074
Reid Spencera773bd52006-08-04 18:18:08 +000032075 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032076ac_cpp='$CXXCPP $CPPFLAGS'
32077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32080
32081 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032082/* confdefs.h. */
32083_ACEOF
32084cat confdefs.h >>conftest.$ac_ext
32085cat >>conftest.$ac_ext <<_ACEOF
32086/* end confdefs.h. */
32087#include <hash_map>
32088int
32089main ()
32090{
32091hash_map<int,int> t;
32092 ;
32093 return 0;
32094}
32095_ACEOF
32096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032097if { (ac_try="$ac_compile"
32098case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32101esac
32102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032105 grep -v '^ *+' conftest.er1 >conftest.err
32106 rm -f conftest.er1
32107 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest.$ac_objext'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32124esac
32125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032130 ac_cv_cxx_have_global_hash_map=yes
32131else
32132 echo "$as_me: failed program was:" >&5
32133sed 's/^/| /' conftest.$ac_ext >&5
32134
Reid Spencera773bd52006-08-04 18:18:08 +000032135 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032136fi
Reid Spencera773bd52006-08-04 18:18:08 +000032137
32138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032139 ac_ext=c
32140ac_cpp='$CPP $CPPFLAGS'
32141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
32145fi
Reid Spencera773bd52006-08-04 18:18:08 +000032146{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32147echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032148 if test "$ac_cv_cxx_have_global_hash_map" = yes
32149 then
John Criswell9f011862004-09-24 18:28:00 +000032150
32151cat >>confdefs.h <<\_ACEOF
32152#define HAVE_GLOBAL_HASH_MAP 1
32153_ACEOF
32154
32155 else
32156
32157cat >>confdefs.h <<\_ACEOF
32158#define HAVE_GLOBAL_HASH_MAP 0
32159_ACEOF
32160
Brian Gaeke90583492003-11-10 03:06:28 +000032161 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032162
Reid Spencera773bd52006-08-04 18:18:08 +000032163{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32164echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032165if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168
Reid Spencera773bd52006-08-04 18:18:08 +000032169 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032170ac_cpp='$CXXCPP $CPPFLAGS'
32171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174
32175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032176/* confdefs.h. */
32177_ACEOF
32178cat confdefs.h >>conftest.$ac_ext
32179cat >>conftest.$ac_ext <<_ACEOF
32180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032181#include <ext/hash_set>
32182#ifdef HAVE_NAMESPACES
32183using namespace std;
32184#endif
John Criswell7a73b802003-06-30 21:59:07 +000032185int
32186main ()
32187{
Brian Gaeke90583492003-11-10 03:06:28 +000032188hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032189 ;
32190 return 0;
32191}
32192_ACEOF
32193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032194if { (ac_try="$ac_compile"
32195case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32211esac
32212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest.$ac_objext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32221esac
32222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32224 ac_status=$?
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032227 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032228else
32229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032230sed 's/^/| /' conftest.$ac_ext >&5
32231
Reid Spencera773bd52006-08-04 18:18:08 +000032232 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032233fi
Reid Spencera773bd52006-08-04 18:18:08 +000032234
32235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032236 ac_ext=c
32237ac_cpp='$CPP $CPPFLAGS'
32238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241
32242fi
Reid Spencera773bd52006-08-04 18:18:08 +000032243{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32244echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032245 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32246 then
John Criswell9f011862004-09-24 18:28:00 +000032247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_STD_EXT_HASH_SET 1
32250_ACEOF
32251
32252 else
32253
32254cat >>confdefs.h <<\_ACEOF
32255#define HAVE_STD_EXT_HASH_SET 0
32256_ACEOF
32257
Brian Gaeke90583492003-11-10 03:06:28 +000032258 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032259
Reid Spencera773bd52006-08-04 18:18:08 +000032260 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32261echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032262if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32264else
32265
Reid Spencera773bd52006-08-04 18:18:08 +000032266 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032267ac_cpp='$CXXCPP $CPPFLAGS'
32268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
John Criswell7a73b802003-06-30 21:59:07 +000032272 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032273/* confdefs.h. */
32274_ACEOF
32275cat confdefs.h >>conftest.$ac_ext
32276cat >>conftest.$ac_ext <<_ACEOF
32277/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032278#include <ext/hash_set>
32279#ifdef HAVE_NAMESPACES
32280using namespace __gnu_cxx;
32281#endif
John Criswell7a73b802003-06-30 21:59:07 +000032282int
32283main ()
32284{
Brian Gaeke90583492003-11-10 03:06:28 +000032285hash_set<int> t;
32286 ;
32287 return 0;
32288}
32289_ACEOF
32290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032291if { (ac_try="$ac_compile"
32292case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32295esac
32296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032299 grep -v '^ *+' conftest.er1 >conftest.err
32300 rm -f conftest.er1
32301 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032303 (exit $ac_status); } &&
32304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32305 { (case "(($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_try") 2>&5
32311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; } &&
32314 { ac_try='test -s conftest.$ac_objext'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32318esac
32319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32321 ac_status=$?
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032324 ac_cv_cxx_have_gnu_ext_hash_set=yes
32325else
32326 echo "$as_me: failed program was:" >&5
32327sed 's/^/| /' conftest.$ac_ext >&5
32328
Reid Spencera773bd52006-08-04 18:18:08 +000032329 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032330fi
Reid Spencera773bd52006-08-04 18:18:08 +000032331
32332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032333 ac_ext=c
32334ac_cpp='$CPP $CPPFLAGS'
32335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337ac_compiler_gnu=$ac_cv_c_compiler_gnu
32338
32339fi
Reid Spencera773bd52006-08-04 18:18:08 +000032340{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32341echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032342 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32343 then
John Criswell9f011862004-09-24 18:28:00 +000032344
32345cat >>confdefs.h <<\_ACEOF
32346#define HAVE_GNU_EXT_HASH_SET 1
32347_ACEOF
32348
32349 else
32350
32351cat >>confdefs.h <<\_ACEOF
32352#define HAVE_GNU_EXT_HASH_SET 0
32353_ACEOF
32354
Brian Gaeke90583492003-11-10 03:06:28 +000032355 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032356
Reid Spencera773bd52006-08-04 18:18:08 +000032357 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32358echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032359if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32361else
32362
Reid Spencera773bd52006-08-04 18:18:08 +000032363 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032364ac_cpp='$CXXCPP $CPPFLAGS'
32365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32368
32369 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032370/* confdefs.h. */
32371_ACEOF
32372cat confdefs.h >>conftest.$ac_ext
32373cat >>conftest.$ac_ext <<_ACEOF
32374/* end confdefs.h. */
32375#include <hash_set>
32376int
32377main ()
32378{
John Criswell7a73b802003-06-30 21:59:07 +000032379hash_set<int> t; return 0;
32380 ;
32381 return 0;
32382}
32383_ACEOF
32384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032385if { (ac_try="$ac_compile"
32386case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32389esac
32390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032393 grep -v '^ *+' conftest.er1 >conftest.err
32394 rm -f conftest.er1
32395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest.$ac_objext'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32412esac
32413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32415 ac_status=$?
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032418 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032419else
32420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032421sed 's/^/| /' conftest.$ac_ext >&5
32422
Reid Spencera773bd52006-08-04 18:18:08 +000032423 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032424fi
Reid Spencera773bd52006-08-04 18:18:08 +000032425
32426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032427 ac_ext=c
32428ac_cpp='$CPP $CPPFLAGS'
32429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_c_compiler_gnu
32432
John Criswell7a73b802003-06-30 21:59:07 +000032433fi
Reid Spencera773bd52006-08-04 18:18:08 +000032434{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32435echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032436 if test "$ac_cv_cxx_have_global_hash_set" = yes
32437 then
John Criswell9f011862004-09-24 18:28:00 +000032438
32439cat >>confdefs.h <<\_ACEOF
32440#define HAVE_GLOBAL_HASH_SET 1
32441_ACEOF
32442
32443 else
32444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_GLOBAL_HASH_SET 0
32447_ACEOF
32448
Brian Gaeke90583492003-11-10 03:06:28 +000032449 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032450
Reid Spencera773bd52006-08-04 18:18:08 +000032451{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32452echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032453if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32454 echo $ECHO_N "(cached) $ECHO_C" >&6
32455else
32456
Reid Spencera773bd52006-08-04 18:18:08 +000032457 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032458ac_cpp='$CXXCPP $CPPFLAGS'
32459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
32463 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032464/* confdefs.h. */
32465_ACEOF
32466cat confdefs.h >>conftest.$ac_ext
32467cat >>conftest.$ac_ext <<_ACEOF
32468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032469#include <iterator>
32470#ifdef HAVE_NAMESPACES
32471using namespace std;
32472#endif
John Criswell7a73b802003-06-30 21:59:07 +000032473int
32474main ()
32475{
32476iterator<int,int,int> t; return 0;
32477 ;
32478 return 0;
32479}
32480_ACEOF
32481rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032482if { (ac_try="$ac_compile"
32483case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32486esac
32487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032490 grep -v '^ *+' conftest.er1 >conftest.err
32491 rm -f conftest.er1
32492 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496 { (case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32499esac
32500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_try") 2>&5
32502 ac_status=$?
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest.$ac_objext'
32506 { (case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32509esac
32510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_try") 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032515 ac_cv_cxx_have_std_iterator=yes
32516else
32517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032518sed 's/^/| /' conftest.$ac_ext >&5
32519
Reid Spencera773bd52006-08-04 18:18:08 +000032520 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032521fi
Reid Spencera773bd52006-08-04 18:18:08 +000032522
32523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032524 ac_ext=c
32525ac_cpp='$CPP $CPPFLAGS'
32526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528ac_compiler_gnu=$ac_cv_c_compiler_gnu
32529
32530
32531fi
Reid Spencera773bd52006-08-04 18:18:08 +000032532{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32533echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032534if test "$ac_cv_cxx_have_std_iterator" = yes
32535then
John Criswell40468462004-09-24 21:19:06 +000032536
32537cat >>confdefs.h <<\_ACEOF
32538#define HAVE_STD_ITERATOR 1
32539_ACEOF
32540
32541else
32542
32543cat >>confdefs.h <<\_ACEOF
32544#define HAVE_STD_ITERATOR 0
32545_ACEOF
32546
John Criswell7a73b802003-06-30 21:59:07 +000032547fi
32548
Reid Spencera773bd52006-08-04 18:18:08 +000032549{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32550echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032551if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32552 echo $ECHO_N "(cached) $ECHO_C" >&6
32553else
32554
Reid Spencera773bd52006-08-04 18:18:08 +000032555 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032556ac_cpp='$CXXCPP $CPPFLAGS'
32557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32560
32561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032562/* confdefs.h. */
32563_ACEOF
32564cat confdefs.h >>conftest.$ac_ext
32565cat >>conftest.$ac_ext <<_ACEOF
32566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032567#include <iterator>
32568#ifdef HAVE_NAMESPACES
32569using namespace std;
32570#endif
John Criswell7a73b802003-06-30 21:59:07 +000032571int
32572main ()
32573{
John Criswellc78022e2003-07-29 19:11:58 +000032574bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032575 ;
32576 return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032580if { (ac_try="$ac_compile"
32581case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032587 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032588 grep -v '^ *+' conftest.er1 >conftest.err
32589 rm -f conftest.er1
32590 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032592 (exit $ac_status); } &&
32593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32600 ac_status=$?
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; } &&
32603 { ac_try='test -s conftest.$ac_objext'
32604 { (case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32607esac
32608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_try") 2>&5
32610 ac_status=$?
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032613 ac_cv_cxx_have_bi_iterator=yes
32614else
32615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032616sed 's/^/| /' conftest.$ac_ext >&5
32617
Reid Spencera773bd52006-08-04 18:18:08 +000032618 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032619fi
Reid Spencera773bd52006-08-04 18:18:08 +000032620
32621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032622 ac_ext=c
32623ac_cpp='$CPP $CPPFLAGS'
32624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32626ac_compiler_gnu=$ac_cv_c_compiler_gnu
32627
32628
32629fi
Reid Spencera773bd52006-08-04 18:18:08 +000032630{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32631echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032632if test "$ac_cv_cxx_have_bi_iterator" = yes
32633then
John Criswell40468462004-09-24 21:19:06 +000032634
32635cat >>confdefs.h <<\_ACEOF
32636#define HAVE_BI_ITERATOR 1
32637_ACEOF
32638
32639else
32640
32641cat >>confdefs.h <<\_ACEOF
32642#define HAVE_BI_ITERATOR 0
32643_ACEOF
32644
John Criswell7a73b802003-06-30 21:59:07 +000032645fi
32646
Reid Spencera773bd52006-08-04 18:18:08 +000032647{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32648echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032649if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32651else
32652
Reid Spencera773bd52006-08-04 18:18:08 +000032653 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032654ac_cpp='$CXXCPP $CPPFLAGS'
32655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32658
32659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032660/* confdefs.h. */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032665#include <iterator>
32666#ifdef HAVE_NAMESPACES
32667using namespace std;
32668#endif
John Criswell7a73b802003-06-30 21:59:07 +000032669int
32670main ()
32671{
John Criswellc78022e2003-07-29 19:11:58 +000032672forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032673 ;
32674 return 0;
32675}
32676_ACEOF
32677rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032678if { (ac_try="$ac_compile"
32679case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32682esac
32683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032686 grep -v '^ *+' conftest.er1 >conftest.err
32687 rm -f conftest.er1
32688 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695esac
32696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32705esac
32706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032711 ac_cv_cxx_have_fwd_iterator=yes
32712else
32713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032714sed 's/^/| /' conftest.$ac_ext >&5
32715
Reid Spencera773bd52006-08-04 18:18:08 +000032716 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032717fi
Reid Spencera773bd52006-08-04 18:18:08 +000032718
32719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032720 ac_ext=c
32721ac_cpp='$CPP $CPPFLAGS'
32722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724ac_compiler_gnu=$ac_cv_c_compiler_gnu
32725
32726
32727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32729echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032730if test "$ac_cv_cxx_have_fwd_iterator" = yes
32731then
John Criswell40468462004-09-24 21:19:06 +000032732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_FWD_ITERATOR 1
32735_ACEOF
32736
32737else
32738
32739cat >>confdefs.h <<\_ACEOF
32740#define HAVE_FWD_ITERATOR 0
32741_ACEOF
32742
John Criswell7a73b802003-06-30 21:59:07 +000032743fi
32744
32745
Reid Spencera773bd52006-08-04 18:18:08 +000032746{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32747echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032748if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32749 echo $ECHO_N "(cached) $ECHO_C" >&6
32750else
Reid Spencera773bd52006-08-04 18:18:08 +000032751 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032752ac_cpp='$CXXCPP $CPPFLAGS'
32753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
Reid Spencerabec8f92004-10-27 23:03:44 +000032757 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
32763#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032764int
32765main ()
32766{
32767float f; isnan(f);
32768 ;
32769 return 0;
32770}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032771_ACEOF
32772rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032773if { (ac_try="$ac_compile"
32774case "(($ac_try" in
32775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776 *) ac_try_echo=$ac_try;;
32777esac
32778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032781 grep -v '^ *+' conftest.er1 >conftest.err
32782 rm -f conftest.er1
32783 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032785 (exit $ac_status); } &&
32786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32787 { (case "(($ac_try" in
32788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789 *) ac_try_echo=$ac_try;;
32790esac
32791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32792 (eval "$ac_try") 2>&5
32793 ac_status=$?
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); }; } &&
32796 { ac_try='test -s conftest.$ac_objext'
32797 { (case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32800esac
32801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_try") 2>&5
32803 ac_status=$?
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032806 ac_cv_func_isnan_in_math_h=yes
32807else
32808 echo "$as_me: failed program was:" >&5
32809sed 's/^/| /' conftest.$ac_ext >&5
32810
Reid Spencera773bd52006-08-04 18:18:08 +000032811 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032812fi
Reid Spencera773bd52006-08-04 18:18:08 +000032813
32814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032815 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032816ac_cpp='$CPP $CPPFLAGS'
32817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32819ac_compiler_gnu=$ac_cv_c_compiler_gnu
32820
32821fi
Reid Spencera773bd52006-08-04 18:18:08 +000032822{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32823echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032824
32825
32826if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032827
32828cat >>confdefs.h <<\_ACEOF
32829#define HAVE_ISNAN_IN_MATH_H 1
32830_ACEOF
32831
Reid Spencerabec8f92004-10-27 23:03:44 +000032832fi
32833
Reid Spencera773bd52006-08-04 18:18:08 +000032834{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32835echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032836if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32837 echo $ECHO_N "(cached) $ECHO_C" >&6
32838else
Reid Spencera773bd52006-08-04 18:18:08 +000032839 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032840ac_cpp='$CXXCPP $CPPFLAGS'
32841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32844
Reid Spencerabec8f92004-10-27 23:03:44 +000032845 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032846/* confdefs.h. */
32847_ACEOF
32848cat confdefs.h >>conftest.$ac_ext
32849cat >>conftest.$ac_ext <<_ACEOF
32850/* end confdefs.h. */
32851#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032852int
32853main ()
32854{
32855float f; isnan(f);
32856 ;
32857 return 0;
32858}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032859_ACEOF
32860rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032861if { (ac_try="$ac_compile"
32862case "(($ac_try" in
32863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864 *) ac_try_echo=$ac_try;;
32865esac
32866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032869 grep -v '^ *+' conftest.er1 >conftest.err
32870 rm -f conftest.er1
32871 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032873 (exit $ac_status); } &&
32874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32875 { (case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32878esac
32879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_try") 2>&5
32881 ac_status=$?
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); }; } &&
32884 { ac_try='test -s conftest.$ac_objext'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32888esac
32889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032894 ac_cv_func_isnan_in_cmath=yes
32895else
32896 echo "$as_me: failed program was:" >&5
32897sed 's/^/| /' conftest.$ac_ext >&5
32898
Reid Spencera773bd52006-08-04 18:18:08 +000032899 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032900fi
Reid Spencera773bd52006-08-04 18:18:08 +000032901
32902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032903 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032904ac_cpp='$CPP $CPPFLAGS'
32905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32907ac_compiler_gnu=$ac_cv_c_compiler_gnu
32908
32909fi
Reid Spencera773bd52006-08-04 18:18:08 +000032910{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32911echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032912
32913if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032914
32915cat >>confdefs.h <<\_ACEOF
32916#define HAVE_ISNAN_IN_CMATH 1
32917_ACEOF
32918
Reid Spencerabec8f92004-10-27 23:03:44 +000032919fi
32920
Reid Spencera773bd52006-08-04 18:18:08 +000032921{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32922echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032923if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32925else
Reid Spencera773bd52006-08-04 18:18:08 +000032926 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032927ac_cpp='$CXXCPP $CPPFLAGS'
32928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32931
Reid Spencerabec8f92004-10-27 23:03:44 +000032932 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032933/* confdefs.h. */
32934_ACEOF
32935cat confdefs.h >>conftest.$ac_ext
32936cat >>conftest.$ac_ext <<_ACEOF
32937/* end confdefs.h. */
32938#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032939int
32940main ()
32941{
32942float f; std::isnan(f);
32943 ;
32944 return 0;
32945}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032946_ACEOF
32947rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032948if { (ac_try="$ac_compile"
32949case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32952esac
32953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032955 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032956 grep -v '^ *+' conftest.er1 >conftest.err
32957 rm -f conftest.er1
32958 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032960 (exit $ac_status); } &&
32961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32962 { (case "(($ac_try" in
32963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32964 *) ac_try_echo=$ac_try;;
32965esac
32966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32967 (eval "$ac_try") 2>&5
32968 ac_status=$?
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); }; } &&
32971 { ac_try='test -s conftest.$ac_objext'
32972 { (case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32975esac
32976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_try") 2>&5
32978 ac_status=$?
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032981 ac_cv_func_std_isnan_in_cmath=yes
32982else
32983 echo "$as_me: failed program was:" >&5
32984sed 's/^/| /' conftest.$ac_ext >&5
32985
Reid Spencera773bd52006-08-04 18:18:08 +000032986 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032987fi
Reid Spencera773bd52006-08-04 18:18:08 +000032988
32989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032990 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032991ac_cpp='$CPP $CPPFLAGS'
32992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994ac_compiler_gnu=$ac_cv_c_compiler_gnu
32995
32996fi
Reid Spencera773bd52006-08-04 18:18:08 +000032997{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32998echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032999
33000if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033001
33002cat >>confdefs.h <<\_ACEOF
33003#define HAVE_STD_ISNAN_IN_CMATH 1
33004_ACEOF
33005
Reid Spencerabec8f92004-10-27 23:03:44 +000033006fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033007
33008
Reid Spencera773bd52006-08-04 18:18:08 +000033009{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33010echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033011if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33012 echo $ECHO_N "(cached) $ECHO_C" >&6
33013else
Reid Spencera773bd52006-08-04 18:18:08 +000033014 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033015ac_cpp='$CXXCPP $CPPFLAGS'
33016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33019
Reid Spencerabec8f92004-10-27 23:03:44 +000033020 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033021/* confdefs.h. */
33022_ACEOF
33023cat confdefs.h >>conftest.$ac_ext
33024cat >>conftest.$ac_ext <<_ACEOF
33025/* end confdefs.h. */
33026#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033027int
33028main ()
33029{
33030float f; isinf(f);
33031 ;
33032 return 0;
33033}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033034_ACEOF
33035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033036if { (ac_try="$ac_compile"
33037case "(($ac_try" in
33038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039 *) ac_try_echo=$ac_try;;
33040esac
33041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33042 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033044 grep -v '^ *+' conftest.er1 >conftest.err
33045 rm -f conftest.er1
33046 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033048 (exit $ac_status); } &&
33049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33050 { (case "(($ac_try" in
33051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33052 *) ac_try_echo=$ac_try;;
33053esac
33054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055 (eval "$ac_try") 2>&5
33056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; } &&
33059 { ac_try='test -s conftest.$ac_objext'
33060 { (case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33063esac
33064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_try") 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033069 ac_cv_func_isinf_in_math_h=yes
33070else
33071 echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
Reid Spencera773bd52006-08-04 18:18:08 +000033074 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033075fi
Reid Spencera773bd52006-08-04 18:18:08 +000033076
33077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033078 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033079ac_cpp='$CPP $CPPFLAGS'
33080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33082ac_compiler_gnu=$ac_cv_c_compiler_gnu
33083
33084fi
Reid Spencera773bd52006-08-04 18:18:08 +000033085{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33086echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033087
33088if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033089
33090cat >>confdefs.h <<\_ACEOF
33091#define HAVE_ISINF_IN_MATH_H 1
33092_ACEOF
33093
Reid Spencerabec8f92004-10-27 23:03:44 +000033094fi
33095
Reid Spencera773bd52006-08-04 18:18:08 +000033096{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33097echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033098if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33100else
Reid Spencera773bd52006-08-04 18:18:08 +000033101 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033102ac_cpp='$CXXCPP $CPPFLAGS'
33103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33106
Reid Spencerabec8f92004-10-27 23:03:44 +000033107 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033108/* confdefs.h. */
33109_ACEOF
33110cat confdefs.h >>conftest.$ac_ext
33111cat >>conftest.$ac_ext <<_ACEOF
33112/* end confdefs.h. */
33113#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033114int
33115main ()
33116{
33117float f; isinf(f);
33118 ;
33119 return 0;
33120}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033121_ACEOF
33122rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033123if { (ac_try="$ac_compile"
33124case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033131 grep -v '^ *+' conftest.er1 >conftest.err
33132 rm -f conftest.er1
33133 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033135 (exit $ac_status); } &&
33136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137 { (case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33140esac
33141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_try") 2>&5
33143 ac_status=$?
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest.$ac_objext'
33147 { (case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33150esac
33151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_try") 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033156 ac_cv_func_isinf_in_cmath=yes
33157else
33158 echo "$as_me: failed program was:" >&5
33159sed 's/^/| /' conftest.$ac_ext >&5
33160
Reid Spencera773bd52006-08-04 18:18:08 +000033161 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033162fi
Reid Spencera773bd52006-08-04 18:18:08 +000033163
33164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033165 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033166ac_cpp='$CPP $CPPFLAGS'
33167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169ac_compiler_gnu=$ac_cv_c_compiler_gnu
33170
33171fi
Reid Spencera773bd52006-08-04 18:18:08 +000033172{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33173echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033174
33175if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033176
33177cat >>confdefs.h <<\_ACEOF
33178#define HAVE_ISINF_IN_CMATH 1
33179_ACEOF
33180
Reid Spencerabec8f92004-10-27 23:03:44 +000033181fi
33182
Reid Spencera773bd52006-08-04 18:18:08 +000033183{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33184echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033185if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33187else
Reid Spencera773bd52006-08-04 18:18:08 +000033188 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033189ac_cpp='$CXXCPP $CPPFLAGS'
33190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33193
Reid Spencerabec8f92004-10-27 23:03:44 +000033194 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033195/* confdefs.h. */
33196_ACEOF
33197cat confdefs.h >>conftest.$ac_ext
33198cat >>conftest.$ac_ext <<_ACEOF
33199/* end confdefs.h. */
33200#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033201int
33202main ()
33203{
33204float f; std::isinf(f)}
33205 ;
33206 return 0;
33207}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033208_ACEOF
33209rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033210if { (ac_try="$ac_compile"
33211case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033217 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033222 (exit $ac_status); } &&
33223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33227esac
33228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
33230 ac_status=$?
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest.$ac_objext'
33234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033243 ac_cv_func_std_isinf_in_cmath=yes
33244else
33245 echo "$as_me: failed program was:" >&5
33246sed 's/^/| /' conftest.$ac_ext >&5
33247
Reid Spencera773bd52006-08-04 18:18:08 +000033248 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033249fi
Reid Spencera773bd52006-08-04 18:18:08 +000033250
33251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033252 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033253ac_cpp='$CPP $CPPFLAGS'
33254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33256ac_compiler_gnu=$ac_cv_c_compiler_gnu
33257
33258fi
Reid Spencera773bd52006-08-04 18:18:08 +000033259{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33260echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033261
33262if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033263
33264cat >>confdefs.h <<\_ACEOF
33265#define HAVE_STD_ISINF_IN_CMATH 1
33266_ACEOF
33267
Reid Spencerabec8f92004-10-27 23:03:44 +000033268fi
33269
Reid Spencera773bd52006-08-04 18:18:08 +000033270{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33271echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033272if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33274else
Reid Spencera773bd52006-08-04 18:18:08 +000033275 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033276ac_cpp='$CXXCPP $CPPFLAGS'
33277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33280
Reid Spencerabec8f92004-10-27 23:03:44 +000033281 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033282/* confdefs.h. */
33283_ACEOF
33284cat confdefs.h >>conftest.$ac_ext
33285cat >>conftest.$ac_ext <<_ACEOF
33286/* end confdefs.h. */
33287#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033288int
33289main ()
33290{
33291float f; finite(f);
33292 ;
33293 return 0;
33294}
Brian Gaeked59a6472004-07-21 03:33:58 +000033295_ACEOF
33296rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033297if { (ac_try="$ac_compile"
33298case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33301esac
33302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033305 grep -v '^ *+' conftest.er1 >conftest.err
33306 rm -f conftest.er1
33307 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033309 (exit $ac_status); } &&
33310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33311 { (case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33314esac
33315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316 (eval "$ac_try") 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; } &&
33320 { ac_try='test -s conftest.$ac_objext'
33321 { (case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33324esac
33325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_try") 2>&5
33327 ac_status=$?
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033330 ac_cv_func_finite_in_ieeefp_h=yes
33331else
33332 echo "$as_me: failed program was:" >&5
33333sed 's/^/| /' conftest.$ac_ext >&5
33334
Reid Spencera773bd52006-08-04 18:18:08 +000033335 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033336fi
Reid Spencera773bd52006-08-04 18:18:08 +000033337
33338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033339 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033340ac_cpp='$CPP $CPPFLAGS'
33341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343ac_compiler_gnu=$ac_cv_c_compiler_gnu
33344
33345fi
Reid Spencera773bd52006-08-04 18:18:08 +000033346{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33347echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033348
Brian Gaeke6802b552004-10-28 05:06:45 +000033349if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033350
33351cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033352#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033353_ACEOF
33354
Reid Spencerabec8f92004-10-27 23:03:44 +000033355fi
33356
33357
33358
Reid Spencer30fe5262007-01-20 07:48:49 +000033359if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033360
33361
33362for ac_header in stdlib.h unistd.h
33363do
33364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033369 echo $ECHO_N "(cached) $ECHO_C" >&6
33370fi
Reid Spencera773bd52006-08-04 18:18:08 +000033371ac_res=`eval echo '${'$as_ac_Header'}'`
33372 { echo "$as_me:$LINENO: result: $ac_res" >&5
33373echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033374else
33375 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033378cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033379/* confdefs.h. */
33380_ACEOF
33381cat confdefs.h >>conftest.$ac_ext
33382cat >>conftest.$ac_ext <<_ACEOF
33383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033384$ac_includes_default
33385#include <$ac_header>
33386_ACEOF
33387rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033388if { (ac_try="$ac_compile"
33389case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33392esac
33393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033396 grep -v '^ *+' conftest.er1 >conftest.err
33397 rm -f conftest.er1
33398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033400 (exit $ac_status); } &&
33401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33402 { (case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33405esac
33406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_try") 2>&5
33408 ac_status=$?
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; } &&
33411 { ac_try='test -s conftest.$ac_objext'
33412 { (case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33415esac
33416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33418 ac_status=$?
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033421 ac_header_compiler=yes
33422else
33423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033424sed 's/^/| /' conftest.$ac_ext >&5
33425
Reid Spencera773bd52006-08-04 18:18:08 +000033426 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033427fi
Reid Spencera773bd52006-08-04 18:18:08 +000033428
33429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33431echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033432
33433# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033436cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033437/* confdefs.h. */
33438_ACEOF
33439cat confdefs.h >>conftest.$ac_ext
33440cat >>conftest.$ac_ext <<_ACEOF
33441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033442#include <$ac_header>
33443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033444if { (ac_try="$ac_cpp conftest.$ac_ext"
33445case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448esac
33449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033451 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033452 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033453 rm -f conftest.er1
33454 cat conftest.err >&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033456 (exit $ac_status); } >/dev/null; then
33457 if test -s conftest.err; then
33458 ac_cpp_err=$ac_c_preproc_warn_flag
33459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33460 else
33461 ac_cpp_err=
33462 fi
33463else
33464 ac_cpp_err=yes
33465fi
33466if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033467 ac_header_preproc=yes
33468else
33469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033470sed 's/^/| /' conftest.$ac_ext >&5
33471
John Criswell7a73b802003-06-30 21:59:07 +000033472 ac_header_preproc=no
33473fi
Reid Spencera773bd52006-08-04 18:18:08 +000033474
John Criswell7a73b802003-06-30 21:59:07 +000033475rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33477echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033478
33479# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33481 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33486 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033487 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033488 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033501 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033502## ----------------------------------- ##
33503## Report this to llvmbugs@cs.uiuc.edu ##
33504## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033505_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033506 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033507 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033508esac
Reid Spencera773bd52006-08-04 18:18:08 +000033509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033514 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033515fi
Reid Spencera773bd52006-08-04 18:18:08 +000033516ac_res=`eval echo '${'$as_ac_Header'}'`
33517 { echo "$as_me:$LINENO: result: $ac_res" >&5
33518echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033519
33520fi
33521if test `eval echo '${'$as_ac_Header'}'` = yes; then
33522 cat >>confdefs.h <<_ACEOF
33523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33524_ACEOF
33525
33526fi
33527
33528done
33529
33530
33531for ac_func in getpagesize
33532do
33533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033537 echo $ECHO_N "(cached) $ECHO_C" >&6
33538else
33539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033540/* confdefs.h. */
33541_ACEOF
33542cat confdefs.h >>conftest.$ac_ext
33543cat >>conftest.$ac_ext <<_ACEOF
33544/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33547#define $ac_func innocuous_$ac_func
33548
John Criswell7a73b802003-06-30 21:59:07 +000033549/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033550 which can conflict with char $ac_func (); below.
33551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33552 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033553
John Criswell0c38eaf2003-09-10 15:17:25 +000033554#ifdef __STDC__
33555# include <limits.h>
33556#else
33557# include <assert.h>
33558#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033559
33560#undef $ac_func
33561
Reid Spencera773bd52006-08-04 18:18:08 +000033562/* Override any GCC internal prototype to avoid an error.
33563 Use char because int might match the return type of a GCC
33564 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033565#ifdef __cplusplus
33566extern "C"
33567#endif
John Criswell7a73b802003-06-30 21:59:07 +000033568char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033569/* The GNU C library defines this for functions which it implements
33570 to always fail with ENOSYS. Some functions are actually named
33571 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033572#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033573choke me
John Criswell7a73b802003-06-30 21:59:07 +000033574#endif
33575
John Criswell0c38eaf2003-09-10 15:17:25 +000033576int
33577main ()
33578{
Reid Spencera773bd52006-08-04 18:18:08 +000033579return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033580 ;
33581 return 0;
33582}
33583_ACEOF
33584rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033585if { (ac_try="$ac_link"
33586case "(($ac_try" in
33587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588 *) ac_try_echo=$ac_try;;
33589esac
33590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033593 grep -v '^ *+' conftest.er1 >conftest.err
33594 rm -f conftest.er1
33595 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033597 (exit $ac_status); } &&
33598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33599 { (case "(($ac_try" in
33600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33601 *) ac_try_echo=$ac_try;;
33602esac
33603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604 (eval "$ac_try") 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; } &&
33608 { ac_try='test -s conftest$ac_exeext'
33609 { (case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33612esac
33613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_try") 2>&5
33615 ac_status=$?
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033618 eval "$as_ac_var=yes"
33619else
33620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033621sed 's/^/| /' conftest.$ac_ext >&5
33622
Reid Spencera773bd52006-08-04 18:18:08 +000033623 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033624fi
Reid Spencera773bd52006-08-04 18:18:08 +000033625
Tanya Lattnercf067672008-01-17 05:57:22 +000033626rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033627 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033628fi
Reid Spencera773bd52006-08-04 18:18:08 +000033629ac_res=`eval echo '${'$as_ac_var'}'`
33630 { echo "$as_me:$LINENO: result: $ac_res" >&5
33631echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033632if test `eval echo '${'$as_ac_var'}'` = yes; then
33633 cat >>confdefs.h <<_ACEOF
33634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33635_ACEOF
33636
33637fi
33638done
33639
Reid Spencera773bd52006-08-04 18:18:08 +000033640{ echo "$as_me:$LINENO: checking for working mmap" >&5
33641echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033642if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33644else
33645 if test "$cross_compiling" = yes; then
33646 ac_cv_func_mmap_fixed_mapped=no
33647else
33648 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033649/* confdefs.h. */
33650_ACEOF
33651cat confdefs.h >>conftest.$ac_ext
33652cat >>conftest.$ac_ext <<_ACEOF
33653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033654$ac_includes_default
33655/* malloc might have been renamed as rpl_malloc. */
33656#undef malloc
33657
33658/* Thanks to Mike Haertel and Jim Avera for this test.
33659 Here is a matrix of mmap possibilities:
33660 mmap private not fixed
33661 mmap private fixed at somewhere currently unmapped
33662 mmap private fixed at somewhere already mapped
33663 mmap shared not fixed
33664 mmap shared fixed at somewhere currently unmapped
33665 mmap shared fixed at somewhere already mapped
33666 For private mappings, we should verify that changes cannot be read()
33667 back from the file, nor mmap's back from the file at a different
33668 address. (There have been systems where private was not correctly
33669 implemented like the infamous i386 svr4.0, and systems where the
33670 VM page cache was not coherent with the file system buffer cache
33671 like early versions of FreeBSD and possibly contemporary NetBSD.)
33672 For shared mappings, we should conversely verify that changes get
33673 propagated back to all the places they're supposed to be.
33674
33675 Grep wants private fixed already mapped.
33676 The main things grep needs to know about mmap are:
33677 * does it exist and is it safe to write into the mmap'd area
33678 * how to use it (BSD variants) */
33679
33680#include <fcntl.h>
33681#include <sys/mman.h>
33682
Tanya Lattnercf067672008-01-17 05:57:22 +000033683#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033684char *malloc ();
33685#endif
33686
33687/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033688#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033689/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033690# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033691# define HAVE_SYS_PARAM_H 1
33692# endif
33693
33694# ifdef _SC_PAGESIZE
33695# define getpagesize() sysconf(_SC_PAGESIZE)
33696# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033697# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033698# include <sys/param.h>
33699# ifdef EXEC_PAGESIZE
33700# define getpagesize() EXEC_PAGESIZE
33701# else /* no EXEC_PAGESIZE */
33702# ifdef NBPG
33703# define getpagesize() NBPG * CLSIZE
33704# ifndef CLSIZE
33705# define CLSIZE 1
33706# endif /* no CLSIZE */
33707# else /* no NBPG */
33708# ifdef NBPC
33709# define getpagesize() NBPC
33710# else /* no NBPC */
33711# ifdef PAGESIZE
33712# define getpagesize() PAGESIZE
33713# endif /* PAGESIZE */
33714# endif /* no NBPC */
33715# endif /* no NBPG */
33716# endif /* no EXEC_PAGESIZE */
33717# else /* no HAVE_SYS_PARAM_H */
33718# define getpagesize() 8192 /* punt totally */
33719# endif /* no HAVE_SYS_PARAM_H */
33720# endif /* no _SC_PAGESIZE */
33721
33722#endif /* no HAVE_GETPAGESIZE */
33723
33724int
33725main ()
33726{
33727 char *data, *data2, *data3;
33728 int i, pagesize;
33729 int fd;
33730
33731 pagesize = getpagesize ();
33732
33733 /* First, make a file with some known garbage in it. */
33734 data = (char *) malloc (pagesize);
33735 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033736 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033737 for (i = 0; i < pagesize; ++i)
33738 *(data + i) = rand ();
33739 umask (0);
33740 fd = creat ("conftest.mmap", 0600);
33741 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033742 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033743 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033744 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033745 close (fd);
33746
33747 /* Next, try to mmap the file at a fixed address which already has
33748 something else allocated at it. If we can, also make sure that
33749 we see the same garbage. */
33750 fd = open ("conftest.mmap", O_RDWR);
33751 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033752 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033753 data2 = (char *) malloc (2 * pagesize);
33754 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033755 return 1;
33756 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033757 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033759 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033760 for (i = 0; i < pagesize; ++i)
33761 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033762 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033763
33764 /* Finally, make sure that changes to the mapped area do not
33765 percolate back to the file as seen by read(). (This is a bug on
33766 some variants of i386 svr4.0.) */
33767 for (i = 0; i < pagesize; ++i)
33768 *(data2 + i) = *(data2 + i) + 1;
33769 data3 = (char *) malloc (pagesize);
33770 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033771 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033772 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033773 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033774 for (i = 0; i < pagesize; ++i)
33775 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033776 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033777 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033778 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033779}
33780_ACEOF
33781rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033782if { (ac_try="$ac_link"
33783case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33786esac
33787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033789 ac_status=$?
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33795esac
33796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 ac_cv_func_mmap_fixed_mapped=yes
33802else
33803 echo "$as_me: program exited with status $ac_status" >&5
33804echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033805sed 's/^/| /' conftest.$ac_ext >&5
33806
John Criswell7a73b802003-06-30 21:59:07 +000033807( exit $ac_status )
33808ac_cv_func_mmap_fixed_mapped=no
33809fi
Reid Spencera773bd52006-08-04 18:18:08 +000033810rm -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 +000033811fi
Reid Spencera773bd52006-08-04 18:18:08 +000033812
33813
John Criswell7a73b802003-06-30 21:59:07 +000033814fi
Reid Spencera773bd52006-08-04 18:18:08 +000033815{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33816echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033817if test $ac_cv_func_mmap_fixed_mapped = yes; then
33818
33819cat >>confdefs.h <<\_ACEOF
33820#define HAVE_MMAP 1
33821_ACEOF
33822
33823fi
33824rm -f conftest.mmap
33825
Reid Spencer30fe5262007-01-20 07:48:49 +000033826 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033827echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033828if test "${ac_cv_func_mmap_file+set}" = set; then
33829 echo $ECHO_N "(cached) $ECHO_C" >&6
33830else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033831 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033832ac_cpp='$CPP $CPPFLAGS'
33833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835ac_compiler_gnu=$ac_cv_c_compiler_gnu
33836
33837 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033838 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033839else
33840 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033841
Reid Spencer777ce172004-09-20 04:09:56 +000033842 /* confdefs.h. */
33843_ACEOF
33844cat confdefs.h >>conftest.$ac_ext
33845cat >>conftest.$ac_ext <<_ACEOF
33846/* end confdefs.h. */
33847
John Criswell7a73b802003-06-30 21:59:07 +000033848#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033849#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033850#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033851
33852int
33853main ()
33854{
John Criswell7a73b802003-06-30 21:59:07 +000033855
33856 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033857 fd = creat ("foo",0777);
33858 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33859 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033860 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033861 ;
33862 return 0;
33863}
John Criswell7a73b802003-06-30 21:59:07 +000033864_ACEOF
33865rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033866if { (ac_try="$ac_link"
33867case "(($ac_try" in
33868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33869 *) ac_try_echo=$ac_try;;
33870esac
33871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33872 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033873 ac_status=$?
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033876 { (case "(($ac_try" in
33877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878 *) ac_try_echo=$ac_try;;
33879esac
33880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033882 ac_status=$?
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33885 ac_cv_func_mmap_file=yes
33886else
33887 echo "$as_me: program exited with status $ac_status" >&5
33888echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033889sed 's/^/| /' conftest.$ac_ext >&5
33890
John Criswell7a73b802003-06-30 21:59:07 +000033891( exit $ac_status )
33892ac_cv_func_mmap_file=no
33893fi
Reid Spencera773bd52006-08-04 18:18:08 +000033894rm -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 +000033895fi
Reid Spencera773bd52006-08-04 18:18:08 +000033896
33897
John Criswell7a73b802003-06-30 21:59:07 +000033898 ac_ext=c
33899ac_cpp='$CPP $CPPFLAGS'
33900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33902ac_compiler_gnu=$ac_cv_c_compiler_gnu
33903
33904
33905fi
Reid Spencera773bd52006-08-04 18:18:08 +000033906{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33907echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033908if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033909
33910cat >>confdefs.h <<\_ACEOF
33911#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033912_ACEOF
33913
33914 MMAP_FILE=yes
33915
33916fi
33917
Reid Spencer30fe5262007-01-20 07:48:49 +000033918 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033919echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033920if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33921 echo $ECHO_N "(cached) $ECHO_C" >&6
33922else
Reid Spencer582a23c2004-12-29 07:07:57 +000033923 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033924 ac_cv_need_dev_zero_for_mmap=yes
33925 else
33926 ac_cv_need_dev_zero_for_mmap=no
33927 fi
33928
33929fi
Reid Spencera773bd52006-08-04 18:18:08 +000033930{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33931echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033932if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33933
33934cat >>confdefs.h <<\_ACEOF
33935#define NEED_DEV_ZERO_FOR_MMAP 1
33936_ACEOF
33937
33938fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033939
Reid Spencer30fe5262007-01-20 07:48:49 +000033940 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33941 then
33942 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033943echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033944 fi
33945 if test "$ac_cv_func_mmap_file" = "no"
33946 then
33947 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033948echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033949 fi
John Criswellb13092b2003-07-22 21:00:24 +000033950fi
John Criswell7a73b802003-06-30 21:59:07 +000033951
33952
Reid Spencer9372f152007-07-30 20:13:24 +000033953
33954for ac_func in __dso_handle
33955do
33956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33961else
33962 cat >conftest.$ac_ext <<_ACEOF
33963/* confdefs.h. */
33964_ACEOF
33965cat confdefs.h >>conftest.$ac_ext
33966cat >>conftest.$ac_ext <<_ACEOF
33967/* end confdefs.h. */
33968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33970#define $ac_func innocuous_$ac_func
33971
33972/* System header to define __stub macros and hopefully few prototypes,
33973 which can conflict with char $ac_func (); below.
33974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33975 <limits.h> exists even on freestanding compilers. */
33976
33977#ifdef __STDC__
33978# include <limits.h>
33979#else
33980# include <assert.h>
33981#endif
33982
33983#undef $ac_func
33984
33985/* Override any GCC internal prototype to avoid an error.
33986 Use char because int might match the return type of a GCC
33987 builtin and then its argument prototype would still apply. */
33988#ifdef __cplusplus
33989extern "C"
33990#endif
33991char $ac_func ();
33992/* The GNU C library defines this for functions which it implements
33993 to always fail with ENOSYS. Some functions are actually named
33994 something starting with __ and the normal name is an alias. */
33995#if defined __stub_$ac_func || defined __stub___$ac_func
33996choke me
33997#endif
33998
33999int
34000main ()
34001{
34002return $ac_func ();
34003 ;
34004 return 0;
34005}
34006_ACEOF
34007rm -f conftest.$ac_objext conftest$ac_exeext
34008if { (ac_try="$ac_link"
34009case "(($ac_try" in
34010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011 *) ac_try_echo=$ac_try;;
34012esac
34013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014 (eval "$ac_link") 2>conftest.er1
34015 ac_status=$?
34016 grep -v '^ *+' conftest.er1 >conftest.err
34017 rm -f conftest.er1
34018 cat conftest.err >&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034020 (exit $ac_status); } &&
34021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34022 { (case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34025esac
34026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027 (eval "$ac_try") 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest$ac_exeext'
34032 { (case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34035esac
34036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_try") 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034041 eval "$as_ac_var=yes"
34042else
34043 echo "$as_me: failed program was:" >&5
34044sed 's/^/| /' conftest.$ac_ext >&5
34045
34046 eval "$as_ac_var=no"
34047fi
34048
Tanya Lattnercf067672008-01-17 05:57:22 +000034049rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034050 conftest$ac_exeext conftest.$ac_ext
34051fi
34052ac_res=`eval echo '${'$as_ac_var'}'`
34053 { echo "$as_me:$LINENO: result: $ac_res" >&5
34054echo "${ECHO_T}$ac_res" >&6; }
34055if test `eval echo '${'$as_ac_var'}'` = yes; then
34056 cat >>confdefs.h <<_ACEOF
34057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34058_ACEOF
34059
34060fi
34061done
34062
34063
Reid Spencera773bd52006-08-04 18:18:08 +000034064{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34065echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034066if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34068else
34069 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034070if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034071 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034072 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34073 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034074 if test $? -eq 0 ; then
34075 llvm_cv_llvmgcc_sanity="yes"
34076 fi
34077 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034078fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034079fi
Reid Spencera773bd52006-08-04 18:18:08 +000034080{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34081echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034082
34083if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034084 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34085echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034086 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034087 LLVMCC1=$llvmcc1path
34088
Reid Spencer502935f2004-12-22 05:56:56 +000034089 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034090 LLVMCC1PLUS=$llvmcc1pluspath
34091
Reid Spencer502935f2004-12-22 05:56:56 +000034092 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34093 LLVMGCCDIR=$llvmgccdir
34094
Reid Spencer282d8c12006-12-21 22:55:41 +000034095 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34096 LLVMGCCLIBEXEC=$llvmgcclibexec
34097
Reid Spencerb5d75b82006-05-09 00:31:01 +000034098 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034099 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34100 LLVMGCC_VERSION=$llvmgccversion
34101
34102 LLVMGCC_MAJVERS=$llvmgccmajvers
34103
Reid Spencer0d238182007-04-21 21:28:52 +000034104 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34105 LLVMGCC_LANGS=$llvmgcclangs
34106
34107 { echo "$as_me:$LINENO: result: ok" >&5
34108echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034109fi
34110
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034111SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034112
34113
Reid Spencere9de0912004-08-20 09:03:57 +000034114# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034115# information into substitutions that will end up in Makefile.config.in
34116# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034117if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034118 prefix="/usr/local"
34119fi
Reid Spencere9de0912004-08-20 09:03:57 +000034120eval LLVM_PREFIX="${prefix}";
34121eval LLVM_BINDIR="${prefix}/bin";
34122eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034123eval LLVM_DATADIR="${prefix}/share/llvm";
34124eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34125eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034126eval LLVM_INCLUDEDIR="${prefix}/include";
34127eval LLVM_INFODIR="${prefix}/info";
34128eval LLVM_MANDIR="${prefix}/man";
34129LLVM_CONFIGTIME=`date`
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034141# Place the various directores into the config.h file as #defines so that we
34142# can know about the installation paths within LLVM.
34143
Reid Spencere9de0912004-08-20 09:03:57 +000034144cat >>confdefs.h <<_ACEOF
34145#define LLVM_PREFIX "$LLVM_PREFIX"
34146_ACEOF
34147
34148
34149cat >>confdefs.h <<_ACEOF
34150#define LLVM_BINDIR "$LLVM_BINDIR"
34151_ACEOF
34152
34153
34154cat >>confdefs.h <<_ACEOF
34155#define LLVM_LIBDIR "$LLVM_LIBDIR"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
34160#define LLVM_DATADIR "$LLVM_DATADIR"
34161_ACEOF
34162
34163
34164cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034165#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034166_ACEOF
34167
34168
34169cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034170#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034171_ACEOF
34172
34173
34174cat >>confdefs.h <<_ACEOF
34175#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34176_ACEOF
34177
34178
34179cat >>confdefs.h <<_ACEOF
34180#define LLVM_INFODIR "$LLVM_INFODIR"
34181_ACEOF
34182
34183
34184cat >>confdefs.h <<_ACEOF
34185#define LLVM_MANDIR "$LLVM_MANDIR"
34186_ACEOF
34187
34188
34189cat >>confdefs.h <<_ACEOF
34190#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34191_ACEOF
34192
34193
Eric Christopher790e11c2007-12-01 00:34:39 +000034194cat >>confdefs.h <<_ACEOF
34195#define LLVM_HOSTTRIPLE "$host"
34196_ACEOF
34197
34198
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034199# Determine which bindings to build.
34200if test "$BINDINGS_TO_BUILD" = auto ; then
34201 BINDINGS_TO_BUILD=""
34202 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34203 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34204 fi
34205fi
34206BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34207
34208
34209# This isn't really configurey, but it avoids having to repeat the list in
34210# other files.
34211ALL_BINDINGS=ocaml
34212
34213
Gordon Henriksenf0915682007-10-02 16:42:22 +000034214# Do any work necessary to ensure that bindings have what they need.
34215binding_prereqs_failed=0
34216for a_binding in $BINDINGS_TO_BUILD ; do
34217 case "$a_binding" in
34218 ocaml)
34219 if test "x$OCAMLC" = x ; then
34220 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34221echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34222 binding_prereqs_failed=1
34223 fi
34224 if test "x$OCAMLDEP" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34226echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34227 binding_prereqs_failed=1
34228 fi
34229 if test "x$OCAMLOPT" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34231echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34232 fi
34233 if test "x$with_ocaml_libdir" != xauto ; then
34234 OCAML_LIBDIR=$with_ocaml_libdir
34235
34236 else
34237 ocaml_stdlib="`"$OCAMLC" -where`"
34238 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34239 then
34240 # ocaml stdlib is beneath our prefix; use stdlib
34241 OCAML_LIBDIR=$ocaml_stdlib
34242
34243 else
34244 # ocaml stdlib is outside our prefix; use libdir/ocaml
34245 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34246
34247 fi
34248 fi
34249 ;;
34250 esac
34251done
34252if test "$binding_prereqs_failed" = 1 ; then
34253 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34254echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34255 { (exit 1); exit 1; }; }
34256fi
34257
34258
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034259
Reid Spencera773bd52006-08-04 18:18:08 +000034260ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034261
Reid Spencera773bd52006-08-04 18:18:08 +000034262ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034263
Reid Spencera773bd52006-08-04 18:18:08 +000034264ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034265
Reid Spencera773bd52006-08-04 18:18:08 +000034266ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267
Reid Spencera773bd52006-08-04 18:18:08 +000034268ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034269
34270
Reid Spencera773bd52006-08-04 18:18:08 +000034271ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034272
34273
Reid Spencerea949cf2006-08-16 00:45:38 +000034274ac_config_files="$ac_config_files llvm.spec"
34275
34276
Reid Spencera773bd52006-08-04 18:18:08 +000034277ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034278
34279
Reid Spencera773bd52006-08-04 18:18:08 +000034280ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034281
34282
Reid Spencera773bd52006-08-04 18:18:08 +000034283ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034284
Reid Spencera773bd52006-08-04 18:18:08 +000034285ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034286
34287
Reid Spencera773bd52006-08-04 18:18:08 +000034288ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034289
34290
Reid Spencera773bd52006-08-04 18:18:08 +000034291ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencer8b2e1412006-11-17 03:32:33 +000034297ac_config_commands="$ac_config_commands runtime/Makefile"
34298
34299
Reid Spencera773bd52006-08-04 18:18:08 +000034300ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034301
34302
Reid Spencera773bd52006-08-04 18:18:08 +000034303ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034304
34305
Reid Spencera773bd52006-08-04 18:18:08 +000034306ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308
Reid Spencera773bd52006-08-04 18:18:08 +000034309ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034310
34311
Reid Spencera773bd52006-08-04 18:18:08 +000034312ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034313
34314
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034315ac_config_commands="$ac_config_commands bindings/Makefile"
34316
34317
34318ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34319
34320
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034321
John Criswell7a73b802003-06-30 21:59:07 +000034322cat >confcache <<\_ACEOF
34323# This file is a shell script that caches the results of configure
34324# tests run on this system so they can be shared between configure
34325# scripts and configure runs, see configure's option --config-cache.
34326# It is not useful on other systems. If it contains results you don't
34327# want to keep, you may remove or edit it.
34328#
34329# config.status only pays attention to the cache file if you give it
34330# the --recheck option to rerun configure.
34331#
John Criswell0c38eaf2003-09-10 15:17:25 +000034332# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034333# loading this file, other *unset* `ac_cv_foo' will be assigned the
34334# following values.
34335
34336_ACEOF
34337
34338# The following way of writing the cache mishandles newlines in values,
34339# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034340# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034341# Ultrix sh set writes to stderr and can't be redirected directly,
34342# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034343(
34344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34345 eval ac_val=\$$ac_var
34346 case $ac_val in #(
34347 *${as_nl}*)
34348 case $ac_var in #(
34349 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34350echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34351 esac
34352 case $ac_var in #(
34353 _ | IFS | as_nl) ;; #(
34354 *) $as_unset $ac_var ;;
34355 esac ;;
34356 esac
34357 done
34358
John Criswell7a73b802003-06-30 21:59:07 +000034359 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34361 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034362 # `set' does not quote correctly, so add quotes (double-quote
34363 # substitution turns \\\\ into \\, and sed turns \\ into \).
34364 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034365 "s/'/'\\\\''/g;
34366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034367 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034368 *)
34369 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034371 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034372 esac |
34373 sort
34374) |
John Criswell7a73b802003-06-30 21:59:07 +000034375 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034376 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034377 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034378 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34380 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34382 :end' >>confcache
34383if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34384 if test -w "$cache_file"; then
34385 test "x$cache_file" != "x/dev/null" &&
34386 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34387echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034388 cat confcache >$cache_file
34389 else
Reid Spencera773bd52006-08-04 18:18:08 +000034390 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34391echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034392 fi
34393fi
34394rm -f confcache
34395
34396test "x$prefix" = xNONE && prefix=$ac_default_prefix
34397# Let make expand exec_prefix.
34398test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34399
John Criswell7a73b802003-06-30 21:59:07 +000034400DEFS=-DHAVE_CONFIG_H
34401
John Criswell0c38eaf2003-09-10 15:17:25 +000034402ac_libobjs=
34403ac_ltlibobjs=
34404for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34405 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034406 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34407 ac_i=`echo "$ac_i" | sed "$ac_script"`
34408 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34409 # will be set to the directory where LIBOBJS objects are built.
34410 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34411 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034412done
34413LIBOBJS=$ac_libobjs
34414
34415LTLIBOBJS=$ac_ltlibobjs
34416
34417
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034418if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34419 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34420Usually this means the macro was only invoked conditionally." >&5
34421echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34422Usually this means the macro was only invoked conditionally." >&2;}
34423 { (exit 1); exit 1; }; }
34424fi
34425if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34426 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34427Usually this means the macro was only invoked conditionally." >&5
34428echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34429Usually this means the macro was only invoked conditionally." >&2;}
34430 { (exit 1); exit 1; }; }
34431fi
John Criswell7a73b802003-06-30 21:59:07 +000034432
34433: ${CONFIG_STATUS=./config.status}
34434ac_clean_files_save=$ac_clean_files
34435ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34436{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34437echo "$as_me: creating $CONFIG_STATUS" >&6;}
34438cat >$CONFIG_STATUS <<_ACEOF
34439#! $SHELL
34440# Generated by $as_me.
34441# Run this file to recreate the current configuration.
34442# Compiler output produced by configure, useful for debugging
34443# configure, is in config.log if it exists.
34444
34445debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034446ac_cs_recheck=false
34447ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034448SHELL=\${CONFIG_SHELL-$SHELL}
34449_ACEOF
34450
34451cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034452## --------------------- ##
34453## M4sh Initialization. ##
34454## --------------------- ##
34455
Tanya Lattnercf067672008-01-17 05:57:22 +000034456# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034457if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34458 emulate sh
34459 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034460 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34461 # is contrary to our usage. Disable this feature.
34462 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034463 setopt NO_GLOB_SUBST
34464else
Tanya Lattnercf067672008-01-17 05:57:22 +000034465 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034466fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034467BIN_SH=xpg4; export BIN_SH # for Tru64
34468DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034469
John Criswell7a73b802003-06-30 21:59:07 +000034470
Reid Spencera773bd52006-08-04 18:18:08 +000034471# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034472# Avoid depending upon Character Ranges.
34473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34476as_cr_digits='0123456789'
34477as_cr_alnum=$as_cr_Letters$as_cr_digits
34478
34479# The user is always right.
34480if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034481 echo "#! /bin/sh" >conf$$.sh
34482 echo "exit 0" >>conf$$.sh
34483 chmod +x conf$$.sh
34484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034485 PATH_SEPARATOR=';'
34486 else
34487 PATH_SEPARATOR=:
34488 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034489 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034490fi
34491
Reid Spencera773bd52006-08-04 18:18:08 +000034492# Support unset when possible.
34493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34494 as_unset=unset
34495else
34496 as_unset=false
34497fi
John Criswell7a73b802003-06-30 21:59:07 +000034498
Reid Spencera773bd52006-08-04 18:18:08 +000034499
34500# IFS
34501# We need space, tab and new line, in precisely that order. Quoting is
34502# there to prevent editors from complaining about space-tab.
34503# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34504# splitting by setting IFS to empty value.)
34505as_nl='
34506'
34507IFS=" "" $as_nl"
34508
34509# Find who we are. Look in the path if we contain no directory separator.
34510case $0 in
34511 *[\\/]* ) as_myself=$0 ;;
34512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034513for as_dir in $PATH
34514do
34515 IFS=$as_save_IFS
34516 test -z "$as_dir" && as_dir=.
34517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34518done
Reid Spencera773bd52006-08-04 18:18:08 +000034519IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034520
Reid Spencera773bd52006-08-04 18:18:08 +000034521 ;;
34522esac
34523# We did not find ourselves, most probably we were run as `sh COMMAND'
34524# in which case we are not to be found in the path.
34525if test "x$as_myself" = x; then
34526 as_myself=$0
34527fi
34528if test ! -f "$as_myself"; then
34529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34530 { (exit 1); exit 1; }
34531fi
34532
34533# Work around bugs in pre-3.0 UWIN ksh.
34534for as_var in ENV MAIL MAILPATH
34535do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34536done
34537PS1='$ '
34538PS2='> '
34539PS4='+ '
34540
34541# NLS nuisances.
34542for as_var in \
34543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34545 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034546do
Reid Spencera773bd52006-08-04 18:18:08 +000034547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34548 eval $as_var=C; export $as_var
34549 else
34550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34551 fi
34552done
34553
34554# Required to use basename.
34555if expr a : '\(a\)' >/dev/null 2>&1 &&
34556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34557 as_expr=expr
34558else
34559 as_expr=false
34560fi
34561
34562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34563 as_basename=basename
34564else
34565 as_basename=false
34566fi
34567
34568
34569# Name of the executable.
34570as_me=`$as_basename -- "$0" ||
34571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34572 X"$0" : 'X\(//\)$' \| \
34573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34574echo X/"$0" |
34575 sed '/^.*\/\([^/][^/]*\)\/*$/{
34576 s//\1/
34577 q
34578 }
34579 /^X\/\(\/\/\)$/{
34580 s//\1/
34581 q
34582 }
34583 /^X\/\(\/\).*/{
34584 s//\1/
34585 q
34586 }
34587 s/.*/./; q'`
34588
34589# CDPATH.
34590$as_unset CDPATH
34591
34592
34593
John Criswell7a73b802003-06-30 21:59:07 +000034594 as_lineno_1=$LINENO
34595 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034596 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034598
34599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34600 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034601 # line-number line after each line using $LINENO; the second 'sed'
34602 # does the real work. The second script uses 'N' to pair each
34603 # line-number line with the line containing $LINENO, and appends
34604 # trailing '-' during substitution so that $LINENO is not a special
34605 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034607 # scripts with optimization help from Paolo Bonzini. Blame Lee
34608 # E. McMahon (1931-1989) for sed's syntax. :-)
34609 sed -n '
34610 p
34611 /[$]LINENO/=
34612 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034613 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034614 s/[$]LINENO.*/&-/
34615 t lineno
34616 b
34617 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034618 N
Reid Spencera773bd52006-08-04 18:18:08 +000034619 :loop
34620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034621 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034622 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034623 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034624 chmod +x "$as_me.lineno" ||
34625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034626 { (exit 1); exit 1; }; }
34627
34628 # Don't try to exec as it changes $[0], causing all sort of problems
34629 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034630 # original and so on. Autoconf is especially sensitive to this).
34631 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034632 # Exit status is that of the last command.
34633 exit
34634}
34635
34636
Reid Spencera773bd52006-08-04 18:18:08 +000034637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34638 as_dirname=dirname
34639else
34640 as_dirname=false
34641fi
34642
34643ECHO_C= ECHO_N= ECHO_T=
34644case `echo -n x` in
34645-n*)
34646 case `echo 'x\c'` in
34647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34648 *) ECHO_C='\c';;
34649 esac;;
34650*)
34651 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034652esac
34653
Reid Spencera773bd52006-08-04 18:18:08 +000034654if expr a : '\(a\)' >/dev/null 2>&1 &&
34655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034656 as_expr=expr
34657else
34658 as_expr=false
34659fi
34660
34661rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034662if test -d conf$$.dir; then
34663 rm -f conf$$.dir/conf$$.file
34664else
34665 rm -f conf$$.dir
34666 mkdir conf$$.dir
34667fi
John Criswell7a73b802003-06-30 21:59:07 +000034668echo >conf$$.file
34669if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034670 as_ln_s='ln -s'
34671 # ... but there are two gotchas:
34672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34674 # In both cases, we have to default to `cp -p'.
34675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034676 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034677elif ln conf$$.file conf$$ 2>/dev/null; then
34678 as_ln_s=ln
34679else
34680 as_ln_s='cp -p'
34681fi
Reid Spencera773bd52006-08-04 18:18:08 +000034682rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34683rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034684
John Criswell0c38eaf2003-09-10 15:17:25 +000034685if mkdir -p . 2>/dev/null; then
34686 as_mkdir_p=:
34687else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034688 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034689 as_mkdir_p=false
34690fi
34691
Tanya Lattnercf067672008-01-17 05:57:22 +000034692# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34693# systems may use methods other than mode bits to determine executability.
34694cat >conf$$.file <<_ASEOF
34695#! /bin/sh
34696exit 0
34697_ASEOF
34698chmod +x conf$$.file
34699if test -x conf$$.file >/dev/null 2>&1; then
34700 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034701else
Tanya Lattnercf067672008-01-17 05:57:22 +000034702 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034703fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034704rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034705
34706# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034708
34709# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034711
34712
John Criswell7a73b802003-06-30 21:59:07 +000034713exec 6>&1
34714
Reid Spencera773bd52006-08-04 18:18:08 +000034715# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034716# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034717# values after options handling.
34718ac_log="
Tanya Lattner49ff6612008-05-10 04:20:38 +000034719This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034720generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034721
34722 CONFIG_FILES = $CONFIG_FILES
34723 CONFIG_HEADERS = $CONFIG_HEADERS
34724 CONFIG_LINKS = $CONFIG_LINKS
34725 CONFIG_COMMANDS = $CONFIG_COMMANDS
34726 $ $0 $@
34727
Reid Spencera773bd52006-08-04 18:18:08 +000034728on `(hostname || uname -n) 2>/dev/null | sed 1q`
34729"
34730
John Criswell7a73b802003-06-30 21:59:07 +000034731_ACEOF
34732
Reid Spencera773bd52006-08-04 18:18:08 +000034733cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034734# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034735config_files="$ac_config_files"
34736config_headers="$ac_config_headers"
34737config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034738
Reid Spencera773bd52006-08-04 18:18:08 +000034739_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034740
34741cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034742ac_cs_usage="\
34743\`$as_me' instantiates files from templates according to the
34744current configuration.
34745
34746Usage: $0 [OPTIONS] [FILE]...
34747
34748 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034749 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034750 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034751 -d, --debug don't remove temporary files
34752 --recheck update $as_me by reconfiguring in the same conditions
34753 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034754 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034755 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034756 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034757
34758Configuration files:
34759$config_files
34760
34761Configuration headers:
34762$config_headers
34763
John Criswellc764fbc2003-09-06 15:17:13 +000034764Configuration commands:
34765$config_commands
34766
John Criswell7a73b802003-06-30 21:59:07 +000034767Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034768
Reid Spencera773bd52006-08-04 18:18:08 +000034769_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034770cat >>$CONFIG_STATUS <<_ACEOF
34771ac_cs_version="\\
Tanya Lattner49ff6612008-05-10 04:20:38 +000034772llvm config.status 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +000034773configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034774 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034775
Reid Spencera773bd52006-08-04 18:18:08 +000034776Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034777This config.status script is free software; the Free Software Foundation
34778gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034779
34780ac_pwd='$ac_pwd'
34781srcdir='$srcdir'
34782INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034783_ACEOF
34784
34785cat >>$CONFIG_STATUS <<\_ACEOF
34786# If no file are specified by the user, then we need to provide default
34787# value. By we need to know if files were specified by the user.
34788ac_need_defaults=:
34789while test $# != 0
34790do
34791 case $1 in
34792 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034793 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34794 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034795 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034797 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034798 ac_option=$1
34799 ac_optarg=$2
34800 ac_shift=shift
34801 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034802 esac
34803
John Criswell0c38eaf2003-09-10 15:17:25 +000034804 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034805 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34807 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34809 echo "$ac_cs_version"; exit ;;
34810 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034811 debug=: ;;
34812 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034813 $ac_shift
34814 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034815 ac_need_defaults=false;;
34816 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034817 $ac_shift
34818 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034819 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034820 --he | --h)
34821 # Conflict between --help and --header
34822 { echo "$as_me: error: ambiguous option: $1
34823Try \`$0 --help' for more information." >&2
34824 { (exit 1); exit 1; }; };;
34825 --help | --hel | -h )
34826 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34828 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34829 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034830
34831 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034832 -*) { echo "$as_me: error: unrecognized option: $1
34833Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034834 { (exit 1); exit 1; }; } ;;
34835
Reid Spencera773bd52006-08-04 18:18:08 +000034836 *) ac_config_targets="$ac_config_targets $1"
34837 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034838
34839 esac
34840 shift
34841done
34842
John Criswell0c38eaf2003-09-10 15:17:25 +000034843ac_configure_extra_args=
34844
34845if $ac_cs_silent; then
34846 exec 6>/dev/null
34847 ac_configure_extra_args="$ac_configure_extra_args --silent"
34848fi
34849
34850_ACEOF
34851cat >>$CONFIG_STATUS <<_ACEOF
34852if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034853 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34854 CONFIG_SHELL=$SHELL
34855 export CONFIG_SHELL
34856 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034857fi
34858
John Criswell7a73b802003-06-30 21:59:07 +000034859_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034860cat >>$CONFIG_STATUS <<\_ACEOF
34861exec 5>>config.log
34862{
34863 echo
34864 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34865## Running $as_me. ##
34866_ASBOX
34867 echo "$ac_log"
34868} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034869
Reid Spencera773bd52006-08-04 18:18:08 +000034870_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034871cat >>$CONFIG_STATUS <<_ACEOF
34872#
Reid Spencera773bd52006-08-04 18:18:08 +000034873# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034874#
Reid Spencerc0682832005-02-24 19:05:19 +000034875llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034876
34877_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034878
John Criswell7a73b802003-06-30 21:59:07 +000034879cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034880
34881# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034882for ac_config_target in $ac_config_targets
34883do
Reid Spencera773bd52006-08-04 18:18:08 +000034884 case $ac_config_target in
34885 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34886 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34887 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34888 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34889 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34890 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034891 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034892 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34893 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34894 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34895 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34896 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34897 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34898 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034899 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034900 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34901 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34902 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34903 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34904 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034905 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34906 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034907
John Criswell7a73b802003-06-30 21:59:07 +000034908 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34909echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34910 { (exit 1); exit 1; }; };;
34911 esac
34912done
34913
Reid Spencera773bd52006-08-04 18:18:08 +000034914
John Criswell7a73b802003-06-30 21:59:07 +000034915# If the user did not use the arguments to specify the items to instantiate,
34916# then the envvar interface is used. Set only those that are not.
34917# We use the long form for the default assignment because of an extremely
34918# bizarre bug on SunOS 4.1.3.
34919if $ac_need_defaults; then
34920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034922 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034923fi
34924
John Criswell0c38eaf2003-09-10 15:17:25 +000034925# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034926# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034927# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034928# Hook for its removal unless debugging.
34929# Note that there is a small window in which the directory will not be cleaned:
34930# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034931$debug ||
34932{
Reid Spencera773bd52006-08-04 18:18:08 +000034933 tmp=
34934 trap 'exit_status=$?
34935 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34936' 0
John Criswell7a73b802003-06-30 21:59:07 +000034937 trap '{ (exit 1); exit 1; }' 1 2 13 15
34938}
John Criswell7a73b802003-06-30 21:59:07 +000034939# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034940
John Criswell7a73b802003-06-30 21:59:07 +000034941{
Reid Spencera773bd52006-08-04 18:18:08 +000034942 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034943 test -n "$tmp" && test -d "$tmp"
34944} ||
34945{
Reid Spencera773bd52006-08-04 18:18:08 +000034946 tmp=./conf$$-$RANDOM
34947 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034948} ||
34949{
John Criswell0c38eaf2003-09-10 15:17:25 +000034950 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034951 { (exit 1); exit 1; }
34952}
34953
John Criswell7a73b802003-06-30 21:59:07 +000034954#
Reid Spencera773bd52006-08-04 18:18:08 +000034955# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034956#
34957
34958# No need to generate the scripts if there are no CONFIG_FILES.
34959# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034960if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034961
34962_ACEOF
34963
Reid Spencera773bd52006-08-04 18:18:08 +000034964
34965
34966ac_delim='%!_!# '
34967for ac_last_try in false false false false false :; do
34968 cat >conf$$subs.sed <<_ACEOF
34969SHELL!$SHELL$ac_delim
34970PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34971PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34972PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34973PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34974PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34975PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34976exec_prefix!$exec_prefix$ac_delim
34977prefix!$prefix$ac_delim
34978program_transform_name!$program_transform_name$ac_delim
34979bindir!$bindir$ac_delim
34980sbindir!$sbindir$ac_delim
34981libexecdir!$libexecdir$ac_delim
34982datarootdir!$datarootdir$ac_delim
34983datadir!$datadir$ac_delim
34984sysconfdir!$sysconfdir$ac_delim
34985sharedstatedir!$sharedstatedir$ac_delim
34986localstatedir!$localstatedir$ac_delim
34987includedir!$includedir$ac_delim
34988oldincludedir!$oldincludedir$ac_delim
34989docdir!$docdir$ac_delim
34990infodir!$infodir$ac_delim
34991htmldir!$htmldir$ac_delim
34992dvidir!$dvidir$ac_delim
34993pdfdir!$pdfdir$ac_delim
34994psdir!$psdir$ac_delim
34995libdir!$libdir$ac_delim
34996localedir!$localedir$ac_delim
34997mandir!$mandir$ac_delim
34998DEFS!$DEFS$ac_delim
34999ECHO_C!$ECHO_C$ac_delim
35000ECHO_N!$ECHO_N$ac_delim
35001ECHO_T!$ECHO_T$ac_delim
35002LIBS!$LIBS$ac_delim
35003build_alias!$build_alias$ac_delim
35004host_alias!$host_alias$ac_delim
35005target_alias!$target_alias$ac_delim
35006LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35007subdirs!$subdirs$ac_delim
35008build!$build$ac_delim
35009build_cpu!$build_cpu$ac_delim
35010build_vendor!$build_vendor$ac_delim
35011build_os!$build_os$ac_delim
35012host!$host$ac_delim
35013host_cpu!$host_cpu$ac_delim
35014host_vendor!$host_vendor$ac_delim
35015host_os!$host_os$ac_delim
35016target!$target$ac_delim
35017target_cpu!$target_cpu$ac_delim
35018target_vendor!$target_vendor$ac_delim
35019target_os!$target_os$ac_delim
35020OS!$OS$ac_delim
35021LINKALL!$LINKALL$ac_delim
35022NOLINKALL!$NOLINKALL$ac_delim
35023LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35024LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35025ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035026ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035027CC!$CC$ac_delim
35028CFLAGS!$CFLAGS$ac_delim
35029LDFLAGS!$LDFLAGS$ac_delim
35030CPPFLAGS!$CPPFLAGS$ac_delim
35031ac_ct_CC!$ac_ct_CC$ac_delim
35032EXEEXT!$EXEEXT$ac_delim
35033OBJEXT!$OBJEXT$ac_delim
35034CPP!$CPP$ac_delim
35035GREP!$GREP$ac_delim
35036EGREP!$EGREP$ac_delim
35037LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35038BUILD_CC!$BUILD_CC$ac_delim
35039BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35040CVSBUILD!$CVSBUILD$ac_delim
35041ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35042DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035043ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35044EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035045DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035046JIT!$JIT$ac_delim
35047TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35048ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35049ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035050ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035051TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035052ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035053EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35054CXX!$CXX$ac_delim
35055CXXFLAGS!$CXXFLAGS$ac_delim
35056ac_ct_CXX!$ac_ct_CXX$ac_delim
35057LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035058LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035059LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035060FLEX!$FLEX$ac_delim
35061YACC!$YACC$ac_delim
35062YFLAGS!$YFLAGS$ac_delim
35063BISON!$BISON$ac_delim
35064NM!$NM$ac_delim
35065ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035066_ACEOF
35067
35068 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35069 break
35070 elif $ac_last_try; then
35071 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35072echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35073 { (exit 1); exit 1; }; }
35074 else
35075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035076 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035077done
35078
35079ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35080if test -n "$ac_eof"; then
35081 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35082 ac_eof=`expr $ac_eof + 1`
35083fi
35084
35085cat >>$CONFIG_STATUS <<_ACEOF
35086cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35088_ACEOF
35089sed '
35090s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35091s/^/s,@/; s/!/@,|#_!!_#|/
35092:n
35093t n
35094s/'"$ac_delim"'$/,g/; t
35095s/$/\\/; p
35096N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35097' >>$CONFIG_STATUS <conf$$subs.sed
35098rm -f conf$$subs.sed
35099cat >>$CONFIG_STATUS <<_ACEOF
35100CEOF$ac_eof
35101_ACEOF
35102
35103
35104ac_delim='%!_!# '
35105for ac_last_try in false false false false false :; do
35106 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035107LN_S!$LN_S$ac_delim
35108CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035109CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035110DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035111FIND!$FIND$ac_delim
35112MKDIR!$MKDIR$ac_delim
35113MV!$MV$ac_delim
35114RANLIB!$RANLIB$ac_delim
35115RM!$RM$ac_delim
35116SED!$SED$ac_delim
35117TAR!$TAR$ac_delim
35118BINPWD!$BINPWD$ac_delim
35119GRAPHVIZ!$GRAPHVIZ$ac_delim
35120DOT!$DOT$ac_delim
35121GV!$GV$ac_delim
35122DOTTY!$DOTTY$ac_delim
35123PERL!$PERL$ac_delim
35124HAVE_PERL!$HAVE_PERL$ac_delim
35125INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35126INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35127INSTALL_DATA!$INSTALL_DATA$ac_delim
35128BZIP2!$BZIP2$ac_delim
35129DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035130GROFF!$GROFF$ac_delim
35131GZIP!$GZIP$ac_delim
35132POD2HTML!$POD2HTML$ac_delim
35133POD2MAN!$POD2MAN$ac_delim
35134RUNTEST!$RUNTEST$ac_delim
35135TCLSH!$TCLSH$ac_delim
35136ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035137OCAMLC!$OCAMLC$ac_delim
35138OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035139OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035140OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035141INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35142INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35143CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35144CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35145LIBADD_DL!$LIBADD_DL$ac_delim
35146ECHO!$ECHO$ac_delim
35147AR!$AR$ac_delim
35148STRIP!$STRIP$ac_delim
35149CXXCPP!$CXXCPP$ac_delim
35150F77!$F77$ac_delim
35151FFLAGS!$FFLAGS$ac_delim
35152ac_ct_F77!$ac_ct_F77$ac_delim
35153LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035154LLVMGCC!$LLVMGCC$ac_delim
35155LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035156USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035157HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035158HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035159ALLOCA!$ALLOCA$ac_delim
35160MMAP_FILE!$MMAP_FILE$ac_delim
35161LLVMCC1!$LLVMCC1$ac_delim
35162LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35163LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035164LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035165LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35166LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035167LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035168SHLIBEXT!$SHLIBEXT$ac_delim
35169LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35170LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35171LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35172LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35173LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35174LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35175LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35176LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35177LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35178LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035179BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35180ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035181OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035182LIBOBJS!$LIBOBJS$ac_delim
35183LTLIBOBJS!$LTLIBOBJS$ac_delim
35184_ACEOF
35185
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035186 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000035187 break
35188 elif $ac_last_try; then
35189 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35190echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35191 { (exit 1); exit 1; }; }
35192 else
35193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35194 fi
35195done
35196
35197ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35198if test -n "$ac_eof"; then
35199 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35200 ac_eof=`expr $ac_eof + 1`
35201fi
35202
35203cat >>$CONFIG_STATUS <<_ACEOF
35204cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35206_ACEOF
35207sed '
35208s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35209s/^/s,@/; s/!/@,|#_!!_#|/
35210:n
35211t n
35212s/'"$ac_delim"'$/,g/; t
35213s/$/\\/; p
35214N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35215' >>$CONFIG_STATUS <conf$$subs.sed
35216rm -f conf$$subs.sed
35217cat >>$CONFIG_STATUS <<_ACEOF
35218:end
35219s/|#_!!_#|//g
35220CEOF$ac_eof
35221_ACEOF
35222
35223
35224# VPATH may cause trouble with some makes, so we remove $(srcdir),
35225# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35226# trailing colons and then remove the whole line if VPATH becomes empty
35227# (actually we leave an empty line to preserve line numbers).
35228if test "x$srcdir" = x.; then
35229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35230s/:*\$(srcdir):*/:/
35231s/:*\${srcdir}:*/:/
35232s/:*@srcdir@:*/:/
35233s/^\([^=]*=[ ]*\):*/\1/
35234s/:*$//
35235s/^[^=]*=[ ]*$//
35236}'
35237fi
35238
35239cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035240fi # test -n "$CONFIG_FILES"
35241
Reid Spencera773bd52006-08-04 18:18:08 +000035242
35243for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35244do
35245 case $ac_tag in
35246 :[FHLC]) ac_mode=$ac_tag; continue;;
35247 esac
35248 case $ac_mode$ac_tag in
35249 :[FHL]*:*);;
35250 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35251echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35252 { (exit 1); exit 1; }; };;
35253 :[FH]-) ac_tag=-:-;;
35254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35255 esac
35256 ac_save_IFS=$IFS
35257 IFS=:
35258 set x $ac_tag
35259 IFS=$ac_save_IFS
35260 shift
35261 ac_file=$1
35262 shift
35263
35264 case $ac_mode in
35265 :L) ac_source=$1;;
35266 :[FH])
35267 ac_file_inputs=
35268 for ac_f
35269 do
35270 case $ac_f in
35271 -) ac_f="$tmp/stdin";;
35272 *) # Look for the file first in the build tree, then in the source tree
35273 # (if the path is not absolute). The absolute path cannot be DOS-style,
35274 # because $ac_f cannot contain `:'.
35275 test -f "$ac_f" ||
35276 case $ac_f in
35277 [\\/$]*) false;;
35278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35279 esac ||
35280 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35281echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35282 { (exit 1); exit 1; }; };;
35283 esac
35284 ac_file_inputs="$ac_file_inputs $ac_f"
35285 done
35286
35287 # Let's still pretend it is `configure' which instantiates (i.e., don't
35288 # use $as_me), people would be surprised to read:
35289 # /* config.h. Generated by config.status. */
35290 configure_input="Generated from "`IFS=:
35291 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35292 if test x"$ac_file" != x-; then
35293 configure_input="$ac_file. $configure_input"
35294 { echo "$as_me:$LINENO: creating $ac_file" >&5
35295echo "$as_me: creating $ac_file" >&6;}
35296 fi
35297
35298 case $ac_tag in
35299 *:-:* | *:-) cat >"$tmp/stdin";;
35300 esac
35301 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035302 esac
35303
Reid Spencera773bd52006-08-04 18:18:08 +000035304 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035306 X"$ac_file" : 'X\(//\)[^/]' \| \
35307 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035309echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35311 s//\1/
35312 q
35313 }
35314 /^X\(\/\/\)[^/].*/{
35315 s//\1/
35316 q
35317 }
35318 /^X\(\/\/\)$/{
35319 s//\1/
35320 q
35321 }
35322 /^X\(\/\).*/{
35323 s//\1/
35324 q
35325 }
35326 s/.*/./; q'`
35327 { as_dir="$ac_dir"
35328 case $as_dir in #(
35329 -*) as_dir=./$as_dir;;
35330 esac
35331 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035332 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035333 while :; do
35334 case $as_dir in #(
35335 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35336 *) as_qdir=$as_dir;;
35337 esac
35338 as_dirs="'$as_qdir' $as_dirs"
35339 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035341 X"$as_dir" : 'X\(//\)[^/]' \| \
35342 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035344echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35346 s//\1/
35347 q
35348 }
35349 /^X\(\/\/\)[^/].*/{
35350 s//\1/
35351 q
35352 }
35353 /^X\(\/\/\)$/{
35354 s//\1/
35355 q
35356 }
35357 /^X\(\/\).*/{
35358 s//\1/
35359 q
35360 }
35361 s/.*/./; q'`
35362 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035363 done
Reid Spencera773bd52006-08-04 18:18:08 +000035364 test -z "$as_dirs" || eval "mkdir $as_dirs"
35365 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35366echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035367 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035368 ac_builddir=.
35369
Reid Spencera773bd52006-08-04 18:18:08 +000035370case "$ac_dir" in
35371.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35372*)
John Criswell7a73b802003-06-30 21:59:07 +000035373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035374 # A ".." for each directory in $ac_dir_suffix.
35375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35376 case $ac_top_builddir_sub in
35377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35379 esac ;;
35380esac
35381ac_abs_top_builddir=$ac_pwd
35382ac_abs_builddir=$ac_pwd$ac_dir_suffix
35383# for backward compatibility:
35384ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035385
35386case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035387 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035388 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035389 ac_top_srcdir=$ac_top_builddir_sub
35390 ac_abs_top_srcdir=$ac_pwd ;;
35391 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035392 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035393 ac_top_srcdir=$srcdir
35394 ac_abs_top_srcdir=$srcdir ;;
35395 *) # Relative name.
35396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35397 ac_top_srcdir=$ac_top_build_prefix$srcdir
35398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035399esac
Reid Spencera773bd52006-08-04 18:18:08 +000035400ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035401
John Criswell7a73b802003-06-30 21:59:07 +000035402
Reid Spencera773bd52006-08-04 18:18:08 +000035403 case $ac_mode in
35404 :F)
35405 #
35406 # CONFIG_FILE
35407 #
John Criswell7a73b802003-06-30 21:59:07 +000035408
35409 case $INSTALL in
35410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035412 esac
John Criswell7a73b802003-06-30 21:59:07 +000035413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035414
35415cat >>$CONFIG_STATUS <<\_ACEOF
35416# If the template does not know about datarootdir, expand it.
35417# FIXME: This hack should be removed a few years after 2.60.
35418ac_datarootdir_hack=; ac_datarootdir_seen=
35419
35420case `sed -n '/datarootdir/ {
35421 p
35422 q
35423}
35424/@datadir@/p
35425/@docdir@/p
35426/@infodir@/p
35427/@localedir@/p
35428/@mandir@/p
35429' $ac_file_inputs` in
35430*datarootdir*) ac_datarootdir_seen=yes;;
35431*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35432 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35433echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35434_ACEOF
35435cat >>$CONFIG_STATUS <<_ACEOF
35436 ac_datarootdir_hack='
35437 s&@datadir@&$datadir&g
35438 s&@docdir@&$docdir&g
35439 s&@infodir@&$infodir&g
35440 s&@localedir@&$localedir&g
35441 s&@mandir@&$mandir&g
35442 s&\\\${datarootdir}&$datarootdir&g' ;;
35443esac
35444_ACEOF
35445
35446# Neutralize VPATH when `$srcdir' = `.'.
35447# Shell code in configure.ac might set extrasub.
35448# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035449cat >>$CONFIG_STATUS <<_ACEOF
35450 sed "$ac_vpsub
35451$extrasub
35452_ACEOF
35453cat >>$CONFIG_STATUS <<\_ACEOF
35454:t
35455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035456s&@configure_input@&$configure_input&;t t
35457s&@top_builddir@&$ac_top_builddir_sub&;t t
35458s&@srcdir@&$ac_srcdir&;t t
35459s&@abs_srcdir@&$ac_abs_srcdir&;t t
35460s&@top_srcdir@&$ac_top_srcdir&;t t
35461s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35462s&@builddir@&$ac_builddir&;t t
35463s&@abs_builddir@&$ac_abs_builddir&;t t
35464s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35465s&@INSTALL@&$ac_INSTALL&;t t
35466$ac_datarootdir_hack
35467" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035468
Reid Spencera773bd52006-08-04 18:18:08 +000035469test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35470 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35472 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35473which seems to be undefined. Please make sure it is defined." >&5
35474echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35475which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035476
Reid Spencera773bd52006-08-04 18:18:08 +000035477 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035478 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035479 -) cat "$tmp/out"; rm -f "$tmp/out";;
35480 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035481 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035482 ;;
35483 :H)
35484 #
35485 # CONFIG_HEADER
35486 #
John Criswell7a73b802003-06-30 21:59:07 +000035487_ACEOF
35488
Reid Spencera773bd52006-08-04 18:18:08 +000035489# Transform confdefs.h into a sed script `conftest.defines', that
35490# substitutes the proper values into config.h.in to produce config.h.
35491rm -f conftest.defines conftest.tail
35492# First, append a space to every undef/define line, to ease matching.
35493echo 's/$/ /' >conftest.defines
35494# Then, protect against being on the right side of a sed subst, or in
35495# an unquoted here document, in config.status. If some macros were
35496# called several times there might be several #defines for the same
35497# symbol, which is useless. But do not sort them, since the last
35498# AC_DEFINE must be honored.
35499ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35500# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35501# NAME is the cpp macro being defined, VALUE is the value it is being given.
35502# PARAMS is the parameter list in the macro definition--in most cases, it's
35503# just an empty string.
35504ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35505ac_dB='\\)[ (].*,\\1define\\2'
35506ac_dC=' '
35507ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035508
Reid Spencera773bd52006-08-04 18:18:08 +000035509uniq confdefs.h |
35510 sed -n '
35511 t rset
35512 :rset
35513 s/^[ ]*#[ ]*define[ ][ ]*//
35514 t ok
35515 d
35516 :ok
35517 s/[\\&,]/\\&/g
35518 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35519 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35520 ' >>conftest.defines
35521
35522# Remove the space that was appended to ease matching.
35523# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035524# example, in the case of _POSIX_SOURCE, which is predefined and required
35525# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035526# (The regexp can be short, since the line contains either #define or #undef.)
35527echo 's/ $//
35528s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035529
Reid Spencera773bd52006-08-04 18:18:08 +000035530# Break up conftest.defines:
35531ac_max_sed_lines=50
35532
35533# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35534# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35535# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35536# et cetera.
35537ac_in='$ac_file_inputs'
35538ac_out='"$tmp/out1"'
35539ac_nxt='"$tmp/out2"'
35540
35541while :
John Criswell7a73b802003-06-30 21:59:07 +000035542do
Reid Spencera773bd52006-08-04 18:18:08 +000035543 # Write a here document:
35544 cat >>$CONFIG_STATUS <<_ACEOF
35545 # First, check the format of the line:
35546 cat >"\$tmp/defines.sed" <<\\CEOF
35547/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35548/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35549b
35550:def
35551_ACEOF
35552 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035553 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035554 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35555 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35556 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35557 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035558 rm -f conftest.defines
35559 mv conftest.tail conftest.defines
35560done
Reid Spencera773bd52006-08-04 18:18:08 +000035561rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035562
Reid Spencera773bd52006-08-04 18:18:08 +000035563echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035564cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035565 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035566 echo "/* $configure_input */" >"$tmp/config.h"
35567 cat "$ac_result" >>"$tmp/config.h"
35568 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035569 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35570echo "$as_me: $ac_file is unchanged" >&6;}
35571 else
John Criswell7a73b802003-06-30 21:59:07 +000035572 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035573 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035574 fi
35575 else
Reid Spencera773bd52006-08-04 18:18:08 +000035576 echo "/* $configure_input */"
35577 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035578 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035579 rm -f "$tmp/out12"
35580 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035581
Reid Spencera773bd52006-08-04 18:18:08 +000035582 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35583echo "$as_me: executing $ac_file commands" >&6;}
35584 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035585 esac
John Criswell7a73b802003-06-30 21:59:07 +000035586
Reid Spencera773bd52006-08-04 18:18:08 +000035587
35588 case $ac_file$ac_mode in
35589 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35591 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35593 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35595 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035597 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035599 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35601 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35603 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35605 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35607 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035609 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35611 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035613
35614 esac
35615done # for ac_tag
35616
John Criswell7a73b802003-06-30 21:59:07 +000035617
35618{ (exit 0); exit 0; }
35619_ACEOF
35620chmod +x $CONFIG_STATUS
35621ac_clean_files=$ac_clean_files_save
35622
35623
35624# configure is writing to config.log, and then calls config.status.
35625# config.status does its own redirection, appending to config.log.
35626# Unfortunately, on DOS this fails, as config.log is still kept open
35627# by configure, so config.status won't be able to write to it; its
35628# output is simply discarded. So we exec the FD to /dev/null,
35629# effectively closing config.log, so it can be properly (re)opened and
35630# appended to by config.status. When coming back to configure, we
35631# need to make the FD available again.
35632if test "$no_create" != yes; then
35633 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035634 ac_config_status_args=
35635 test "$silent" = yes &&
35636 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035637 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035639 exec 5>>config.log
35640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35641 # would make configure fail if this is the last instruction.
35642 $ac_cs_success || { (exit 1); exit 1; }
35643fi
35644
John Criswell12399a12003-09-30 15:55:44 +000035645#
35646# CONFIG_SUBDIRS section.
35647#
35648if test "$no_recursion" != yes; then
35649
35650 # Remove --cache-file and --srcdir arguments so they do not pile up.
35651 ac_sub_configure_args=
35652 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035653 eval "set x $ac_configure_args"
35654 shift
35655 for ac_arg
35656 do
John Criswell12399a12003-09-30 15:55:44 +000035657 if test -n "$ac_prev"; then
35658 ac_prev=
35659 continue
35660 fi
35661 case $ac_arg in
35662 -cache-file | --cache-file | --cache-fil | --cache-fi \
35663 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35664 ac_prev=cache_file ;;
35665 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35666 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35667 | --c=*)
35668 ;;
35669 --config-cache | -C)
35670 ;;
35671 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35672 ac_prev=srcdir ;;
35673 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35674 ;;
35675 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35676 ac_prev=prefix ;;
35677 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035679 *)
35680 case $ac_arg in
35681 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35682 esac
35683 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035684 esac
35685 done
35686
35687 # Always prepend --prefix to ensure using the same prefix
35688 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035689 ac_arg="--prefix=$prefix"
35690 case $ac_arg in
35691 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35692 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035693 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035694
35695 ac_popdir=`pwd`
35696 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35697
35698 # Do not complain, so a configure script can configure whichever
35699 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035700 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035701
Reid Spencera773bd52006-08-04 18:18:08 +000035702 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35703 echo "$as_me:$LINENO: $ac_msg" >&5
35704 echo "$ac_msg" >&6
35705 { as_dir="$ac_dir"
35706 case $as_dir in #(
35707 -*) as_dir=./$as_dir;;
35708 esac
35709 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035710 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035711 while :; do
35712 case $as_dir in #(
35713 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35714 *) as_qdir=$as_dir;;
35715 esac
35716 as_dirs="'$as_qdir' $as_dirs"
35717 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035718$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035719 X"$as_dir" : 'X\(//\)[^/]' \| \
35720 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035722echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35724 s//\1/
35725 q
35726 }
35727 /^X\(\/\/\)[^/].*/{
35728 s//\1/
35729 q
35730 }
35731 /^X\(\/\/\)$/{
35732 s//\1/
35733 q
35734 }
35735 /^X\(\/\).*/{
35736 s//\1/
35737 q
35738 }
35739 s/.*/./; q'`
35740 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035741 done
Reid Spencera773bd52006-08-04 18:18:08 +000035742 test -z "$as_dirs" || eval "mkdir $as_dirs"
35743 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35744echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035745 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035746 ac_builddir=.
35747
Reid Spencera773bd52006-08-04 18:18:08 +000035748case "$ac_dir" in
35749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35750*)
John Criswell12399a12003-09-30 15:55:44 +000035751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035752 # A ".." for each directory in $ac_dir_suffix.
35753 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35754 case $ac_top_builddir_sub in
35755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35757 esac ;;
35758esac
35759ac_abs_top_builddir=$ac_pwd
35760ac_abs_builddir=$ac_pwd$ac_dir_suffix
35761# for backward compatibility:
35762ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035763
35764case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035765 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035766 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035767 ac_top_srcdir=$ac_top_builddir_sub
35768 ac_abs_top_srcdir=$ac_pwd ;;
35769 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035770 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035771 ac_top_srcdir=$srcdir
35772 ac_abs_top_srcdir=$srcdir ;;
35773 *) # Relative name.
35774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35775 ac_top_srcdir=$ac_top_build_prefix$srcdir
35776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035777esac
Reid Spencera773bd52006-08-04 18:18:08 +000035778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035779
35780
Reid Spencera773bd52006-08-04 18:18:08 +000035781 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035782
35783 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035784 if test -f "$ac_srcdir/configure.gnu"; then
35785 ac_sub_configure=$ac_srcdir/configure.gnu
35786 elif test -f "$ac_srcdir/configure"; then
35787 ac_sub_configure=$ac_srcdir/configure
35788 elif test -f "$ac_srcdir/configure.in"; then
35789 # This should be Cygnus configure.
35790 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035791 else
35792 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35793echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35794 ac_sub_configure=
35795 fi
35796
35797 # The recursion is here.
35798 if test -n "$ac_sub_configure"; then
35799 # Make the cache file name correct relative to the subdirectory.
35800 case $cache_file in
35801 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035802 *) # Relative name.
35803 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035804 esac
35805
Reid Spencera773bd52006-08-04 18:18:08 +000035806 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35807echo "$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 +000035808 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035809 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35810 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035811 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035812echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35813 { (exit 1); exit 1; }; }
35814 fi
35815
Reid Spencera773bd52006-08-04 18:18:08 +000035816 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035817 done
35818fi
35819