blob: eaf6e1575b30e186dab14a29ae73fb1b238cc1c1 [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
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000954projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000960projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000988# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000997includedir='${prefix}/include'
998oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001010ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001015 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001016 ac_prev=
1017 continue
1018 fi
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
Reid Spencera773bd52006-08-04 18:18:08 +00001027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001052 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001054 datadir=$ac_optarg ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
John Criswell7a73b802003-06-30 21:59:07 +00001063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
Reid Spencera773bd52006-08-04 18:18:08 +00001116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
John Criswell7a73b802003-06-30 21:59:07 +00001122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
Reid Spencera773bd52006-08-04 18:18:08 +00001146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
John Criswell7a73b802003-06-30 21:59:07 +00001151 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
Reid Spencera773bd52006-08-04 18:18:08 +00001220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
John Criswell7a73b802003-06-30 21:59:07 +00001230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001286 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001326 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
Reid Spencera773bd52006-08-04 18:18:08 +00001346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001351do
Reid Spencera773bd52006-08-04 18:18:08 +00001352 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001353 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001356 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
Reid Spencera773bd52006-08-04 18:18:08 +00001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
John Criswell7a73b802003-06-30 21:59:07 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001404echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
Reid Spencera773bd52006-08-04 18:18:08 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001432 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001463\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
John Criswell7a73b802003-06-30 21:59:07 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattner49ff6612008-05-10 04:20:38 +00001529 short | recursive ) echo "Configuration of llvm 2.4svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001536 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001537 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001538 --enable-expensive-checks
1539
Reid Spencer8b2e1412006-11-17 03:32:33 +00001540 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001542 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001543 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001544 --enable-pic Build LLVM with Position Independent Code (default
1545 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001546 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001547 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001548 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001550 --enable-bindings Build specific language bindings:
1551 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001552 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001557 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001560 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001561
1562Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001565 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001567 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 searches PATH)
1569 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001571 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001572 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001574 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001578 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001579 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001582 CC C compiler command
1583 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001588 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001596 CXXCPP C++ preprocessor
1597 F77 Fortran 77 compiler command
1598 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <llvmbugs@cs.uiuc.edu>.
1604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001605ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001611 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_builddir=.
1613
Reid Spencera773bd52006-08-04 18:18:08 +00001614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
John Criswell7a73b802003-06-30 21:59:07 +00001617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001629
1630case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001631 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001643esac
Reid Spencera773bd52006-08-04 18:18:08 +00001644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001645
Reid Spencera773bd52006-08-04 18:18:08 +00001646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001654 else
1655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001658 done
1659fi
1660
Reid Spencera773bd52006-08-04 18:18:08 +00001661test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001662if $ac_init_version; then
1663 cat <<\_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001664llvm configure 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001665generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001666
Reid Spencera773bd52006-08-04 18:18:08 +00001667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001671
Tanya Lattnercf067672008-01-17 05:57:22 +00001672Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001673_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001674 exit
John Criswell7a73b802003-06-30 21:59:07 +00001675fi
Reid Spencera773bd52006-08-04 18:18:08 +00001676cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001677This file contains any messages produced by compilers while
1678running configure, to aid debugging if configure makes a mistake.
1679
Tanya Lattner49ff6612008-05-10 04:20:38 +00001680It was created by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001681generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001682
1683 $ $0 $@
1684
1685_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001686exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001687{
1688cat <<_ASUNAME
1689## --------- ##
1690## Platform. ##
1691## --------- ##
1692
1693hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698
1699/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701
1702/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001705/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001706/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1709
1710_ASUNAME
1711
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1718done
Reid Spencera773bd52006-08-04 18:18:08 +00001719IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001720
1721} >&5
1722
1723cat >&5 <<_ACEOF
1724
1725
1726## ----------- ##
1727## Core tests. ##
1728## ----------- ##
1729
1730_ACEOF
1731
1732
1733# Keep a trace of the command line.
1734# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001736# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001738ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_configure_args0=
1740ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001741ac_must_keep_next=false
1742for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001743do
John Criswell0c38eaf2003-09-10 15:17:25 +00001744 for ac_arg
1745 do
1746 case $ac_arg in
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1750 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001751 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 esac
1754 case $ac_pass in
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 2)
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001761 case $ac_arg in
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 esac
1769 ;;
1770 -* ) ac_must_keep_next=true ;;
1771 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001773 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 ;;
1775 esac
1776 done
John Criswell7a73b802003-06-30 21:59:07 +00001777done
John Criswell0c38eaf2003-09-10 15:17:25 +00001778$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779$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 +00001780
1781# When interrupted or exit'd, cleanup temporary files, and complete
1782# config.log. We remove comments because anyway the quotes in there
1783# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001784# WARNING: Use '\'' to represent an apostrophe within the trap.
1785# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001786trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1788 {
1789 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001790
John Criswell7a73b802003-06-30 21:59:07 +00001791 cat <<\_ASBOX
1792## ---------------- ##
1793## Cache variables. ##
1794## ---------------- ##
1795_ASBOX
1796 echo
1797 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001798(
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1801 case $ac_val in #(
1802 *${as_nl}*)
1803 case $ac_var in #(
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 esac
1807 case $ac_var in #(
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
John Criswell7a73b802003-06-30 21:59:07 +00001813 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001816 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001820 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001823 esac |
1824 sort
1825)
John Criswell7a73b802003-06-30 21:59:07 +00001826 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
Reid Spencera773bd52006-08-04 18:18:08 +00001836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001858 done | sort
1859 echo
1860 fi
1861
John Criswell7a73b802003-06-30 21:59:07 +00001862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001869 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1875 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001878 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001879' 0
John Criswell7a73b802003-06-30 21:59:07 +00001880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001886rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
1916# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001917if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921else
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001924fi
Reid Spencera773bd52006-08-04 18:18:08 +00001925shift
1926for ac_site_file
1927do
John Criswell7a73b802003-06-30 21:59:07 +00001928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1932 . "$ac_site_file"
1933 fi
1934done
1935
1936if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941echo "$as_me: loading cache $cache_file" >&6;}
1942 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001945 esac
1946 fi
1947else
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949echo "$as_me: creating cache $cache_file" >&6;}
1950 >$cache_file
1951fi
1952
1953# Check that the precious variables saved in the cache have kept the same
1954# value.
1955ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001956for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1971 *)
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001980 fi;;
1981 esac
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1984 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001986 *) ac_arg=$ac_var=$ac_new_val ;;
1987 esac
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991 esac
1992 fi
1993done
1994if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
Reid Spencera773bd52006-08-04 18:18:08 +00002002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
John Criswell7a73b802003-06-30 21:59:07 +00002026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033
Tanya Lattnercf067672008-01-17 05:57:22 +00002034LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035
2036
2037
2038
2039
2040
2041
John Criswell7a73b802003-06-30 21:59:07 +00002042ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002043for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
Reid Spencera773bd52006-08-04 18:18:08 +00002048 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
Reid Spencera773bd52006-08-04 18:18:08 +00002052 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057done
2058if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002059 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002061 { (exit 1); exit 1; }; }
2062fi
Reid Spencera773bd52006-08-04 18:18:08 +00002063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
John Criswell7a73b802003-06-30 21:59:07 +00002072
John Criswell392aaa32003-07-22 19:18:09 +00002073
Reid Spencer2706f8c2004-09-19 23:53:36 +00002074if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002077echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 fi
John Criswell93e1c722003-09-15 17:04:06 +00002080fi
2081
John Criswell33a911a2003-11-25 20:36:46 +00002082for i in `ls ${srcdir}/projects`
2083do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084 if test -d ${srcdir}/projects/${i} ; then
2085 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 CVS) ;;
2087 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002093 # llvm-test is the old name of the test-suite, kept here for backwards
2094 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002095 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002097 test-suite) subdirs="$subdirs projects/test-suite"
2098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002108 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002109 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002112 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002113 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002114 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2115echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002116 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 esac
John Criswell33a911a2003-11-25 20:36:46 +00002118 fi
2119done
John Criswell559a6c12003-09-30 16:31:48 +00002120
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002126 { (exit 1); exit 1; }; }
2127
Reid Spencera773bd52006-08-04 18:18:08 +00002128{ echo "$as_me:$LINENO: checking build system type" >&5
2129echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002130if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
Reid Spencera773bd52006-08-04 18:18:08 +00002133 ac_build_alias=$build_alias
2134test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002140ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002143 { (exit 1); exit 1; }; }
2144
2145fi
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147echo "${ECHO_T}$ac_cv_build" >&6; }
2148case $ac_cv_build in
2149*-*-*) ;;
2150*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2153esac
John Criswell7a73b802003-06-30 21:59:07 +00002154build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_build
2157shift
2158build_cpu=$1
2159build_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163build_os=$*
2164IFS=$ac_save_IFS
2165case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002166
2167
Reid Spencera773bd52006-08-04 18:18:08 +00002168{ echo "$as_me:$LINENO: checking host system type" >&5
2169echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002170if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
Reid Spencera773bd52006-08-04 18:18:08 +00002173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002180fi
John Criswell7a73b802003-06-30 21:59:07 +00002181
2182fi
Reid Spencera773bd52006-08-04 18:18:08 +00002183{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184echo "${ECHO_T}$ac_cv_host" >&6; }
2185case $ac_cv_host in
2186*-*-*) ;;
2187*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2190esac
John Criswell7a73b802003-06-30 21:59:07 +00002191host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_host
2194shift
2195host_cpu=$1
2196host_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200host_os=$*
2201IFS=$ac_save_IFS
2202case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002203
2204
Reid Spencera773bd52006-08-04 18:18:08 +00002205{ echo "$as_me:$LINENO: checking target system type" >&5
2206echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002207if test "${ac_cv_target+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
Reid Spencera773bd52006-08-04 18:18:08 +00002210 if test "x$target_alias" = x; then
2211 ac_cv_target=$ac_cv_host
2212else
2213 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002216 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002217fi
John Criswell7a73b802003-06-30 21:59:07 +00002218
2219fi
Reid Spencera773bd52006-08-04 18:18:08 +00002220{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221echo "${ECHO_T}$ac_cv_target" >&6; }
2222case $ac_cv_target in
2223*-*-*) ;;
2224*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225echo "$as_me: error: invalid value of canonical target" >&2;}
2226 { (exit 1); exit 1; }; };;
2227esac
John Criswell7a73b802003-06-30 21:59:07 +00002228target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_target
2231shift
2232target_cpu=$1
2233target_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237target_os=$*
2238IFS=$ac_save_IFS
2239case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002240
2241
2242# The aliases save the names the user supplied, while $host etc.
2243# will get canonicalized.
2244test -n "$target_alias" &&
2245 test "$program_prefix$program_suffix$program_transform_name" = \
2246 NONENONEs,x,x, &&
2247 program_prefix=${target_alias}-
2248
Reid Spencera773bd52006-08-04 18:18:08 +00002249{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2250echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002254 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="AIX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002260 *-*-irix*)
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="IRIX"
2264 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Cygwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002272 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="Darwin"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 llvm_cv_os_type="FreeBSD"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002280 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002283 llvm_cv_os_type="OpenBSD"
2284 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002285 *-*-netbsd*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="NetBSD"
2289 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002290 *-*-dragonfly*)
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="DragonFly"
2294 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002295 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002298 llvm_cv_os_type="HP-UX"
2299 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002300 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="Interix"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-linux*)
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="Linux"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,-z,allextract"
2312 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="SunOS"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="Win32"
2319 llvm_cv_platform_type="Win32" ;;
2320 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="MingW"
2324 llvm_cv_platform_type="Win32" ;;
2325 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002326 llvm_cv_link_all_option=""
2327 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 llvm_cv_os_type="Unknown"
2329 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002330esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331fi
Reid Spencera773bd52006-08-04 18:18:08 +00002332{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2333echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002334
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335if test "$llvm_cv_os_type" = "Unknown" ; then
2336 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2337echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002338 { (exit 1); exit 1; }; }
2339fi
2340
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002342
2343
Reid Spencera773bd52006-08-04 18:18:08 +00002344LINKALL=$llvm_cv_link_all_option
2345
2346NOLINKALL=$llvm_cv_no_link_all_option
2347
2348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349case $llvm_cv_platform_type in
2350 Unix)
2351
2352cat >>confdefs.h <<\_ACEOF
2353#define LLVM_ON_UNIX 1
2354_ACEOF
2355
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002356 LLVM_ON_UNIX=1
2357
2358 LLVM_ON_WIN32=0
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360 ;;
2361 Win32)
2362
2363cat >>confdefs.h <<\_ACEOF
2364#define LLVM_ON_WIN32 1
2365_ACEOF
2366
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002367 LLVM_ON_UNIX=0
2368
2369 LLVM_ON_WIN32=1
2370
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371 ;;
2372esac
2373
Reid Spencera773bd52006-08-04 18:18:08 +00002374{ echo "$as_me:$LINENO: checking target architecture" >&5
2375echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376if test "${llvm_cv_target_arch+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002380 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002381 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002382 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2383 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002384 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002385 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002386 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002387 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002388 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002389 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002390esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391fi
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398fi
John Criswell76595452003-07-01 22:07:39 +00002399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002401
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002408if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002425 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 +00002426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
Reid Spencera773bd52006-08-04 18:18:08 +00002432IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440else
Reid Spencera773bd52006-08-04 18:18:08 +00002441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443fi
2444
Reid Spencera773bd52006-08-04 18:18:08 +00002445
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446fi
2447if test -z "$ac_cv_prog_CC"; then
2448 ac_ct_CC=$CC
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002465 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 +00002466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
Reid Spencera773bd52006-08-04 18:18:08 +00002472IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480else
Reid Spencera773bd52006-08-04 18:18:08 +00002481 { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483fi
2484
Reid Spencera773bd52006-08-04 18:18:08 +00002485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002505 if test -n "$ac_tool_prefix"; then
2506 # 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 +00002507set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002522 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 +00002523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
Reid Spencera773bd52006-08-04 18:18:08 +00002529IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002535 { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537else
Reid Spencera773bd52006-08-04 18:18:08 +00002538 { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540fi
2541
Reid Spencera773bd52006-08-04 18:18:08 +00002542
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002563 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 +00002564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573done
Reid Spencera773bd52006-08-04 18:18:08 +00002574IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594else
Reid Spencera773bd52006-08-04 18:18:08 +00002595 { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597fi
2598
Reid Spencera773bd52006-08-04 18:18:08 +00002599
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002603 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002621 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 +00002622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
Reid Spencera773bd52006-08-04 18:18:08 +00002628IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002629
2630fi
2631fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636else
Reid Spencera773bd52006-08-04 18:18:08 +00002637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002639fi
2640
Reid Spencera773bd52006-08-04 18:18:08 +00002641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002643 done
2644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645if test -z "$CC"; then
2646 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002647 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002665 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 +00002666 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671done
Reid Spencera773bd52006-08-04 18:18:08 +00002672IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002673
2674fi
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002680else
Reid Spencera773bd52006-08-04 18:18:08 +00002681 { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002683fi
2684
Reid Spencera773bd52006-08-04 18:18:08 +00002685
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002687done
John Criswell7a73b802003-06-30 21:59:07 +00002688
Reid Spencera773bd52006-08-04 18:18:08 +00002689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet. If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet. If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702 CC=$ac_ct_CC
2703 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704fi
2705
John Criswell7a73b802003-06-30 21:59:07 +00002706fi
2707
2708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714
John Criswell7a73b802003-06-30 21:59:07 +00002715# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002716echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002717ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002718{ (ac_try="$ac_compiler --version >&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 --version >&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); }
Reid Spencera773bd52006-08-04 18:18:08 +00002738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002755
John Criswell7a73b802003-06-30 21:59:07 +00002756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002765ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort. b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions. Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787 esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile. We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002806for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002807do
2808 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002809 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002812 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002827 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002829 esac
2830done
Reid Spencera773bd52006-08-04 18:18:08 +00002831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
John Criswell7a73b802003-06-30 21:59:07 +00002833else
2834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002835sed 's/^/| /' conftest.$ac_ext >&5
2836
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002837{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002838See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002840See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002841 { (exit 77); exit 77; }; }
2842fi
2843
2844ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002845{ echo "$as_me:$LINENO: result: $ac_file" >&5
2846echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847
Reid Spencera773bd52006-08-04 18:18:08 +00002848# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002849# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002850{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853# If not cross compiling, check that we can run a simple program.
2854if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 cross_compiling=no
2866 else
2867 if test "$cross_compiling" = maybe; then
2868 cross_compiling=yes
2869 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002873echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002876 { (exit 1); exit 1; }; }
2877 fi
2878 fi
2879fi
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002882
John Criswell0c38eaf2003-09-10 15:17:25 +00002883rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002884ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002885# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002886# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891
Reid Spencera773bd52006-08-04 18:18:08 +00002892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894if { (ac_try="$ac_link"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002908for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002910 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002913 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002914 * ) break;;
2915 esac
2916done
2917else
John Criswell0c38eaf2003-09-10 15:17:25 +00002918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." >&5
2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002922 { (exit 1); exit 1; }; }
2923fi
2924
2925rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002934if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943
John Criswell7a73b802003-06-30 21:59:07 +00002944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002965 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970done
2971else
2972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002979 { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983fi
Reid Spencera773bd52006-08-04 18:18:08 +00002984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002986OBJEXT=$ac_cv_objext
2987ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002988{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002999
John Criswell7a73b802003-06-30 21:59:07 +00003000int
3001main ()
3002{
3003#ifndef __GNUC__
3004 choke me
3005#endif
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003019 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003045 ac_compiler_gnu=yes
3046else
3047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003048sed 's/^/| /' conftest.$ac_ext >&5
3049
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003051fi
Reid Spencera773bd52006-08-04 18:18:08 +00003052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003055
3056fi
Reid Spencera773bd52006-08-04 18:18:08 +00003057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003064if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
Reid Spencera773bd52006-08-04 18:18:08 +00003067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003077
John Criswell7a73b802003-06-30 21:59:07 +00003078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003120 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003121else
3122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003123sed 's/^/| /' conftest.$ac_ext >&5
3124
Reid Spencera773bd52006-08-04 18:18:08 +00003125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003231 ac_cv_prog_cc_g=yes
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237fi
Reid Spencera773bd52006-08-04 18:18:08 +00003238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003240fi
Reid Spencera773bd52006-08-04 18:18:08 +00003241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003255 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003257 fi
3258else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003261 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003263 fi
3264fi
Reid Spencera773bd52006-08-04 18:18:08 +00003265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
Reid Spencera773bd52006-08-04 18:18:08 +00003270 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286 char **p;
3287 int i;
3288{
3289 return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003304 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003307 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
Reid Spencera773bd52006-08-04 18:18:08 +00003310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327}
3328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331do
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003367 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
Reid Spencera773bd52006-08-04 18:18:08 +00003372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373fi
Reid Spencera773bd52006-08-04 18:18:08 +00003374
3375rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377done
Reid Spencera773bd52006-08-04 18:18:08 +00003378rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379CC=$ac_save_CC
3380
3381fi
Reid Spencera773bd52006-08-04 18:18:08 +00003382# AC_CACHE_VAL
3383case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394esac
3395
John Criswell0c38eaf2003-09-10 15:17:25 +00003396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411# On Suns, sometimes $CPP names a directory.
3412if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3414fi
3415if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421 do
3422 ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 :
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Broken: fails on valid input.
3473continue
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476rm -f conftest.err conftest.$ac_ext
3477
Reid Spencera773bd52006-08-04 18:18:08 +00003478 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 # Broken: success on invalid input.
3512continue
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
Reid Spencera773bd52006-08-04 18:18:08 +00003521
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522rm -f conftest.err conftest.$ac_ext
3523
3524done
3525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526rm -f conftest.err conftest.$ac_ext
3527if $ac_preproc_ok; then
3528 break
3529fi
3530
3531 done
3532 ac_cv_prog_CPP=$CPP
3533
3534fi
3535 CPP=$ac_cv_prog_CPP
3536else
3537 ac_cv_prog_CPP=$CPP
3538fi
Reid Spencera773bd52006-08-04 18:18:08 +00003539{ echo "$as_me:$LINENO: result: $CPP" >&5
3540echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561 Syntax error
3562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 :
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 # Broken: fails on valid input.
3592continue
3593fi
Reid Spencera773bd52006-08-04 18:18:08 +00003594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595rm -f conftest.err conftest.$ac_ext
3596
Reid Spencera773bd52006-08-04 18:18:08 +00003597 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605#include <ac_nonexistent.h>
3606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003607if { (ac_try="$ac_cpp conftest.$ac_ext"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 else
3624 ac_cpp_err=
3625 fi
3626else
3627 ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630 # Broken: success on invalid input.
3631continue
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
Reid Spencera773bd52006-08-04 18:18:08 +00003640
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003641rm -f conftest.err conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then
3647 :
3648else
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
John Criswell7a73b802003-06-30 21:59:07 +00003656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
John Criswell7a73b802003-06-30 21:59:07 +00003662
Reid Spencera773bd52006-08-04 18:18:08 +00003663{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003665if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Extract the first word of "grep ggrep" to use in msg output
3669if test -z "$GREP"; then
3670set dummy grep ggrep; ac_prog_name=$2
3671if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
Reid Spencera773bd52006-08-04 18:18:08 +00003674 ac_path_GREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003681 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687case `"$ac_path_GREP" --version 2>&1` in
3688*GNU*)
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690*)
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3694 do
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003706 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714 $ac_path_GREP_found && break 3
3715 done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722fi
Reid Spencera773bd52006-08-04 18:18:08 +00003723
3724GREP="$ac_cv_path_GREP"
3725if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732 ac_cv_path_GREP=$GREP
3733fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003734
John Criswell7a73b802003-06-30 21:59:07 +00003735
Reid Spencera773bd52006-08-04 18:18:08 +00003736fi
3737{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3740
3741
3742{ echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3749 else
3750 # Extract the first word of "egrep" to use in msg output
3751if test -z "$EGREP"; then
3752set dummy egrep; ac_prog_name=$2
3753if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_path_EGREP_found=false
3757# Loop through the user's path and test for each of PROGNAME-LIST
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769case `"$ac_path_EGREP" --version 2>&1` in
3770*GNU*)
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772*)
3773 ac_count=0
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775 while :
3776 do
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3788 fi
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3791 done
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795
3796 $ac_path_EGREP_found && break 3
3797 done
3798done
3799
3800done
3801IFS=$as_save_IFS
3802
3803
3804fi
3805
3806EGREP="$ac_cv_path_EGREP"
3807if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813else
3814 ac_cv_path_EGREP=$EGREP
3815fi
3816
3817
3818 fi
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3823
3824
3825{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003827if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
John Criswell0c38eaf2003-09-10 15:17:25 +00003841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
John Criswell7a73b802003-06-30 21:59:07 +00003848_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003850if { (ac_try="$ac_compile"
3851case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003883 ac_cv_header_stdc=yes
3884else
3885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003886sed 's/^/| /' conftest.$ac_ext >&5
3887
Reid Spencera773bd52006-08-04 18:18:08 +00003888 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003889fi
Reid Spencera773bd52006-08-04 18:18:08 +00003890
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003892
3893if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003901#include <string.h>
3902
3903_ACEOF
3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003905 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003906 :
3907else
3908 ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003922#include <stdlib.h>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003926 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003927 :
3928else
3929 ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3938 :
3939else
3940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003946#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003947#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003948#if ((' ' & 0x0FF) == 0x020)
3949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003952# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957#endif
3958
3959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960int
3961main ()
3962{
3963 int i;
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003966 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003967 return 2;
3968 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003969}
3970_ACEOF
3971rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003972if { (ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997( exit $ac_status )
3998ac_cv_header_stdc=no
3999fi
Reid Spencera773bd52006-08-04 18:18:08 +00004000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002
4003
John Criswell7a73b802003-06-30 21:59:07 +00004004fi
4005fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004008if test $ac_cv_header_stdc = yes; then
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define STDC_HEADERS 1
4012_ACEOF
4013
4014fi
4015
Reid Spencera773bd52006-08-04 18:18:08 +00004016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4028do
4029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041$ac_includes_default
4042
4043#include <$ac_header>
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004079 eval "$as_ac_Header=yes"
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 eval "$as_ac_Header=no"
4085fi
4086
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091echo "${ECHO_T}$ac_res" >&6; }
4092if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095_ACEOF
4096
4097fi
4098
4099done
4100
4101
4102{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
Tanya Lattnercf067672008-01-17 05:57:22 +00004120#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004121 bogus endian macros
4122#endif
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169#include <sys/types.h>
4170#include <sys/param.h>
4171
4172int
4173main ()
4174{
4175#if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (ac_try="$ac_compile"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004217 ac_cv_c_bigendian=yes
4218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_cv_c_bigendian=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 # It does not; compile a test program.
4231if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246int
4247main ()
4248{
4249 _ascii (); _ebcdic ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4290fi
4291if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4294 else
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4297 fi
4298fi
4299else
4300 echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307else
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314$ac_includes_default
4315int
4316main ()
4317{
4318
4319 /* Are we little or big endian? From Harbison&Steele. */
4320 union
4321 {
4322 long int l;
4323 char c[sizeof (long int)];
4324 } u;
4325 u.l = 1;
4326 return u.c[sizeof (long int) - 1] == 1;
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (ac_try="$ac_link"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4353else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_c_bigendian=yes
4360fi
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363
4364
4365fi
4366
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371case $ac_cv_c_bigendian in
4372 yes)
4373 ENDIAN=big
4374 ;;
4375 no)
4376 ENDIAN=little
4377 ;;
4378 *)
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381echo "$as_me: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4384esac
4385
4386
4387if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4389
4390
4391{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4398else
4399 ac_build_prefix=${build_alias}-
4400
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_build_prefix}gcc; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004417 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 +00004418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428BUILD_CC=$ac_cv_prog_BUILD_CC
4429if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431echo "${ECHO_T}$BUILD_CC" >&6; }
4432else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436
4437
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440set dummy gcc; ac_word=$2
4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004455 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 +00004456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478set dummy cc; ac_word=$2
4479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486else
4487 ac_prog_rejected=no
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004494 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 +00004495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4498 fi
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503done
4504done
4505IFS=$as_save_IFS
4506
4507if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517 fi
4518fi
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 fi
4532 fi
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537 rm -f conftest*
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4539 ac_cv_build_exeext=
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4546 case $file in
4547 *.c | *.o | *.obj) ;;
4548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 esac
4550 done
4551 else
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4555 fi
4556 rm -f conftest*
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558fi
4559fi
4560
4561BUILD_EXEEXT=""
4562test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565ac_build_exeext=$BUILD_EXEEXT
4566
4567else
4568 LLVM_CROSS_COMPILING=0
4569
4570fi
4571
Reid Spencer0b1e4662007-04-02 15:41:39 +00004572if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004573 cvsbuild="yes"
4574 optimize="no"
4575 CVSBUILD=CVSBUILD=1
4576
4577else
4578 cvsbuild="no"
4579 optimize="yes"
4580fi
4581
4582
4583# Check whether --enable-optimized was given.
4584if test "${enable_optimized+set}" = set; then
4585 enableval=$enable_optimized;
4586else
4587 enableval=$optimize
4588fi
4589
4590if test ${enableval} = "no" ; then
4591 ENABLE_OPTIMIZED=
4592
4593else
4594 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4595
4596fi
4597
4598# Check whether --enable-assertions was given.
4599if test "${enable_assertions+set}" = set; then
4600 enableval=$enable_assertions;
4601else
4602 enableval="yes"
4603fi
4604
4605if test ${enableval} = "yes" ; then
4606 DISABLE_ASSERTIONS=
4607
4608else
4609 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4610
4611fi
4612
David Greenea696d242007-06-28 19:36:08 +00004613# Check whether --enable-expensive-checks was given.
4614if test "${enable_expensive_checks+set}" = set; then
4615 enableval=$enable_expensive_checks;
4616else
4617 enableval="no"
4618fi
4619
4620if test ${enableval} = "yes" ; then
4621 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4622
4623 EXPENSIVE_CHECKS=yes
4624
4625else
4626 ENABLE_EXPENSIVE_CHECKS=
4627
4628 EXPENSIVE_CHECKS=no
4629
4630fi
4631
Reid Spencer8b2e1412006-11-17 03:32:33 +00004632# Check whether --enable-debug-runtime was given.
4633if test "${enable_debug_runtime+set}" = set; then
4634 enableval=$enable_debug_runtime;
4635else
4636 enableval=no
4637fi
4638
4639if test ${enableval} = "no" ; then
4640 DEBUG_RUNTIME=
4641
4642else
4643 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4644
4645fi
4646
Reid Spencera773bd52006-08-04 18:18:08 +00004647# Check whether --enable-jit was given.
4648if test "${enable_jit+set}" = set; then
4649 enableval=$enable_jit;
4650else
4651 enableval=default
4652fi
4653
4654if test ${enableval} = "no"
4655then
4656 JIT=
4657
4658else
4659 case "$llvm_cv_target_arch" in
4660 x86) TARGET_HAS_JIT=1
4661 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004662 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004663 ;;
4664 PowerPC) TARGET_HAS_JIT=1
4665 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004666 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004667 ;;
4668 Alpha) TARGET_HAS_JIT=1
4669 ;;
4670 IA64) TARGET_HAS_JIT=0
4671 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004672 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004673 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004674 Mips) TARGET_HAS_JIT=0
4675 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004676 PIC16) TARGET_HAS_JIT=0
4677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004678 *) TARGET_HAS_JIT=0
4679 ;;
4680 esac
4681fi
4682
4683# Check whether --enable-doxygen was given.
4684if test "${enable_doxygen+set}" = set; then
4685 enableval=$enable_doxygen;
4686else
4687 enableval=default
4688fi
4689
4690case "$enableval" in
4691 yes) ENABLE_DOXYGEN=1
4692 ;;
4693 no) ENABLE_DOXYGEN=0
4694 ;;
4695 default) ENABLE_DOXYGEN=0
4696 ;;
4697 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4698echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4699 { (exit 1); exit 1; }; } ;;
4700esac
4701
4702# Check whether --enable-threads was given.
4703if test "${enable_threads+set}" = set; then
4704 enableval=$enable_threads;
4705else
Reid Spencer65c5d752006-11-05 17:08:18 +00004706 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004707fi
4708
4709case "$enableval" in
4710 yes) ENABLE_THREADS=1
4711 ;;
4712 no) ENABLE_THREADS=0
4713 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004714 default) ENABLE_THREADS=1
4715 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004716 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4717echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4719esac
4720
4721cat >>confdefs.h <<_ACEOF
4722#define ENABLE_THREADS $ENABLE_THREADS
4723_ACEOF
4724
4725
Reid Spencer89b0d992006-12-16 22:07:52 +00004726# Check whether --enable-pic was given.
4727if test "${enable_pic+set}" = set; then
4728 enableval=$enable_pic;
4729else
4730 enableval=default
4731fi
4732
4733case "$enableval" in
4734 yes) ENABLE_PIC=1
4735 ;;
4736 no) ENABLE_PIC=0
4737 ;;
4738 default) ENABLE_PIC=0
4739 ;;
4740 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4741echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4742 { (exit 1); exit 1; }; } ;;
4743esac
4744
4745cat >>confdefs.h <<_ACEOF
4746#define ENABLE_PIC $ENABLE_PIC
4747_ACEOF
4748
4749
Reid Spencera773bd52006-08-04 18:18:08 +00004750TARGETS_TO_BUILD=""
4751# Check whether --enable-targets was given.
4752if test "${enable_targets+set}" = set; then
4753 enableval=$enable_targets;
4754else
4755 enableval=all
4756fi
4757
4758case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004759 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004760 host-only)
4761 case "$llvm_cv_target_arch" in
4762 x86) TARGETS_TO_BUILD="X86" ;;
4763 x86_64) TARGETS_TO_BUILD="X86" ;;
4764 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4765 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4766 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4767 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004768 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004769 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004770 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004771 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004772 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4773echo "$as_me: error: Can not set target to build" >&2;}
4774 { (exit 1); exit 1; }; } ;;
4775 esac
4776 ;;
4777 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4778 case "$a_target" in
4779 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4780 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4781 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4782 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4783 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4784 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004785 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004786 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004787 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004788 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004789 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4790 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004791 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004792 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4793echo "$as_me: error: Unrecognized target $a_target" >&2;}
4794 { (exit 1); exit 1; }; } ;;
4795 esac
4796 done
4797 ;;
4798esac
Reid Spencera773bd52006-08-04 18:18:08 +00004799TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4800
4801
Reid Spencer65c5d752006-11-05 17:08:18 +00004802# Check whether --enable-cbe-printf-a was given.
4803if test "${enable_cbe_printf_a+set}" = set; then
4804 enableval=$enable_cbe_printf_a;
4805else
4806 enableval=default
4807fi
4808
4809case "$enableval" in
4810 yes) ENABLE_CBE_PRINTF_A=1
4811 ;;
4812 no) ENABLE_CBE_PRINTF_A=0
4813 ;;
4814 default) ENABLE_CBE_PRINTF_A=1
4815 ;;
4816 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4817echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4819esac
4820
4821cat >>confdefs.h <<_ACEOF
4822#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4823_ACEOF
4824
4825
Reid Spencera773bd52006-08-04 18:18:08 +00004826
4827# Check whether --with-llvmgccdir was given.
4828if test "${with_llvmgccdir+set}" = set; then
4829 withval=$with_llvmgccdir;
4830else
4831 withval=default
4832fi
4833
4834case "$withval" in
4835 default) WITH_LLVMGCCDIR=default ;;
4836 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4837 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4838echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4839 { (exit 1); exit 1; }; } ;;
4840esac
4841
4842
Devang Patel5d28b882007-12-04 22:54:47 +00004843# Check whether --with-llvmgcc was given.
4844if test "${with_llvmgcc+set}" = set; then
4845 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4846 WITH_LLVMGCCDIR=""
4847fi
4848
4849
4850
4851# Check whether --with-llvmgxx was given.
4852if test "${with_llvmgxx+set}" = set; then
4853 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4854 WITH_LLVMGCCDIR=""
4855fi
4856
4857
4858if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4859 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4860echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4861 { (exit 1); exit 1; }; };
4862fi
4863
4864if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4865 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4866echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4867 { (exit 1); exit 1; }; };
4868fi
4869
4870
Reid Spencera773bd52006-08-04 18:18:08 +00004871# Check whether --with-extra-options was given.
4872if test "${with_extra_options+set}" = set; then
4873 withval=$with_extra_options;
4874else
4875 withval=default
4876fi
4877
4878case "$withval" in
4879 default) EXTRA_OPTIONS= ;;
4880 *) EXTRA_OPTIONS=$withval ;;
4881esac
4882EXTRA_OPTIONS=$EXTRA_OPTIONS
4883
4884
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004885# Check whether --enable-bindings was given.
4886if test "${enable_bindings+set}" = set; then
4887 enableval=$enable_bindings;
4888else
4889 enableval=default
4890fi
4891
4892BINDINGS_TO_BUILD=""
4893case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004894 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004895 all ) BINDINGS_TO_BUILD="ocaml" ;;
4896 none | no) BINDINGS_TO_BUILD="" ;;
4897 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4898 case "$a_binding" in
4899 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4900 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4901echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4903 esac
4904 done
4905 ;;
4906esac
4907
Reid Spencera773bd52006-08-04 18:18:08 +00004908
Gordon Henriksenf0915682007-10-02 16:42:22 +00004909# Check whether --with-ocaml-libdir was given.
4910if test "${with_ocaml_libdir+set}" = set; then
4911 withval=$with_ocaml_libdir;
4912else
4913 withval=auto
4914fi
4915
4916case "$withval" in
4917 auto) with_ocaml_libdir="$withval" ;;
4918 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4919 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4920echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922esac
4923
4924
Reid Spencera773bd52006-08-04 18:18:08 +00004925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4931echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4932# On Suns, sometimes $CPP names a directory.
4933if test -n "$CPP" && test -d "$CPP"; then
4934 CPP=
4935fi
4936if test -z "$CPP"; then
4937 if test "${ac_cv_prog_CPP+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 # Double quotes because CPP needs to be expanded
4941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4942 do
4943 ac_preproc_ok=false
4944for ac_c_preproc_warn_flag in '' yes
4945do
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
4958#ifdef __STDC__
4959# include <limits.h>
4960#else
4961# include <assert.h>
4962#endif
4963 Syntax error
4964_ACEOF
4965if { (ac_try="$ac_cpp conftest.$ac_ext"
4966case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969esac
4970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004977 (exit $ac_status); } >/dev/null; then
4978 if test -s conftest.err; then
4979 ac_cpp_err=$ac_c_preproc_warn_flag
4980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4981 else
4982 ac_cpp_err=
4983 fi
4984else
4985 ac_cpp_err=yes
4986fi
4987if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004988 :
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 # Broken: fails on valid input.
4994continue
4995fi
4996
4997rm -f conftest.err conftest.$ac_ext
4998
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007#include <ac_nonexistent.h>
5008_ACEOF
5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005021 (exit $ac_status); } >/dev/null; then
5022 if test -s conftest.err; then
5023 ac_cpp_err=$ac_c_preproc_warn_flag
5024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5025 else
5026 ac_cpp_err=
5027 fi
5028else
5029 ac_cpp_err=yes
5030fi
5031if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005032 # Broken: success on invalid input.
5033continue
5034else
5035 echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 # Passes both tests.
5039ac_preproc_ok=:
5040break
5041fi
5042
5043rm -f conftest.err conftest.$ac_ext
5044
5045done
5046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047rm -f conftest.err conftest.$ac_ext
5048if $ac_preproc_ok; then
5049 break
5050fi
5051
5052 done
5053 ac_cv_prog_CPP=$CPP
5054
5055fi
5056 CPP=$ac_cv_prog_CPP
5057else
5058 ac_cv_prog_CPP=$CPP
5059fi
5060{ echo "$as_me:$LINENO: result: $CPP" >&5
5061echo "${ECHO_T}$CPP" >&6; }
5062ac_preproc_ok=false
5063for ac_c_preproc_warn_flag in '' yes
5064do
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
5069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#ifdef __STDC__
5078# include <limits.h>
5079#else
5080# include <assert.h>
5081#endif
5082 Syntax error
5083_ACEOF
5084if { (ac_try="$ac_cpp conftest.$ac_ext"
5085case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088esac
5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_c_preproc_warn_flag
5099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103else
5104 ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005107 :
5108else
5109 echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 # Broken: fails on valid input.
5113continue
5114fi
5115
5116rm -f conftest.err conftest.$ac_ext
5117
5118 # OK, works on sane cases. Now check whether nonexistent headers
5119 # can be detected and how.
5120 cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h. */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h. */
5126#include <ac_nonexistent.h>
5127_ACEOF
5128if { (ac_try="$ac_cpp conftest.$ac_ext"
5129case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005140 (exit $ac_status); } >/dev/null; then
5141 if test -s conftest.err; then
5142 ac_cpp_err=$ac_c_preproc_warn_flag
5143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5144 else
5145 ac_cpp_err=
5146 fi
5147else
5148 ac_cpp_err=yes
5149fi
5150if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005151 # Broken: success on invalid input.
5152continue
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 # Passes both tests.
5158ac_preproc_ok=:
5159break
5160fi
5161
5162rm -f conftest.err conftest.$ac_ext
5163
5164done
5165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166rm -f conftest.err conftest.$ac_ext
5167if $ac_preproc_ok; then
5168 :
5169else
5170 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5171See \`config.log' for more details." >&5
5172echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5173See \`config.log' for more details." >&2;}
5174 { (exit 1); exit 1; }; }
5175fi
5176
5177ac_ext=c
5178ac_cpp='$CPP $CPPFLAGS'
5179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182
5183ac_ext=c
5184ac_cpp='$CPP $CPPFLAGS'
5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188if test -n "$ac_tool_prefix"; then
5189 for ac_prog in gcc
5190 do
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195if test "${ac_cv_prog_CC+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 if test -n "$CC"; then
5199 ac_cv_prog_CC="$CC" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005207 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 +00005208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218CC=$ac_cv_prog_CC
5219if test -n "$CC"; then
5220 { echo "$as_me:$LINENO: result: $CC" >&5
5221echo "${ECHO_T}$CC" >&6; }
5222else
5223 { echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6; }
5225fi
5226
5227
5228 test -n "$CC" && break
5229 done
5230fi
5231if test -z "$CC"; then
5232 ac_ct_CC=$CC
5233 for ac_prog in gcc
5234do
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236set dummy $ac_prog; ac_word=$2
5237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242 if test -n "$ac_ct_CC"; then
5243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005251 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 +00005252 ac_cv_prog_ac_ct_CC="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257done
5258IFS=$as_save_IFS
5259
5260fi
5261fi
5262ac_ct_CC=$ac_cv_prog_ac_ct_CC
5263if test -n "$ac_ct_CC"; then
5264 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5265echo "${ECHO_T}$ac_ct_CC" >&6; }
5266else
5267 { echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6; }
5269fi
5270
5271
5272 test -n "$ac_ct_CC" && break
5273done
5274
5275 if test "x$ac_ct_CC" = x; then
5276 CC=""
5277 else
5278 case $cross_compiling:$ac_tool_warned in
5279yes:)
5280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281whose name does not start with the host triplet. If you think this
5282configuration is useful to you, please write to autoconf@gnu.org." >&5
5283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284whose name does not start with the host triplet. If you think this
5285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286ac_tool_warned=yes ;;
5287esac
5288 CC=$ac_ct_CC
5289 fi
5290fi
5291
5292
5293test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5294See \`config.log' for more details." >&5
5295echo "$as_me: error: no acceptable C compiler found in \$PATH
5296See \`config.log' for more details." >&2;}
5297 { (exit 1); exit 1; }; }
5298
5299# Provide some information about the compiler.
5300echo "$as_me:$LINENO: checking for C compiler version" >&5
5301ac_compiler=`set X $ac_compile; echo $2`
5302{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
5323case "(($ac_try" in
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5326esac
5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328 (eval "$ac_compiler -V >&5") 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }
5332
5333{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5334echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5335if test "${ac_cv_c_compiler_gnu+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h. */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h. */
5344
5345int
5346main ()
5347{
5348#ifndef __GNUC__
5349 choke me
5350#endif
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356rm -f conftest.$ac_objext
5357if { (ac_try="$ac_compile"
5358case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_try") 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005390 ac_compiler_gnu=yes
5391else
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_compiler_gnu=no
5396fi
5397
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399ac_cv_c_compiler_gnu=$ac_compiler_gnu
5400
5401fi
5402{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5404GCC=`test $ac_compiler_gnu = yes && echo yes`
5405ac_test_CFLAGS=${CFLAGS+set}
5406ac_save_CFLAGS=$CFLAGS
5407{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_cc_g+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 ac_save_c_werror_flag=$ac_c_werror_flag
5413 ac_c_werror_flag=yes
5414 ac_cv_prog_cc_g=no
5415 CFLAGS="-g"
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422
5423int
5424main ()
5425{
5426
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_try") 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005465 ac_cv_prog_cc_g=yes
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 CFLAGS=""
5471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477
5478int
5479main ()
5480{
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486rm -f conftest.$ac_objext
5487if { (ac_try="$ac_compile"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_try") 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005520 :
5521else
5522 echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525 ac_c_werror_flag=$ac_save_c_werror_flag
5526 CFLAGS="-g"
5527 cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533
5534int
5535main ()
5536{
5537
5538 ;
5539 return 0;
5540}
5541_ACEOF
5542rm -f conftest.$ac_objext
5543if { (ac_try="$ac_compile"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005555 (exit $ac_status); } &&
5556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_try") 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005576 ac_cv_prog_cc_g=yes
5577else
5578 echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581
5582fi
5583
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588fi
5589
5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_c_werror_flag=$ac_save_c_werror_flag
5592fi
5593{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595if test "$ac_test_CFLAGS" = set; then
5596 CFLAGS=$ac_save_CFLAGS
5597elif test $ac_cv_prog_cc_g = yes; then
5598 if test "$GCC" = yes; then
5599 CFLAGS="-g -O2"
5600 else
5601 CFLAGS="-g"
5602 fi
5603else
5604 if test "$GCC" = yes; then
5605 CFLAGS="-O2"
5606 else
5607 CFLAGS=
5608 fi
5609fi
5610{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612if test "${ac_cv_prog_cc_c89+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 ac_cv_prog_cc_c89=no
5616ac_save_CC=$CC
5617cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623#include <stdarg.h>
5624#include <stdio.h>
5625#include <sys/types.h>
5626#include <sys/stat.h>
5627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5628struct buf { int x; };
5629FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630static char *e (p, i)
5631 char **p;
5632 int i;
5633{
5634 return p[i];
5635}
5636static char *f (char * (*g) (char **, int), char **p, ...)
5637{
5638 char *s;
5639 va_list v;
5640 va_start (v,p);
5641 s = g (p, va_arg (v,int));
5642 va_end (v);
5643 return s;
5644}
5645
5646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5647 function prototypes and stuff, but not '\xHH' hex character constants.
5648 These don't provoke an error unfortunately, instead are silently treated
5649 as 'x'. The following induces an error, until -std is added to get
5650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5651 array size at least. It's necessary to write '\x00'==0 to get something
5652 that's true only with -std. */
5653int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5654
5655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656 inside strings and character constants. */
5657#define FOO(x) 'x'
5658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5659
5660int test (int i, double x);
5661struct s1 {int (*f) (int a);};
5662struct s2 {int (*f) (double a);};
5663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5664int argc;
5665char **argv;
5666int
5667main ()
5668{
5669return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676do
5677 CC="$ac_save_CC $ac_arg"
5678 rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005712 ac_cv_prog_cc_c89=$ac_arg
5713else
5714 echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext
5721 test "x$ac_cv_prog_cc_c89" != "xno" && break
5722done
5723rm -f conftest.$ac_ext
5724CC=$ac_save_CC
5725
5726fi
5727# AC_CACHE_VAL
5728case "x$ac_cv_prog_cc_c89" in
5729 x)
5730 { echo "$as_me:$LINENO: result: none needed" >&5
5731echo "${ECHO_T}none needed" >&6; } ;;
5732 xno)
5733 { echo "$as_me:$LINENO: result: unsupported" >&5
5734echo "${ECHO_T}unsupported" >&6; } ;;
5735 *)
5736 CC="$CC $ac_cv_prog_cc_c89"
5737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5738echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5739esac
5740
5741
5742ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748ac_ext=cpp
5749ac_cpp='$CXXCPP $CPPFLAGS'
5750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5753if test -z "$CXX"; then
5754 if test -n "$CCC"; then
5755 CXX=$CCC
5756 else
5757 if test -n "$ac_tool_prefix"; then
5758 for ac_prog in g++
5759 do
5760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764if test "${ac_cv_prog_CXX+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 if test -n "$CXX"; then
5768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005776 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 +00005777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782done
5783IFS=$as_save_IFS
5784
5785fi
5786fi
5787CXX=$ac_cv_prog_CXX
5788if test -n "$CXX"; then
5789 { echo "$as_me:$LINENO: result: $CXX" >&5
5790echo "${ECHO_T}$CXX" >&6; }
5791else
5792 { echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6; }
5794fi
5795
5796
5797 test -n "$CXX" && break
5798 done
5799fi
5800if test -z "$CXX"; then
5801 ac_ct_CXX=$CXX
5802 for ac_prog in g++
5803do
5804 # Extract the first word of "$ac_prog", so it can be a program name with args.
5805set dummy $ac_prog; ac_word=$2
5806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 if test -n "$ac_ct_CXX"; then
5812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005820 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 +00005821 ac_cv_prog_ac_ct_CXX="$ac_prog"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825done
5826done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5832if test -n "$ac_ct_CXX"; then
5833 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5834echo "${ECHO_T}$ac_ct_CXX" >&6; }
5835else
5836 { echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6; }
5838fi
5839
5840
5841 test -n "$ac_ct_CXX" && break
5842done
5843
5844 if test "x$ac_ct_CXX" = x; then
5845 CXX="g++"
5846 else
5847 case $cross_compiling:$ac_tool_warned in
5848yes:)
5849{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850whose name does not start with the host triplet. If you think this
5851configuration is useful to you, please write to autoconf@gnu.org." >&5
5852echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853whose name does not start with the host triplet. If you think this
5854configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855ac_tool_warned=yes ;;
5856esac
5857 CXX=$ac_ct_CXX
5858 fi
5859fi
5860
5861 fi
5862fi
5863# Provide some information about the compiler.
5864echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5865ac_compiler=`set X $ac_compile; echo $2`
5866{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
5887case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler -V >&5") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5896
5897{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5898echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5899if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
5908
5909int
5910main ()
5911{
5912#ifndef __GNUC__
5913 choke me
5914#endif
5915
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005954 ac_compiler_gnu=yes
5955else
5956 echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_compiler_gnu=no
5960fi
5961
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5964
5965fi
5966{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5967echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5968GXX=`test $ac_compiler_gnu = yes && echo yes`
5969ac_test_CXXFLAGS=${CXXFLAGS+set}
5970ac_save_CXXFLAGS=$CXXFLAGS
5971{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5972echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5973if test "${ac_cv_prog_cxx_g+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5977 ac_cxx_werror_flag=yes
5978 ac_cv_prog_cxx_g=no
5979 CXXFLAGS="-g"
5980 cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986
5987int
5988main ()
5989{
5990
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995rm -f conftest.$ac_objext
5996if { (ac_try="$ac_compile"
5997case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000esac
6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_try") 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006029 ac_cv_prog_cxx_g=yes
6030else
6031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 CXXFLAGS=""
6035 cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
6041
6042int
6043main ()
6044{
6045
6046 ;
6047 return 0;
6048}
6049_ACEOF
6050rm -f conftest.$ac_objext
6051if { (ac_try="$ac_compile"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006084 :
6085else
6086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6090 CXXFLAGS="-g"
6091 cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h. */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h. */
6097
6098int
6099main ()
6100{
6101
6102 ;
6103 return 0;
6104}
6105_ACEOF
6106rm -f conftest.$ac_objext
6107if { (ac_try="$ac_compile"
6108case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_try") 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006140 ac_cv_prog_cxx_g=yes
6141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145
6146fi
6147
6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149fi
6150
6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152fi
6153
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6156fi
6157{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6158echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6159if test "$ac_test_CXXFLAGS" = set; then
6160 CXXFLAGS=$ac_save_CXXFLAGS
6161elif test $ac_cv_prog_cxx_g = yes; then
6162 if test "$GXX" = yes; then
6163 CXXFLAGS="-g -O2"
6164 else
6165 CXXFLAGS="-g"
6166 fi
6167else
6168 if test "$GXX" = yes; then
6169 CXXFLAGS="-O2"
6170 else
6171 CXXFLAGS=
6172 fi
6173fi
6174ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180{ echo "$as_me:$LINENO: checking " >&5
6181echo $ECHO_N "checking ... $ECHO_C" >&6; }
6182if test "${ac_cv_has_flex+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 for ac_prog in flex lex
6186do
6187 # Extract the first word of "$ac_prog", so it can be a program name with args.
6188set dummy $ac_prog; ac_word=$2
6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_LEX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 if test -n "$LEX"; then
6195 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006203 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 +00006204 ac_cv_prog_LEX="$ac_prog"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
6209done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214LEX=$ac_cv_prog_LEX
6215if test -n "$LEX"; then
6216 { echo "$as_me:$LINENO: result: $LEX" >&5
6217echo "${ECHO_T}$LEX" >&6; }
6218else
6219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
6221fi
6222
6223
6224 test -n "$LEX" && break
6225done
6226test -n "$LEX" || LEX=":"
6227
Tanya Lattnercf067672008-01-17 05:57:22 +00006228if test -z "$LEXLIB"
6229then
6230 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6231echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6232if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 ac_check_lib_save_LIBS=$LIBS
6236LIBS="-lfl $LIBS"
6237cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
6243
6244/* Override any GCC internal prototype to avoid an error.
6245 Use char because int might match the return type of a GCC
6246 builtin and then its argument prototype would still apply. */
6247#ifdef __cplusplus
6248extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006249#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006250char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006251int
Tanya Lattnercf067672008-01-17 05:57:22 +00006252main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006253{
Tanya Lattnercf067672008-01-17 05:57:22 +00006254return yywrap ();
6255 ;
6256 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006257}
Reid Spencera773bd52006-08-04 18:18:08 +00006258_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006259rm -f conftest.$ac_objext conftest$ac_exeext
6260if { (ac_try="$ac_link"
6261case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264esac
6265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_link") 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6283 { ac_try='test -s conftest$ac_exeext'
6284 { (case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_try") 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_lib_fl_yywrap=yes
6294else
6295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_cv_lib_fl_yywrap=no
6299fi
6300
6301rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303LIBS=$ac_check_lib_save_LIBS
6304fi
6305{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6306echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6307if test $ac_cv_lib_fl_yywrap = yes; then
6308 LEXLIB="-lfl"
6309else
6310 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6311echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6312if test "${ac_cv_lib_l_yywrap+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315 ac_check_lib_save_LIBS=$LIBS
6316LIBS="-ll $LIBS"
6317cat >conftest.$ac_ext <<_ACEOF
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
6323
6324/* Override any GCC internal prototype to avoid an error.
6325 Use char because int might match the return type of a GCC
6326 builtin and then its argument prototype would still apply. */
6327#ifdef __cplusplus
6328extern "C"
6329#endif
6330char yywrap ();
6331int
6332main ()
6333{
6334return yywrap ();
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (ac_try="$ac_link"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_link") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_lib_l_yywrap=yes
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 ac_cv_lib_l_yywrap=no
6379fi
6380
6381rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_check_lib_save_LIBS
6384fi
6385{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6386echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6387if test $ac_cv_lib_l_yywrap = yes; then
6388 LEXLIB="-ll"
6389fi
6390
6391fi
6392
6393fi
6394
6395if test "x$LEX" != "x:"; then
6396 { echo "$as_me:$LINENO: checking lex output file root" >&5
6397echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6398if test "${ac_cv_prog_lex_root+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 # The minimal lex program is just a single line: %%. But some broken lexes
6402# (Solaris, I think it was) want two %% lines, so accommodate them.
6403cat >conftest.l <<_ACEOF
6404%%
6405%%
6406_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006407{ (ac_try="$LEX conftest.l"
6408case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411esac
6412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$LEX conftest.l") 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }
6417if test -f lex.yy.c; then
6418 ac_cv_prog_lex_root=lex.yy
6419elif test -f lexyy.c; then
6420 ac_cv_prog_lex_root=lexyy
6421else
6422 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6423echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6424 { (exit 1); exit 1; }; }
6425fi
6426fi
6427{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6428echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006429rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006430LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6431
Scott Michel96dcd2b2007-12-05 21:24:02 +00006432{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6433echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6434if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006438# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006439# not all implementations provide the %pointer and %array declarations.
6440ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006441echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006442ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006443LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006444cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006445`cat $LEX_OUTPUT_ROOT.c`
6446_ACEOF
6447rm -f conftest.$ac_objext conftest$ac_exeext
6448if { (ac_try="$ac_link"
6449case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452esac
6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006454 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006455 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006460 (exit $ac_status); } &&
6461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6471 { ac_try='test -s conftest$ac_exeext'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006481 ac_cv_prog_lex_yytext_pointer=yes
6482else
6483 echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486
6487fi
6488
Tanya Lattnercf067672008-01-17 05:57:22 +00006489rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006490 conftest$ac_exeext conftest.$ac_ext
6491LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006492rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006493
6494fi
6495{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6496echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6497if test $ac_cv_prog_lex_yytext_pointer = yes; then
6498
6499cat >>confdefs.h <<\_ACEOF
6500#define YYTEXT_POINTER 1
6501_ACEOF
6502
6503fi
6504
6505fi
6506
6507fi
6508{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6509echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6510if test "$LEX" != "flex"; then
6511 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6512echo "$as_me: error: flex not found but required" >&2;}
6513 { (exit 1); exit 1; }; }
6514else
6515 FLEX=flex
6516
6517fi
6518
6519{ echo "$as_me:$LINENO: checking " >&5
6520echo $ECHO_N "checking ... $ECHO_C" >&6; }
6521if test "${llvm_cv_has_bison+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 for ac_prog in 'bison -y' byacc
6525do
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527set dummy $ac_prog; ac_word=$2
6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530if test "${ac_cv_prog_YACC+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533 if test -n "$YACC"; then
6534 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006542 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 +00006543 ac_cv_prog_YACC="$ac_prog"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547done
6548done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553YACC=$ac_cv_prog_YACC
6554if test -n "$YACC"; then
6555 { echo "$as_me:$LINENO: result: $YACC" >&5
6556echo "${ECHO_T}$YACC" >&6; }
6557else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563 test -n "$YACC" && break
6564done
6565test -n "$YACC" || YACC="yacc"
6566
6567fi
6568{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6569echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6570if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006571
6572 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6573echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006574else
6575 BISON=bison
6576
6577fi
6578
6579{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6580echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6581if test "${lt_cv_path_NM+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 if test -n "$NM"; then
6585 # Let the user override the test.
6586 lt_cv_path_NM="$NM"
6587else
6588 lt_nm_to_check="${ac_tool_prefix}nm"
6589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6590 lt_nm_to_check="$lt_nm_to_check nm"
6591 fi
6592 for lt_tmp_nm in $lt_nm_to_check; do
6593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6595 IFS="$lt_save_ifs"
6596 test -z "$ac_dir" && ac_dir=.
6597 tmp_nm="$ac_dir/$lt_tmp_nm"
6598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6599 # Check to see if the nm accepts a BSD-compat flag.
6600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6601 # nm: unknown option "B" ignored
6602 # Tru64's nm complains that /dev/null is an invalid object file
6603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6604 */dev/null* | *'Invalid file or object type'*)
6605 lt_cv_path_NM="$tmp_nm -B"
6606 break
6607 ;;
6608 *)
6609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6610 */dev/null*)
6611 lt_cv_path_NM="$tmp_nm -p"
6612 break
6613 ;;
6614 *)
6615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6616 continue # so that we can try to find one that supports BSD flags
6617 ;;
6618 esac
6619 ;;
6620 esac
6621 fi
6622 done
6623 IFS="$lt_save_ifs"
6624 done
6625 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6626fi
6627fi
6628{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6629echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6630NM="$lt_cv_path_NM"
6631
6632
6633
6634{ echo "$as_me:$LINENO: checking for GNU make" >&5
6635echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6636if test "${llvm_cv_gnu_make_command+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639 llvm_cv_gnu_make_command=''
6640 for a in "$MAKE" make gmake gnumake ; do
6641 if test -z "$a" ; then continue ; fi ;
6642 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6643 then
6644 llvm_cv_gnu_make_command=$a ;
6645 break;
6646 fi
6647 done
6648fi
6649{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6650echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6651 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6652 ifGNUmake='' ;
6653 else
6654 ifGNUmake='#' ;
6655 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6656echo "${ECHO_T}\"Not found\"" >&6; };
6657 fi
6658
6659
6660{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6661echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6662LN_S=$as_ln_s
6663if test "$LN_S" = "ln -s"; then
6664 { echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6; }
6666else
6667 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6668echo "${ECHO_T}no, using $LN_S" >&6; }
6669fi
6670
6671# Extract the first word of "cmp", so it can be a program name with args.
6672set dummy cmp; ac_word=$2
6673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675if test "${ac_cv_path_CMP+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678 case $CMP in
6679 [\\/]* | ?:[\\/]*)
6680 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6681 ;;
6682 *)
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006689 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 +00006690 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694done
6695done
6696IFS=$as_save_IFS
6697
6698 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6699 ;;
6700esac
6701fi
6702CMP=$ac_cv_path_CMP
6703if test -n "$CMP"; then
6704 { echo "$as_me:$LINENO: result: $CMP" >&5
6705echo "${ECHO_T}$CMP" >&6; }
6706else
6707 { echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6; }
6709fi
6710
6711
6712# Extract the first word of "cp", so it can be a program name with args.
6713set dummy cp; ac_word=$2
6714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716if test "${ac_cv_path_CP+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 case $CP in
6720 [\\/]* | ?:[\\/]*)
6721 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6722 ;;
6723 *)
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006730 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 +00006731 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736done
6737IFS=$as_save_IFS
6738
6739 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6740 ;;
6741esac
6742fi
6743CP=$ac_cv_path_CP
6744if test -n "$CP"; then
6745 { echo "$as_me:$LINENO: result: $CP" >&5
6746echo "${ECHO_T}$CP" >&6; }
6747else
6748 { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
6750fi
6751
6752
6753# Extract the first word of "date", so it can be a program name with args.
6754set dummy date; ac_word=$2
6755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757if test "${ac_cv_path_DATE+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 case $DATE in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6763 ;;
6764 *)
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006771 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 +00006772 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777done
6778IFS=$as_save_IFS
6779
6780 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6781 ;;
6782esac
6783fi
6784DATE=$ac_cv_path_DATE
6785if test -n "$DATE"; then
6786 { echo "$as_me:$LINENO: result: $DATE" >&5
6787echo "${ECHO_T}$DATE" >&6; }
6788else
6789 { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
6791fi
6792
6793
6794# Extract the first word of "find", so it can be a program name with args.
6795set dummy find; ac_word=$2
6796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798if test "${ac_cv_path_FIND+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801 case $FIND in
6802 [\\/]* | ?:[\\/]*)
6803 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6804 ;;
6805 *)
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006812 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 +00006813 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818done
6819IFS=$as_save_IFS
6820
6821 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6822 ;;
6823esac
6824fi
6825FIND=$ac_cv_path_FIND
6826if test -n "$FIND"; then
6827 { echo "$as_me:$LINENO: result: $FIND" >&5
6828echo "${ECHO_T}$FIND" >&6; }
6829else
6830 { echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6; }
6832fi
6833
6834
6835# Extract the first word of "grep", so it can be a program name with args.
6836set dummy grep; ac_word=$2
6837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839if test "${ac_cv_path_GREP+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841else
6842 case $GREP in
6843 [\\/]* | ?:[\\/]*)
6844 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6845 ;;
6846 *)
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006853 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 +00006854 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858done
6859done
6860IFS=$as_save_IFS
6861
6862 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6863 ;;
6864esac
6865fi
6866GREP=$ac_cv_path_GREP
6867if test -n "$GREP"; then
6868 { echo "$as_me:$LINENO: result: $GREP" >&5
6869echo "${ECHO_T}$GREP" >&6; }
6870else
6871 { echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6; }
6873fi
6874
6875
6876# Extract the first word of "mkdir", so it can be a program name with args.
6877set dummy mkdir; ac_word=$2
6878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880if test "${ac_cv_path_MKDIR+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883 case $MKDIR in
6884 [\\/]* | ?:[\\/]*)
6885 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6886 ;;
6887 *)
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006894 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 +00006895 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901IFS=$as_save_IFS
6902
6903 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6904 ;;
6905esac
6906fi
6907MKDIR=$ac_cv_path_MKDIR
6908if test -n "$MKDIR"; then
6909 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6910echo "${ECHO_T}$MKDIR" >&6; }
6911else
6912 { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916
6917# Extract the first word of "mv", so it can be a program name with args.
6918set dummy mv; ac_word=$2
6919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921if test "${ac_cv_path_MV+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 case $MV in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6927 ;;
6928 *)
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006935 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 +00006936 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940done
6941done
6942IFS=$as_save_IFS
6943
6944 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6945 ;;
6946esac
6947fi
6948MV=$ac_cv_path_MV
6949if test -n "$MV"; then
6950 { echo "$as_me:$LINENO: result: $MV" >&5
6951echo "${ECHO_T}$MV" >&6; }
6952else
6953 { echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6; }
6955fi
6956
6957
6958if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963if test "${ac_cv_prog_RANLIB+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966 if test -n "$RANLIB"; then
6967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006975 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 +00006976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980done
6981done
6982IFS=$as_save_IFS
6983
6984fi
6985fi
6986RANLIB=$ac_cv_prog_RANLIB
6987if test -n "$RANLIB"; then
6988 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6989echo "${ECHO_T}$RANLIB" >&6; }
6990else
6991 { echo "$as_me:$LINENO: result: no" >&5
6992echo "${ECHO_T}no" >&6; }
6993fi
6994
6995
6996fi
6997if test -z "$ac_cv_prog_RANLIB"; then
6998 ac_ct_RANLIB=$RANLIB
6999 # Extract the first word of "ranlib", so it can be a program name with args.
7000set dummy ranlib; ac_word=$2
7001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 if test -n "$ac_ct_RANLIB"; then
7007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007015 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 +00007016 ac_cv_prog_ac_ct_RANLIB="ranlib"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020done
7021done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
7026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7027if test -n "$ac_ct_RANLIB"; then
7028 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7029echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7030else
7031 { echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6; }
7033fi
7034
7035 if test "x$ac_ct_RANLIB" = x; then
7036 RANLIB=":"
7037 else
7038 case $cross_compiling:$ac_tool_warned in
7039yes:)
7040{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7041whose name does not start with the host triplet. If you think this
7042configuration is useful to you, please write to autoconf@gnu.org." >&5
7043echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7044whose name does not start with the host triplet. If you think this
7045configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7046ac_tool_warned=yes ;;
7047esac
7048 RANLIB=$ac_ct_RANLIB
7049 fi
7050else
7051 RANLIB="$ac_cv_prog_RANLIB"
7052fi
7053
7054# Extract the first word of "rm", so it can be a program name with args.
7055set dummy rm; ac_word=$2
7056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_path_RM+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 case $RM in
7062 [\\/]* | ?:[\\/]*)
7063 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007072 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 +00007073 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
7079IFS=$as_save_IFS
7080
7081 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7082 ;;
7083esac
7084fi
7085RM=$ac_cv_path_RM
7086if test -n "$RM"; then
7087 { echo "$as_me:$LINENO: result: $RM" >&5
7088echo "${ECHO_T}$RM" >&6; }
7089else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094
7095# Extract the first word of "sed", so it can be a program name with args.
7096set dummy sed; ac_word=$2
7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099if test "${ac_cv_path_SED+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102 case $SED in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007113 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 +00007114 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119done
7120IFS=$as_save_IFS
7121
7122 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7123 ;;
7124esac
7125fi
7126SED=$ac_cv_path_SED
7127if test -n "$SED"; then
7128 { echo "$as_me:$LINENO: result: $SED" >&5
7129echo "${ECHO_T}$SED" >&6; }
7130else
7131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
7133fi
7134
7135
7136# Extract the first word of "tar", so it can be a program name with args.
7137set dummy tar; ac_word=$2
7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_TAR+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 case $TAR in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007154 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 +00007155 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7164 ;;
7165esac
7166fi
7167TAR=$ac_cv_path_TAR
7168if test -n "$TAR"; then
7169 { echo "$as_me:$LINENO: result: $TAR" >&5
7170echo "${ECHO_T}$TAR" >&6; }
7171else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
7174fi
7175
7176
7177# Extract the first word of "pwd", so it can be a program name with args.
7178set dummy pwd; ac_word=$2
7179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181if test "${ac_cv_path_BINPWD+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184 case $BINPWD in
7185 [\\/]* | ?:[\\/]*)
7186 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007195 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 +00007196 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202IFS=$as_save_IFS
7203
7204 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7205 ;;
7206esac
7207fi
7208BINPWD=$ac_cv_path_BINPWD
7209if test -n "$BINPWD"; then
7210 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7211echo "${ECHO_T}$BINPWD" >&6; }
7212else
7213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218
7219# Extract the first word of "Graphviz", so it can be a program name with args.
7220set dummy Graphviz; ac_word=$2
7221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 case $GRAPHVIZ in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007237 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 +00007238 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244IFS=$as_save_IFS
7245
7246 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7247 ;;
7248esac
7249fi
7250GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7251if test -n "$GRAPHVIZ"; then
7252 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7253echo "${ECHO_T}$GRAPHVIZ" >&6; }
7254else
7255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
7257fi
7258
7259
7260if test "$GRAPHVIZ" != "echo Graphviz" ; then
7261
7262cat >>confdefs.h <<\_ACEOF
7263#define HAVE_GRAPHVIZ 1
7264_ACEOF
7265
Jeff Cohen28783c32007-01-12 18:22:38 +00007266 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007267 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7268 fi
7269
7270cat >>confdefs.h <<_ACEOF
7271#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7272_ACEOF
7273
7274fi
7275# Extract the first word of "dot", so it can be a program name with args.
7276set dummy dot; ac_word=$2
7277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279if test "${ac_cv_path_DOT+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282 case $DOT in
7283 [\\/]* | ?:[\\/]*)
7284 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7285 ;;
7286 *)
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007293 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 +00007294 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298done
7299done
7300IFS=$as_save_IFS
7301
7302 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7303 ;;
7304esac
7305fi
7306DOT=$ac_cv_path_DOT
7307if test -n "$DOT"; then
7308 { echo "$as_me:$LINENO: result: $DOT" >&5
7309echo "${ECHO_T}$DOT" >&6; }
7310else
7311 { echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6; }
7313fi
7314
7315
7316if test "$DOT" != "echo dot" ; then
7317
7318cat >>confdefs.h <<\_ACEOF
7319#define HAVE_DOT 1
7320_ACEOF
7321
Jeff Cohen28783c32007-01-12 18:22:38 +00007322 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007323 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7324 fi
7325
7326cat >>confdefs.h <<_ACEOF
7327#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7328_ACEOF
7329
7330fi
7331for ac_prog in gv gsview32
7332do
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334set dummy $ac_prog; ac_word=$2
7335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_GV+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 case $GV in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007351 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 +00007352 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358IFS=$as_save_IFS
7359
7360 ;;
7361esac
7362fi
7363GV=$ac_cv_path_GV
7364if test -n "$GV"; then
7365 { echo "$as_me:$LINENO: result: $GV" >&5
7366echo "${ECHO_T}$GV" >&6; }
7367else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
7373 test -n "$GV" && break
7374done
7375test -n "$GV" || GV="echo gv"
7376
7377if test "$GV" != "echo gv" ; then
7378
7379cat >>confdefs.h <<\_ACEOF
7380#define HAVE_GV 1
7381_ACEOF
7382
Jeff Cohen28783c32007-01-12 18:22:38 +00007383 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007384 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7385 fi
7386
7387cat >>confdefs.h <<_ACEOF
7388#define LLVM_PATH_GV "$GV${EXEEXT}"
7389_ACEOF
7390
7391fi
7392# Extract the first word of "dotty", so it can be a program name with args.
7393set dummy dotty; ac_word=$2
7394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396if test "${ac_cv_path_DOTTY+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399 case $DOTTY in
7400 [\\/]* | ?:[\\/]*)
7401 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7402 ;;
7403 *)
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007410 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 +00007411 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416done
7417IFS=$as_save_IFS
7418
7419 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7420 ;;
7421esac
7422fi
7423DOTTY=$ac_cv_path_DOTTY
7424if test -n "$DOTTY"; then
7425 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7426echo "${ECHO_T}$DOTTY" >&6; }
7427else
7428 { echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6; }
7430fi
7431
7432
7433if test "$DOTTY" != "echo dotty" ; then
7434
7435cat >>confdefs.h <<\_ACEOF
7436#define HAVE_DOTTY 1
7437_ACEOF
7438
Jeff Cohen28783c32007-01-12 18:22:38 +00007439 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007440 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7441 fi
7442
7443cat >>confdefs.h <<_ACEOF
7444#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7445_ACEOF
7446
7447fi
7448
7449
7450# Extract the first word of "perl", so it can be a program name with args.
7451set dummy perl; ac_word=$2
7452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454if test "${ac_cv_path_PERL+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457 case $PERL in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007468 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 +00007469 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473done
7474done
7475IFS=$as_save_IFS
7476
7477 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7478 ;;
7479esac
7480fi
7481PERL=$ac_cv_path_PERL
7482if test -n "$PERL"; then
7483 { echo "$as_me:$LINENO: result: $PERL" >&5
7484echo "${ECHO_T}$PERL" >&6; }
7485else
7486 { echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6; }
7488fi
7489
7490
7491if test "$PERL" != "none"; then
7492 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7493echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7494 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7495 { echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6; }
7497 else
7498 PERL=none
7499 { echo "$as_me:$LINENO: result: not found" >&5
7500echo "${ECHO_T}not found" >&6; }
7501 fi
7502fi
7503
7504
7505if test x"$PERL" = xnone; then
7506 HAVE_PERL=0
7507
Reid Spencer59807fa2007-05-17 18:11:03 +00007508 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7509echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7510 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007511else
7512 HAVE_PERL=1
7513
7514fi
7515
7516# Find a good install program. We prefer a C program (faster),
7517# so one script is as good as another. But avoid the broken or
7518# incompatible versions:
7519# SysV /etc/install, /usr/sbin/install
7520# SunOS /usr/etc/install
7521# IRIX /sbin/install
7522# AIX /bin/install
7523# AmigaOS /C/install, which installs bootblocks on floppy discs
7524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7525# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7527# OS/2's system install, which has a completely different semantic
7528# ./install, which can be erroneously created by make from ./install.sh.
7529{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7530echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7531if test -z "$INSTALL"; then
7532if test "${ac_cv_path_install+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 # Account for people who put trailing slashes in PATH elements.
7541case $as_dir/ in
7542 ./ | .// | /cC/* | \
7543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7544 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7545 /usr/ucb/* ) ;;
7546 *)
7547 # OSF1 and SCO ODT 3.0 have their own names for install.
7548 # Don't use installbsd from OSF since it installs stuff as root
7549 # by default.
7550 for ac_prog in ginstall scoinst install; do
7551 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007552 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 +00007553 if test $ac_prog = install &&
7554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7555 # AIX install. It has an incompatible calling convention.
7556 :
7557 elif test $ac_prog = install &&
7558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7559 # program-specific install script used by HP pwplus--don't use.
7560 :
7561 else
7562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7563 break 3
7564 fi
7565 fi
7566 done
7567 done
7568 ;;
7569esac
7570done
7571IFS=$as_save_IFS
7572
7573
7574fi
7575 if test "${ac_cv_path_install+set}" = set; then
7576 INSTALL=$ac_cv_path_install
7577 else
7578 # As a last resort, use the slow shell script. Don't cache a
7579 # value for INSTALL within a source directory, because that will
7580 # break other packages using the cache if that directory is
7581 # removed, or if the value is a relative name.
7582 INSTALL=$ac_install_sh
7583 fi
7584fi
7585{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7586echo "${ECHO_T}$INSTALL" >&6; }
7587
7588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7589# It thinks the first close brace ends the variable substitution.
7590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7591
7592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7593
7594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7595
7596
7597# Extract the first word of "bzip2", so it can be a program name with args.
7598set dummy bzip2; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_BZIP2+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $BZIP2 in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007615 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 +00007616 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
Reid Spencera773bd52006-08-04 18:18:08 +00007624 ;;
7625esac
7626fi
7627BZIP2=$ac_cv_path_BZIP2
7628if test -n "$BZIP2"; then
7629 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7630echo "${ECHO_T}$BZIP2" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637# Extract the first word of "doxygen", so it can be a program name with args.
7638set dummy doxygen; ac_word=$2
7639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7641if test "${ac_cv_path_DOXYGEN+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644 case $DOXYGEN in
7645 [\\/]* | ?:[\\/]*)
7646 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7647 ;;
7648 *)
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007655 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 +00007656 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661done
7662IFS=$as_save_IFS
7663
Reid Spencera773bd52006-08-04 18:18:08 +00007664 ;;
7665esac
7666fi
7667DOXYGEN=$ac_cv_path_DOXYGEN
7668if test -n "$DOXYGEN"; then
7669 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7670echo "${ECHO_T}$DOXYGEN" >&6; }
7671else
7672 { echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6; }
7674fi
7675
7676
Reid Spencera773bd52006-08-04 18:18:08 +00007677# Extract the first word of "groff", so it can be a program name with args.
7678set dummy groff; ac_word=$2
7679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681if test "${ac_cv_path_GROFF+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 case $GROFF in
7685 [\\/]* | ?:[\\/]*)
7686 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7687 ;;
7688 *)
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007695 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 +00007696 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701done
7702IFS=$as_save_IFS
7703
Reid Spencera773bd52006-08-04 18:18:08 +00007704 ;;
7705esac
7706fi
7707GROFF=$ac_cv_path_GROFF
7708if test -n "$GROFF"; then
7709 { echo "$as_me:$LINENO: result: $GROFF" >&5
7710echo "${ECHO_T}$GROFF" >&6; }
7711else
7712 { echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6; }
7714fi
7715
7716
7717# Extract the first word of "gzip", so it can be a program name with args.
7718set dummy gzip; ac_word=$2
7719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721if test "${ac_cv_path_GZIP+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 case $GZIP in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7727 ;;
7728 *)
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007735 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 +00007736 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740done
7741done
7742IFS=$as_save_IFS
7743
Reid Spencera773bd52006-08-04 18:18:08 +00007744 ;;
7745esac
7746fi
7747GZIP=$ac_cv_path_GZIP
7748if test -n "$GZIP"; then
7749 { echo "$as_me:$LINENO: result: $GZIP" >&5
7750echo "${ECHO_T}$GZIP" >&6; }
7751else
7752 { echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6; }
7754fi
7755
7756
7757# Extract the first word of "pod2html", so it can be a program name with args.
7758set dummy pod2html; ac_word=$2
7759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761if test "${ac_cv_path_POD2HTML+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764 case $POD2HTML in
7765 [\\/]* | ?:[\\/]*)
7766 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7767 ;;
7768 *)
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007775 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 +00007776 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780done
7781done
7782IFS=$as_save_IFS
7783
Reid Spencera773bd52006-08-04 18:18:08 +00007784 ;;
7785esac
7786fi
7787POD2HTML=$ac_cv_path_POD2HTML
7788if test -n "$POD2HTML"; then
7789 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7790echo "${ECHO_T}$POD2HTML" >&6; }
7791else
7792 { echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6; }
7794fi
7795
7796
7797# Extract the first word of "pod2man", so it can be a program name with args.
7798set dummy pod2man; ac_word=$2
7799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801if test "${ac_cv_path_POD2MAN+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804 case $POD2MAN in
7805 [\\/]* | ?:[\\/]*)
7806 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7807 ;;
7808 *)
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007815 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 +00007816 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
7821done
7822IFS=$as_save_IFS
7823
Reid Spencera773bd52006-08-04 18:18:08 +00007824 ;;
7825esac
7826fi
7827POD2MAN=$ac_cv_path_POD2MAN
7828if test -n "$POD2MAN"; then
7829 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7830echo "${ECHO_T}$POD2MAN" >&6; }
7831else
7832 { echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6; }
7834fi
7835
7836
7837# Extract the first word of "runtest", so it can be a program name with args.
7838set dummy runtest; ac_word=$2
7839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841if test "${ac_cv_path_RUNTEST+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 case $RUNTEST in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007855 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 +00007856 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861done
7862IFS=$as_save_IFS
7863
Reid Spencera773bd52006-08-04 18:18:08 +00007864 ;;
7865esac
7866fi
7867RUNTEST=$ac_cv_path_RUNTEST
7868if test -n "$RUNTEST"; then
7869 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7870echo "${ECHO_T}$RUNTEST" >&6; }
7871else
7872 { echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6; }
7874fi
7875
7876
7877
7878no_itcl=true
7879{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7880echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7881
7882# Check whether --with-tclinclude was given.
7883if test "${with_tclinclude+set}" = set; then
7884 withval=$with_tclinclude; with_tclinclude=${withval}
7885else
7886 with_tclinclude=''
7887fi
7888
7889if test "${ac_cv_path_tclsh+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892
7893if test x"${with_tclinclude}" != x ; then
7894 if test -f ${with_tclinclude}/tclsh ; then
7895 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7896 elif test -f ${with_tclinclude}/src/tclsh ; then
7897 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7898 else
7899 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7900echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7901 { (exit 1); exit 1; }; }
7902 fi
7903fi
7904
7905if test x"${ac_cv_path_tclsh}" = x ; then
7906 { echo "$as_me:$LINENO: result: none" >&5
7907echo "${ECHO_T}none" >&6; }
7908 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
7909do
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911set dummy $ac_prog; ac_word=$2
7912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914if test "${ac_cv_path_TCLSH+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 case $TCLSH in
7918 [\\/]* | ?:[\\/]*)
7919 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7920 ;;
7921 *)
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007928 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 +00007929 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935IFS=$as_save_IFS
7936
7937 ;;
7938esac
7939fi
7940TCLSH=$ac_cv_path_TCLSH
7941if test -n "$TCLSH"; then
7942 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7943echo "${ECHO_T}$TCLSH" >&6; }
7944else
7945 { echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6; }
7947fi
7948
7949
7950 test -n "$TCLSH" && break
7951done
7952
7953 if test x"${TCLSH}" = x ; then
7954 ac_cv_path_tclsh='';
7955 else
7956 ac_cv_path_tclsh="${TCLSH}";
7957 fi
7958else
7959 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7960echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7961 TCLSH="${ac_cv_path_tclsh}"
7962
7963fi
7964
7965fi
7966
7967# Extract the first word of "zip", so it can be a program name with args.
7968set dummy zip; ac_word=$2
7969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971if test "${ac_cv_path_ZIP+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 case $ZIP in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007985 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 +00007986 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990done
7991done
7992IFS=$as_save_IFS
7993
Reid Spencera773bd52006-08-04 18:18:08 +00007994 ;;
7995esac
7996fi
7997ZIP=$ac_cv_path_ZIP
7998if test -n "$ZIP"; then
7999 { echo "$as_me:$LINENO: result: $ZIP" >&5
8000echo "${ECHO_T}$ZIP" >&6; }
8001else
8002 { echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6; }
8004fi
8005
8006
Gordon Henriksene7072162008-03-07 18:20:01 +00008007for ac_prog in ocamlc.opt ocamlc
8008do
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8013if test "${ac_cv_path_OCAMLC+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 case $OCAMLC in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8019 ;;
8020 *)
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008027 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 +00008028 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032done
8033done
8034IFS=$as_save_IFS
8035
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008036 ;;
8037esac
8038fi
8039OCAMLC=$ac_cv_path_OCAMLC
8040if test -n "$OCAMLC"; then
8041 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8042echo "${ECHO_T}$OCAMLC" >&6; }
8043else
8044 { echo "$as_me:$LINENO: result: no" >&5
8045echo "${ECHO_T}no" >&6; }
8046fi
8047
8048
Gordon Henriksene7072162008-03-07 18:20:01 +00008049 test -n "$OCAMLC" && break
8050done
8051
8052for ac_prog in ocamlopt.opt ocamlopt
8053do
8054 # Extract the first word of "$ac_prog", so it can be a program name with args.
8055set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 case $OCAMLOPT in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008072 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 +00008073 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078done
8079IFS=$as_save_IFS
8080
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008081 ;;
8082esac
8083fi
8084OCAMLOPT=$ac_cv_path_OCAMLOPT
8085if test -n "$OCAMLOPT"; then
8086 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8087echo "${ECHO_T}$OCAMLOPT" >&6; }
8088else
8089 { echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6; }
8091fi
8092
8093
Gordon Henriksene7072162008-03-07 18:20:01 +00008094 test -n "$OCAMLOPT" && break
8095done
8096
8097for ac_prog in ocamldep.opt ocamldep
8098do
8099 # Extract the first word of "$ac_prog", so it can be a program name with args.
8100set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 case $OCAMLDEP in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008117 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 +00008118 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122done
8123done
8124IFS=$as_save_IFS
8125
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008126 ;;
8127esac
8128fi
8129OCAMLDEP=$ac_cv_path_OCAMLDEP
8130if test -n "$OCAMLDEP"; then
8131 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8132echo "${ECHO_T}$OCAMLDEP" >&6; }
8133else
8134 { echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6; }
8136fi
8137
8138
Gordon Henriksene7072162008-03-07 18:20:01 +00008139 test -n "$OCAMLDEP" && break
8140done
8141
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008142for ac_prog in ocamldoc.opt ocamldoc
8143do
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145set dummy $ac_prog; ac_word=$2
8146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 case $OCAMLDOC in
8152 [\\/]* | ?:[\\/]*)
8153 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8154 ;;
8155 *)
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167done
8168done
8169IFS=$as_save_IFS
8170
8171 ;;
8172esac
8173fi
8174OCAMLDOC=$ac_cv_path_OCAMLDOC
8175if test -n "$OCAMLDOC"; then
8176 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8177echo "${ECHO_T}$OCAMLDOC" >&6; }
8178else
8179 { echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6; }
8181fi
8182
8183
8184 test -n "$OCAMLDOC" && break
8185done
8186
Reid Spencera773bd52006-08-04 18:18:08 +00008187
8188{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8189echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8190if test "${llvm_cv_link_use_r+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 ac_ext=c
8194ac_cpp='$CPP $CPPFLAGS'
8195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
8199 oldcflags="$CFLAGS"
8200 CFLAGS="$CFLAGS -Wl,-R."
8201 cat >conftest.$ac_ext <<_ACEOF
8202/* confdefs.h. */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h. */
8207
8208int
8209main ()
8210{
8211int main() { return 0; }
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216rm -f conftest.$ac_objext conftest$ac_exeext
8217if { (ac_try="$ac_link"
8218case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_link") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244esac
8245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008250 llvm_cv_link_use_r=yes
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 llvm_cv_link_use_r=no
8256fi
8257
Tanya Lattnercf067672008-01-17 05:57:22 +00008258rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008259 conftest$ac_exeext conftest.$ac_ext
8260 CFLAGS="$oldcflags"
8261 ac_ext=c
8262ac_cpp='$CPP $CPPFLAGS'
8263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8265ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266
8267
8268fi
8269{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8270echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8271if test "$llvm_cv_link_use_r" = yes ; then
8272
8273cat >>confdefs.h <<\_ACEOF
8274#define HAVE_LINK_R 1
8275_ACEOF
8276
8277 fi
8278
8279
8280
8281
8282{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8283echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8284if test "${ac_cv_c_const+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287 cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293
8294int
8295main ()
8296{
8297/* FIXME: Include the comments suggested by Paul. */
8298#ifndef __cplusplus
8299 /* Ultrix mips cc rejects this. */
8300 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008301 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008302 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008303 char const *const *ccp;
8304 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008305 /* NEC SVR4.0.2 mips cc rejects this. */
8306 struct point {int x, y;};
8307 static struct point const zero = {0,0};
8308 /* AIX XL C 1.02.0.0 rejects this.
8309 It does not let you subtract one const X* pointer from another in
8310 an arm of an if-expression whose if-part is not a constant
8311 expression */
8312 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008313 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008314 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008315 ++ccp;
8316 p = (char**) ccp;
8317 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008318 { /* SCO 3.2v4 cc rejects this. */
8319 char *t;
8320 char const *s = 0 ? (char *) 0 : (char const *) 0;
8321
8322 *t++ = 0;
8323 if (s) return 0;
8324 }
8325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8326 int x[] = {25, 17};
8327 const int *foo = &x[0];
8328 ++foo;
8329 }
8330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8331 typedef const int *iptr;
8332 iptr p = 0;
8333 ++p;
8334 }
8335 { /* AIX XL C 1.02.0.0 rejects this saying
8336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8337 struct s { int j; const int *ap[3]; };
8338 struct s *b; b->j = 5;
8339 }
8340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8341 const int foo = 10;
8342 if (!foo) return 0;
8343 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008344 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008345#endif
8346
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext
8352if { (ac_try="$ac_compile"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008385 ac_cv_c_const=yes
8386else
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_cv_c_const=no
8391fi
8392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394fi
8395{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8396echo "${ECHO_T}$ac_cv_c_const" >&6; }
8397if test $ac_cv_c_const = no; then
8398
8399cat >>confdefs.h <<\_ACEOF
8400#define const
8401_ACEOF
8402
8403fi
8404
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008405
8406
8407
8408
8409
8410ac_header_dirent=no
8411for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8412 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008413{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8414echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418 cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
8424#include <sys/types.h>
8425#include <$ac_hdr>
8426
8427int
8428main ()
8429{
8430if ((DIR *) 0)
8431return 0;
8432 ;
8433 return 0;
8434}
8435_ACEOF
8436rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008437if { (ac_try="$ac_compile"
8438case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008470 eval "$as_ac_Header=yes"
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
Reid Spencera773bd52006-08-04 18:18:08 +00008475 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008476fi
Reid Spencera773bd52006-08-04 18:18:08 +00008477
8478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008479fi
Reid Spencera773bd52006-08-04 18:18:08 +00008480ac_res=`eval echo '${'$as_ac_Header'}'`
8481 { echo "$as_me:$LINENO: result: $ac_res" >&5
8482echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008483if test `eval echo '${'$as_ac_Header'}'` = yes; then
8484 cat >>confdefs.h <<_ACEOF
8485#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8486_ACEOF
8487
8488ac_header_dirent=$ac_hdr; break
8489fi
8490
8491done
8492# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8493if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008494 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8495echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008496if test "${ac_cv_search_opendir+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506
Reid Spencera773bd52006-08-04 18:18:08 +00008507/* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008510#ifdef __cplusplus
8511extern "C"
8512#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008513char opendir ();
8514int
8515main ()
8516{
Reid Spencera773bd52006-08-04 18:18:08 +00008517return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008518 ;
8519 return 0;
8520}
8521_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008522for ac_lib in '' dir; do
8523 if test -z "$ac_lib"; then
8524 ac_res="none required"
8525 else
8526 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008528 fi
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530if { (ac_try="$ac_link"
8531case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534esac
8535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008563 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008564else
8565 echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008568
8569fi
8570
Tanya Lattnercf067672008-01-17 05:57:22 +00008571rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008572 conftest$ac_exeext
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008575fi
John Criswell7a73b802003-06-30 21:59:07 +00008576done
Reid Spencera773bd52006-08-04 18:18:08 +00008577if test "${ac_cv_search_opendir+set}" = set; then
8578 :
8579else
8580 ac_cv_search_opendir=no
8581fi
8582rm conftest.$ac_ext
8583LIBS=$ac_func_search_save_LIBS
8584fi
8585{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8586echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8587ac_res=$ac_cv_search_opendir
8588if test "$ac_res" != no; then
8589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008590
Reid Spencera773bd52006-08-04 18:18:08 +00008591fi
8592
8593else
8594 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8595echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8596if test "${ac_cv_search_opendir+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599 ac_func_search_save_LIBS=$LIBS
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606
8607/* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8610#ifdef __cplusplus
8611extern "C"
8612#endif
8613char opendir ();
8614int
8615main ()
8616{
8617return opendir ();
8618 ;
8619 return 0;
8620}
8621_ACEOF
8622for ac_lib in '' x; do
8623 if test -z "$ac_lib"; then
8624 ac_res="none required"
8625 else
8626 ac_res=-l$ac_lib
8627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8628 fi
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630if { (ac_try="$ac_link"
8631case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_link") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008663 ac_cv_search_opendir=$ac_res
8664else
8665 echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668
8669fi
8670
Tanya Lattnercf067672008-01-17 05:57:22 +00008671rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008672 conftest$ac_exeext
8673 if test "${ac_cv_search_opendir+set}" = set; then
8674 break
8675fi
8676done
8677if test "${ac_cv_search_opendir+set}" = set; then
8678 :
8679else
8680 ac_cv_search_opendir=no
8681fi
8682rm conftest.$ac_ext
8683LIBS=$ac_func_search_save_LIBS
8684fi
8685{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8686echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8687ac_res=$ac_cv_search_opendir
8688if test "$ac_res" != no; then
8689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8690
8691fi
8692
8693fi
John Criswell7a73b802003-06-30 21:59:07 +00008694
8695
8696for ac_header in dlfcn.h
8697do
8698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008703 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008704fi
Reid Spencera773bd52006-08-04 18:18:08 +00008705ac_res=`eval echo '${'$as_ac_Header'}'`
8706 { echo "$as_me:$LINENO: result: $ac_res" >&5
8707echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008708else
Brian Gaeke0a621332004-09-08 20:38:05 +00008709 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008712cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008713/* confdefs.h. */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008718$ac_includes_default
8719#include <$ac_header>
8720_ACEOF
8721rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008722if { (ac_try="$ac_compile"
8723case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749esac
8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_try") 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008755 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008756else
8757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008758sed 's/^/| /' conftest.$ac_ext >&5
8759
Reid Spencera773bd52006-08-04 18:18:08 +00008760 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008761fi
Reid Spencera773bd52006-08-04 18:18:08 +00008762
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008766
8767# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008768{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008770cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
8776#include <$ac_header>
8777_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008778if { (ac_try="$ac_cpp conftest.$ac_ext"
8779case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008790 (exit $ac_status); } >/dev/null; then
8791 if test -s conftest.err; then
8792 ac_cpp_err=$ac_c_preproc_warn_flag
8793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8794 else
8795 ac_cpp_err=
8796 fi
8797else
8798 ac_cpp_err=yes
8799fi
8800if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008801 ac_header_preproc=yes
8802else
8803 echo "$as_me: failed program was:" >&5
8804sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 ac_header_preproc=no
8807fi
Reid Spencera773bd52006-08-04 18:18:08 +00008808
Brian Gaeke0a621332004-09-08 20:38:05 +00008809rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008812
8813# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8815 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8820 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008822 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008835 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008836## ----------------------------------- ##
8837## Report this to llvmbugs@cs.uiuc.edu ##
8838## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008839_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008840 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008841 ;;
8842esac
Reid Spencera773bd52006-08-04 18:18:08 +00008843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008848 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008849fi
Reid Spencera773bd52006-08-04 18:18:08 +00008850ac_res=`eval echo '${'$as_ac_Header'}'`
8851 { echo "$as_me:$LINENO: result: $ac_res" >&5
8852echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008853
8854fi
John Criswell7a73b802003-06-30 21:59:07 +00008855if test `eval echo '${'$as_ac_Header'}'` = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8858_ACEOF
8859
8860fi
8861
8862done
8863
Reid Spencera773bd52006-08-04 18:18:08 +00008864# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008866 enableval=$enable_ltdl_install;
8867fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008869
Duncan Sands1eff7042007-12-10 17:43:13 +00008870
8871
8872if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873 INSTALL_LTDL_TRUE=
8874 INSTALL_LTDL_FALSE='#'
8875else
8876 INSTALL_LTDL_TRUE='#'
8877 INSTALL_LTDL_FALSE=
8878fi
8879
Duncan Sands1eff7042007-12-10 17:43:13 +00008880
8881
8882if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008883 CONVENIENCE_LTDL_TRUE=
8884 CONVENIENCE_LTDL_FALSE='#'
8885else
8886 CONVENIENCE_LTDL_TRUE='#'
8887 CONVENIENCE_LTDL_FALSE=
8888fi
8889
8890
Reid Spencera773bd52006-08-04 18:18:08 +00008891{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8892echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893library_names_spec=
8894libname_spec='lib$name'
8895soname_spec=
8896shrext_cmds=".so"
8897postinstall_cmds=
8898postuninstall_cmds=
8899finish_cmds=
8900finish_eval=
8901shlibpath_var=
8902shlibpath_overrides_runpath=unknown
8903version_type=none
8904dynamic_linker="$host_os ld.so"
8905sys_lib_dlsearch_path_spec="/lib /usr/lib"
8906if test "$GCC" = yes; then
8907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8909 # if the path contains ";" then we assume it to be the separator
8910 # otherwise default to the standard path separator (i.e. ":") - it is
8911 # assumed that no part of a normal pathname contains ";" but that should
8912 # okay in the real world where ";" in dirpaths is itself problematic.
8913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8914 else
8915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8916 fi
8917else
8918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8919fi
8920need_lib_prefix=unknown
8921hardcode_into_libs=no
8922
8923# when you set need_version to no, make sure it does not cause -set_version
8924# flags to be left without arguments
8925need_version=unknown
8926
8927case $host_os in
8928aix3*)
8929 version_type=linux
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8931 shlibpath_var=LIBPATH
8932
8933 # AIX 3 has no versioning support, so we append a major version to the name.
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 ;;
8936
8937aix4* | aix5*)
8938 version_type=linux
8939 need_lib_prefix=no
8940 need_version=no
8941 hardcode_into_libs=yes
8942 if test "$host_cpu" = ia64; then
8943 # AIX 5 supports IA64
8944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 else
8947 # With GCC up to 2.95.x, collect2 would create an import file
8948 # for dependence libraries. The import file would start with
8949 # the line `#! .'. This would cause the generated library to
8950 # depend on `.', always an invalid library. This was fixed in
8951 # development snapshots of GCC prior to 3.0.
8952 case $host_os in
8953 aix4 | aix4.[01] | aix4.[01].*)
8954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8955 echo ' yes '
8956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8957 :
8958 else
8959 can_build_shared=no
8960 fi
8961 ;;
8962 esac
8963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8964 # soname into executable. Probably we can add versioning support to
8965 # collect2, so additional links can be useful in future.
8966 if test "$aix_use_runtimelinking" = yes; then
8967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8968 # instead of lib<name>.a to let people know that these are not
8969 # typical AIX shared libraries.
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 else
8972 # We preserve .a as extension for shared libraries through AIX4.2
8973 # and later when we are not doing run time linking.
8974 library_names_spec='${libname}${release}.a $libname.a'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 fi
8977 shlibpath_var=LIBPATH
8978 fi
8979 ;;
8980
8981amigaos*)
8982 library_names_spec='$libname.ixlibrary $libname.a'
8983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8984 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'
8985 ;;
8986
8987beos*)
8988 library_names_spec='${libname}${shared_ext}'
8989 dynamic_linker="$host_os ld.so"
8990 shlibpath_var=LIBRARY_PATH
8991 ;;
8992
8993bsdi[45]*)
8994 version_type=linux
8995 need_version=no
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9002 # the default ld.so.conf also contains /usr/contrib/lib and
9003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9004 # libtool to hard-code these into programs
9005 ;;
9006
9007cygwin* | mingw* | pw32*)
9008 version_type=windows
9009 shrext_cmds=".dll"
9010 need_version=no
9011 need_lib_prefix=no
9012
9013 case $GCC,$host_os in
9014 yes,cygwin* | yes,mingw* | yes,pw32*)
9015 library_names_spec='$libname.dll.a'
9016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9017 postinstall_cmds='base_file=`basename \${file}`~
9018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9019 dldir=$destdir/`dirname \$dlpath`~
9020 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009021 $install_prog $dir/$dlname \$dldir/$dlname~
9022 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9024 dlpath=$dir/\$dldll~
9025 $rm \$dlpath'
9026 shlibpath_overrides_runpath=yes
9027
9028 case $host_os in
9029 cygwin*)
9030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9033 ;;
9034 mingw*)
9035 # MinGW DLLs use traditional 'lib' prefix
9036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9039 # It is most probably a Windows format PATH printed by
9040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9041 # path with ; separators, and with drive letters. We can handle the
9042 # drive letters (cygwin fileutils understands them), so leave them,
9043 # especially as we might pass files found there to a mingw objdump,
9044 # which wouldn't understand a cygwinified path. Ahh.
9045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9046 else
9047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9048 fi
9049 ;;
9050 pw32*)
9051 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009052 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 +00009053 ;;
9054 esac
9055 ;;
9056
9057 *)
9058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9059 ;;
9060 esac
9061 dynamic_linker='Win32 ld.exe'
9062 # FIXME: first we should search . and the directory the executable is in
9063 shlibpath_var=PATH
9064 ;;
9065
9066darwin* | rhapsody*)
9067 dynamic_linker="$host_os dyld"
9068 version_type=darwin
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9072 soname_spec='${libname}${release}${major}$shared_ext'
9073 shlibpath_overrides_runpath=yes
9074 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009075 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9077 if test "$GCC" = yes; then
9078 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"`
9079 else
9080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9081 fi
9082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9083 ;;
9084
9085dgux*)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 ;;
9093
9094freebsd1*)
9095 dynamic_linker=no
9096 ;;
9097
9098kfreebsd*-gnu)
9099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=no
9106 hardcode_into_libs=yes
9107 dynamic_linker='GNU ld.so'
9108 ;;
9109
Reid Spencera773bd52006-08-04 18:18:08 +00009110freebsd* | dragonfly*)
9111 # DragonFly does not have aout. When/if they implement a new
9112 # versioning mechanism, adjust this.
9113 if test -x /usr/bin/objformat; then
9114 objformat=`/usr/bin/objformat`
9115 else
9116 case $host_os in
9117 freebsd[123]*) objformat=aout ;;
9118 *) objformat=elf ;;
9119 esac
9120 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121 version_type=freebsd-$objformat
9122 case $version_type in
9123 freebsd-elf*)
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9125 need_version=no
9126 need_lib_prefix=no
9127 ;;
9128 freebsd-*)
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9130 need_version=yes
9131 ;;
9132 esac
9133 shlibpath_var=LD_LIBRARY_PATH
9134 case $host_os in
9135 freebsd2*)
9136 shlibpath_overrides_runpath=yes
9137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009138 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139 shlibpath_overrides_runpath=yes
9140 hardcode_into_libs=yes
9141 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9146 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009147 freebsd*) # from 4.6 on
9148 shlibpath_overrides_runpath=yes
9149 hardcode_into_libs=yes
9150 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151 esac
9152 ;;
9153
9154gnu*)
9155 version_type=linux
9156 need_lib_prefix=no
9157 need_version=no
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 hardcode_into_libs=yes
9162 ;;
9163
9164hpux9* | hpux10* | hpux11*)
9165 # Give a soname corresponding to the major version so that dld.sl refuses to
9166 # link against other versions.
9167 version_type=sunos
9168 need_lib_prefix=no
9169 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009170 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171 ia64*)
9172 shrext_cmds='.so'
9173 hardcode_into_libs=yes
9174 dynamic_linker="$host_os dld.so"
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 if test "X$HPUX_IA64_MODE" = X32; then
9180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9181 else
9182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9183 fi
9184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9185 ;;
9186 hppa*64*)
9187 shrext_cmds='.sl'
9188 hardcode_into_libs=yes
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9196 ;;
9197 *)
9198 shrext_cmds='.sl'
9199 dynamic_linker="$host_os dld.sl"
9200 shlibpath_var=SHLIB_PATH
9201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 ;;
9205 esac
9206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9207 postinstall_cmds='chmod 555 $lib'
9208 ;;
9209
Reid Spencera773bd52006-08-04 18:18:08 +00009210interix3*)
9211 version_type=linux
9212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=no
9219 hardcode_into_libs=yes
9220 ;;
9221
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222irix5* | irix6* | nonstopux*)
9223 case $host_os in
9224 nonstopux*) version_type=nonstopux ;;
9225 *)
9226 if test "$lt_cv_prog_gnu_ld" = yes; then
9227 version_type=linux
9228 else
9229 version_type=irix
9230 fi ;;
9231 esac
9232 need_lib_prefix=no
9233 need_version=no
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9236 case $host_os in
9237 irix5* | nonstopux*)
9238 libsuff= shlibsuff=
9239 ;;
9240 *)
9241 case $LD in # libtool.m4 will add one of these switches to LD
9242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9243 libsuff= shlibsuff= libmagic=32-bit;;
9244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9245 libsuff=32 shlibsuff=N32 libmagic=N32;;
9246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9248 *) libsuff= shlibsuff= libmagic=never-match;;
9249 esac
9250 ;;
9251 esac
9252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9253 shlibpath_overrides_runpath=no
9254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9256 hardcode_into_libs=yes
9257 ;;
9258
9259# No shared lib support for Linux oldld, aout, or coff.
9260linux*oldld* | linux*aout* | linux*coff*)
9261 dynamic_linker=no
9262 ;;
9263
9264# This must be Linux ELF.
9265linux*)
9266 version_type=linux
9267 need_lib_prefix=no
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=no
9274 # This implies no fast_install, which is unacceptable.
9275 # Some rework will be needed to allow for fast_install
9276 # before this can be enabled.
9277 hardcode_into_libs=yes
9278
9279 # Append ld.so.conf contents to the search path
9280 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009281 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 +00009282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9283 fi
9284
9285 # We used to test for /lib/ld.so.1 and disable shared libraries on
9286 # powerpc, because MkLinux only supported shared libraries with the
9287 # GNU dynamic linker. Since this was broken with cross compilers,
9288 # most powerpc-linux boxes support dynamic linking these days and
9289 # people can always --disable-shared, the test was removed, and we
9290 # assume the GNU/Linux dynamic linker is in use.
9291 dynamic_linker='GNU/Linux ld.so'
9292 ;;
9293
9294knetbsd*-gnu)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=no
9302 hardcode_into_libs=yes
9303 dynamic_linker='GNU ld.so'
9304 ;;
9305
9306netbsd*)
9307 version_type=sunos
9308 need_lib_prefix=no
9309 need_version=no
9310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9313 dynamic_linker='NetBSD (a.out) ld.so'
9314 else
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 dynamic_linker='NetBSD ld.elf_so'
9318 fi
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9321 hardcode_into_libs=yes
9322 ;;
9323
9324newsos6)
9325 version_type=linux
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330
9331nto-qnx*)
9332 version_type=linux
9333 need_lib_prefix=no
9334 need_version=no
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9339 ;;
9340
9341openbsd*)
9342 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009343 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9346 case $host_os in
9347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9348 *) need_version=no ;;
9349 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9354 case $host_os in
9355 openbsd2.[89] | openbsd2.[89].*)
9356 shlibpath_overrides_runpath=no
9357 ;;
9358 *)
9359 shlibpath_overrides_runpath=yes
9360 ;;
9361 esac
9362 else
9363 shlibpath_overrides_runpath=yes
9364 fi
9365 ;;
9366
9367os2*)
9368 libname_spec='$name'
9369 shrext_cmds=".dll"
9370 need_lib_prefix=no
9371 library_names_spec='$libname${shared_ext} $libname.a'
9372 dynamic_linker='OS/2 ld.exe'
9373 shlibpath_var=LIBPATH
9374 ;;
9375
9376osf3* | osf4* | osf5*)
9377 version_type=osf
9378 need_lib_prefix=no
9379 need_version=no
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9385 ;;
9386
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009387solaris*)
9388 version_type=linux
9389 need_lib_prefix=no
9390 need_version=no
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 hardcode_into_libs=yes
9396 # ldd complains unless libraries are executable
9397 postinstall_cmds='chmod +x $lib'
9398 ;;
9399
9400sunos4*)
9401 version_type=sunos
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=yes
9406 if test "$with_gnu_ld" = yes; then
9407 need_lib_prefix=no
9408 fi
9409 need_version=yes
9410 ;;
9411
Reid Spencera773bd52006-08-04 18:18:08 +00009412sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413 version_type=linux
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 case $host_vendor in
9418 sni)
9419 shlibpath_overrides_runpath=no
9420 need_lib_prefix=no
9421 export_dynamic_flag_spec='${wl}-Blargedynsym'
9422 runpath_var=LD_RUN_PATH
9423 ;;
9424 siemens)
9425 need_lib_prefix=no
9426 ;;
9427 motorola)
9428 need_lib_prefix=no
9429 need_version=no
9430 shlibpath_overrides_runpath=no
9431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9432 ;;
9433 esac
9434 ;;
9435
9436sysv4*MP*)
9437 if test -d /usr/nec ;then
9438 version_type=linux
9439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9440 soname_spec='$libname${shared_ext}.$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 fi
9443 ;;
9444
Reid Spencera773bd52006-08-04 18:18:08 +00009445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9446 version_type=freebsd-elf
9447 need_lib_prefix=no
9448 need_version=no
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 hardcode_into_libs=yes
9453 if test "$with_gnu_ld" = yes; then
9454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9455 shlibpath_overrides_runpath=no
9456 else
9457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9458 shlibpath_overrides_runpath=yes
9459 case $host_os in
9460 sco3.2v5*)
9461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9462 ;;
9463 esac
9464 fi
9465 sys_lib_dlsearch_path_spec='/usr/lib'
9466 ;;
9467
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468uts4*)
9469 version_type=linux
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 ;;
9474
9475*)
9476 dynamic_linker=no
9477 ;;
9478esac
Reid Spencera773bd52006-08-04 18:18:08 +00009479{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9480echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481test "$dynamic_linker" = no && can_build_shared=no
9482
Reid Spencera773bd52006-08-04 18:18:08 +00009483variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9484if test "$GCC" = yes; then
9485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9486fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487
Reid Spencera773bd52006-08-04 18:18:08 +00009488
9489{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9490echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491if test "${libltdl_cv_shlibext+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494
9495module=yes
9496eval libltdl_cv_shlibext=$shrext_cmds
9497
9498fi
Reid Spencera773bd52006-08-04 18:18:08 +00009499{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9500echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501if test -n "$libltdl_cv_shlibext"; then
9502
9503cat >>confdefs.h <<_ACEOF
9504#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9505_ACEOF
9506
9507fi
9508
9509
Reid Spencera773bd52006-08-04 18:18:08 +00009510{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9511echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512if test "${libltdl_cv_shlibpath_var+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 libltdl_cv_shlibpath_var="$shlibpath_var"
9516fi
Reid Spencera773bd52006-08-04 18:18:08 +00009517{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9518echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519if test -n "$libltdl_cv_shlibpath_var"; then
9520
9521cat >>confdefs.h <<_ACEOF
9522#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9523_ACEOF
9524
9525fi
9526
9527
Reid Spencera773bd52006-08-04 18:18:08 +00009528{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9529echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530if test "${libltdl_cv_sys_search_path+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9534fi
Reid Spencera773bd52006-08-04 18:18:08 +00009535{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9536echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537if test -n "$libltdl_cv_sys_search_path"; then
9538 sys_search_path=
9539 for dir in $libltdl_cv_sys_search_path; do
9540 if test -z "$sys_search_path"; then
9541 sys_search_path="$dir"
9542 else
9543 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9544 fi
9545 done
9546
9547cat >>confdefs.h <<_ACEOF
9548#define LTDL_SYSSEARCHPATH "$sys_search_path"
9549_ACEOF
9550
9551fi
9552
Reid Spencera773bd52006-08-04 18:18:08 +00009553{ echo "$as_me:$LINENO: checking for objdir" >&5
9554echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555if test "${libltdl_cv_objdir+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557else
9558 libltdl_cv_objdir="$objdir"
9559 if test -n "$objdir"; then
9560 :
9561 else
9562 rm -f .libs 2>/dev/null
9563 mkdir .libs 2>/dev/null
9564 if test -d .libs; then
9565 libltdl_cv_objdir=.libs
9566 else
9567 # MS-DOS does not allow filenames that begin with a dot.
9568 libltdl_cv_objdir=_libs
9569 fi
9570 rmdir .libs 2>/dev/null
9571 fi
9572
9573fi
Reid Spencera773bd52006-08-04 18:18:08 +00009574{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9575echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576
9577cat >>confdefs.h <<_ACEOF
9578#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9579_ACEOF
9580
9581
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582
9583
9584
9585
9586# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009587{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9588echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592
9593# These are sane defaults that work on at least a few old systems.
9594# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9595
9596# Character class describing NM global symbol codes.
9597symcode='[BCDEGRST]'
9598
9599# Regexp to match symbols that can be accessed directly from C.
9600sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9601
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602# Transform an extracted symbol line into a proper C declaration
9603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9604
9605# Transform an extracted symbol line into symbol name and symbol address
9606lt_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'"
9607
9608# Define system-specific variables.
9609case $host_os in
9610aix*)
9611 symcode='[BCDT]'
9612 ;;
9613cygwin* | mingw* | pw32*)
9614 symcode='[ABCDGISTW]'
9615 ;;
9616hpux*) # Its linker distinguishes data from code symbols
9617 if test "$host_cpu" = ia64; then
9618 symcode='[ABCDEGRST]'
9619 fi
9620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9621 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'"
9622 ;;
9623linux*)
9624 if test "$host_cpu" = ia64; then
9625 symcode='[ABCDGIRSTW]'
9626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9627 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'"
9628 fi
9629 ;;
9630irix* | nonstopux*)
9631 symcode='[BCDEGRST]'
9632 ;;
9633osf*)
9634 symcode='[BCDEGQRST]'
9635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009636solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637 symcode='[BDRT]'
9638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009639sco3.2v5*)
9640 symcode='[DT]'
9641 ;;
9642sysv4.2uw2*)
9643 symcode='[DT]'
9644 ;;
9645sysv5* | sco5v6* | unixware* | OpenUNIX*)
9646 symcode='[ABDT]'
9647 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648sysv4)
9649 symcode='[DFNSTU]'
9650 ;;
9651esac
9652
9653# Handle CRLF in mingw tool chain
9654opt_cr=
9655case $build_os in
9656mingw*)
9657 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9658 ;;
9659esac
9660
9661# If we're using GNU nm, then use its standard symbol codes.
9662case `$NM -V 2>&1` in
9663*GNU* | *'with BFD'*)
9664 symcode='[ABCDGIRSTW]' ;;
9665esac
9666
9667# Try without a prefix undercore, then with it.
9668for ac_symprfx in "" "_"; do
9669
Reid Spencera773bd52006-08-04 18:18:08 +00009670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9671 symxfrm="\\1 $ac_symprfx\\2 \\2"
9672
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009674 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 +00009675
9676 # Check to see that the pipe works correctly.
9677 pipe_works=no
9678
9679 rm -f conftest*
9680 cat > conftest.$ac_ext <<EOF
9681#ifdef __cplusplus
9682extern "C" {
9683#endif
9684char nm_test_var;
9685void nm_test_func(){}
9686#ifdef __cplusplus
9687}
9688#endif
9689int main(){nm_test_var='a';nm_test_func();return(0);}
9690EOF
9691
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; then
9697 # Now try to grab the symbols.
9698 nlist=conftest.nm
9699 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9700 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && test -s "$nlist"; then
9704 # Try sorting and uniquifying the output.
9705 if sort "$nlist" | uniq > "$nlist"T; then
9706 mv -f "$nlist"T "$nlist"
9707 else
9708 rm -f "$nlist"T
9709 fi
9710
9711 # Make sure that we snagged all the symbols we need.
9712 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9713 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9714 cat <<EOF > conftest.$ac_ext
9715#ifdef __cplusplus
9716extern "C" {
9717#endif
9718
9719EOF
9720 # Now generate the symbol file.
9721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9722
9723 cat <<EOF >> conftest.$ac_ext
9724#if defined (__STDC__) && __STDC__
9725# define lt_ptr_t void *
9726#else
9727# define lt_ptr_t char *
9728# define const
9729#endif
9730
9731/* The mapping between symbol names and symbols. */
9732const struct {
9733 const char *name;
9734 lt_ptr_t address;
9735}
9736lt_preloaded_symbols[] =
9737{
9738EOF
9739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9740 cat <<\EOF >> conftest.$ac_ext
9741 {0, (lt_ptr_t) 0}
9742};
9743
9744#ifdef __cplusplus
9745}
9746#endif
9747EOF
9748 # Now try linking the two files.
9749 mv conftest.$ac_objext conftstm.$ac_objext
9750 lt_save_LIBS="$LIBS"
9751 lt_save_CFLAGS="$CFLAGS"
9752 LIBS="conftstm.$ac_objext"
9753 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9759 pipe_works=yes
9760 fi
9761 LIBS="$lt_save_LIBS"
9762 CFLAGS="$lt_save_CFLAGS"
9763 else
9764 echo "cannot find nm_test_func in $nlist" >&5
9765 fi
9766 else
9767 echo "cannot find nm_test_var in $nlist" >&5
9768 fi
9769 else
9770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9771 fi
9772 else
9773 echo "$progname: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 fi
9776 rm -f conftest* conftst*
9777
9778 # Do not use the global_symbol_pipe unless it works.
9779 if test "$pipe_works" = yes; then
9780 break
9781 else
9782 lt_cv_sys_global_symbol_pipe=
9783 fi
9784done
9785
9786fi
9787
9788if test -z "$lt_cv_sys_global_symbol_pipe"; then
9789 lt_cv_sys_global_symbol_to_cdecl=
9790fi
9791if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009792 { echo "$as_me:$LINENO: result: failed" >&5
9793echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794else
Reid Spencera773bd52006-08-04 18:18:08 +00009795 { echo "$as_me:$LINENO: result: ok" >&5
9796echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797fi
9798
9799
Reid Spencera773bd52006-08-04 18:18:08 +00009800{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9801echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9806 libltdl_cv_preloaded_symbols=yes
9807 else
9808 libltdl_cv_preloaded_symbols=no
9809 fi
9810
9811fi
Reid Spencera773bd52006-08-04 18:18:08 +00009812{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9813echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9815
9816cat >>confdefs.h <<\_ACEOF
9817#define HAVE_PRELOADED_SYMBOLS 1
9818_ACEOF
9819
9820fi
9821
9822LIBADD_DL=
9823
9824ac_ext=c
9825ac_cpp='$CPP $CPPFLAGS'
9826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828ac_compiler_gnu=$ac_cv_c_compiler_gnu
9829
9830
Reid Spencera773bd52006-08-04 18:18:08 +00009831{ echo "$as_me:$LINENO: checking for shl_load" >&5
9832echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833if test "${ac_cv_func_shl_load+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835else
9836 cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
9842/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9844#define shl_load innocuous_shl_load
9845
9846/* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char shl_load (); below.
9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849 <limits.h> exists even on freestanding compilers. */
9850
9851#ifdef __STDC__
9852# include <limits.h>
9853#else
9854# include <assert.h>
9855#endif
9856
9857#undef shl_load
9858
Reid Spencera773bd52006-08-04 18:18:08 +00009859/* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862#ifdef __cplusplus
9863extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865char shl_load ();
9866/* The GNU C library defines this for functions which it implements
9867 to always fail with ENOSYS. Some functions are actually named
9868 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009869#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871#endif
9872
9873int
9874main ()
9875{
Reid Spencera773bd52006-08-04 18:18:08 +00009876return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877 ;
9878 return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009882if { (ac_try="$ac_link"
9883case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909esac
9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915 ac_cv_func_shl_load=yes
9916else
9917 echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
Reid Spencera773bd52006-08-04 18:18:08 +00009920 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921fi
Reid Spencera773bd52006-08-04 18:18:08 +00009922
Tanya Lattnercf067672008-01-17 05:57:22 +00009923rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924 conftest$ac_exeext conftest.$ac_ext
9925fi
Reid Spencera773bd52006-08-04 18:18:08 +00009926{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9927echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928if test $ac_cv_func_shl_load = yes; then
9929
9930cat >>confdefs.h <<\_ACEOF
9931#define HAVE_SHL_LOAD 1
9932_ACEOF
9933
9934else
Reid Spencera773bd52006-08-04 18:18:08 +00009935 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9936echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 ac_check_lib_save_LIBS=$LIBS
9941LIBS="-ldld $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948
Reid Spencera773bd52006-08-04 18:18:08 +00009949/* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952#ifdef __cplusplus
9953extern "C"
9954#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955char shl_load ();
9956int
9957main ()
9958{
Reid Spencera773bd52006-08-04 18:18:08 +00009959return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998 ac_cv_lib_dld_shl_load=yes
9999else
10000 echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
Reid Spencera773bd52006-08-04 18:18:08 +000010003 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004fi
Reid Spencera773bd52006-08-04 18:18:08 +000010005
Tanya Lattnercf067672008-01-17 05:57:22 +000010006rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010007 conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
Reid Spencera773bd52006-08-04 18:18:08 +000010010{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10011echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012if test $ac_cv_lib_dld_shl_load = yes; then
10013
10014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_SHL_LOAD 1
10016_ACEOF
10017
10018 LIBADD_DL="$LIBADD_DL -ldld"
10019else
Reid Spencera773bd52006-08-04 18:18:08 +000010020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024else
10025 ac_check_lib_save_LIBS=$LIBS
10026LIBS="-ldl $LIBS"
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033
Reid Spencera773bd52006-08-04 18:18:08 +000010034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037#ifdef __cplusplus
10038extern "C"
10039#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040char dlopen ();
10041int
10042main ()
10043{
Reid Spencera773bd52006-08-04 18:18:08 +000010044return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010050if { (ac_try="$ac_link"
10051case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 ac_cv_lib_dl_dlopen=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
Reid Spencera773bd52006-08-04 18:18:08 +000010088 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089fi
Reid Spencera773bd52006-08-04 18:18:08 +000010090
Tanya Lattnercf067672008-01-17 05:57:22 +000010091rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 conftest$ac_exeext conftest.$ac_ext
10093LIBS=$ac_check_lib_save_LIBS
10094fi
Reid Spencera773bd52006-08-04 18:18:08 +000010095{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10096echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097if test $ac_cv_lib_dl_dlopen = yes; then
10098
10099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_LIBDL 1
10101_ACEOF
10102
10103 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10104else
10105 cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h. */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h. */
10111#if HAVE_DLFCN_H
10112# include <dlfcn.h>
10113#endif
10114
10115int
10116main ()
10117{
10118dlopen(0, 0);
10119 ;
10120 return 0;
10121}
10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010124if { (ac_try="$ac_link"
10125case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157
10158cat >>confdefs.h <<\_ACEOF
10159#define HAVE_LIBDL 1
10160_ACEOF
10161 libltdl_cv_func_dlopen="yes"
10162else
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
Reid Spencera773bd52006-08-04 18:18:08 +000010166 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10167echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 ac_check_lib_save_LIBS=$LIBS
10172LIBS="-lsvld $LIBS"
10173cat >conftest.$ac_ext <<_ACEOF
10174/* confdefs.h. */
10175_ACEOF
10176cat confdefs.h >>conftest.$ac_ext
10177cat >>conftest.$ac_ext <<_ACEOF
10178/* end confdefs.h. */
10179
Reid Spencera773bd52006-08-04 18:18:08 +000010180/* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183#ifdef __cplusplus
10184extern "C"
10185#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186char dlopen ();
10187int
10188main ()
10189{
Reid Spencera773bd52006-08-04 18:18:08 +000010190return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191 ;
10192 return 0;
10193}
10194_ACEOF
10195rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010196if { (ac_try="$ac_link"
10197case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223esac
10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_try") 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229 ac_cv_lib_svld_dlopen=yes
10230else
10231 echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
Reid Spencera773bd52006-08-04 18:18:08 +000010234 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235fi
Reid Spencera773bd52006-08-04 18:18:08 +000010236
Tanya Lattnercf067672008-01-17 05:57:22 +000010237rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238 conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
Reid Spencera773bd52006-08-04 18:18:08 +000010241{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10242echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243if test $ac_cv_lib_svld_dlopen = yes; then
10244
10245cat >>confdefs.h <<\_ACEOF
10246#define HAVE_LIBDL 1
10247_ACEOF
10248
10249 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10250else
Reid Spencera773bd52006-08-04 18:18:08 +000010251 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10252echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255else
10256 ac_check_lib_save_LIBS=$LIBS
10257LIBS="-ldld $LIBS"
10258cat >conftest.$ac_ext <<_ACEOF
10259/* confdefs.h. */
10260_ACEOF
10261cat confdefs.h >>conftest.$ac_ext
10262cat >>conftest.$ac_ext <<_ACEOF
10263/* end confdefs.h. */
10264
Reid Spencera773bd52006-08-04 18:18:08 +000010265/* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268#ifdef __cplusplus
10269extern "C"
10270#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271char dld_link ();
10272int
10273main ()
10274{
Reid Spencera773bd52006-08-04 18:18:08 +000010275return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276 ;
10277 return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308esac
10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314 ac_cv_lib_dld_dld_link=yes
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
Reid Spencera773bd52006-08-04 18:18:08 +000010319 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320fi
Reid Spencera773bd52006-08-04 18:18:08 +000010321
Tanya Lattnercf067672008-01-17 05:57:22 +000010322rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323 conftest$ac_exeext conftest.$ac_ext
10324LIBS=$ac_check_lib_save_LIBS
10325fi
Reid Spencera773bd52006-08-04 18:18:08 +000010326{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10327echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328if test $ac_cv_lib_dld_dld_link = yes; then
10329
10330cat >>confdefs.h <<\_ACEOF
10331#define HAVE_DLD 1
10332_ACEOF
10333
10334 LIBADD_DL="$LIBADD_DL -ldld"
10335else
Reid Spencera773bd52006-08-04 18:18:08 +000010336 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10337echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340else
10341 cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h. */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h. */
10347/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349#define _dyld_func_lookup innocuous__dyld_func_lookup
10350
10351/* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char _dyld_func_lookup (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10355
10356#ifdef __STDC__
10357# include <limits.h>
10358#else
10359# include <assert.h>
10360#endif
10361
10362#undef _dyld_func_lookup
10363
Reid Spencera773bd52006-08-04 18:18:08 +000010364/* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367#ifdef __cplusplus
10368extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370char _dyld_func_lookup ();
10371/* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010374#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376#endif
10377
10378int
10379main ()
10380{
Reid Spencera773bd52006-08-04 18:18:08 +000010381return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 ;
10383 return 0;
10384}
10385_ACEOF
10386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010387if { (ac_try="$ac_link"
10388case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420 ac_cv_func__dyld_func_lookup=yes
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
Reid Spencera773bd52006-08-04 18:18:08 +000010425 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426fi
Reid Spencera773bd52006-08-04 18:18:08 +000010427
Tanya Lattnercf067672008-01-17 05:57:22 +000010428rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429 conftest$ac_exeext conftest.$ac_ext
10430fi
Reid Spencera773bd52006-08-04 18:18:08 +000010431{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10432echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433if test $ac_cv_func__dyld_func_lookup = yes; then
10434
10435cat >>confdefs.h <<\_ACEOF
10436#define HAVE_DYLD 1
10437_ACEOF
10438
10439fi
10440
10441
10442fi
10443
10444
10445fi
10446
10447
10448fi
Reid Spencera773bd52006-08-04 18:18:08 +000010449
Tanya Lattnercf067672008-01-17 05:57:22 +000010450rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 conftest$ac_exeext conftest.$ac_ext
10452
10453fi
10454
10455
10456fi
10457
10458
10459fi
10460
10461
10462if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10463then
10464 lt_save_LIBS="$LIBS"
10465 LIBS="$LIBS $LIBADD_DL"
10466
10467for ac_func in dlerror
10468do
10469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010470{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10472if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10483#define $ac_func innocuous_$ac_func
10484
10485/* System header to define __stub macros and hopefully few prototypes,
10486 which can conflict with char $ac_func (); below.
10487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10488 <limits.h> exists even on freestanding compilers. */
10489
10490#ifdef __STDC__
10491# include <limits.h>
10492#else
10493# include <assert.h>
10494#endif
10495
10496#undef $ac_func
10497
Reid Spencera773bd52006-08-04 18:18:08 +000010498/* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501#ifdef __cplusplus
10502extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504char $ac_func ();
10505/* The GNU C library defines this for functions which it implements
10506 to always fail with ENOSYS. Some functions are actually named
10507 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010508#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510#endif
10511
10512int
10513main ()
10514{
Reid Spencera773bd52006-08-04 18:18:08 +000010515return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516 ;
10517 return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010521if { (ac_try="$ac_link"
10522case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_try") 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 eval "$as_ac_var=yes"
10555else
10556 echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
Reid Spencera773bd52006-08-04 18:18:08 +000010559 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560fi
Reid Spencera773bd52006-08-04 18:18:08 +000010561
Tanya Lattnercf067672008-01-17 05:57:22 +000010562rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563 conftest$ac_exeext conftest.$ac_ext
10564fi
Reid Spencera773bd52006-08-04 18:18:08 +000010565ac_res=`eval echo '${'$as_ac_var'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568if test `eval echo '${'$as_ac_var'}'` = yes; then
10569 cat >>confdefs.h <<_ACEOF
10570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10571_ACEOF
10572
10573fi
10574done
10575
10576 LIBS="$lt_save_LIBS"
10577fi
10578ac_ext=c
10579ac_cpp='$CPP $CPPFLAGS'
10580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10582ac_compiler_gnu=$ac_cv_c_compiler_gnu
10583
10584
10585
Reid Spencera773bd52006-08-04 18:18:08 +000010586{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10587echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590else
10591 ac_cv_sys_symbol_underscore=no
10592 cat > conftest.$ac_ext <<EOF
10593void nm_test_func(){}
10594int main(){nm_test_func;return 0;}
10595EOF
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; then
10601 # Now try to grab the symbols.
10602 ac_nlist=conftest.nm
10603 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10604 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && test -s "$ac_nlist"; then
10608 # See whether the symbols have a leading underscore.
10609 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10610 ac_cv_sys_symbol_underscore=yes
10611 else
10612 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10613 :
10614 else
10615 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10616 fi
10617 fi
10618 else
10619 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10620 fi
10621 else
10622 echo "configure: failed program was:" >&5
10623 cat conftest.c >&5
10624 fi
10625 rm -rf conftest*
10626
10627fi
Reid Spencera773bd52006-08-04 18:18:08 +000010628{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10629echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630
10631
10632if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10633 if test x"$libltdl_cv_func_dlopen" = xyes ||
10634 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010635 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10636echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637if test "${libltdl_cv_need_uscore+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639else
10640 libltdl_cv_need_uscore=unknown
10641 save_LIBS="$LIBS"
10642 LIBS="$LIBS $LIBADD_DL"
10643 if test "$cross_compiling" = yes; then :
10644 libltdl_cv_need_uscore=cross
10645else
10646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10647 lt_status=$lt_dlunknown
10648 cat > conftest.$ac_ext <<EOF
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000010649#line 10649 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650#include "confdefs.h"
10651
10652#if HAVE_DLFCN_H
10653#include <dlfcn.h>
10654#endif
10655
10656#include <stdio.h>
10657
10658#ifdef RTLD_GLOBAL
10659# define LT_DLGLOBAL RTLD_GLOBAL
10660#else
10661# ifdef DL_GLOBAL
10662# define LT_DLGLOBAL DL_GLOBAL
10663# else
10664# define LT_DLGLOBAL 0
10665# endif
10666#endif
10667
10668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10669 find out it does not work in some platform. */
10670#ifndef LT_DLLAZY_OR_NOW
10671# ifdef RTLD_LAZY
10672# define LT_DLLAZY_OR_NOW RTLD_LAZY
10673# else
10674# ifdef DL_LAZY
10675# define LT_DLLAZY_OR_NOW DL_LAZY
10676# else
10677# ifdef RTLD_NOW
10678# define LT_DLLAZY_OR_NOW RTLD_NOW
10679# else
10680# ifdef DL_NOW
10681# define LT_DLLAZY_OR_NOW DL_NOW
10682# else
10683# define LT_DLLAZY_OR_NOW 0
10684# endif
10685# endif
10686# endif
10687# endif
10688#endif
10689
10690#ifdef __cplusplus
10691extern "C" void exit (int);
10692#endif
10693
10694void fnord() { int i=42;}
10695int main ()
10696{
10697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10698 int status = $lt_dlunknown;
10699
10700 if (self)
10701 {
10702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10704 /* dlclose (self); */
10705 }
Reid Spencera773bd52006-08-04 18:18:08 +000010706 else
10707 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708
10709 exit (status);
10710}
10711EOF
10712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713 (eval $ac_link) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010717 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718 lt_status=$?
10719 case x$lt_status in
10720 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10721 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010722 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723 esac
10724 else :
10725 # compilation failed
10726
10727 fi
10728fi
10729rm -fr conftest*
10730
10731 LIBS="$save_LIBS"
10732
10733fi
Reid Spencera773bd52006-08-04 18:18:08 +000010734{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10735echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736 fi
10737fi
10738
10739if test x"$libltdl_cv_need_uscore" = xyes; then
10740
10741cat >>confdefs.h <<\_ACEOF
10742#define NEED_USCORE 1
10743_ACEOF
10744
10745fi
10746
10747
Reid Spencera773bd52006-08-04 18:18:08 +000010748{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10749echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 # PORTME does your system automatically load deplibs for dlopen?
10754 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10755 # For now, we just catch OSes we know something about -- in the
10756 # future, we'll try test this programmatically.
10757 libltdl_cv_sys_dlopen_deplibs=unknown
10758 case "$host_os" in
10759 aix3*|aix4.1.*|aix4.2.*)
10760 # Unknown whether this is true for these versions of AIX, but
10761 # we want this `case' here to explicitly catch those versions.
10762 libltdl_cv_sys_dlopen_deplibs=unknown
10763 ;;
10764 aix[45]*)
10765 libltdl_cv_sys_dlopen_deplibs=yes
10766 ;;
10767 darwin*)
10768 # Assuming the user has installed a libdl from somewhere, this is true
10769 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10770 libltdl_cv_sys_dlopen_deplibs=yes
10771 ;;
10772 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10773 # GNU and its variants, using gnu ld.so (Glibc)
10774 libltdl_cv_sys_dlopen_deplibs=yes
10775 ;;
10776 hpux10*|hpux11*)
10777 libltdl_cv_sys_dlopen_deplibs=yes
10778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010779 interix*)
10780 libltdl_cv_sys_dlopen_deplibs=yes
10781 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782 irix[12345]*|irix6.[01]*)
10783 # Catch all versions of IRIX before 6.2, and indicate that we don't
10784 # know how it worked for any of those versions.
10785 libltdl_cv_sys_dlopen_deplibs=unknown
10786 ;;
10787 irix*)
10788 # The case above catches anything before 6.2, and it's known that
10789 # at 6.2 and later dlopen does load deplibs.
10790 libltdl_cv_sys_dlopen_deplibs=yes
10791 ;;
10792 netbsd*)
10793 libltdl_cv_sys_dlopen_deplibs=yes
10794 ;;
10795 openbsd*)
10796 libltdl_cv_sys_dlopen_deplibs=yes
10797 ;;
10798 osf[1234]*)
10799 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10800 # it did *not* use an RPATH in a shared library to find objects the
10801 # library depends on, so we explictly say `no'.
10802 libltdl_cv_sys_dlopen_deplibs=no
10803 ;;
10804 osf5.0|osf5.0a|osf5.1)
10805 # dlopen *does* load deplibs and with the right loader patch applied
10806 # it even uses RPATH in a shared library to search for shared objects
10807 # that the library depends on, but there's no easy way to know if that
10808 # patch is installed. Since this is the case, all we can really
10809 # say is unknown -- it depends on the patch being installed. If
10810 # it is, this changes to `yes'. Without it, it would be `no'.
10811 libltdl_cv_sys_dlopen_deplibs=unknown
10812 ;;
10813 osf*)
10814 # the two cases above should catch all versions of osf <= 5.1. Read
10815 # the comments above for what we know about them.
10816 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10817 # is used to find them so we can finally say `yes'.
10818 libltdl_cv_sys_dlopen_deplibs=yes
10819 ;;
10820 solaris*)
10821 libltdl_cv_sys_dlopen_deplibs=yes
10822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10824 libltdl_cv_sys_dlopen_deplibs=yes
10825 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826 esac
10827
10828fi
Reid Spencera773bd52006-08-04 18:18:08 +000010829{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10830echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10832
10833cat >>confdefs.h <<\_ACEOF
10834#define LTDL_DLOPEN_DEPLIBS 1
10835_ACEOF
10836
10837fi
10838
10839
10840for ac_header in argz.h
10841do
10842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848fi
Reid Spencera773bd52006-08-04 18:18:08 +000010849ac_res=`eval echo '${'$as_ac_Header'}'`
10850 { echo "$as_me:$LINENO: result: $ac_res" >&5
10851echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852else
10853 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856cat >conftest.$ac_ext <<_ACEOF
10857/* confdefs.h. */
10858_ACEOF
10859cat confdefs.h >>conftest.$ac_ext
10860cat >>conftest.$ac_ext <<_ACEOF
10861/* end confdefs.h. */
10862$ac_includes_default
10863#include <$ac_header>
10864_ACEOF
10865rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010866if { (ac_try="$ac_compile"
10867case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010878 (exit $ac_status); } &&
10879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899 ac_header_compiler=yes
10900else
10901 echo "$as_me: failed program was:" >&5
10902sed 's/^/| /' conftest.$ac_ext >&5
10903
Reid Spencera773bd52006-08-04 18:18:08 +000010904 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905fi
Reid Spencera773bd52006-08-04 18:18:08 +000010906
10907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910
10911# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
10920#include <$ac_header>
10921_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010922if { (ac_try="$ac_cpp conftest.$ac_ext"
10923case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010934 (exit $ac_status); } >/dev/null; then
10935 if test -s conftest.err; then
10936 ac_cpp_err=$ac_c_preproc_warn_flag
10937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10938 else
10939 ac_cpp_err=
10940 fi
10941else
10942 ac_cpp_err=yes
10943fi
10944if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945 ac_header_preproc=yes
10946else
10947 echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 ac_header_preproc=no
10951fi
Reid Spencera773bd52006-08-04 18:18:08 +000010952
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10955echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956
10957# So? What about this header?
10958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10959 yes:no: )
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10964 ac_header_preproc=yes
10965 ;;
10966 no:yes:* )
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010979 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980## ----------------------------------- ##
10981## Report this to llvmbugs@cs.uiuc.edu ##
10982## ----------------------------------- ##
10983_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010984 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985 ;;
10986esac
Reid Spencera773bd52006-08-04 18:18:08 +000010987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 eval "$as_ac_Header=\$ac_header_preproc"
10993fi
Reid Spencera773bd52006-08-04 18:18:08 +000010994ac_res=`eval echo '${'$as_ac_Header'}'`
10995 { echo "$as_me:$LINENO: result: $ac_res" >&5
10996echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997
10998fi
10999if test `eval echo '${'$as_ac_Header'}'` = yes; then
11000 cat >>confdefs.h <<_ACEOF
11001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11002_ACEOF
11003
11004fi
11005
11006done
11007
11008
Reid Spencera773bd52006-08-04 18:18:08 +000011009{ echo "$as_me:$LINENO: checking for error_t" >&5
11010echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011if test "${ac_cv_type_error_t+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020#if HAVE_ARGZ_H
11021# include <argz.h>
11022#endif
11023
Reid Spencera773bd52006-08-04 18:18:08 +000011024typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025int
11026main ()
11027{
Reid Spencera773bd52006-08-04 18:18:08 +000011028if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011029 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011030if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031 return 0;
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011037if { (ac_try="$ac_compile"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11060 { ac_try='test -s conftest.$ac_objext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070 ac_cv_type_error_t=yes
11071else
11072 echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
Reid Spencera773bd52006-08-04 18:18:08 +000011075 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076fi
Reid Spencera773bd52006-08-04 18:18:08 +000011077
11078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079fi
Reid Spencera773bd52006-08-04 18:18:08 +000011080{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11081echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082if test $ac_cv_type_error_t = yes; then
11083
11084cat >>confdefs.h <<_ACEOF
11085#define HAVE_ERROR_T 1
11086_ACEOF
11087
11088
11089else
11090
11091cat >>confdefs.h <<\_ACEOF
11092#define error_t int
11093_ACEOF
11094
11095fi
11096
11097
11098
11099
11100
11101
11102
11103for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11104do
11105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011106{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111 cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
11117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11119#define $ac_func innocuous_$ac_func
11120
11121/* System header to define __stub macros and hopefully few prototypes,
11122 which can conflict with char $ac_func (); below.
11123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11124 <limits.h> exists even on freestanding compilers. */
11125
11126#ifdef __STDC__
11127# include <limits.h>
11128#else
11129# include <assert.h>
11130#endif
11131
11132#undef $ac_func
11133
Reid Spencera773bd52006-08-04 18:18:08 +000011134/* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137#ifdef __cplusplus
11138extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140char $ac_func ();
11141/* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011144#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146#endif
11147
11148int
11149main ()
11150{
Reid Spencera773bd52006-08-04 18:18:08 +000011151return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011157if { (ac_try="$ac_link"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190 eval "$as_ac_var=yes"
11191else
11192 echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
Reid Spencera773bd52006-08-04 18:18:08 +000011195 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196fi
Reid Spencera773bd52006-08-04 18:18:08 +000011197
Tanya Lattnercf067672008-01-17 05:57:22 +000011198rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011199 conftest$ac_exeext conftest.$ac_ext
11200fi
Reid Spencera773bd52006-08-04 18:18:08 +000011201ac_res=`eval echo '${'$as_ac_var'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204if test `eval echo '${'$as_ac_var'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11207_ACEOF
11208
11209fi
11210done
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11240 stdio.h unistd.h
11241do
11242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248fi
Reid Spencera773bd52006-08-04 18:18:08 +000011249ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252else
11253 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011254{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256cat >conftest.$ac_ext <<_ACEOF
11257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
11262$ac_includes_default
11263#include <$ac_header>
11264_ACEOF
11265rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011266if { (ac_try="$ac_compile"
11267case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 ac_header_compiler=yes
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
Reid Spencera773bd52006-08-04 18:18:08 +000011304 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305fi
Reid Spencera773bd52006-08-04 18:18:08 +000011306
11307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011310
11311# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011312{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320#include <$ac_header>
11321_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011322if { (ac_try="$ac_cpp conftest.$ac_ext"
11323case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326esac
11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011334 (exit $ac_status); } >/dev/null; then
11335 if test -s conftest.err; then
11336 ac_cpp_err=$ac_c_preproc_warn_flag
11337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11338 else
11339 ac_cpp_err=
11340 fi
11341else
11342 ac_cpp_err=yes
11343fi
11344if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345 ac_header_preproc=yes
11346else
11347 echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_header_preproc=no
11351fi
Reid Spencera773bd52006-08-04 18:18:08 +000011352
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356
11357# So? What about this header?
11358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359 yes:no: )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11365 ;;
11366 no:yes:* )
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011379 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380## ----------------------------------- ##
11381## Report this to llvmbugs@cs.uiuc.edu ##
11382## ----------------------------------- ##
11383_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011384 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 ;;
11386esac
Reid Spencera773bd52006-08-04 18:18:08 +000011387{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 eval "$as_ac_Header=\$ac_header_preproc"
11393fi
Reid Spencera773bd52006-08-04 18:18:08 +000011394ac_res=`eval echo '${'$as_ac_Header'}'`
11395 { echo "$as_me:$LINENO: result: $ac_res" >&5
11396echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011397
11398fi
11399if test `eval echo '${'$as_ac_Header'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402_ACEOF
11403
11404fi
11405
11406done
11407
11408
11409
11410
11411
11412for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11413do
11414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420fi
Reid Spencera773bd52006-08-04 18:18:08 +000011421ac_res=`eval echo '${'$as_ac_Header'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424else
11425 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011426{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h. */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h. */
11434$ac_includes_default
11435#include <$ac_header>
11436_ACEOF
11437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011438if { (ac_try="$ac_compile"
11439case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471 ac_header_compiler=yes
11472else
11473 echo "$as_me: failed program was:" >&5
11474sed 's/^/| /' conftest.$ac_ext >&5
11475
Reid Spencera773bd52006-08-04 18:18:08 +000011476 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477fi
Reid Spencera773bd52006-08-04 18:18:08 +000011478
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482
11483# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011484{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492#include <$ac_header>
11493_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011494if { (ac_try="$ac_cpp conftest.$ac_ext"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011506 (exit $ac_status); } >/dev/null; then
11507 if test -s conftest.err; then
11508 ac_cpp_err=$ac_c_preproc_warn_flag
11509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11510 else
11511 ac_cpp_err=
11512 fi
11513else
11514 ac_cpp_err=yes
11515fi
11516if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517 ac_header_preproc=yes
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_header_preproc=no
11523fi
Reid Spencera773bd52006-08-04 18:18:08 +000011524
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011526{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11527echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528
11529# So? What about this header?
11530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531 yes:no: )
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11536 ac_header_preproc=yes
11537 ;;
11538 no:yes:* )
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011551 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552## ----------------------------------- ##
11553## Report this to llvmbugs@cs.uiuc.edu ##
11554## ----------------------------------- ##
11555_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011556 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 ;;
11558esac
Reid Spencera773bd52006-08-04 18:18:08 +000011559{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 eval "$as_ac_Header=\$ac_header_preproc"
11565fi
Reid Spencera773bd52006-08-04 18:18:08 +000011566ac_res=`eval echo '${'$as_ac_Header'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569
11570fi
11571if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11574_ACEOF
11575
11576fi
11577
11578done
11579
11580
11581
11582for ac_header in string.h strings.h
11583do
11584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590fi
Reid Spencera773bd52006-08-04 18:18:08 +000011591ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594else
11595 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604$ac_includes_default
11605#include <$ac_header>
11606_ACEOF
11607rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 ac_header_compiler=yes
11642else
11643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
Reid Spencera773bd52006-08-04 18:18:08 +000011646 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647fi
Reid Spencera773bd52006-08-04 18:18:08 +000011648
11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652
11653# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
11662#include <$ac_header>
11663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011664if { (ac_try="$ac_cpp conftest.$ac_ext"
11665case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11680 else
11681 ac_cpp_err=
11682 fi
11683else
11684 ac_cpp_err=yes
11685fi
11686if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687 ac_header_preproc=yes
11688else
11689 echo "$as_me: failed program was:" >&5
11690sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_header_preproc=no
11693fi
Reid Spencera773bd52006-08-04 18:18:08 +000011694
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698
11699# So? What about this header?
11700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 yes:no: )
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11706 ac_header_preproc=yes
11707 ;;
11708 no:yes:* )
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011721 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722## ----------------------------------- ##
11723## Report this to llvmbugs@cs.uiuc.edu ##
11724## ----------------------------------- ##
11725_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011726 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727 ;;
11728esac
Reid Spencera773bd52006-08-04 18:18:08 +000011729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734 eval "$as_ac_Header=\$ac_header_preproc"
11735fi
Reid Spencera773bd52006-08-04 18:18:08 +000011736ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739
11740fi
11741if test `eval echo '${'$as_ac_Header'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11744_ACEOF
11745 break
11746fi
11747
11748done
11749
11750
11751
11752
11753for ac_func in strchr index
11754do
11755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761 cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769#define $ac_func innocuous_$ac_func
11770
11771/* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11775
11776#ifdef __STDC__
11777# include <limits.h>
11778#else
11779# include <assert.h>
11780#endif
11781
11782#undef $ac_func
11783
Reid Spencera773bd52006-08-04 18:18:08 +000011784/* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787#ifdef __cplusplus
11788extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790char $ac_func ();
11791/* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011794#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796#endif
11797
11798int
11799main ()
11800{
Reid Spencera773bd52006-08-04 18:18:08 +000011801return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802 ;
11803 return 0;
11804}
11805_ACEOF
11806rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 eval "$as_ac_var=yes"
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
Reid Spencera773bd52006-08-04 18:18:08 +000011845 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846fi
Reid Spencera773bd52006-08-04 18:18:08 +000011847
Tanya Lattnercf067672008-01-17 05:57:22 +000011848rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 conftest$ac_exeext conftest.$ac_ext
11850fi
Reid Spencera773bd52006-08-04 18:18:08 +000011851ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857_ACEOF
11858 break
11859fi
11860done
11861
11862
11863
11864for ac_func in strrchr rindex
11865do
11866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011867{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880#define $ac_func innocuous_$ac_func
11881
11882/* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11886
11887#ifdef __STDC__
11888# include <limits.h>
11889#else
11890# include <assert.h>
11891#endif
11892
11893#undef $ac_func
11894
Reid Spencera773bd52006-08-04 18:18:08 +000011895/* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898#ifdef __cplusplus
11899extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011901char $ac_func ();
11902/* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011905#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907#endif
11908
11909int
11910main ()
11911{
Reid Spencera773bd52006-08-04 18:18:08 +000011912return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011918if { (ac_try="$ac_link"
11919case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951 eval "$as_ac_var=yes"
11952else
11953 echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
Reid Spencera773bd52006-08-04 18:18:08 +000011956 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957fi
Reid Spencera773bd52006-08-04 18:18:08 +000011958
Tanya Lattnercf067672008-01-17 05:57:22 +000011959rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960 conftest$ac_exeext conftest.$ac_ext
11961fi
Reid Spencera773bd52006-08-04 18:18:08 +000011962ac_res=`eval echo '${'$as_ac_var'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965if test `eval echo '${'$as_ac_var'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968_ACEOF
11969 break
11970fi
11971done
11972
11973
11974
11975for ac_func in memcpy bcopy
11976do
11977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011978{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 cat >conftest.$ac_ext <<_ACEOF
11984/* confdefs.h. */
11985_ACEOF
11986cat confdefs.h >>conftest.$ac_ext
11987cat >>conftest.$ac_ext <<_ACEOF
11988/* end confdefs.h. */
11989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991#define $ac_func innocuous_$ac_func
11992
11993/* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11997
11998#ifdef __STDC__
11999# include <limits.h>
12000#else
12001# include <assert.h>
12002#endif
12003
12004#undef $ac_func
12005
Reid Spencera773bd52006-08-04 18:18:08 +000012006/* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009#ifdef __cplusplus
12010extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012char $ac_func ();
12013/* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012016#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018#endif
12019
12020int
12021main ()
12022{
Reid Spencera773bd52006-08-04 18:18:08 +000012023return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012029if { (ac_try="$ac_link"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056esac
12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062 eval "$as_ac_var=yes"
12063else
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
Reid Spencera773bd52006-08-04 18:18:08 +000012067 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068fi
Reid Spencera773bd52006-08-04 18:18:08 +000012069
Tanya Lattnercf067672008-01-17 05:57:22 +000012070rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071 conftest$ac_exeext conftest.$ac_ext
12072fi
Reid Spencera773bd52006-08-04 18:18:08 +000012073ac_res=`eval echo '${'$as_ac_var'}'`
12074 { echo "$as_me:$LINENO: result: $ac_res" >&5
12075echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079_ACEOF
12080 break
12081fi
12082done
12083
12084
12085
12086for ac_func in memmove strcmp
12087do
12088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12102#define $ac_func innocuous_$ac_func
12103
12104/* System header to define __stub macros and hopefully few prototypes,
12105 which can conflict with char $ac_func (); below.
12106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107 <limits.h> exists even on freestanding compilers. */
12108
12109#ifdef __STDC__
12110# include <limits.h>
12111#else
12112# include <assert.h>
12113#endif
12114
12115#undef $ac_func
12116
Reid Spencera773bd52006-08-04 18:18:08 +000012117/* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120#ifdef __cplusplus
12121extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123char $ac_func ();
12124/* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012127#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129#endif
12130
12131int
12132main ()
12133{
Reid Spencera773bd52006-08-04 18:18:08 +000012134return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135 ;
12136 return 0;
12137}
12138_ACEOF
12139rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012140if { (ac_try="$ac_link"
12141case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144esac
12145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173 eval "$as_ac_var=yes"
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
Reid Spencera773bd52006-08-04 18:18:08 +000012178 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179fi
Reid Spencera773bd52006-08-04 18:18:08 +000012180
Tanya Lattnercf067672008-01-17 05:57:22 +000012181rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182 conftest$ac_exeext conftest.$ac_ext
12183fi
Reid Spencera773bd52006-08-04 18:18:08 +000012184ac_res=`eval echo '${'$as_ac_var'}'`
12185 { echo "$as_me:$LINENO: result: $ac_res" >&5
12186echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012187if test `eval echo '${'$as_ac_var'}'` = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12190_ACEOF
12191
12192fi
12193done
12194
12195
12196
12197
12198for ac_func in closedir opendir readdir
12199do
12200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012201{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12203if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214#define $ac_func innocuous_$ac_func
12215
12216/* System header to define __stub macros and hopefully few prototypes,
12217 which can conflict with char $ac_func (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12220
12221#ifdef __STDC__
12222# include <limits.h>
12223#else
12224# include <assert.h>
12225#endif
12226
12227#undef $ac_func
12228
Reid Spencera773bd52006-08-04 18:18:08 +000012229/* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232#ifdef __cplusplus
12233extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012235char $ac_func ();
12236/* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012239#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241#endif
12242
12243int
12244main ()
12245{
Reid Spencera773bd52006-08-04 18:18:08 +000012246return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285 eval "$as_ac_var=yes"
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
Reid Spencera773bd52006-08-04 18:18:08 +000012290 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291fi
Reid Spencera773bd52006-08-04 18:18:08 +000012292
Tanya Lattnercf067672008-01-17 05:57:22 +000012293rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012294 conftest$ac_exeext conftest.$ac_ext
12295fi
Reid Spencera773bd52006-08-04 18:18:08 +000012296ac_res=`eval echo '${'$as_ac_var'}'`
12297 { echo "$as_me:$LINENO: result: $ac_res" >&5
12298echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299if test `eval echo '${'$as_ac_var'}'` = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12302_ACEOF
12303
12304fi
12305done
12306
12307
Reid Spencera773bd52006-08-04 18:18:08 +000012308# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012309if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012310 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012311 case $enableval in
12312 yes) enable_shared=yes ;;
12313 no) enable_shared=no ;;
12314 *)
12315 enable_shared=no
12316 # Look at the argument we got. We use all the common list separators.
12317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12318 for pkg in $enableval; do
12319 IFS="$lt_save_ifs"
12320 if test "X$pkg" = "X$p"; then
12321 enable_shared=yes
12322 fi
12323 done
12324 IFS="$lt_save_ifs"
12325 ;;
12326 esac
12327else
12328 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012329fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330
Reid Spencera773bd52006-08-04 18:18:08 +000012331
12332# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012333if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012334 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335 case $enableval in
12336 yes) enable_static=yes ;;
12337 no) enable_static=no ;;
12338 *)
12339 enable_static=no
12340 # Look at the argument we got. We use all the common list separators.
12341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12342 for pkg in $enableval; do
12343 IFS="$lt_save_ifs"
12344 if test "X$pkg" = "X$p"; then
12345 enable_static=yes
12346 fi
12347 done
12348 IFS="$lt_save_ifs"
12349 ;;
12350 esac
12351else
12352 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012353fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354
Reid Spencera773bd52006-08-04 18:18:08 +000012355
12356# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012358 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359 case $enableval in
12360 yes) enable_fast_install=yes ;;
12361 no) enable_fast_install=no ;;
12362 *)
12363 enable_fast_install=no
12364 # Look at the argument we got. We use all the common list separators.
12365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12366 for pkg in $enableval; do
12367 IFS="$lt_save_ifs"
12368 if test "X$pkg" = "X$p"; then
12369 enable_fast_install=yes
12370 fi
12371 done
12372 IFS="$lt_save_ifs"
12373 ;;
12374 esac
12375else
12376 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012377fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378
Reid Spencera773bd52006-08-04 18:18:08 +000012379
12380{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12381echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382if test "${lt_cv_path_SED+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 # Loop through the user's path and test for sed and gsed.
12386# Then use that list of sed's as ones to test for truncation.
12387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for lt_ac_prog in sed gsed; do
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12395 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12396 fi
12397 done
12398 done
12399done
12400lt_ac_max=0
12401lt_ac_count=0
12402# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12403# along with /bin/sed that truncates output.
12404for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012405 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406 cat /dev/null > conftest.in
12407 lt_ac_count=0
12408 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12409 # Check for GNU sed and select it if it is found.
12410 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12411 lt_cv_path_SED=$lt_ac_sed
12412 break
12413 fi
12414 while true; do
12415 cat conftest.in conftest.in >conftest.tmp
12416 mv conftest.tmp conftest.in
12417 cp conftest.in conftest.nl
12418 echo >>conftest.nl
12419 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12420 cmp -s conftest.out conftest.nl || break
12421 # 10000 chars as input seems more than enough
12422 test $lt_ac_count -gt 10 && break
12423 lt_ac_count=`expr $lt_ac_count + 1`
12424 if test $lt_ac_count -gt $lt_ac_max; then
12425 lt_ac_max=$lt_ac_count
12426 lt_cv_path_SED=$lt_ac_sed
12427 fi
12428 done
12429done
12430
12431fi
12432
12433SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012434{ echo "$as_me:$LINENO: result: $SED" >&5
12435echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012436
12437
Reid Spencera773bd52006-08-04 18:18:08 +000012438# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012439if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012441else
12442 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012443fi
12444
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012445ac_prog=ld
12446if test "$GCC" = yes; then
12447 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012448 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12449echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450 case $host in
12451 *-*-mingw*)
12452 # gcc leaves a trailing carriage return which upsets mingw
12453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12454 *)
12455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12456 esac
12457 case $ac_prog in
12458 # Accept absolute paths.
12459 [\\/]* | ?:[\\/]*)
12460 re_direlt='/[^/][^/]*/\.\./'
12461 # Canonicalize the pathname of ld
12462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12465 done
12466 test -z "$LD" && LD="$ac_prog"
12467 ;;
12468 "")
12469 # If it fails, then pretend we aren't using GCC.
12470 ac_prog=ld
12471 ;;
12472 *)
12473 # If it is relative, then search for the first ld in PATH.
12474 with_gnu_ld=unknown
12475 ;;
12476 esac
12477elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012478 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12479echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480else
Reid Spencera773bd52006-08-04 18:18:08 +000012481 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12482echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483fi
12484if test "${lt_cv_path_LD+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486else
12487 if test -z "$LD"; then
12488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12489 for ac_dir in $PATH; do
12490 IFS="$lt_save_ifs"
12491 test -z "$ac_dir" && ac_dir=.
12492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12493 lt_cv_path_LD="$ac_dir/$ac_prog"
12494 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012495 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496 # Break only if it was the GNU/non-GNU ld that we prefer.
12497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12498 *GNU* | *'with BFD'*)
12499 test "$with_gnu_ld" != no && break
12500 ;;
12501 *)
12502 test "$with_gnu_ld" != yes && break
12503 ;;
12504 esac
12505 fi
12506 done
12507 IFS="$lt_save_ifs"
12508else
12509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12510fi
12511fi
12512
12513LD="$lt_cv_path_LD"
12514if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012515 { echo "$as_me:$LINENO: result: $LD" >&5
12516echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517else
Reid Spencera773bd52006-08-04 18:18:08 +000012518 { echo "$as_me:$LINENO: result: no" >&5
12519echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012520fi
12521test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12522echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12523 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012524{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12525echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526if test "${lt_cv_prog_gnu_ld+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528else
Reid Spencera773bd52006-08-04 18:18:08 +000012529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530case `$LD -v 2>&1 </dev/null` in
12531*GNU* | *'with BFD'*)
12532 lt_cv_prog_gnu_ld=yes
12533 ;;
12534*)
12535 lt_cv_prog_gnu_ld=no
12536 ;;
12537esac
12538fi
Reid Spencera773bd52006-08-04 18:18:08 +000012539{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12540echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541with_gnu_ld=$lt_cv_prog_gnu_ld
12542
12543
Reid Spencera773bd52006-08-04 18:18:08 +000012544{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12545echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546if test "${lt_cv_ld_reload_flag+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548else
12549 lt_cv_ld_reload_flag='-r'
12550fi
Reid Spencera773bd52006-08-04 18:18:08 +000012551{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12552echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012553reload_flag=$lt_cv_ld_reload_flag
12554case $reload_flag in
12555"" | " "*) ;;
12556*) reload_flag=" $reload_flag" ;;
12557esac
12558reload_cmds='$LD$reload_flag -o $output$reload_objs'
12559case $host_os in
12560 darwin*)
12561 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563 else
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12565 fi
12566 ;;
12567esac
12568
Reid Spencera773bd52006-08-04 18:18:08 +000012569{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12570echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571if test "${lt_cv_deplibs_check_method+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 lt_cv_file_magic_cmd='$MAGIC_CMD'
12575lt_cv_file_magic_test_file=
12576lt_cv_deplibs_check_method='unknown'
12577# Need to set the preceding variable on all platforms that support
12578# interlibrary dependencies.
12579# 'none' -- dependencies not supported.
12580# `unknown' -- same as none, but documents that we really don't know.
12581# 'pass_all' -- all dependencies passed with no checks.
12582# 'test_compile' -- check by making test program.
12583# 'file_magic [[regex]]' -- check by looking for files in library path
12584# which responds to the $file_magic_cmd with a given extended regex.
12585# If you have `file' or equivalent on your system and you're not sure
12586# whether `pass_all' will *always* work, you probably want this one.
12587
12588case $host_os in
12589aix4* | aix5*)
12590 lt_cv_deplibs_check_method=pass_all
12591 ;;
12592
12593beos*)
12594 lt_cv_deplibs_check_method=pass_all
12595 ;;
12596
12597bsdi[45]*)
12598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12599 lt_cv_file_magic_cmd='/usr/bin/file -L'
12600 lt_cv_file_magic_test_file=/shlib/libc.so
12601 ;;
12602
12603cygwin*)
12604 # func_win32_libid is a shell function defined in ltmain.sh
12605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12606 lt_cv_file_magic_cmd='func_win32_libid'
12607 ;;
12608
12609mingw* | pw32*)
12610 # Base MSYS/MinGW do not provide the 'file' command needed by
12611 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12613 lt_cv_file_magic_cmd='$OBJDUMP -f'
12614 ;;
12615
12616darwin* | rhapsody*)
12617 lt_cv_deplibs_check_method=pass_all
12618 ;;
12619
Reid Spencera773bd52006-08-04 18:18:08 +000012620freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12622 case $host_cpu in
12623 i*86 )
12624 # Not sure whether the presence of OpenBSD here was a mistake.
12625 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012626 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 +000012627 lt_cv_file_magic_cmd=/usr/bin/file
12628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12629 ;;
12630 esac
12631 else
12632 lt_cv_deplibs_check_method=pass_all
12633 fi
12634 ;;
12635
12636gnu*)
12637 lt_cv_deplibs_check_method=pass_all
12638 ;;
12639
12640hpux10.20* | hpux11*)
12641 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012642 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012643 ia64*)
12644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12646 ;;
12647 hppa*64*)
12648 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]'
12649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12650 ;;
12651 *)
12652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12654 ;;
12655 esac
12656 ;;
12657
Reid Spencera773bd52006-08-04 18:18:08 +000012658interix3*)
12659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12661 ;;
12662
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663irix5* | irix6* | nonstopux*)
12664 case $LD in
12665 *-32|*"-32 ") libmagic=32-bit;;
12666 *-n32|*"-n32 ") libmagic=N32;;
12667 *-64|*"-64 ") libmagic=64-bit;;
12668 *) libmagic=never-match;;
12669 esac
12670 lt_cv_deplibs_check_method=pass_all
12671 ;;
12672
12673# This must be Linux ELF.
12674linux*)
12675 lt_cv_deplibs_check_method=pass_all
12676 ;;
12677
12678netbsd*)
12679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12681 else
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12683 fi
12684 ;;
12685
12686newos6*)
12687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12688 lt_cv_file_magic_cmd=/usr/bin/file
12689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12690 ;;
12691
12692nto-qnx*)
12693 lt_cv_deplibs_check_method=unknown
12694 ;;
12695
12696openbsd*)
12697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12699 else
12700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12701 fi
12702 ;;
12703
12704osf3* | osf4* | osf5*)
12705 lt_cv_deplibs_check_method=pass_all
12706 ;;
12707
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708solaris*)
12709 lt_cv_deplibs_check_method=pass_all
12710 ;;
12711
Reid Spencera773bd52006-08-04 18:18:08 +000012712sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012713 case $host_vendor in
12714 motorola)
12715 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]'
12716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12717 ;;
12718 ncr)
12719 lt_cv_deplibs_check_method=pass_all
12720 ;;
12721 sequent)
12722 lt_cv_file_magic_cmd='/bin/file'
12723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12724 ;;
12725 sni)
12726 lt_cv_file_magic_cmd='/bin/file'
12727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12728 lt_cv_file_magic_test_file=/lib/libc.so
12729 ;;
12730 siemens)
12731 lt_cv_deplibs_check_method=pass_all
12732 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012733 pc)
12734 lt_cv_deplibs_check_method=pass_all
12735 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736 esac
12737 ;;
12738
Reid Spencera773bd52006-08-04 18:18:08 +000012739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012740 lt_cv_deplibs_check_method=pass_all
12741 ;;
12742esac
12743
12744fi
Reid Spencera773bd52006-08-04 18:18:08 +000012745{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12746echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012747file_magic_cmd=$lt_cv_file_magic_cmd
12748deplibs_check_method=$lt_cv_deplibs_check_method
12749test -z "$deplibs_check_method" && deplibs_check_method=unknown
12750
12751
12752
12753# If no C compiler was specified, use CC.
12754LTCC=${LTCC-"$CC"}
12755
Reid Spencera773bd52006-08-04 18:18:08 +000012756# If no C compiler flags were specified, use CFLAGS.
12757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12758
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012759# Allow CC to be a program name with arguments.
12760compiler=$CC
12761
Reid Spencera773bd52006-08-04 18:18:08 +000012762# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012763if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012764 enableval=$enable_libtool_lock;
12765fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012767test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12768
12769# Some flags need to be propagated to the compiler or linker for good
12770# libtool support.
12771case $host in
12772ia64-*-hpux*)
12773 # Find out which ABI we are using.
12774 echo 'int i;' > conftest.$ac_ext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; then
12780 case `/usr/bin/file conftest.$ac_objext` in
12781 *ELF-32*)
12782 HPUX_IA64_MODE="32"
12783 ;;
12784 *ELF-64*)
12785 HPUX_IA64_MODE="64"
12786 ;;
12787 esac
12788 fi
12789 rm -rf conftest*
12790 ;;
12791*-*-irix6*)
12792 # Find out which ABI we are using.
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000012793 echo '#line 12793 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; then
12799 if test "$lt_cv_prog_gnu_ld" = yes; then
12800 case `/usr/bin/file conftest.$ac_objext` in
12801 *32-bit*)
12802 LD="${LD-ld} -melf32bsmip"
12803 ;;
12804 *N32*)
12805 LD="${LD-ld} -melf32bmipn32"
12806 ;;
12807 *64-bit*)
12808 LD="${LD-ld} -melf64bmip"
12809 ;;
12810 esac
12811 else
12812 case `/usr/bin/file conftest.$ac_objext` in
12813 *32-bit*)
12814 LD="${LD-ld} -32"
12815 ;;
12816 *N32*)
12817 LD="${LD-ld} -n32"
12818 ;;
12819 *64-bit*)
12820 LD="${LD-ld} -64"
12821 ;;
12822 esac
12823 fi
12824 fi
12825 rm -rf conftest*
12826 ;;
12827
12828x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12829 # Find out which ABI we are using.
12830 echo 'int i;' > conftest.$ac_ext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012836 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012837 *32-bit*)
12838 case $host in
12839 x86_64-*linux*)
12840 LD="${LD-ld} -m elf_i386"
12841 ;;
12842 ppc64-*linux*|powerpc64-*linux*)
12843 LD="${LD-ld} -m elf32ppclinux"
12844 ;;
12845 s390x-*linux*)
12846 LD="${LD-ld} -m elf_s390"
12847 ;;
12848 sparc64-*linux*)
12849 LD="${LD-ld} -m elf32_sparc"
12850 ;;
12851 esac
12852 ;;
12853 *64-bit*)
12854 case $host in
12855 x86_64-*linux*)
12856 LD="${LD-ld} -m elf_x86_64"
12857 ;;
12858 ppc*-*linux*|powerpc*-*linux*)
12859 LD="${LD-ld} -m elf64ppc"
12860 ;;
12861 s390*-*linux*)
12862 LD="${LD-ld} -m elf64_s390"
12863 ;;
12864 sparc*-*linux*)
12865 LD="${LD-ld} -m elf64_sparc"
12866 ;;
12867 esac
12868 ;;
12869 esac
12870 fi
12871 rm -rf conftest*
12872 ;;
12873
12874*-*-sco3.2v5*)
12875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12876 SAVE_CFLAGS="$CFLAGS"
12877 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012878 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12879echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012880if test "${lt_cv_cc_needs_belf+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882else
12883 ac_ext=c
12884ac_cpp='$CPP $CPPFLAGS'
12885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887ac_compiler_gnu=$ac_cv_c_compiler_gnu
12888
12889 cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895
Reid Spencera773bd52006-08-04 18:18:08 +000012896int
12897main ()
12898{
12899
12900 ;
12901 return 0;
12902}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012903_ACEOF
12904rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012905if { (ac_try="$ac_link"
12906case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012938 lt_cv_cc_needs_belf=yes
12939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
Reid Spencera773bd52006-08-04 18:18:08 +000012943 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012944fi
Reid Spencera773bd52006-08-04 18:18:08 +000012945
Tanya Lattnercf067672008-01-17 05:57:22 +000012946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947 conftest$ac_exeext conftest.$ac_ext
12948 ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954fi
Reid Spencera773bd52006-08-04 18:18:08 +000012955{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12956echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12959 CFLAGS="$SAVE_CFLAGS"
12960 fi
12961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012962sparc*-*solaris*)
12963 # Find out which ABI we are using.
12964 echo 'int i;' > conftest.$ac_ext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 case `/usr/bin/file conftest.o` in
12971 *64-bit*)
12972 case $lt_cv_prog_gnu_ld in
12973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12974 *) LD="${LD-ld} -64" ;;
12975 esac
12976 ;;
12977 esac
12978 fi
12979 rm -rf conftest*
12980 ;;
12981
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012982
12983esac
12984
12985need_locks="$enable_libtool_lock"
12986
12987
Reid Spencer2706f8c2004-09-19 23:53:36 +000012988
12989
12990if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12992 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012993 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012994ac_cpp='$CXXCPP $CPPFLAGS'
12995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012998{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12999echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013000if test -z "$CXXCPP"; then
13001 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
John Criswell47fdd832003-07-14 16:52:07 +000013004 # Double quotes because CXXCPP needs to be expanded
13005 for CXXCPP in "$CXX -E" "/lib/cpp"
13006 do
13007 ac_preproc_ok=false
13008for ac_cxx_preproc_warn_flag in '' yes
13009do
13010 # Use a header file that comes with gcc, so configuring glibc
13011 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013014 # On the NeXT, cc -E runs the code through the compiler's parser,
13015 # not just through cpp. "Syntax error" is here to catch this case.
13016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
13022#ifdef __STDC__
13023# include <limits.h>
13024#else
13025# include <assert.h>
13026#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013027 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013028_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013029if { (ac_try="$ac_cpp conftest.$ac_ext"
13030case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013036 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013037 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013041 (exit $ac_status); } >/dev/null; then
13042 if test -s conftest.err; then
13043 ac_cpp_err=$ac_cxx_preproc_warn_flag
13044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13045 else
13046 ac_cpp_err=
13047 fi
13048else
13049 ac_cpp_err=yes
13050fi
13051if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013052 :
13053else
13054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013055sed 's/^/| /' conftest.$ac_ext >&5
13056
John Criswell47fdd832003-07-14 16:52:07 +000013057 # Broken: fails on valid input.
13058continue
13059fi
Reid Spencera773bd52006-08-04 18:18:08 +000013060
John Criswell47fdd832003-07-14 16:52:07 +000013061rm -f conftest.err conftest.$ac_ext
13062
Reid Spencera773bd52006-08-04 18:18:08 +000013063 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013064 # can be detected and how.
13065 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013071#include <ac_nonexistent.h>
13072_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013073if { (ac_try="$ac_cpp conftest.$ac_ext"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013080 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013081 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013085 (exit $ac_status); } >/dev/null; then
13086 if test -s conftest.err; then
13087 ac_cpp_err=$ac_cxx_preproc_warn_flag
13088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13089 else
13090 ac_cpp_err=
13091 fi
13092else
13093 ac_cpp_err=yes
13094fi
13095if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013096 # Broken: success on invalid input.
13097continue
13098else
13099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013100sed 's/^/| /' conftest.$ac_ext >&5
13101
John Criswell47fdd832003-07-14 16:52:07 +000013102 # Passes both tests.
13103ac_preproc_ok=:
13104break
13105fi
Reid Spencera773bd52006-08-04 18:18:08 +000013106
John Criswell47fdd832003-07-14 16:52:07 +000013107rm -f conftest.err conftest.$ac_ext
13108
13109done
13110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13111rm -f conftest.err conftest.$ac_ext
13112if $ac_preproc_ok; then
13113 break
John Criswell7a73b802003-06-30 21:59:07 +000013114fi
13115
John Criswell47fdd832003-07-14 16:52:07 +000013116 done
13117 ac_cv_prog_CXXCPP=$CXXCPP
13118
13119fi
13120 CXXCPP=$ac_cv_prog_CXXCPP
13121else
13122 ac_cv_prog_CXXCPP=$CXXCPP
13123fi
Reid Spencera773bd52006-08-04 18:18:08 +000013124{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13125echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013126ac_preproc_ok=false
13127for ac_cxx_preproc_warn_flag in '' yes
13128do
13129 # Use a header file that comes with gcc, so configuring glibc
13130 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013133 # On the NeXT, cc -E runs the code through the compiler's parser,
13134 # not just through cpp. "Syntax error" is here to catch this case.
13135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013136/* confdefs.h. */
13137_ACEOF
13138cat confdefs.h >>conftest.$ac_ext
13139cat >>conftest.$ac_ext <<_ACEOF
13140/* end confdefs.h. */
13141#ifdef __STDC__
13142# include <limits.h>
13143#else
13144# include <assert.h>
13145#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013146 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013147_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013148if { (ac_try="$ac_cpp conftest.$ac_ext"
13149case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013155 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013156 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013160 (exit $ac_status); } >/dev/null; then
13161 if test -s conftest.err; then
13162 ac_cpp_err=$ac_cxx_preproc_warn_flag
13163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13164 else
13165 ac_cpp_err=
13166 fi
13167else
13168 ac_cpp_err=yes
13169fi
13170if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013171 :
13172else
13173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013174sed 's/^/| /' conftest.$ac_ext >&5
13175
John Criswell47fdd832003-07-14 16:52:07 +000013176 # Broken: fails on valid input.
13177continue
13178fi
Reid Spencera773bd52006-08-04 18:18:08 +000013179
John Criswell47fdd832003-07-14 16:52:07 +000013180rm -f conftest.err conftest.$ac_ext
13181
Reid Spencera773bd52006-08-04 18:18:08 +000013182 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013183 # can be detected and how.
13184 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013185/* confdefs.h. */
13186_ACEOF
13187cat confdefs.h >>conftest.$ac_ext
13188cat >>conftest.$ac_ext <<_ACEOF
13189/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013190#include <ac_nonexistent.h>
13191_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013192if { (ac_try="$ac_cpp conftest.$ac_ext"
13193case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013199 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013200 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013204 (exit $ac_status); } >/dev/null; then
13205 if test -s conftest.err; then
13206 ac_cpp_err=$ac_cxx_preproc_warn_flag
13207 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13208 else
13209 ac_cpp_err=
13210 fi
13211else
13212 ac_cpp_err=yes
13213fi
13214if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013215 # Broken: success on invalid input.
13216continue
13217else
13218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013219sed 's/^/| /' conftest.$ac_ext >&5
13220
John Criswell47fdd832003-07-14 16:52:07 +000013221 # Passes both tests.
13222ac_preproc_ok=:
13223break
13224fi
Reid Spencera773bd52006-08-04 18:18:08 +000013225
John Criswell47fdd832003-07-14 16:52:07 +000013226rm -f conftest.err conftest.$ac_ext
13227
13228done
13229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13230rm -f conftest.err conftest.$ac_ext
13231if $ac_preproc_ok; then
13232 :
13233else
John Criswell0c38eaf2003-09-10 15:17:25 +000013234 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13235See \`config.log' for more details." >&5
13236echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13237See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013238 { (exit 1); exit 1; }; }
13239fi
13240
Reid Spencera773bd52006-08-04 18:18:08 +000013241ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013242ac_cpp='$CXXCPP $CPPFLAGS'
13243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13246
Reid Spencer2706f8c2004-09-19 23:53:36 +000013247fi
13248
John Criswell47fdd832003-07-14 16:52:07 +000013249
13250ac_ext=f
13251ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13254if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013255 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 +000013256 do
13257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13258set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013261if test "${ac_cv_prog_F77+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263else
13264 if test -n "$F77"; then
13265 ac_cv_prog_F77="$F77" # Let the user override the test.
13266else
13267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268for as_dir in $PATH
13269do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013273 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 +000013274 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278done
13279done
Reid Spencera773bd52006-08-04 18:18:08 +000013280IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013281
13282fi
13283fi
13284F77=$ac_cv_prog_F77
13285if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013286 { echo "$as_me:$LINENO: result: $F77" >&5
13287echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013288else
Reid Spencera773bd52006-08-04 18:18:08 +000013289 { echo "$as_me:$LINENO: result: no" >&5
13290echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013291fi
13292
Reid Spencera773bd52006-08-04 18:18:08 +000013293
John Criswell47fdd832003-07-14 16:52:07 +000013294 test -n "$F77" && break
13295 done
13296fi
13297if test -z "$F77"; then
13298 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013299 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 +000013300do
13301 # Extract the first word of "$ac_prog", so it can be a program name with args.
13302set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013305if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307else
13308 if test -n "$ac_ct_F77"; then
13309 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13310else
13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312for as_dir in $PATH
13313do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013317 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 +000013318 ac_cv_prog_ac_ct_F77="$ac_prog"
13319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322done
13323done
Reid Spencera773bd52006-08-04 18:18:08 +000013324IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013325
13326fi
13327fi
13328ac_ct_F77=$ac_cv_prog_ac_ct_F77
13329if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013330 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13331echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013332else
Reid Spencera773bd52006-08-04 18:18:08 +000013333 { echo "$as_me:$LINENO: result: no" >&5
13334echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013335fi
13336
Reid Spencera773bd52006-08-04 18:18:08 +000013337
John Criswell47fdd832003-07-14 16:52:07 +000013338 test -n "$ac_ct_F77" && break
13339done
13340
Reid Spencera773bd52006-08-04 18:18:08 +000013341 if test "x$ac_ct_F77" = x; then
13342 F77=""
13343 else
13344 case $cross_compiling:$ac_tool_warned in
13345yes:)
13346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13347whose name does not start with the host triplet. If you think this
13348configuration is useful to you, please write to autoconf@gnu.org." >&5
13349echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13350whose name does not start with the host triplet. If you think this
13351configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13352ac_tool_warned=yes ;;
13353esac
13354 F77=$ac_ct_F77
13355 fi
John Criswell47fdd832003-07-14 16:52:07 +000013356fi
13357
13358
13359# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013360echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013361ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ (ac_try="$ac_compiler --version >&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 --version >&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 Spencera773bd52006-08-04 18:18:08 +000013382{ (ac_try="$ac_compiler -V >&5"
13383case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386esac
13387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013392rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013393
13394# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013395# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013396ac_save_ext=$ac_ext
13397ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013398{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13399echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013400if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402else
13403 cat >conftest.$ac_ext <<_ACEOF
13404 program main
13405#ifndef __GNUC__
13406 choke me
13407#endif
13408
13409 end
13410_ACEOF
13411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013412if { (ac_try="$ac_compile"
13413case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013445 ac_compiler_gnu=yes
13446else
13447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013448sed 's/^/| /' conftest.$ac_ext >&5
13449
Reid Spencera773bd52006-08-04 18:18:08 +000013450 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013451fi
Reid Spencera773bd52006-08-04 18:18:08 +000013452
13453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013454ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13455
13456fi
Reid Spencera773bd52006-08-04 18:18:08 +000013457{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13458echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013459ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013460ac_test_FFLAGS=${FFLAGS+set}
13461ac_save_FFLAGS=$FFLAGS
13462FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013463{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13464echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013465if test "${ac_cv_prog_f77_g+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467else
13468 FFLAGS=-g
13469cat >conftest.$ac_ext <<_ACEOF
13470 program main
13471
13472 end
13473_ACEOF
13474rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013475if { (ac_try="$ac_compile"
13476case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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); }; } &&
13498 { ac_try='test -s conftest.$ac_objext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013508 ac_cv_prog_f77_g=yes
13509else
13510 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013511sed 's/^/| /' conftest.$ac_ext >&5
13512
Reid Spencera773bd52006-08-04 18:18:08 +000013513 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013514fi
Reid Spencera773bd52006-08-04 18:18:08 +000013515
13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013517
13518fi
Reid Spencera773bd52006-08-04 18:18:08 +000013519{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13520echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013521if test "$ac_test_FFLAGS" = set; then
13522 FFLAGS=$ac_save_FFLAGS
13523elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013524 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013525 FFLAGS="-g -O2"
13526 else
13527 FFLAGS="-g"
13528 fi
13529else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013530 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013531 FFLAGS="-O2"
13532 else
13533 FFLAGS=
13534 fi
13535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536
13537G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013538ac_ext=c
13539ac_cpp='$CPP $CPPFLAGS'
13540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13542ac_compiler_gnu=$ac_cv_c_compiler_gnu
13543
13544
13545
13546# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13547
13548# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013549{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13550echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013551if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553else
13554 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013556
13557 case $build_os in
13558 msdosdjgpp*)
13559 # On DJGPP, this test can blow up pretty badly due to problems in libc
13560 # (any single argument exceeding 2000 bytes causes a buffer overrun
13561 # during glob expansion). Even if it were fixed, the result of this
13562 # check would be larger than it should be.
13563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13564 ;;
13565
13566 gnu*)
13567 # Under GNU Hurd, this test is not required because there is
13568 # no limit to the length of command line arguments.
13569 # Libtool will interpret -1 as no limit whatsoever
13570 lt_cv_sys_max_cmd_len=-1;
13571 ;;
13572
13573 cygwin* | mingw*)
13574 # On Win9x/ME, this test blows up -- it succeeds, but takes
13575 # about 5 minutes as the teststring grows exponentially.
13576 # Worse, since 9x/ME are not pre-emptively multitasking,
13577 # you end up with a "frozen" computer, even though with patience
13578 # the test eventually succeeds (with a max line length of 256k).
13579 # Instead, let's just punt: use the minimum linelength reported by
13580 # all of the supported platforms: 8192 (on NT/2K/XP).
13581 lt_cv_sys_max_cmd_len=8192;
13582 ;;
13583
Reid Spencer2706f8c2004-09-19 23:53:36 +000013584 amigaos*)
13585 # On AmigaOS with pdksh, this test takes hours, literally.
13586 # So we just punt and use a minimum line length of 8192.
13587 lt_cv_sys_max_cmd_len=8192;
13588 ;;
13589
Reid Spencera773bd52006-08-04 18:18:08 +000013590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013591 # This has been around since 386BSD, at least. Likely further.
13592 if test -x /sbin/sysctl; then
13593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13594 elif test -x /usr/sbin/sysctl; then
13595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13596 else
Reid Spencera773bd52006-08-04 18:18:08 +000013597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013598 fi
13599 # And add a safety zone
13600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013602 ;;
13603
Reid Spencera773bd52006-08-04 18:18:08 +000013604 interix*)
13605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13606 lt_cv_sys_max_cmd_len=196608
13607 ;;
13608
13609 osf*)
13610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13612 # nice to cause kernel panics so lets avoid the loop below.
13613 # First set a reasonable default.
13614 lt_cv_sys_max_cmd_len=16384
13615 #
13616 if test -x /sbin/sysconfig; then
13617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13619 esac
13620 fi
13621 ;;
13622 sco3.2v5*)
13623 lt_cv_sys_max_cmd_len=102400
13624 ;;
13625 sysv5* | sco5v6* | sysv4.2uw2*)
13626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13627 if test -n "$kargmax"; then
13628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13629 else
13630 lt_cv_sys_max_cmd_len=32768
13631 fi
13632 ;;
13633 *)
John Criswell47fdd832003-07-14 16:52:07 +000013634 # If test is not a shell built-in, we'll probably end up computing a
13635 # maximum length that is only half of the actual maximum length, but
13636 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13638 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13639 = "XX$teststring") >/dev/null 2>&1 &&
13640 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013641 lt_cv_sys_max_cmd_len=$new_result &&
13642 test $i != 17 # 1/2 MB should be enough
13643 do
13644 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013645 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013646 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013647 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013648 # Add a significant safety factor because C++ compilers can tack on massive
13649 # amounts of additional arguments before passing them to the linker.
13650 # It appears as though 1/2 is a usable value.
13651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13652 ;;
13653 esac
13654
13655fi
13656
13657if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013658 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13659echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013660else
Reid Spencera773bd52006-08-04 18:18:08 +000013661 { echo "$as_me:$LINENO: result: none" >&5
13662echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013663fi
13664
13665
13666
13667
13668# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013669{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13670echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013671if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674
13675# These are sane defaults that work on at least a few old systems.
13676# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13677
13678# Character class describing NM global symbol codes.
13679symcode='[BCDEGRST]'
13680
13681# Regexp to match symbols that can be accessed directly from C.
13682sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13683
John Criswell47fdd832003-07-14 16:52:07 +000013684# Transform an extracted symbol line into a proper C declaration
13685lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13686
13687# Transform an extracted symbol line into symbol name and symbol address
13688lt_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'"
13689
13690# Define system-specific variables.
13691case $host_os in
13692aix*)
13693 symcode='[BCDT]'
13694 ;;
13695cygwin* | mingw* | pw32*)
13696 symcode='[ABCDGISTW]'
13697 ;;
13698hpux*) # Its linker distinguishes data from code symbols
13699 if test "$host_cpu" = ia64; then
13700 symcode='[ABCDEGRST]'
13701 fi
13702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13703 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'"
13704 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013705linux*)
13706 if test "$host_cpu" = ia64; then
13707 symcode='[ABCDGIRSTW]'
13708 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13709 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'"
13710 fi
13711 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013712irix* | nonstopux*)
13713 symcode='[BCDEGRST]'
13714 ;;
13715osf*)
13716 symcode='[BCDEGQRST]'
13717 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013718solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013719 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013721sco3.2v5*)
13722 symcode='[DT]'
13723 ;;
13724sysv4.2uw2*)
13725 symcode='[DT]'
13726 ;;
13727sysv5* | sco5v6* | unixware* | OpenUNIX*)
13728 symcode='[ABDT]'
13729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013730sysv4)
13731 symcode='[DFNSTU]'
13732 ;;
13733esac
13734
13735# Handle CRLF in mingw tool chain
13736opt_cr=
13737case $build_os in
13738mingw*)
13739 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13740 ;;
13741esac
13742
13743# If we're using GNU nm, then use its standard symbol codes.
13744case `$NM -V 2>&1` in
13745*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013747esac
13748
13749# Try without a prefix undercore, then with it.
13750for ac_symprfx in "" "_"; do
13751
Reid Spencera773bd52006-08-04 18:18:08 +000013752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13753 symxfrm="\\1 $ac_symprfx\\2 \\2"
13754
John Criswell47fdd832003-07-14 16:52:07 +000013755 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013756 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 +000013757
13758 # Check to see that the pipe works correctly.
13759 pipe_works=no
13760
13761 rm -f conftest*
13762 cat > conftest.$ac_ext <<EOF
13763#ifdef __cplusplus
13764extern "C" {
13765#endif
13766char nm_test_var;
13767void nm_test_func(){}
13768#ifdef __cplusplus
13769}
13770#endif
13771int main(){nm_test_var='a';nm_test_func();return(0);}
13772EOF
13773
13774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13775 (eval $ac_compile) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; then
13779 # Now try to grab the symbols.
13780 nlist=conftest.nm
13781 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13782 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } && test -s "$nlist"; then
13786 # Try sorting and uniquifying the output.
13787 if sort "$nlist" | uniq > "$nlist"T; then
13788 mv -f "$nlist"T "$nlist"
13789 else
13790 rm -f "$nlist"T
13791 fi
13792
13793 # Make sure that we snagged all the symbols we need.
13794 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13795 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13796 cat <<EOF > conftest.$ac_ext
13797#ifdef __cplusplus
13798extern "C" {
13799#endif
13800
13801EOF
13802 # Now generate the symbol file.
13803 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13804
13805 cat <<EOF >> conftest.$ac_ext
13806#if defined (__STDC__) && __STDC__
13807# define lt_ptr_t void *
13808#else
13809# define lt_ptr_t char *
13810# define const
13811#endif
13812
13813/* The mapping between symbol names and symbols. */
13814const struct {
13815 const char *name;
13816 lt_ptr_t address;
13817}
13818lt_preloaded_symbols[] =
13819{
13820EOF
13821 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13822 cat <<\EOF >> conftest.$ac_ext
13823 {0, (lt_ptr_t) 0}
13824};
13825
13826#ifdef __cplusplus
13827}
13828#endif
13829EOF
13830 # Now try linking the two files.
13831 mv conftest.$ac_objext conftstm.$ac_objext
13832 lt_save_LIBS="$LIBS"
13833 lt_save_CFLAGS="$CFLAGS"
13834 LIBS="conftstm.$ac_objext"
13835 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13841 pipe_works=yes
13842 fi
13843 LIBS="$lt_save_LIBS"
13844 CFLAGS="$lt_save_CFLAGS"
13845 else
13846 echo "cannot find nm_test_func in $nlist" >&5
13847 fi
13848 else
13849 echo "cannot find nm_test_var in $nlist" >&5
13850 fi
13851 else
13852 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13853 fi
13854 else
13855 echo "$progname: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 fi
13858 rm -f conftest* conftst*
13859
13860 # Do not use the global_symbol_pipe unless it works.
13861 if test "$pipe_works" = yes; then
13862 break
13863 else
13864 lt_cv_sys_global_symbol_pipe=
13865 fi
13866done
13867
13868fi
13869
13870if test -z "$lt_cv_sys_global_symbol_pipe"; then
13871 lt_cv_sys_global_symbol_to_cdecl=
13872fi
13873if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013874 { echo "$as_me:$LINENO: result: failed" >&5
13875echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876else
Reid Spencera773bd52006-08-04 18:18:08 +000013877 { echo "$as_me:$LINENO: result: ok" >&5
13878echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013879fi
13880
Reid Spencera773bd52006-08-04 18:18:08 +000013881{ echo "$as_me:$LINENO: checking for objdir" >&5
13882echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013883if test "${lt_cv_objdir+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885else
13886 rm -f .libs 2>/dev/null
13887mkdir .libs 2>/dev/null
13888if test -d .libs; then
13889 lt_cv_objdir=.libs
13890else
13891 # MS-DOS does not allow filenames that begin with a dot.
13892 lt_cv_objdir=_libs
13893fi
13894rmdir .libs 2>/dev/null
13895fi
Reid Spencera773bd52006-08-04 18:18:08 +000013896{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13897echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013898objdir=$lt_cv_objdir
13899
13900
13901
13902
13903
13904case $host_os in
13905aix3*)
13906 # AIX sometimes has problems with the GCC collect2 program. For some
13907 # reason, if we set the COLLECT_NAMES environment variable, the problems
13908 # vanish in a puff of smoke.
13909 if test "X${COLLECT_NAMES+set}" != Xset; then
13910 COLLECT_NAMES=
13911 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013912 fi
13913 ;;
13914esac
13915
John Criswell47fdd832003-07-14 16:52:07 +000013916# Sed substitution that helps us do robust quoting. It backslashifies
13917# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013918Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013919sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13920
13921# Same as above, but do not quote variable references.
13922double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13923
13924# Sed substitution to delay expansion of an escaped shell variable in a
13925# double_quote_subst'ed string.
13926delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13927
13928# Sed substitution to avoid accidental globbing in evaled expressions
13929no_glob_subst='s/\*/\\\*/g'
13930
13931# Constants:
13932rm="rm -f"
13933
13934# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013935default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013936can_build_shared=yes
13937
Reid Spencera773bd52006-08-04 18:18:08 +000013938# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013939# which needs '.lib').
13940libext=a
13941ltmain="$ac_aux_dir/ltmain.sh"
13942ofile="$default_ofile"
13943with_gnu_ld="$lt_cv_prog_gnu_ld"
13944
13945if test -n "$ac_tool_prefix"; then
13946 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13947set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013950if test "${ac_cv_prog_AR+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953 if test -n "$AR"; then
13954 ac_cv_prog_AR="$AR" # Let the user override the test.
13955else
13956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013962 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 +000013963 ac_cv_prog_AR="${ac_tool_prefix}ar"
13964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967done
13968done
Reid Spencera773bd52006-08-04 18:18:08 +000013969IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013970
13971fi
13972fi
13973AR=$ac_cv_prog_AR
13974if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 { echo "$as_me:$LINENO: result: $AR" >&5
13976echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013977else
Reid Spencera773bd52006-08-04 18:18:08 +000013978 { echo "$as_me:$LINENO: result: no" >&5
13979echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013980fi
13981
Reid Spencera773bd52006-08-04 18:18:08 +000013982
John Criswell47fdd832003-07-14 16:52:07 +000013983fi
13984if test -z "$ac_cv_prog_AR"; then
13985 ac_ct_AR=$AR
13986 # Extract the first word of "ar", so it can be a program name with args.
13987set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013990if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992else
13993 if test -n "$ac_ct_AR"; then
13994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13995else
13996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH
13998do
13999 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014002 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 +000014003 ac_cv_prog_ac_ct_AR="ar"
14004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14005 break 2
14006 fi
14007done
14008done
Reid Spencera773bd52006-08-04 18:18:08 +000014009IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014010
John Criswell47fdd832003-07-14 16:52:07 +000014011fi
14012fi
14013ac_ct_AR=$ac_cv_prog_ac_ct_AR
14014if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014015 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14016echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014017else
Reid Spencera773bd52006-08-04 18:18:08 +000014018 { echo "$as_me:$LINENO: result: no" >&5
14019echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014020fi
14021
Reid Spencera773bd52006-08-04 18:18:08 +000014022 if test "x$ac_ct_AR" = x; then
14023 AR="false"
14024 else
14025 case $cross_compiling:$ac_tool_warned in
14026yes:)
14027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14028whose name does not start with the host triplet. If you think this
14029configuration is useful to you, please write to autoconf@gnu.org." >&5
14030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14031whose name does not start with the host triplet. If you think this
14032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14033ac_tool_warned=yes ;;
14034esac
14035 AR=$ac_ct_AR
14036 fi
John Criswell47fdd832003-07-14 16:52:07 +000014037else
14038 AR="$ac_cv_prog_AR"
14039fi
14040
John Criswell7a73b802003-06-30 21:59:07 +000014041if test -n "$ac_tool_prefix"; then
14042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14043set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014046if test "${ac_cv_prog_RANLIB+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 if test -n "$RANLIB"; then
14050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14051else
14052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053for as_dir in $PATH
14054do
14055 IFS=$as_save_IFS
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014058 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 +000014059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14061 break 2
14062 fi
14063done
14064done
Reid Spencera773bd52006-08-04 18:18:08 +000014065IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014066
14067fi
14068fi
14069RANLIB=$ac_cv_prog_RANLIB
14070if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14072echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014073else
Reid Spencera773bd52006-08-04 18:18:08 +000014074 { echo "$as_me:$LINENO: result: no" >&5
14075echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014076fi
14077
Reid Spencera773bd52006-08-04 18:18:08 +000014078
John Criswell7a73b802003-06-30 21:59:07 +000014079fi
14080if test -z "$ac_cv_prog_RANLIB"; then
14081 ac_ct_RANLIB=$RANLIB
14082 # Extract the first word of "ranlib", so it can be a program name with args.
14083set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088else
14089 if test -n "$ac_ct_RANLIB"; then
14090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14091else
14092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093for as_dir in $PATH
14094do
14095 IFS=$as_save_IFS
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014098 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 +000014099 ac_cv_prog_ac_ct_RANLIB="ranlib"
14100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14101 break 2
14102 fi
14103done
14104done
Reid Spencera773bd52006-08-04 18:18:08 +000014105IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014106
John Criswell7a73b802003-06-30 21:59:07 +000014107fi
14108fi
14109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14110if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14112echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014113else
Reid Spencera773bd52006-08-04 18:18:08 +000014114 { echo "$as_me:$LINENO: result: no" >&5
14115echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014116fi
14117
Reid Spencera773bd52006-08-04 18:18:08 +000014118 if test "x$ac_ct_RANLIB" = x; then
14119 RANLIB=":"
14120 else
14121 case $cross_compiling:$ac_tool_warned in
14122yes:)
14123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14124whose name does not start with the host triplet. If you think this
14125configuration is useful to you, please write to autoconf@gnu.org." >&5
14126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14127whose name does not start with the host triplet. If you think this
14128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14129ac_tool_warned=yes ;;
14130esac
14131 RANLIB=$ac_ct_RANLIB
14132 fi
John Criswell7a73b802003-06-30 21:59:07 +000014133else
14134 RANLIB="$ac_cv_prog_RANLIB"
14135fi
14136
14137if test -n "$ac_tool_prefix"; then
14138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14139set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014142if test "${ac_cv_prog_STRIP+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144else
14145 if test -n "$STRIP"; then
14146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14147else
14148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149for as_dir in $PATH
14150do
14151 IFS=$as_save_IFS
14152 test -z "$as_dir" && as_dir=.
14153 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014154 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 +000014155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14157 break 2
14158 fi
14159done
14160done
Reid Spencera773bd52006-08-04 18:18:08 +000014161IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014162
14163fi
14164fi
14165STRIP=$ac_cv_prog_STRIP
14166if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014167 { echo "$as_me:$LINENO: result: $STRIP" >&5
14168echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014169else
Reid Spencera773bd52006-08-04 18:18:08 +000014170 { echo "$as_me:$LINENO: result: no" >&5
14171echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014172fi
14173
Reid Spencera773bd52006-08-04 18:18:08 +000014174
John Criswell7a73b802003-06-30 21:59:07 +000014175fi
14176if test -z "$ac_cv_prog_STRIP"; then
14177 ac_ct_STRIP=$STRIP
14178 # Extract the first word of "strip", so it can be a program name with args.
14179set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014182if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184else
14185 if test -n "$ac_ct_STRIP"; then
14186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14187else
14188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14189for as_dir in $PATH
14190do
14191 IFS=$as_save_IFS
14192 test -z "$as_dir" && as_dir=.
14193 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014194 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 +000014195 ac_cv_prog_ac_ct_STRIP="strip"
14196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14197 break 2
14198 fi
14199done
14200done
Reid Spencera773bd52006-08-04 18:18:08 +000014201IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014202
John Criswell7a73b802003-06-30 21:59:07 +000014203fi
14204fi
14205ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14206if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014207 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14208echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014209else
Reid Spencera773bd52006-08-04 18:18:08 +000014210 { echo "$as_me:$LINENO: result: no" >&5
14211echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014212fi
14213
Reid Spencera773bd52006-08-04 18:18:08 +000014214 if test "x$ac_ct_STRIP" = x; then
14215 STRIP=":"
14216 else
14217 case $cross_compiling:$ac_tool_warned in
14218yes:)
14219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14220whose name does not start with the host triplet. If you think this
14221configuration is useful to you, please write to autoconf@gnu.org." >&5
14222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14223whose name does not start with the host triplet. If you think this
14224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14225ac_tool_warned=yes ;;
14226esac
14227 STRIP=$ac_ct_STRIP
14228 fi
John Criswell7a73b802003-06-30 21:59:07 +000014229else
14230 STRIP="$ac_cv_prog_STRIP"
14231fi
14232
14233
John Criswell7a73b802003-06-30 21:59:07 +000014234old_CC="$CC"
14235old_CFLAGS="$CFLAGS"
14236
14237# Set sane defaults for various variables
14238test -z "$AR" && AR=ar
14239test -z "$AR_FLAGS" && AR_FLAGS=cru
14240test -z "$AS" && AS=as
14241test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014242test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014243test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014244test -z "$DLLTOOL" && DLLTOOL=dlltool
14245test -z "$LD" && LD=ld
14246test -z "$LN_S" && LN_S="ln -s"
14247test -z "$MAGIC_CMD" && MAGIC_CMD=file
14248test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014249test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014250test -z "$OBJDUMP" && OBJDUMP=objdump
14251test -z "$RANLIB" && RANLIB=:
14252test -z "$STRIP" && STRIP=:
14253test -z "$ac_objext" && ac_objext=o
14254
John Criswell7a73b802003-06-30 21:59:07 +000014255# Determine commands to create old-style static archives.
14256old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14257old_postinstall_cmds='chmod 644 $oldlib'
14258old_postuninstall_cmds=
14259
14260if test -n "$RANLIB"; then
14261 case $host_os in
14262 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014264 ;;
14265 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014267 ;;
14268 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014269 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014270fi
14271
Reid Spencera773bd52006-08-04 18:18:08 +000014272for cc_temp in $compiler""; do
14273 case $cc_temp in
14274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14276 \-*) ;;
14277 *) break;;
14278 esac
14279done
14280cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14281
Reid Spencer2706f8c2004-09-19 23:53:36 +000014282
John Criswell47fdd832003-07-14 16:52:07 +000014283# Only perform the check for file, if the check method requires it
14284case $deplibs_check_method in
14285file_magic*)
14286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014287 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14288echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014289if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014291else
John Criswell47fdd832003-07-14 16:52:07 +000014292 case $MAGIC_CMD in
14293[\\/*] | ?:[\\/]*)
14294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14295 ;;
14296*)
14297 lt_save_MAGIC_CMD="$MAGIC_CMD"
14298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14300 for ac_dir in $ac_dummy; do
14301 IFS="$lt_save_ifs"
14302 test -z "$ac_dir" && ac_dir=.
14303 if test -f $ac_dir/${ac_tool_prefix}file; then
14304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14305 if test -n "$file_magic_test_file"; then
14306 case $deplibs_check_method in
14307 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14311 $EGREP "$file_magic_regex" > /dev/null; then
14312 :
14313 else
14314 cat <<EOF 1>&2
14315
14316*** Warning: the command libtool uses to detect shared libraries,
14317*** $file_magic_cmd, produces output that libtool cannot recognize.
14318*** The result is that libtool may fail to recognize shared libraries
14319*** as such. This will affect the creation of libtool libraries that
14320*** depend on shared libraries, but programs linked with such libtool
14321*** libraries will work regardless of this problem. Nevertheless, you
14322*** may want to report the problem to your system manager and/or to
14323*** bug-libtool@gnu.org
14324
14325EOF
14326 fi ;;
14327 esac
14328 fi
14329 break
14330 fi
14331 done
14332 IFS="$lt_save_ifs"
14333 MAGIC_CMD="$lt_save_MAGIC_CMD"
14334 ;;
14335esac
John Criswell7a73b802003-06-30 21:59:07 +000014336fi
John Criswell7a73b802003-06-30 21:59:07 +000014337
John Criswell47fdd832003-07-14 16:52:07 +000014338MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14339if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14341echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014342else
Reid Spencera773bd52006-08-04 18:18:08 +000014343 { echo "$as_me:$LINENO: result: no" >&5
14344echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014345fi
John Criswell7a73b802003-06-30 21:59:07 +000014346
John Criswell47fdd832003-07-14 16:52:07 +000014347if test -z "$lt_cv_path_MAGIC_CMD"; then
14348 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014349 { echo "$as_me:$LINENO: checking for file" >&5
14350echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014351if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354 case $MAGIC_CMD in
14355[\\/*] | ?:[\\/]*)
14356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14357 ;;
14358*)
14359 lt_save_MAGIC_CMD="$MAGIC_CMD"
14360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14362 for ac_dir in $ac_dummy; do
14363 IFS="$lt_save_ifs"
14364 test -z "$ac_dir" && ac_dir=.
14365 if test -f $ac_dir/file; then
14366 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14367 if test -n "$file_magic_test_file"; then
14368 case $deplibs_check_method in
14369 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14373 $EGREP "$file_magic_regex" > /dev/null; then
14374 :
14375 else
14376 cat <<EOF 1>&2
14377
14378*** Warning: the command libtool uses to detect shared libraries,
14379*** $file_magic_cmd, produces output that libtool cannot recognize.
14380*** The result is that libtool may fail to recognize shared libraries
14381*** as such. This will affect the creation of libtool libraries that
14382*** depend on shared libraries, but programs linked with such libtool
14383*** libraries will work regardless of this problem. Nevertheless, you
14384*** may want to report the problem to your system manager and/or to
14385*** bug-libtool@gnu.org
14386
14387EOF
14388 fi ;;
14389 esac
14390 fi
14391 break
14392 fi
14393 done
14394 IFS="$lt_save_ifs"
14395 MAGIC_CMD="$lt_save_MAGIC_CMD"
14396 ;;
14397esac
14398fi
14399
14400MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14401if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014402 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14403echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014404else
Reid Spencera773bd52006-08-04 18:18:08 +000014405 { echo "$as_me:$LINENO: result: no" >&5
14406echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014407fi
14408
14409 else
14410 MAGIC_CMD=:
14411 fi
14412fi
14413
14414 fi
14415 ;;
14416esac
14417
Reid Spencer17795972004-11-18 09:47:37 +000014418enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014419enable_win32_dll=no
14420
Reid Spencera773bd52006-08-04 18:18:08 +000014421# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014422if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014423 enableval=$enable_libtool_lock;
14424fi
John Criswell47fdd832003-07-14 16:52:07 +000014425
John Criswell47fdd832003-07-14 16:52:07 +000014426test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14427
John Criswell7a73b802003-06-30 21:59:07 +000014428
Reid Spencera773bd52006-08-04 18:18:08 +000014429# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014430if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014431 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014432else
14433 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014434fi
14435
John Criswell7a73b802003-06-30 21:59:07 +000014436test -z "$pic_mode" && pic_mode=default
14437
John Criswell47fdd832003-07-14 16:52:07 +000014438# Use C for the default configuration in the libtool script
14439tagname=
14440lt_save_CC="$CC"
14441ac_ext=c
14442ac_cpp='$CPP $CPPFLAGS'
14443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445ac_compiler_gnu=$ac_cv_c_compiler_gnu
14446
14447
14448# Source file extension for C test sources.
14449ac_ext=c
14450
14451# Object file extension for compiled C test sources.
14452objext=o
14453objext=$objext
14454
14455# Code to be used in simple compile tests
14456lt_simple_compile_test_code="int some_variable = 0;\n"
14457
14458# Code to be used in simple link tests
14459lt_simple_link_test_code='int main(){return(0);}\n'
14460
14461
14462# If no C compiler was specified, use CC.
14463LTCC=${LTCC-"$CC"}
14464
Reid Spencera773bd52006-08-04 18:18:08 +000014465# If no C compiler flags were specified, use CFLAGS.
14466LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14467
John Criswell47fdd832003-07-14 16:52:07 +000014468# Allow CC to be a program name with arguments.
14469compiler=$CC
14470
14471
Reid Spencera773bd52006-08-04 18:18:08 +000014472# save warnings/boilerplate of simple test code
14473ac_outfile=conftest.$ac_objext
14474printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14475eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14476_lt_compiler_boilerplate=`cat conftest.err`
14477$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014478
Reid Spencera773bd52006-08-04 18:18:08 +000014479ac_outfile=conftest.$ac_objext
14480printf "$lt_simple_link_test_code" >conftest.$ac_ext
14481eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482_lt_linker_boilerplate=`cat conftest.err`
14483$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014484
14485
John Criswell47fdd832003-07-14 16:52:07 +000014486
14487lt_prog_compiler_no_builtin_flag=
14488
14489if test "$GCC" = yes; then
14490 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14491
Reid Spencer2706f8c2004-09-19 23:53:36 +000014492
Reid Spencera773bd52006-08-04 18:18:08 +000014493{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14494echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014495if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 lt_cv_prog_compiler_rtti_exceptions=no
14499 ac_outfile=conftest.$ac_objext
14500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="-fno-rtti -fno-exceptions"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 # The option is referenced via a variable to avoid confusing sed.
14507 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014511 (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014512 (eval "$lt_compile" 2>conftest.err)
14513 ac_status=$?
14514 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014515 echo "$as_me:14515: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014516 if (exit $ac_status) && test -s "$ac_outfile"; then
14517 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014518 # So say no if there are warnings other than the usual output.
14519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014522 lt_cv_prog_compiler_rtti_exceptions=yes
14523 fi
14524 fi
14525 $rm conftest*
14526
14527fi
Reid Spencera773bd52006-08-04 18:18:08 +000014528{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14529echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014530
14531if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14533else
14534 :
14535fi
14536
14537fi
14538
14539lt_prog_compiler_wl=
14540lt_prog_compiler_pic=
14541lt_prog_compiler_static=
14542
Reid Spencera773bd52006-08-04 18:18:08 +000014543{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14544echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014545
14546 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_prog_compiler_wl='-Wl,'
14548 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014549
14550 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014551 aix*)
14552 # All AIX code is PIC.
14553 if test "$host_cpu" = ia64; then
14554 # AIX 5 now supports IA64 processor
14555 lt_prog_compiler_static='-Bstatic'
14556 fi
John Criswell7a73b802003-06-30 21:59:07 +000014557 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014558
John Criswell7a73b802003-06-30 21:59:07 +000014559 amigaos*)
14560 # FIXME: we need at least 68020 code to build shared libraries, but
14561 # adding the `-m68020' flag to GCC prevents building anything better,
14562 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014563 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014564 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014565
14566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014567 # PIC is the default for these OSes.
14568 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014569
14570 mingw* | pw32* | os2*)
14571 # This hack is so that the source file can tell whether it is being
14572 # built for inclusion in a dll (and should export symbols for example).
14573 lt_prog_compiler_pic='-DDLL_EXPORT'
14574 ;;
14575
John Criswell7a73b802003-06-30 21:59:07 +000014576 darwin* | rhapsody*)
14577 # PIC is the default on this platform
14578 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014579 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014580 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014581
Reid Spencera773bd52006-08-04 18:18:08 +000014582 interix3*)
14583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14584 # Instead, we relocate shared libraries at runtime.
14585 ;;
14586
John Criswell47fdd832003-07-14 16:52:07 +000014587 msdosdjgpp*)
14588 # Just because we use GCC doesn't mean we suddenly get shared libraries
14589 # on systems that don't support them.
14590 lt_prog_compiler_can_build_shared=no
14591 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014592 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014593
John Criswell7a73b802003-06-30 21:59:07 +000014594 sysv4*MP*)
14595 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014596 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014597 fi
14598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014599
14600 hpux*)
14601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14602 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014603 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014604 hppa*64*|ia64*)
14605 # +Z the default
14606 ;;
14607 *)
14608 lt_prog_compiler_pic='-fPIC'
14609 ;;
14610 esac
14611 ;;
14612
John Criswell7a73b802003-06-30 21:59:07 +000014613 *)
John Criswell47fdd832003-07-14 16:52:07 +000014614 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014615 ;;
14616 esac
14617 else
John Criswell47fdd832003-07-14 16:52:07 +000014618 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014619 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014620 aix*)
14621 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014622 if test "$host_cpu" = ia64; then
14623 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014624 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014625 else
John Criswell47fdd832003-07-14 16:52:07 +000014626 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014627 fi
14628 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014629 darwin*)
14630 # PIC is the default on this platform
14631 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014632 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014633 xlc*)
14634 lt_prog_compiler_pic='-qnocommon'
14635 lt_prog_compiler_wl='-Wl,'
14636 ;;
14637 esac
14638 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014639
John Criswell47fdd832003-07-14 16:52:07 +000014640 mingw* | pw32* | os2*)
14641 # This hack is so that the source file can tell whether it is being
14642 # built for inclusion in a dll (and should export symbols for example).
14643 lt_prog_compiler_pic='-DDLL_EXPORT'
14644 ;;
14645
John Criswell7a73b802003-06-30 21:59:07 +000014646 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014647 lt_prog_compiler_wl='-Wl,'
14648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14649 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014650 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014651 hppa*64*|ia64*)
14652 # +Z the default
14653 ;;
14654 *)
14655 lt_prog_compiler_pic='+Z'
14656 ;;
14657 esac
14658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14659 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014660 ;;
14661
John Criswell47fdd832003-07-14 16:52:07 +000014662 irix5* | irix6* | nonstopux*)
14663 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014664 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014665 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014666 ;;
14667
14668 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014669 lt_prog_compiler_pic='-KPIC'
14670 lt_prog_compiler_static='-Bstatic'
14671 ;;
14672
14673 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014674 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014675 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-static'
14679 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014680 pgcc* | pgf77* | pgf90* | pgf95*)
14681 # Portland Group compilers (*not* the Pentium gcc compiler,
14682 # which looks to be a dead project)
14683 lt_prog_compiler_wl='-Wl,'
14684 lt_prog_compiler_pic='-fpic'
14685 lt_prog_compiler_static='-Bstatic'
14686 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014687 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014688 lt_prog_compiler_wl='-Wl,'
14689 # All Alpha code is PIC.
14690 lt_prog_compiler_static='-non_shared'
14691 ;;
14692 esac
John Criswell7a73b802003-06-30 21:59:07 +000014693 ;;
14694
14695 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014696 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014697 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014698 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014699 ;;
14700
John Criswell7a73b802003-06-30 21:59:07 +000014701 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014704 case $cc_basename in
14705 f77* | f90* | f95*)
14706 lt_prog_compiler_wl='-Qoption ld ';;
14707 *)
14708 lt_prog_compiler_wl='-Wl,';;
14709 esac
John Criswell7a73b802003-06-30 21:59:07 +000014710 ;;
14711
14712 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014713 lt_prog_compiler_wl='-Qoption ld '
14714 lt_prog_compiler_pic='-PIC'
14715 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014716 ;;
14717
Reid Spencera773bd52006-08-04 18:18:08 +000014718 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-KPIC'
14721 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014722 ;;
14723
14724 sysv4*MP*)
14725 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014726 lt_prog_compiler_pic='-Kconform_pic'
14727 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014728 fi
14729 ;;
14730
Reid Spencera773bd52006-08-04 18:18:08 +000014731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14732 lt_prog_compiler_wl='-Wl,'
14733 lt_prog_compiler_pic='-KPIC'
14734 lt_prog_compiler_static='-Bstatic'
14735 ;;
14736
14737 unicos*)
14738 lt_prog_compiler_wl='-Wl,'
14739 lt_prog_compiler_can_build_shared=no
14740 ;;
14741
John Criswell47fdd832003-07-14 16:52:07 +000014742 uts4*)
14743 lt_prog_compiler_pic='-pic'
14744 lt_prog_compiler_static='-Bstatic'
14745 ;;
14746
John Criswell7a73b802003-06-30 21:59:07 +000014747 *)
John Criswell47fdd832003-07-14 16:52:07 +000014748 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014749 ;;
14750 esac
14751 fi
14752
Reid Spencera773bd52006-08-04 18:18:08 +000014753{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14754echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014755
John Criswell47fdd832003-07-14 16:52:07 +000014756#
14757# Check to make sure the PIC flag actually works.
14758#
14759if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014760
Reid Spencera773bd52006-08-04 18:18:08 +000014761{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14762echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014763if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
John Criswell47fdd832003-07-14 16:52:07 +000014766 lt_prog_compiler_pic_works=no
14767 ac_outfile=conftest.$ac_objext
14768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14769 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14770 # Insert the option either (1) after the last *FLAGS variable, or
14771 # (2) before a word containing "conftest.", or (3) at the end.
14772 # Note that $ac_compile itself does not contain backslashes and begins
14773 # with a dollar sign (not a hyphen), so the echo should work correctly.
14774 # The option is referenced via a variable to avoid confusing sed.
14775 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014779 (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014780 (eval "$lt_compile" 2>conftest.err)
14781 ac_status=$?
14782 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014783 echo "$as_me:14783: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014784 if (exit $ac_status) && test -s "$ac_outfile"; then
14785 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014786 # So say no if there are warnings other than the usual output.
14787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014790 lt_prog_compiler_pic_works=yes
14791 fi
14792 fi
14793 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014794
John Criswell47fdd832003-07-14 16:52:07 +000014795fi
Reid Spencera773bd52006-08-04 18:18:08 +000014796{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14797echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014798
John Criswell47fdd832003-07-14 16:52:07 +000014799if test x"$lt_prog_compiler_pic_works" = xyes; then
14800 case $lt_prog_compiler_pic in
14801 "" | " "*) ;;
14802 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14803 esac
John Criswell7a73b802003-06-30 21:59:07 +000014804else
John Criswell47fdd832003-07-14 16:52:07 +000014805 lt_prog_compiler_pic=
14806 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014807fi
14808
John Criswell7a73b802003-06-30 21:59:07 +000014809fi
Reid Spencera773bd52006-08-04 18:18:08 +000014810case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014811 # For platforms which do not support PIC, -DPIC is meaningless:
14812 *djgpp*)
14813 lt_prog_compiler_pic=
14814 ;;
14815 *)
14816 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14817 ;;
14818esac
John Criswell7a73b802003-06-30 21:59:07 +000014819
Reid Spencera773bd52006-08-04 18:18:08 +000014820#
14821# Check to make sure the static flag actually works.
14822#
14823wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14824{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14825echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14826if test "${lt_prog_compiler_static_works+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828else
14829 lt_prog_compiler_static_works=no
14830 save_LDFLAGS="$LDFLAGS"
14831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14832 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14834 # The linker can only warn and ignore the option if not recognized
14835 # So say no if there are warnings
14836 if test -s conftest.err; then
14837 # Append any errors to the config.log.
14838 cat conftest.err 1>&5
14839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14841 if diff conftest.exp conftest.er2 >/dev/null; then
14842 lt_prog_compiler_static_works=yes
14843 fi
14844 else
14845 lt_prog_compiler_static_works=yes
14846 fi
14847 fi
14848 $rm conftest*
14849 LDFLAGS="$save_LDFLAGS"
14850
14851fi
14852{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14853echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14854
14855if test x"$lt_prog_compiler_static_works" = xyes; then
14856 :
14857else
14858 lt_prog_compiler_static=
14859fi
14860
14861
14862{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14863echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014864if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866else
John Criswell47fdd832003-07-14 16:52:07 +000014867 lt_cv_prog_compiler_c_o=no
14868 $rm -r conftest 2>/dev/null
14869 mkdir conftest
14870 cd conftest
14871 mkdir out
14872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014873
John Criswell47fdd832003-07-14 16:52:07 +000014874 lt_compiler_flag="-o out/conftest2.$ac_objext"
14875 # Insert the option either (1) after the last *FLAGS variable, or
14876 # (2) before a word containing "conftest.", or (3) at the end.
14877 # Note that $ac_compile itself does not contain backslashes and begins
14878 # with a dollar sign (not a hyphen), so the echo should work correctly.
14879 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014883 (eval echo "\"\$as_me:14883: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014884 (eval "$lt_compile" 2>out/conftest.err)
14885 ac_status=$?
14886 cat out/conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000014887 echo "$as_me:14887: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14889 then
14890 # The compiler can only warn and ignore the option if not recognized
14891 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014895 lt_cv_prog_compiler_c_o=yes
14896 fi
14897 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014898 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014899 $rm conftest*
14900 # SGI C++ compiler will create directory out/ii_files/ for
14901 # template instantiation
14902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14903 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014904 cd ..
14905 rmdir conftest
14906 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014907
14908fi
Reid Spencera773bd52006-08-04 18:18:08 +000014909{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14910echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014911
John Criswell7a73b802003-06-30 21:59:07 +000014912
John Criswell7a73b802003-06-30 21:59:07 +000014913hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014914if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014915 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14917echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014918 hard_links=yes
14919 $rm conftest*
14920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14921 touch conftest.a
14922 ln conftest.a conftest.b 2>&5 || hard_links=no
14923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014924 { echo "$as_me:$LINENO: result: $hard_links" >&5
14925echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014926 if test "$hard_links" = no; then
14927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14928echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14929 need_locks=warn
14930 fi
14931else
14932 need_locks=no
14933fi
John Criswell7a73b802003-06-30 21:59:07 +000014934
Reid Spencera773bd52006-08-04 18:18:08 +000014935{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014937
14938 runpath_var=
14939 allow_undefined_flag=
14940 enable_shared_with_static_runtimes=no
14941 archive_cmds=
14942 archive_expsym_cmds=
14943 old_archive_From_new_cmds=
14944 old_archive_from_expsyms_cmds=
14945 export_dynamic_flag_spec=
14946 whole_archive_flag_spec=
14947 thread_safe_flag_spec=
14948 hardcode_libdir_flag_spec=
14949 hardcode_libdir_flag_spec_ld=
14950 hardcode_libdir_separator=
14951 hardcode_direct=no
14952 hardcode_minus_L=no
14953 hardcode_shlibpath_var=unsupported
14954 link_all_deplibs=unknown
14955 hardcode_automatic=no
14956 module_cmds=
14957 module_expsym_cmds=
14958 always_export_symbols=no
14959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14960 # include_expsyms should be a list of space-separated symbols to be *always*
14961 # included in the symbol list
14962 include_expsyms=
14963 # exclude_expsyms can be an extended regexp of symbols to exclude
14964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14966 # as well as any symbol that contains `d'.
14967 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14969 # platforms (ab)use it in PIC code, but their linkers get confused if
14970 # the symbol is explicitly referenced. Since portable code cannot
14971 # rely on this symbol name, it's probably fine to never include it in
14972 # preloaded symbol tables.
14973 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014974 # Just being paranoid about ensuring that cc_basename is set.
14975 for cc_temp in $compiler""; do
14976 case $cc_temp in
14977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14979 \-*) ;;
14980 *) break;;
14981 esac
14982done
14983cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014984
14985 case $host_os in
14986 cygwin* | mingw* | pw32*)
14987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14988 # When not using gcc, we currently assume that we are using
14989 # Microsoft Visual C++.
14990 if test "$GCC" != yes; then
14991 with_gnu_ld=no
14992 fi
14993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014994 interix*)
14995 # we just hope/assume this is gcc and not c89 (= MSVC++)
14996 with_gnu_ld=yes
14997 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014998 openbsd*)
14999 with_gnu_ld=no
15000 ;;
15001 esac
15002
15003 ld_shlibs=yes
15004 if test "$with_gnu_ld" = yes; then
15005 # If archive_cmds runs LD, not CC, wlarc should be empty
15006 wlarc='${wl}'
15007
Reid Spencera773bd52006-08-04 18:18:08 +000015008 # Set some defaults for GNU ld with shared library support. These
15009 # are reset later if shared libraries are not supported. Putting them
15010 # here allows them to be overridden if necessary.
15011 runpath_var=LD_RUN_PATH
15012 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15013 export_dynamic_flag_spec='${wl}--export-dynamic'
15014 # ancient GNU ld didn't support --whole-archive et. al.
15015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15016 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15017 else
15018 whole_archive_flag_spec=
15019 fi
15020 supports_anon_versioning=no
15021 case `$LD -v 2>/dev/null` in
15022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15025 *\ 2.11.*) ;; # other 2.11 versions
15026 *) supports_anon_versioning=yes ;;
15027 esac
15028
John Criswell47fdd832003-07-14 16:52:07 +000015029 # See if GNU ld supports shared libraries.
15030 case $host_os in
15031 aix3* | aix4* | aix5*)
15032 # On AIX/PPC, the GNU linker is very broken
15033 if test "$host_cpu" != ia64; then
15034 ld_shlibs=no
15035 cat <<EOF 1>&2
15036
15037*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15038*** to be unable to reliably create shared libraries on AIX.
15039*** Therefore, libtool is disabling shared libraries support. If you
15040*** really care for shared libraries, you may want to modify your PATH
15041*** so that a non-GNU linker is found, and then restart.
15042
15043EOF
15044 fi
15045 ;;
15046
15047 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015048 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 +000015049 hardcode_libdir_flag_spec='-L$libdir'
15050 hardcode_minus_L=yes
15051
15052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15053 # that the semantics of dynamic libraries on AmigaOS, at least up
15054 # to version 4, is to share data among multiple programs linked
15055 # with the same dynamic library. Since this doesn't match the
15056 # behavior of shared libraries on other platforms, we can't use
15057 # them.
15058 ld_shlibs=no
15059 ;;
15060
15061 beos*)
15062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063 allow_undefined_flag=unsupported
15064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15065 # support --undefined. This deserves some investigation. FIXME
15066 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15067 else
15068 ld_shlibs=no
15069 fi
15070 ;;
15071
15072 cygwin* | mingw* | pw32*)
15073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15074 # as there is no search path for DLLs.
15075 hardcode_libdir_flag_spec='-L$libdir'
15076 allow_undefined_flag=unsupported
15077 always_export_symbols=no
15078 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015079 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 +000015080
15081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015082 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 +000015083 # If the export-symbols file already is a .def file (1st line
15084 # is EXPORTS), use it as is; otherwise, prepend...
15085 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15086 cp $export_symbols $output_objdir/$soname.def;
15087 else
15088 echo EXPORTS > $output_objdir/$soname.def;
15089 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015090 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15092 else
15093 ld_shlibs=no
15094 fi
15095 ;;
15096
15097 interix3*)
15098 hardcode_direct=no
15099 hardcode_shlibpath_var=no
15100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15101 export_dynamic_flag_spec='${wl}-E'
15102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15103 # Instead, shared libraries are loaded at an image base (0x10000000 by
15104 # default) and relocated if they conflict, which is a slow very memory
15105 # consuming and fragmenting process. To avoid this, we pick a random,
15106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15109 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'
15110 ;;
15111
15112 linux*)
15113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114 tmp_addflag=
15115 case $cc_basename,$host_cpu in
15116 pgcc*) # Portland Group C compiler
15117 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'
15118 tmp_addflag=' $pic_flag'
15119 ;;
15120 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15121 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'
15122 tmp_addflag=' $pic_flag -Mnomain' ;;
15123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15124 tmp_addflag=' -i_dynamic' ;;
15125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15126 tmp_addflag=' -i_dynamic -nofor_main' ;;
15127 ifc* | ifort*) # Intel Fortran compiler
15128 tmp_addflag=' -nofor_main' ;;
15129 esac
15130 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131
15132 if test $supports_anon_versioning = yes; then
15133 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15135 $echo "local: *; };" >> $output_objdir/$libname.ver~
15136 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15137 fi
John Criswell47fdd832003-07-14 16:52:07 +000015138 else
15139 ld_shlibs=no
15140 fi
15141 ;;
15142
15143 netbsd*)
15144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15146 wlarc=
15147 else
15148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150 fi
15151 ;;
15152
Reid Spencera773bd52006-08-04 18:18:08 +000015153 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15155 ld_shlibs=no
15156 cat <<EOF 1>&2
15157
15158*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15159*** create shared libraries on Solaris systems. Therefore, libtool
15160*** is disabling shared libraries support. We urge you to upgrade GNU
15161*** binutils to release 2.9.1 or newer. Another option is to modify
15162*** your PATH or compiler configuration so that the native linker is
15163*** used, and then restart.
15164
15165EOF
15166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15169 else
15170 ld_shlibs=no
15171 fi
15172 ;;
15173
Reid Spencera773bd52006-08-04 18:18:08 +000015174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15175 case `$LD -v 2>&1` in
15176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15177 ld_shlibs=no
15178 cat <<_LT_EOF 1>&2
15179
15180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15181*** reliably create shared libraries on SCO systems. Therefore, libtool
15182*** is disabling shared libraries support. We urge you to upgrade GNU
15183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15184*** your PATH or compiler configuration so that the native linker is
15185*** used, and then restart.
15186
15187_LT_EOF
15188 ;;
15189 *)
15190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15191 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15194 else
15195 ld_shlibs=no
15196 fi
15197 ;;
15198 esac
15199 ;;
15200
John Criswell47fdd832003-07-14 16:52:07 +000015201 sunos4*)
15202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15203 wlarc=
15204 hardcode_direct=yes
15205 hardcode_shlibpath_var=no
15206 ;;
15207
15208 *)
15209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15212 else
15213 ld_shlibs=no
15214 fi
15215 ;;
15216 esac
15217
Reid Spencera773bd52006-08-04 18:18:08 +000015218 if test "$ld_shlibs" = no; then
15219 runpath_var=
15220 hardcode_libdir_flag_spec=
15221 export_dynamic_flag_spec=
15222 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015223 fi
15224 else
15225 # PORTME fill in a description of your system's linker (not GNU ld)
15226 case $host_os in
15227 aix3*)
15228 allow_undefined_flag=unsupported
15229 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015230 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 +000015231 # Note: this linker hardcodes the directories in LIBPATH if there
15232 # are no directories specified by -L.
15233 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015235 # Neither direct hardcoding nor static linking is supported with a
15236 # broken collect2.
15237 hardcode_direct=unsupported
15238 fi
15239 ;;
15240
15241 aix4* | aix5*)
15242 if test "$host_cpu" = ia64; then
15243 # On IA64, the linker does run time linking by default, so we don't
15244 # have to do anything special.
15245 aix_use_runtimelinking=no
15246 exp_sym_flag='-Bexport'
15247 no_entry_flag=""
15248 else
15249 # If we're using GNU nm, then we don't want the "-C" option.
15250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15252 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'
15253 else
15254 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'
15255 fi
15256 aix_use_runtimelinking=no
15257
15258 # Test if we are trying to use run time linking or normal
15259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15260 # need to do runtime linking.
15261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15262 for ld_flag in $LDFLAGS; do
15263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15264 aix_use_runtimelinking=yes
15265 break
15266 fi
15267 done
Reid Spencera773bd52006-08-04 18:18:08 +000015268 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015269 esac
15270
15271 exp_sym_flag='-bexport'
15272 no_entry_flag='-bnoentry'
15273 fi
15274
15275 # When large executables or shared objects are built, AIX ld can
15276 # have problems creating the table of contents. If linking a library
15277 # or program results in "error TOC overflow" add -mminimal-toc to
15278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15280
15281 archive_cmds=''
15282 hardcode_direct=yes
15283 hardcode_libdir_separator=':'
15284 link_all_deplibs=yes
15285
15286 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015287 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015288 # We only want to do this on AIX 4.2 and lower, the check
15289 # below for broken collect2 doesn't work under 4.3+
15290 collect2name=`${CC} -print-prog-name=collect2`
15291 if test -f "$collect2name" && \
15292 strings "$collect2name" | grep resolve_lib_name >/dev/null
15293 then
15294 # We have reworked collect2
15295 hardcode_direct=yes
15296 else
15297 # We have old collect2
15298 hardcode_direct=unsupported
15299 # It fails to find uninstalled libraries when the uninstalled
15300 # path is not listed in the libpath. Setting hardcode_minus_L
15301 # to unsupported forces relinking
15302 hardcode_minus_L=yes
15303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_libdir_separator=
15305 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015306 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015307 esac
15308 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015309 if test "$aix_use_runtimelinking" = yes; then
15310 shared_flag="$shared_flag "'${wl}-G'
15311 fi
John Criswell47fdd832003-07-14 16:52:07 +000015312 else
15313 # not using gcc
15314 if test "$host_cpu" = ia64; then
15315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15316 # chokes on -Wl,-G. The following line is correct:
15317 shared_flag='-G'
15318 else
Reid Spencera773bd52006-08-04 18:18:08 +000015319 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015320 shared_flag='${wl}-G'
15321 else
15322 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015323 fi
John Criswell47fdd832003-07-14 16:52:07 +000015324 fi
15325 fi
15326
15327 # It seems that -bexpall does not export symbols beginning with
15328 # underscore (_), so it is better to generate a list of symbols to export.
15329 always_export_symbols=yes
15330 if test "$aix_use_runtimelinking" = yes; then
15331 # Warning - without using the other runtime loading flags (-brtl),
15332 # -berok will link without error, but may produce a broken library.
15333 allow_undefined_flag='-berok'
15334 # Determine the default libpath from the value encoded in an empty executable.
15335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015336/* confdefs.h. */
15337_ACEOF
15338cat confdefs.h >>conftest.$ac_ext
15339cat >>conftest.$ac_ext <<_ACEOF
15340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015341
John Criswell7a73b802003-06-30 21:59:07 +000015342int
15343main ()
15344{
John Criswell47fdd832003-07-14 16:52:07 +000015345
John Criswell7a73b802003-06-30 21:59:07 +000015346 ;
15347 return 0;
15348}
15349_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015350rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015351if { (ac_try="$ac_link"
15352case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015384
John Criswell47fdd832003-07-14 16:52:07 +000015385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15386}'`
15387# Check for a 64-bit object if we didn't find anything.
15388if 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; }
15389}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015390else
15391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015392sed 's/^/| /' conftest.$ac_ext >&5
15393
Reid Spencera773bd52006-08-04 18:18:08 +000015394
John Criswell7a73b802003-06-30 21:59:07 +000015395fi
Reid Spencera773bd52006-08-04 18:18:08 +000015396
Tanya Lattnercf067672008-01-17 05:57:22 +000015397rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015398 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015400
John Criswell47fdd832003-07-14 16:52:07 +000015401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015402 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 +000015403 else
15404 if test "$host_cpu" = ia64; then
15405 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15406 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015407 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 +000015408 else
15409 # Determine the default libpath from the value encoded in an empty executable.
15410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015416
John Criswell47fdd832003-07-14 16:52:07 +000015417int
15418main ()
15419{
John Criswell7a73b802003-06-30 21:59:07 +000015420
John Criswell47fdd832003-07-14 16:52:07 +000015421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015426if { (ac_try="$ac_link"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015438 (exit $ac_status); } &&
15439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453esac
15454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_try") 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015459
John Criswell47fdd832003-07-14 16:52:07 +000015460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15461}'`
15462# Check for a 64-bit object if we didn't find anything.
15463if 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; }
15464}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015465else
John Criswell47fdd832003-07-14 16:52:07 +000015466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015467sed 's/^/| /' conftest.$ac_ext >&5
15468
Reid Spencera773bd52006-08-04 18:18:08 +000015469
John Criswell47fdd832003-07-14 16:52:07 +000015470fi
Reid Spencera773bd52006-08-04 18:18:08 +000015471
Tanya Lattnercf067672008-01-17 05:57:22 +000015472rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015473 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015475
John Criswell47fdd832003-07-14 16:52:07 +000015476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15477 # Warning - without using the other run time loading flags,
15478 # -berok will link without error, but may produce a broken library.
15479 no_undefined_flag=' ${wl}-bernotok'
15480 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015481 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015482 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015483 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015484 # This is similar to how AIX traditionally builds its shared libraries.
15485 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 +000015486 fi
15487 fi
John Criswell7a73b802003-06-30 21:59:07 +000015488 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015489
15490 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015491 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 +000015492 hardcode_libdir_flag_spec='-L$libdir'
15493 hardcode_minus_L=yes
15494 # see comment about different semantics on the GNU ld section
15495 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015496 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015497
Reid Spencer2706f8c2004-09-19 23:53:36 +000015498 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015499 export_dynamic_flag_spec=-rdynamic
15500 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015501
John Criswell47fdd832003-07-14 16:52:07 +000015502 cygwin* | mingw* | pw32*)
15503 # When not using gcc, we currently assume that we are using
15504 # Microsoft Visual C++.
15505 # hardcode_libdir_flag_spec is actually meaningless, as there is
15506 # no search path for DLLs.
15507 hardcode_libdir_flag_spec=' '
15508 allow_undefined_flag=unsupported
15509 # Tell ltmain to make .lib files, not .a files.
15510 libext=lib
15511 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015512 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015513 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015515 # The linker will automatically build a .lib file if we build a DLL.
15516 old_archive_From_new_cmds='true'
15517 # FIXME: Should let the user specify the lib program.
15518 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15519 fix_srcfile_path='`cygpath -w "$srcfile"`'
15520 enable_shared_with_static_runtimes=yes
15521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015522
John Criswell47fdd832003-07-14 16:52:07 +000015523 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015524 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015525 rhapsody* | darwin1.[012])
15526 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15527 ;;
15528 *) # Darwin 1.3 on
15529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531 else
15532 case ${MACOSX_DEPLOYMENT_TARGET} in
15533 10.[012])
15534 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15535 ;;
15536 10.*)
15537 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15538 ;;
15539 esac
15540 fi
15541 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015542 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015543 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015544 hardcode_direct=no
15545 hardcode_automatic=yes
15546 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015547 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015548 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549 if test "$GCC" = yes ; then
15550 output_verbose_link_cmd='echo'
15551 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015553 # 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 +000015554 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}'
15555 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 +000015556 else
Reid Spencera773bd52006-08-04 18:18:08 +000015557 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015558 xlc*)
15559 output_verbose_link_cmd='echo'
15560 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015562 # 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 +000015563 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}'
15564 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 +000015565 ;;
15566 *)
15567 ld_shlibs=no
15568 ;;
15569 esac
John Criswell7a73b802003-06-30 21:59:07 +000015570 fi
John Criswell47fdd832003-07-14 16:52:07 +000015571 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015572
John Criswell47fdd832003-07-14 16:52:07 +000015573 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015575 hardcode_libdir_flag_spec='-L$libdir'
15576 hardcode_shlibpath_var=no
15577 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015578
John Criswell47fdd832003-07-14 16:52:07 +000015579 freebsd1*)
15580 ld_shlibs=no
15581 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015582
John Criswell47fdd832003-07-14 16:52:07 +000015583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15584 # support. Future versions do this automatically, but an explicit c++rt0.o
15585 # does not break anything, and helps significantly (at the cost of a little
15586 # extra space).
15587 freebsd2.2*)
15588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15589 hardcode_libdir_flag_spec='-R$libdir'
15590 hardcode_direct=yes
15591 hardcode_shlibpath_var=no
15592 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015593
John Criswell47fdd832003-07-14 16:52:07 +000015594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15595 freebsd2*)
15596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct=yes
15598 hardcode_minus_L=yes
15599 hardcode_shlibpath_var=no
15600 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015601
John Criswell47fdd832003-07-14 16:52:07 +000015602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015603 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15605 hardcode_libdir_flag_spec='-R$libdir'
15606 hardcode_direct=yes
15607 hardcode_shlibpath_var=no
15608 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015609
John Criswell47fdd832003-07-14 16:52:07 +000015610 hpux9*)
15611 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015612 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 +000015613 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015614 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 +000015615 fi
15616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618 hardcode_direct=yes
15619
15620 # hardcode_minus_L: Not really in the search PATH,
15621 # but as the default location of the library.
15622 hardcode_minus_L=yes
15623 export_dynamic_flag_spec='${wl}-E'
15624 ;;
15625
Reid Spencera773bd52006-08-04 18:18:08 +000015626 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629 else
15630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15631 fi
15632 if test "$with_gnu_ld" = no; then
15633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_separator=:
15635
15636 hardcode_direct=yes
15637 export_dynamic_flag_spec='${wl}-E'
15638
15639 # hardcode_minus_L: Not really in the search PATH,
15640 # but as the default location of the library.
15641 hardcode_minus_L=yes
15642 fi
15643 ;;
15644
15645 hpux11*)
15646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15647 case $host_cpu in
15648 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015651 ia64*)
15652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15653 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015654 *)
15655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15656 ;;
15657 esac
15658 else
Reid Spencera773bd52006-08-04 18:18:08 +000015659 case $host_cpu in
15660 hppa*64*)
15661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15662 ;;
15663 ia64*)
15664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015665 ;;
15666 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015667 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 +000015668 ;;
15669 esac
15670 fi
15671 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15673 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015674
Reid Spencera773bd52006-08-04 18:18:08 +000015675 case $host_cpu in
15676 hppa*64*|ia64*)
15677 hardcode_libdir_flag_spec_ld='+b $libdir'
15678 hardcode_direct=no
15679 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015680 ;;
15681 *)
John Criswell47fdd832003-07-14 16:52:07 +000015682 hardcode_direct=yes
15683 export_dynamic_flag_spec='${wl}-E'
15684
15685 # hardcode_minus_L: Not really in the search PATH,
15686 # but as the default location of the library.
15687 hardcode_minus_L=yes
15688 ;;
15689 esac
15690 fi
15691 ;;
15692
15693 irix5* | irix6* | nonstopux*)
15694 if test "$GCC" = yes; then
15695 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'
15696 else
15697 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'
15698 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15699 fi
15700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701 hardcode_libdir_separator=:
15702 link_all_deplibs=yes
15703 ;;
15704
15705 netbsd*)
15706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15708 else
15709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15710 fi
15711 hardcode_libdir_flag_spec='-R$libdir'
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15714 ;;
15715
15716 newsos6)
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_direct=yes
15719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 hardcode_libdir_separator=:
15721 hardcode_shlibpath_var=no
15722 ;;
15723
15724 openbsd*)
15725 hardcode_direct=yes
15726 hardcode_shlibpath_var=no
15727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015729 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 +000015730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15731 export_dynamic_flag_spec='${wl}-E'
15732 else
15733 case $host_os in
15734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_libdir_flag_spec='-R$libdir'
15737 ;;
15738 *)
15739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15741 ;;
15742 esac
15743 fi
15744 ;;
15745
15746 os2*)
15747 hardcode_libdir_flag_spec='-L$libdir'
15748 hardcode_minus_L=yes
15749 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015750 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 +000015751 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15752 ;;
15753
15754 osf3*)
15755 if test "$GCC" = yes; then
15756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15757 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'
15758 else
15759 allow_undefined_flag=' -expect_unresolved \*'
15760 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'
15761 fi
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15764 ;;
15765
15766 osf4* | osf5*) # as osf3* with the addition of -msym flag
15767 if test "$GCC" = yes; then
15768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15769 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'
15770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15771 else
15772 allow_undefined_flag=' -expect_unresolved \*'
15773 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 +000015774 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 +000015775 $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 +000015776
John Criswell47fdd832003-07-14 16:52:07 +000015777 # Both c and cxx compiler support -rpath directly
15778 hardcode_libdir_flag_spec='-rpath $libdir'
15779 fi
15780 hardcode_libdir_separator=:
15781 ;;
15782
John Criswell47fdd832003-07-14 16:52:07 +000015783 solaris*)
15784 no_undefined_flag=' -z text'
15785 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015786 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $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 +000015790 else
Reid Spencera773bd52006-08-04 18:18:08 +000015791 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015792 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015793 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15794 $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 +000015795 fi
15796 hardcode_libdir_flag_spec='-R$libdir'
15797 hardcode_shlibpath_var=no
15798 case $host_os in
15799 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015800 *)
15801 # The compiler driver will combine linker options so we
15802 # cannot just pass the convience library names through
15803 # without $wl, iff we do not link with $LD.
15804 # Luckily, gcc supports the same syntax we need for Sun Studio.
15805 # Supported since Solaris 2.6 (maybe 2.5.1?)
15806 case $wlarc in
15807 '')
15808 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15809 *)
15810 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' ;;
15811 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015812 esac
15813 link_all_deplibs=yes
15814 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015815
John Criswell47fdd832003-07-14 16:52:07 +000015816 sunos4*)
15817 if test "x$host_vendor" = xsequent; then
15818 # Use $CC to link under sequent, because it throws in some extra .o
15819 # files that make .init and .fini sections work.
15820 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15821 else
15822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15823 fi
15824 hardcode_libdir_flag_spec='-L$libdir'
15825 hardcode_direct=yes
15826 hardcode_minus_L=yes
15827 hardcode_shlibpath_var=no
15828 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015829
John Criswell47fdd832003-07-14 16:52:07 +000015830 sysv4)
15831 case $host_vendor in
15832 sni)
15833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_direct=yes # is this really true???
15835 ;;
15836 siemens)
15837 ## LD is ld it makes a PLAMLIB
15838 ## CC just makes a GrossModule.
15839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15840 reload_cmds='$CC -r -o $output$reload_objs'
15841 hardcode_direct=no
15842 ;;
15843 motorola)
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15846 ;;
15847 esac
15848 runpath_var='LD_RUN_PATH'
15849 hardcode_shlibpath_var=no
15850 ;;
15851
15852 sysv4.3*)
15853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_shlibpath_var=no
15855 export_dynamic_flag_spec='-Bexport'
15856 ;;
15857
15858 sysv4*MP*)
15859 if test -d /usr/nec; then
15860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_shlibpath_var=no
15862 runpath_var=LD_RUN_PATH
15863 hardcode_runpath_var=yes
15864 ld_shlibs=yes
15865 fi
15866 ;;
15867
Reid Spencera773bd52006-08-04 18:18:08 +000015868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15869 no_undefined_flag='${wl}-z,text'
15870 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015871 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015872 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015873
John Criswell47fdd832003-07-14 16:52:07 +000015874 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876 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 +000015877 else
Reid Spencera773bd52006-08-04 18:18:08 +000015878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 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 +000015880 fi
John Criswell47fdd832003-07-14 16:52:07 +000015881 ;;
15882
Reid Spencera773bd52006-08-04 18:18:08 +000015883 sysv5* | sco3.2v5* | sco5v6*)
15884 # Note: We can NOT use -z defs as we might desire, because we do not
15885 # link with -lc, and that would cause any symbols used from libc to
15886 # always be unresolved, which means just about no library would
15887 # ever link correctly. If we're not using GNU ld we use -z text
15888 # though, which does catch some bad symbols but isn't as heavy-handed
15889 # as -z defs.
15890 no_undefined_flag='${wl}-z,text'
15891 allow_undefined_flag='${wl}-z,nodefs'
15892 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015893 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015894 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15895 hardcode_libdir_separator=':'
15896 link_all_deplibs=yes
15897 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015898 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015899
15900 if test "$GCC" = yes; then
15901 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 else
15904 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 fi
John Criswell47fdd832003-07-14 16:52:07 +000015907 ;;
15908
15909 uts4*)
15910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911 hardcode_libdir_flag_spec='-L$libdir'
15912 hardcode_shlibpath_var=no
15913 ;;
15914
15915 *)
15916 ld_shlibs=no
15917 ;;
15918 esac
15919 fi
15920
Reid Spencera773bd52006-08-04 18:18:08 +000015921{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15922echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015923test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015924
John Criswell47fdd832003-07-14 16:52:07 +000015925#
15926# Do we need to explicitly link libc?
15927#
15928case "x$archive_cmds_need_lc" in
15929x|xyes)
15930 # Assume -lc should be added
15931 archive_cmds_need_lc=yes
15932
15933 if test "$enable_shared" = yes && test "$GCC" = yes; then
15934 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015935 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015936 # FIXME: we may have to deal with multi-command sequences.
15937 ;;
15938 '$CC '*)
15939 # Test whether the compiler implicitly links with -lc since on some
15940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15941 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015942 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15943echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015944 $rm conftest*
15945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15946
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } 2>conftest.err; then
15952 soname=conftest
15953 lib=conftest
15954 libobjs=conftest.$ac_objext
15955 deplibs=
15956 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015957 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015958 compiler_flags=-v
15959 linker_flags=-v
15960 verstring=
15961 output_objdir=.
15962 libname=conftest
15963 lt_save_allow_undefined_flag=$allow_undefined_flag
15964 allow_undefined_flag=
15965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15966 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }
15970 then
15971 archive_cmds_need_lc=no
15972 else
15973 archive_cmds_need_lc=yes
15974 fi
15975 allow_undefined_flag=$lt_save_allow_undefined_flag
15976 else
15977 cat conftest.err 1>&5
15978 fi
15979 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015980 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15981echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015982 ;;
15983 esac
15984 fi
15985 ;;
15986esac
15987
Reid Spencera773bd52006-08-04 18:18:08 +000015988{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15989echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015990library_names_spec=
15991libname_spec='lib$name'
15992soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015993shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015994postinstall_cmds=
15995postuninstall_cmds=
15996finish_cmds=
15997finish_eval=
15998shlibpath_var=
15999shlibpath_overrides_runpath=unknown
16000version_type=none
16001dynamic_linker="$host_os ld.so"
16002sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016003if test "$GCC" = yes; then
16004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16006 # if the path contains ";" then we assume it to be the separator
16007 # otherwise default to the standard path separator (i.e. ":") - it is
16008 # assumed that no part of a normal pathname contains ";" but that should
16009 # okay in the real world where ";" in dirpaths is itself problematic.
16010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16011 else
16012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16013 fi
16014else
16015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16016fi
16017need_lib_prefix=unknown
16018hardcode_into_libs=no
16019
16020# when you set need_version to no, make sure it does not cause -set_version
16021# flags to be left without arguments
16022need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016023
16024case $host_os in
16025aix3*)
16026 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016028 shlibpath_var=LIBPATH
16029
John Criswell47fdd832003-07-14 16:52:07 +000016030 # AIX 3 has no versioning support, so we append a major version to the name.
16031 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016032 ;;
16033
16034aix4* | aix5*)
16035 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016036 need_lib_prefix=no
16037 need_version=no
16038 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016039 if test "$host_cpu" = ia64; then
16040 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016042 shlibpath_var=LD_LIBRARY_PATH
16043 else
16044 # With GCC up to 2.95.x, collect2 would create an import file
16045 # for dependence libraries. The import file would start with
16046 # the line `#! .'. This would cause the generated library to
16047 # depend on `.', always an invalid library. This was fixed in
16048 # development snapshots of GCC prior to 3.0.
16049 case $host_os in
16050 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16052 echo ' yes '
16053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16054 :
16055 else
16056 can_build_shared=no
16057 fi
16058 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016059 esac
John Criswell47fdd832003-07-14 16:52:07 +000016060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16061 # soname into executable. Probably we can add versioning support to
16062 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016063 if test "$aix_use_runtimelinking" = yes; then
16064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16065 # instead of lib<name>.a to let people know that these are not
16066 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016068 else
16069 # We preserve .a as extension for shared libraries through AIX4.2
16070 # and later when we are not doing run time linking.
16071 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016072 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016073 fi
16074 shlibpath_var=LIBPATH
16075 fi
16076 ;;
16077
16078amigaos*)
16079 library_names_spec='$libname.ixlibrary $libname.a'
16080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016081 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 +000016082 ;;
16083
16084beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016085 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016086 dynamic_linker="$host_os ld.so"
16087 shlibpath_var=LIBRARY_PATH
16088 ;;
16089
Reid Spencer2706f8c2004-09-19 23:53:36 +000016090bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016091 version_type=linux
16092 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016099 # the default ld.so.conf also contains /usr/contrib/lib and
16100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16101 # libtool to hard-code these into programs
16102 ;;
16103
16104cygwin* | mingw* | pw32*)
16105 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016107 need_version=no
16108 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016109
John Criswell7a73b802003-06-30 21:59:07 +000016110 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016111 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016112 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016114 postinstall_cmds='base_file=`basename \${file}`~
16115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16116 dldir=$destdir/`dirname \$dlpath`~
16117 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016118 $install_prog $dir/$dlname \$dldir/$dlname~
16119 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16121 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016122 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016123 shlibpath_overrides_runpath=yes
16124
16125 case $host_os in
16126 cygwin*)
16127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16128 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 +000016129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016130 ;;
16131 mingw*)
16132 # MinGW DLLs use traditional 'lib' prefix
16133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16136 # It is most probably a Windows format PATH printed by
16137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16138 # path with ; separators, and with drive letters. We can handle the
16139 # drive letters (cygwin fileutils understands them), so leave them,
16140 # especially as we might pass files found there to a mingw objdump,
16141 # which wouldn't understand a cygwinified path. Ahh.
16142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16143 else
16144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16145 fi
16146 ;;
16147 pw32*)
16148 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016149 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 +000016150 ;;
16151 esac
John Criswell7a73b802003-06-30 21:59:07 +000016152 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016153
John Criswell7a73b802003-06-30 21:59:07 +000016154 *)
John Criswell47fdd832003-07-14 16:52:07 +000016155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016156 ;;
16157 esac
16158 dynamic_linker='Win32 ld.exe'
16159 # FIXME: first we should search . and the directory the executable is in
16160 shlibpath_var=PATH
16161 ;;
16162
16163darwin* | rhapsody*)
16164 dynamic_linker="$host_os dyld"
16165 version_type=darwin
16166 need_lib_prefix=no
16167 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016169 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016170 shlibpath_overrides_runpath=yes
16171 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016172 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016174 if test "$GCC" = yes; then
16175 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"`
16176 else
16177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016178 fi
16179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16180 ;;
16181
16182dgux*)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016189 ;;
16190
16191freebsd1*)
16192 dynamic_linker=no
16193 ;;
16194
Reid Spencer2706f8c2004-09-19 23:53:36 +000016195kfreebsd*-gnu)
16196 version_type=linux
16197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=no
16203 hardcode_into_libs=yes
16204 dynamic_linker='GNU ld.so'
16205 ;;
16206
Reid Spencera773bd52006-08-04 18:18:08 +000016207freebsd* | dragonfly*)
16208 # DragonFly does not have aout. When/if they implement a new
16209 # versioning mechanism, adjust this.
16210 if test -x /usr/bin/objformat; then
16211 objformat=`/usr/bin/objformat`
16212 else
16213 case $host_os in
16214 freebsd[123]*) objformat=aout ;;
16215 *) objformat=elf ;;
16216 esac
16217 fi
John Criswell7a73b802003-06-30 21:59:07 +000016218 version_type=freebsd-$objformat
16219 case $version_type in
16220 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016222 need_version=no
16223 need_lib_prefix=no
16224 ;;
16225 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016227 need_version=yes
16228 ;;
16229 esac
16230 shlibpath_var=LD_LIBRARY_PATH
16231 case $host_os in
16232 freebsd2*)
16233 shlibpath_overrides_runpath=yes
16234 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016235 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016236 shlibpath_overrides_runpath=yes
16237 hardcode_into_libs=yes
16238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016241 shlibpath_overrides_runpath=no
16242 hardcode_into_libs=yes
16243 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016244 freebsd*) # from 4.6 on
16245 shlibpath_overrides_runpath=yes
16246 hardcode_into_libs=yes
16247 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016248 esac
16249 ;;
16250
16251gnu*)
16252 version_type=linux
16253 need_lib_prefix=no
16254 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016257 shlibpath_var=LD_LIBRARY_PATH
16258 hardcode_into_libs=yes
16259 ;;
16260
16261hpux9* | hpux10* | hpux11*)
16262 # Give a soname corresponding to the major version so that dld.sl refuses to
16263 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016264 version_type=sunos
16265 need_lib_prefix=no
16266 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016267 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016268 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016269 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.so"
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 if test "X$HPUX_IA64_MODE" = X32; then
16277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16278 else
16279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16280 fi
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16282 ;;
16283 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016284 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016285 hardcode_into_libs=yes
16286 dynamic_linker="$host_os dld.sl"
16287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16293 ;;
16294 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016295 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016296 dynamic_linker="$host_os dld.sl"
16297 shlibpath_var=SHLIB_PATH
16298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 ;;
16302 esac
John Criswell7a73b802003-06-30 21:59:07 +000016303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16304 postinstall_cmds='chmod 555 $lib'
16305 ;;
16306
Reid Spencera773bd52006-08-04 18:18:08 +000016307interix3*)
16308 version_type=linux
16309 need_lib_prefix=no
16310 need_version=no
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=no
16316 hardcode_into_libs=yes
16317 ;;
16318
John Criswell47fdd832003-07-14 16:52:07 +000016319irix5* | irix6* | nonstopux*)
16320 case $host_os in
16321 nonstopux*) version_type=nonstopux ;;
16322 *)
16323 if test "$lt_cv_prog_gnu_ld" = yes; then
16324 version_type=linux
16325 else
16326 version_type=irix
16327 fi ;;
16328 esac
John Criswell7a73b802003-06-30 21:59:07 +000016329 need_lib_prefix=no
16330 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016331 soname_spec='${libname}${release}${shared_ext}$major'
16332 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 +000016333 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016334 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016335 libsuff= shlibsuff=
16336 ;;
16337 *)
16338 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16340 libsuff= shlibsuff= libmagic=32-bit;;
16341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16342 libsuff=32 shlibsuff=N32 libmagic=N32;;
16343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016345 *) libsuff= shlibsuff= libmagic=never-match;;
16346 esac
16347 ;;
16348 esac
16349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16350 shlibpath_overrides_runpath=no
16351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016353 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016354 ;;
16355
16356# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016357linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016358 dynamic_linker=no
16359 ;;
16360
16361# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016362linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016363 version_type=linux
16364 need_lib_prefix=no
16365 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 shlibpath_overrides_runpath=no
16371 # This implies no fast_install, which is unacceptable.
16372 # Some rework will be needed to allow for fast_install
16373 # before this can be enabled.
16374 hardcode_into_libs=yes
16375
Reid Spencer2706f8c2004-09-19 23:53:36 +000016376 # Append ld.so.conf contents to the search path
16377 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016378 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 +000016379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16380 fi
16381
John Criswell7a73b802003-06-30 21:59:07 +000016382 # We used to test for /lib/ld.so.1 and disable shared libraries on
16383 # powerpc, because MkLinux only supported shared libraries with the
16384 # GNU dynamic linker. Since this was broken with cross compilers,
16385 # most powerpc-linux boxes support dynamic linking these days and
16386 # people can always --disable-shared, the test was removed, and we
16387 # assume the GNU/Linux dynamic linker is in use.
16388 dynamic_linker='GNU/Linux ld.so'
16389 ;;
16390
Reid Spencer2706f8c2004-09-19 23:53:36 +000016391knetbsd*-gnu)
16392 version_type=linux
16393 need_lib_prefix=no
16394 need_version=no
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=no
16399 hardcode_into_libs=yes
16400 dynamic_linker='GNU ld.so'
16401 ;;
16402
John Criswell7a73b802003-06-30 21:59:07 +000016403netbsd*)
16404 version_type=sunos
16405 need_lib_prefix=no
16406 need_version=no
16407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16410 dynamic_linker='NetBSD (a.out) ld.so'
16411 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016413 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016414 dynamic_linker='NetBSD ld.elf_so'
16415 fi
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=yes
16418 hardcode_into_libs=yes
16419 ;;
16420
16421newsos6)
16422 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 ;;
16427
Reid Spencer2706f8c2004-09-19 23:53:36 +000016428nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016429 version_type=linux
16430 need_lib_prefix=no
16431 need_version=no
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016434 shlibpath_var=LD_LIBRARY_PATH
16435 shlibpath_overrides_runpath=yes
16436 ;;
16437
16438openbsd*)
16439 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016440 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016441 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16443 case $host_os in
16444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16445 *) need_version=no ;;
16446 esac
John Criswell47fdd832003-07-14 16:52:07 +000016447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016450 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 +000016451 case $host_os in
16452 openbsd2.[89] | openbsd2.[89].*)
16453 shlibpath_overrides_runpath=no
16454 ;;
16455 *)
16456 shlibpath_overrides_runpath=yes
16457 ;;
16458 esac
John Criswell7a73b802003-06-30 21:59:07 +000016459 else
16460 shlibpath_overrides_runpath=yes
16461 fi
John Criswell7a73b802003-06-30 21:59:07 +000016462 ;;
16463
16464os2*)
16465 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016466 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016467 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016468 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016469 dynamic_linker='OS/2 ld.exe'
16470 shlibpath_var=LIBPATH
16471 ;;
16472
16473osf3* | osf4* | osf5*)
16474 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016475 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016476 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016477 soname_spec='${libname}${release}${shared_ext}$major'
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016479 shlibpath_var=LD_LIBRARY_PATH
16480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16482 ;;
16483
John Criswell7a73b802003-06-30 21:59:07 +000016484solaris*)
16485 version_type=linux
16486 need_lib_prefix=no
16487 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016490 shlibpath_var=LD_LIBRARY_PATH
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16493 # ldd complains unless libraries are executable
16494 postinstall_cmds='chmod +x $lib'
16495 ;;
16496
16497sunos4*)
16498 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes
16503 if test "$with_gnu_ld" = yes; then
16504 need_lib_prefix=no
16505 fi
16506 need_version=yes
16507 ;;
16508
Reid Spencera773bd52006-08-04 18:18:08 +000016509sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016510 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016513 shlibpath_var=LD_LIBRARY_PATH
16514 case $host_vendor in
16515 sni)
16516 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016517 need_lib_prefix=no
16518 export_dynamic_flag_spec='${wl}-Blargedynsym'
16519 runpath_var=LD_RUN_PATH
16520 ;;
16521 siemens)
16522 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016523 ;;
16524 motorola)
16525 need_lib_prefix=no
16526 need_version=no
16527 shlibpath_overrides_runpath=no
16528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16529 ;;
16530 esac
16531 ;;
16532
John Criswell7a73b802003-06-30 21:59:07 +000016533sysv4*MP*)
16534 if test -d /usr/nec ;then
16535 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16537 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016538 shlibpath_var=LD_LIBRARY_PATH
16539 fi
16540 ;;
16541
Reid Spencera773bd52006-08-04 18:18:08 +000016542sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16543 version_type=freebsd-elf
16544 need_lib_prefix=no
16545 need_version=no
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 hardcode_into_libs=yes
16550 if test "$with_gnu_ld" = yes; then
16551 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16552 shlibpath_overrides_runpath=no
16553 else
16554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16555 shlibpath_overrides_runpath=yes
16556 case $host_os in
16557 sco3.2v5*)
16558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16559 ;;
16560 esac
16561 fi
16562 sys_lib_dlsearch_path_spec='/usr/lib'
16563 ;;
16564
John Criswell47fdd832003-07-14 16:52:07 +000016565uts4*)
16566 version_type=linux
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 ;;
16571
John Criswell7a73b802003-06-30 21:59:07 +000016572*)
16573 dynamic_linker=no
16574 ;;
16575esac
Reid Spencera773bd52006-08-04 18:18:08 +000016576{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16577echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016578test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016579
Reid Spencera773bd52006-08-04 18:18:08 +000016580variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16581if test "$GCC" = yes; then
16582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16583fi
16584
16585{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16586echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016587hardcode_action=
16588if test -n "$hardcode_libdir_flag_spec" || \
16589 test -n "$runpath_var" || \
16590 test "X$hardcode_automatic" = "Xyes" ; then
16591
16592 # We can hardcode non-existant directories.
16593 if test "$hardcode_direct" != no &&
16594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16595 # have to relink, otherwise we might link with an installed library
16596 # when we should be linking with a yet-to-be-installed one
16597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16598 test "$hardcode_minus_L" != no; then
16599 # Linking always hardcodes the temporary library directory.
16600 hardcode_action=relink
16601 else
16602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16603 hardcode_action=immediate
16604 fi
16605else
16606 # We cannot hardcode anything, or else we can only hardcode existing
16607 # directories.
16608 hardcode_action=unsupported
16609fi
Reid Spencera773bd52006-08-04 18:18:08 +000016610{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16611echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016612
16613if test "$hardcode_action" = relink; then
16614 # Fast installation is not supported
16615 enable_fast_install=no
16616elif test "$shlibpath_overrides_runpath" = yes ||
16617 test "$enable_shared" = no; then
16618 # Fast installation is not necessary
16619 enable_fast_install=needless
16620fi
16621
16622striplib=
16623old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016624{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16625echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016629 { echo "$as_me:$LINENO: result: yes" >&5
16630echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016631else
16632# FIXME - insert some real tests, host_os isn't really good enough
16633 case $host_os in
16634 darwin*)
16635 if test -n "$STRIP" ; then
16636 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016637 { echo "$as_me:$LINENO: result: yes" >&5
16638echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016639 else
Reid Spencera773bd52006-08-04 18:18:08 +000016640 { echo "$as_me:$LINENO: result: no" >&5
16641echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642fi
16643 ;;
16644 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016645 { echo "$as_me:$LINENO: result: no" >&5
16646echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647 ;;
16648 esac
16649fi
16650
John Criswell7a73b802003-06-30 21:59:07 +000016651if test "x$enable_dlopen" != xyes; then
16652 enable_dlopen=unknown
16653 enable_dlopen_self=unknown
16654 enable_dlopen_self_static=unknown
16655else
16656 lt_cv_dlopen=no
16657 lt_cv_dlopen_libs=
16658
16659 case $host_os in
16660 beos*)
16661 lt_cv_dlopen="load_add_on"
16662 lt_cv_dlopen_libs=
16663 lt_cv_dlopen_self=yes
16664 ;;
16665
John Criswell47fdd832003-07-14 16:52:07 +000016666 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016667 lt_cv_dlopen="LoadLibrary"
16668 lt_cv_dlopen_libs=
16669 ;;
16670
John Criswell47fdd832003-07-14 16:52:07 +000016671 cygwin*)
16672 lt_cv_dlopen="dlopen"
16673 lt_cv_dlopen_libs=
16674 ;;
16675
16676 darwin*)
16677 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016678 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16679echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016680if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682else
16683 ac_check_lib_save_LIBS=$LIBS
16684LIBS="-ldl $LIBS"
16685cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016691
Reid Spencera773bd52006-08-04 18:18:08 +000016692/* Override any GCC internal prototype to avoid an error.
16693 Use char because int might match the return type of a GCC
16694 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016695#ifdef __cplusplus
16696extern "C"
16697#endif
John Criswell47fdd832003-07-14 16:52:07 +000016698char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016699int
16700main ()
16701{
Reid Spencera773bd52006-08-04 18:18:08 +000016702return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016708if { (ac_try="$ac_link"
16709case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016741 ac_cv_lib_dl_dlopen=yes
16742else
16743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016744sed 's/^/| /' conftest.$ac_ext >&5
16745
Reid Spencera773bd52006-08-04 18:18:08 +000016746 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016747fi
Reid Spencera773bd52006-08-04 18:18:08 +000016748
Tanya Lattnercf067672008-01-17 05:57:22 +000016749rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016751LIBS=$ac_check_lib_save_LIBS
16752fi
Reid Spencera773bd52006-08-04 18:18:08 +000016753{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016755if test $ac_cv_lib_dl_dlopen = yes; then
16756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16757else
16758
16759 lt_cv_dlopen="dyld"
16760 lt_cv_dlopen_libs=
16761 lt_cv_dlopen_self=yes
16762
16763fi
16764
16765 ;;
16766
John Criswell7a73b802003-06-30 21:59:07 +000016767 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016768 { echo "$as_me:$LINENO: checking for shl_load" >&5
16769echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016770if test "${ac_cv_func_shl_load+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
16773 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016779/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781#define shl_load innocuous_shl_load
16782
John Criswell7a73b802003-06-30 21:59:07 +000016783/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016784 which can conflict with char shl_load (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016787
John Criswell0c38eaf2003-09-10 15:17:25 +000016788#ifdef __STDC__
16789# include <limits.h>
16790#else
16791# include <assert.h>
16792#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016793
16794#undef shl_load
16795
Reid Spencera773bd52006-08-04 18:18:08 +000016796/* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016799#ifdef __cplusplus
16800extern "C"
16801#endif
John Criswell7a73b802003-06-30 21:59:07 +000016802char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016803/* The GNU C library defines this for functions which it implements
16804 to always fail with ENOSYS. Some functions are actually named
16805 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016806#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016807choke me
John Criswell7a73b802003-06-30 21:59:07 +000016808#endif
16809
John Criswell0c38eaf2003-09-10 15:17:25 +000016810int
16811main ()
16812{
Reid Spencera773bd52006-08-04 18:18:08 +000016813return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016819if { (ac_try="$ac_link"
16820case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016852 ac_cv_func_shl_load=yes
16853else
16854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016855sed 's/^/| /' conftest.$ac_ext >&5
16856
Reid Spencera773bd52006-08-04 18:18:08 +000016857 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016858fi
Reid Spencera773bd52006-08-04 18:18:08 +000016859
Tanya Lattnercf067672008-01-17 05:57:22 +000016860rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016861 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016862fi
Reid Spencera773bd52006-08-04 18:18:08 +000016863{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16864echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016865if test $ac_cv_func_shl_load = yes; then
16866 lt_cv_dlopen="shl_load"
16867else
Reid Spencera773bd52006-08-04 18:18:08 +000016868 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16869echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016870if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 ac_check_lib_save_LIBS=$LIBS
16874LIBS="-ldld $LIBS"
16875cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016881
Reid Spencera773bd52006-08-04 18:18:08 +000016882/* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016885#ifdef __cplusplus
16886extern "C"
16887#endif
John Criswell7a73b802003-06-30 21:59:07 +000016888char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016889int
16890main ()
16891{
Reid Spencera773bd52006-08-04 18:18:08 +000016892return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016898if { (ac_try="$ac_link"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016905 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016931 ac_cv_lib_dld_shl_load=yes
16932else
16933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016934sed 's/^/| /' conftest.$ac_ext >&5
16935
Reid Spencera773bd52006-08-04 18:18:08 +000016936 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016937fi
Reid Spencera773bd52006-08-04 18:18:08 +000016938
Tanya Lattnercf067672008-01-17 05:57:22 +000016939rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016940 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016941LIBS=$ac_check_lib_save_LIBS
16942fi
Reid Spencera773bd52006-08-04 18:18:08 +000016943{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16944echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016945if test $ac_cv_lib_dld_shl_load = yes; then
16946 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16947else
Reid Spencera773bd52006-08-04 18:18:08 +000016948 { echo "$as_me:$LINENO: checking for dlopen" >&5
16949echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016950if test "${ac_cv_func_dlopen+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016959/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16961#define dlopen innocuous_dlopen
16962
John Criswell7a73b802003-06-30 21:59:07 +000016963/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016964 which can conflict with char dlopen (); below.
16965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16966 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016967
John Criswell0c38eaf2003-09-10 15:17:25 +000016968#ifdef __STDC__
16969# include <limits.h>
16970#else
16971# include <assert.h>
16972#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016973
16974#undef dlopen
16975
Reid Spencera773bd52006-08-04 18:18:08 +000016976/* Override any GCC internal prototype to avoid an error.
16977 Use char because int might match the return type of a GCC
16978 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016979#ifdef __cplusplus
16980extern "C"
16981#endif
John Criswell7a73b802003-06-30 21:59:07 +000016982char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016983/* The GNU C library defines this for functions which it implements
16984 to always fail with ENOSYS. Some functions are actually named
16985 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016986#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016987choke me
John Criswell7a73b802003-06-30 21:59:07 +000016988#endif
16989
John Criswell0c38eaf2003-09-10 15:17:25 +000016990int
16991main ()
16992{
Reid Spencera773bd52006-08-04 18:18:08 +000016993return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016994 ;
16995 return 0;
16996}
16997_ACEOF
16998rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016999if { (ac_try="$ac_link"
17000case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017032 ac_cv_func_dlopen=yes
17033else
17034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017035sed 's/^/| /' conftest.$ac_ext >&5
17036
Reid Spencera773bd52006-08-04 18:18:08 +000017037 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017038fi
Reid Spencera773bd52006-08-04 18:18:08 +000017039
Tanya Lattnercf067672008-01-17 05:57:22 +000017040rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017041 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017042fi
Reid Spencera773bd52006-08-04 18:18:08 +000017043{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17044echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017045if test $ac_cv_func_dlopen = yes; then
17046 lt_cv_dlopen="dlopen"
17047else
Reid Spencera773bd52006-08-04 18:18:08 +000017048 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17049echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017050if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052else
17053 ac_check_lib_save_LIBS=$LIBS
17054LIBS="-ldl $LIBS"
17055cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017061
Reid Spencera773bd52006-08-04 18:18:08 +000017062/* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017065#ifdef __cplusplus
17066extern "C"
17067#endif
John Criswell7a73b802003-06-30 21:59:07 +000017068char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017069int
17070main ()
17071{
Reid Spencera773bd52006-08-04 18:18:08 +000017072return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017073 ;
17074 return 0;
17075}
17076_ACEOF
17077rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017078if { (ac_try="$ac_link"
17079case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17101 { ac_try='test -s conftest$ac_exeext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105esac
17106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017111 ac_cv_lib_dl_dlopen=yes
17112else
17113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017114sed 's/^/| /' conftest.$ac_ext >&5
17115
Reid Spencera773bd52006-08-04 18:18:08 +000017116 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017117fi
Reid Spencera773bd52006-08-04 18:18:08 +000017118
Tanya Lattnercf067672008-01-17 05:57:22 +000017119rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017120 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017121LIBS=$ac_check_lib_save_LIBS
17122fi
Reid Spencera773bd52006-08-04 18:18:08 +000017123{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17124echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017125if test $ac_cv_lib_dl_dlopen = yes; then
17126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17127else
Reid Spencera773bd52006-08-04 18:18:08 +000017128 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17129echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017130if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132else
17133 ac_check_lib_save_LIBS=$LIBS
17134LIBS="-lsvld $LIBS"
17135cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017141
Reid Spencera773bd52006-08-04 18:18:08 +000017142/* Override any GCC internal prototype to avoid an error.
17143 Use char because int might match the return type of a GCC
17144 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017145#ifdef __cplusplus
17146extern "C"
17147#endif
John Criswell7a73b802003-06-30 21:59:07 +000017148char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017149int
17150main ()
17151{
Reid Spencera773bd52006-08-04 18:18:08 +000017152return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017158if { (ac_try="$ac_link"
17159case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017191 ac_cv_lib_svld_dlopen=yes
17192else
17193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017194sed 's/^/| /' conftest.$ac_ext >&5
17195
Reid Spencera773bd52006-08-04 18:18:08 +000017196 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017197fi
Reid Spencera773bd52006-08-04 18:18:08 +000017198
Tanya Lattnercf067672008-01-17 05:57:22 +000017199rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017200 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017201LIBS=$ac_check_lib_save_LIBS
17202fi
Reid Spencera773bd52006-08-04 18:18:08 +000017203{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17204echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017205if test $ac_cv_lib_svld_dlopen = yes; then
17206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17207else
Reid Spencera773bd52006-08-04 18:18:08 +000017208 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17209echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017210if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
17213 ac_check_lib_save_LIBS=$LIBS
17214LIBS="-ldld $LIBS"
17215cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017221
Reid Spencera773bd52006-08-04 18:18:08 +000017222/* Override any GCC internal prototype to avoid an error.
17223 Use char because int might match the return type of a GCC
17224 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017225#ifdef __cplusplus
17226extern "C"
17227#endif
John Criswell7a73b802003-06-30 21:59:07 +000017228char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017229int
17230main ()
17231{
Reid Spencera773bd52006-08-04 18:18:08 +000017232return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017238if { (ac_try="$ac_link"
17239case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_try") 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017271 ac_cv_lib_dld_dld_link=yes
17272else
17273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017274sed 's/^/| /' conftest.$ac_ext >&5
17275
Reid Spencera773bd52006-08-04 18:18:08 +000017276 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017277fi
Reid Spencera773bd52006-08-04 18:18:08 +000017278
Tanya Lattnercf067672008-01-17 05:57:22 +000017279rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017280 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017281LIBS=$ac_check_lib_save_LIBS
17282fi
Reid Spencera773bd52006-08-04 18:18:08 +000017283{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17284echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017285if test $ac_cv_lib_dld_dld_link = yes; then
17286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17287fi
17288
17289
17290fi
17291
17292
17293fi
17294
17295
17296fi
17297
17298
17299fi
17300
17301
17302fi
17303
17304 ;;
17305 esac
17306
17307 if test "x$lt_cv_dlopen" != xno; then
17308 enable_dlopen=yes
17309 else
17310 enable_dlopen=no
17311 fi
17312
17313 case $lt_cv_dlopen in
17314 dlopen)
17315 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017317
17318 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017320
17321 save_LIBS="$LIBS"
17322 LIBS="$lt_cv_dlopen_libs $LIBS"
17323
Reid Spencera773bd52006-08-04 18:18:08 +000017324 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17325echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017326if test "${lt_cv_dlopen_self+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328else
17329 if test "$cross_compiling" = yes; then :
17330 lt_cv_dlopen_self=cross
17331else
John Criswell47fdd832003-07-14 16:52:07 +000017332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017333 lt_status=$lt_dlunknown
17334 cat > conftest.$ac_ext <<EOF
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000017335#line 17335 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017336#include "confdefs.h"
17337
17338#if HAVE_DLFCN_H
17339#include <dlfcn.h>
17340#endif
17341
17342#include <stdio.h>
17343
17344#ifdef RTLD_GLOBAL
17345# define LT_DLGLOBAL RTLD_GLOBAL
17346#else
17347# ifdef DL_GLOBAL
17348# define LT_DLGLOBAL DL_GLOBAL
17349# else
17350# define LT_DLGLOBAL 0
17351# endif
17352#endif
17353
17354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17355 find out it does not work in some platform. */
17356#ifndef LT_DLLAZY_OR_NOW
17357# ifdef RTLD_LAZY
17358# define LT_DLLAZY_OR_NOW RTLD_LAZY
17359# else
17360# ifdef DL_LAZY
17361# define LT_DLLAZY_OR_NOW DL_LAZY
17362# else
17363# ifdef RTLD_NOW
17364# define LT_DLLAZY_OR_NOW RTLD_NOW
17365# else
17366# ifdef DL_NOW
17367# define LT_DLLAZY_OR_NOW DL_NOW
17368# else
17369# define LT_DLLAZY_OR_NOW 0
17370# endif
17371# endif
17372# endif
17373# endif
17374#endif
17375
17376#ifdef __cplusplus
17377extern "C" void exit (int);
17378#endif
17379
17380void fnord() { int i=42;}
17381int main ()
17382{
17383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17384 int status = $lt_dlunknown;
17385
17386 if (self)
17387 {
17388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17390 /* dlclose (self); */
17391 }
Reid Spencera773bd52006-08-04 18:18:08 +000017392 else
17393 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017394
17395 exit (status);
17396}
17397EOF
17398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017403 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017404 lt_status=$?
17405 case x$lt_status in
17406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017409 esac
17410 else :
17411 # compilation failed
17412 lt_cv_dlopen_self=no
17413 fi
17414fi
17415rm -fr conftest*
17416
17417
17418fi
Reid Spencera773bd52006-08-04 18:18:08 +000017419{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17420echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017421
17422 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17424 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17425echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017426if test "${lt_cv_dlopen_self_static+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 if test "$cross_compiling" = yes; then :
17430 lt_cv_dlopen_self_static=cross
17431else
John Criswell47fdd832003-07-14 16:52:07 +000017432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017433 lt_status=$lt_dlunknown
17434 cat > conftest.$ac_ext <<EOF
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000017435#line 17435 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017436#include "confdefs.h"
17437
17438#if HAVE_DLFCN_H
17439#include <dlfcn.h>
17440#endif
17441
17442#include <stdio.h>
17443
17444#ifdef RTLD_GLOBAL
17445# define LT_DLGLOBAL RTLD_GLOBAL
17446#else
17447# ifdef DL_GLOBAL
17448# define LT_DLGLOBAL DL_GLOBAL
17449# else
17450# define LT_DLGLOBAL 0
17451# endif
17452#endif
17453
17454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17455 find out it does not work in some platform. */
17456#ifndef LT_DLLAZY_OR_NOW
17457# ifdef RTLD_LAZY
17458# define LT_DLLAZY_OR_NOW RTLD_LAZY
17459# else
17460# ifdef DL_LAZY
17461# define LT_DLLAZY_OR_NOW DL_LAZY
17462# else
17463# ifdef RTLD_NOW
17464# define LT_DLLAZY_OR_NOW RTLD_NOW
17465# else
17466# ifdef DL_NOW
17467# define LT_DLLAZY_OR_NOW DL_NOW
17468# else
17469# define LT_DLLAZY_OR_NOW 0
17470# endif
17471# endif
17472# endif
17473# endif
17474#endif
17475
17476#ifdef __cplusplus
17477extern "C" void exit (int);
17478#endif
17479
17480void fnord() { int i=42;}
17481int main ()
17482{
17483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17484 int status = $lt_dlunknown;
17485
17486 if (self)
17487 {
17488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17489 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17490 /* dlclose (self); */
17491 }
Reid Spencera773bd52006-08-04 18:18:08 +000017492 else
17493 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017494
17495 exit (status);
17496}
17497EOF
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017503 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017504 lt_status=$?
17505 case x$lt_status in
17506 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17507 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017508 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017509 esac
17510 else :
17511 # compilation failed
17512 lt_cv_dlopen_self_static=no
17513 fi
17514fi
17515rm -fr conftest*
17516
17517
17518fi
Reid Spencera773bd52006-08-04 18:18:08 +000017519{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17520echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017521 fi
17522
17523 CPPFLAGS="$save_CPPFLAGS"
17524 LDFLAGS="$save_LDFLAGS"
17525 LIBS="$save_LIBS"
17526 ;;
17527 esac
17528
17529 case $lt_cv_dlopen_self in
17530 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17531 *) enable_dlopen_self=unknown ;;
17532 esac
17533
17534 case $lt_cv_dlopen_self_static in
17535 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17536 *) enable_dlopen_self_static=unknown ;;
17537 esac
17538fi
17539
17540
Reid Spencera773bd52006-08-04 18:18:08 +000017541# Report which library types will actually be built
17542{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17543echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17544{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17545echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017546
Reid Spencera773bd52006-08-04 18:18:08 +000017547{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17548echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017549test "$can_build_shared" = "no" && enable_shared=no
17550
17551# On AIX, shared libraries and static libraries use the same namespace, and
17552# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017553case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017554aix3*)
17555 test "$enable_shared" = yes && enable_static=no
17556 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017558 postinstall_cmds='$RANLIB $lib'
17559 fi
17560 ;;
17561
Reid Spencer2706f8c2004-09-19 23:53:36 +000017562aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17564 test "$enable_shared" = yes && enable_static=no
17565 fi
John Criswell7a73b802003-06-30 21:59:07 +000017566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017567esac
Reid Spencera773bd52006-08-04 18:18:08 +000017568{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17569echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017570
Reid Spencera773bd52006-08-04 18:18:08 +000017571{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17572echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017573# Make sure either enable_shared or enable_static is yes.
17574test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017575{ echo "$as_me:$LINENO: result: $enable_static" >&5
17576echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017577
17578# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017579# libtool distribution, otherwise you forgot to ship ltmain.sh
17580# with your package, and you will get complaints that there are
17581# no rules to generate ltmain.sh.
17582if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017583 # See if we are running on zsh, and set the options which allow our commands through
17584 # without removal of \ escapes.
17585 if test -n "${ZSH_VERSION+set}" ; then
17586 setopt NO_GLOB_SUBST
17587 fi
John Criswell7a73b802003-06-30 21:59:07 +000017588 # Now quote all the things that may contain metacharacters while being
17589 # careful not to overquote the AC_SUBSTed values. We take copies of the
17590 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017591 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 +000017592 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17595 deplibs_check_method reload_flag reload_cmds need_locks \
17596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17597 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017599 old_postinstall_cmds old_postuninstall_cmds \
17600 compiler \
17601 CC \
17602 LD \
17603 lt_prog_compiler_wl \
17604 lt_prog_compiler_pic \
17605 lt_prog_compiler_static \
17606 lt_prog_compiler_no_builtin_flag \
17607 export_dynamic_flag_spec \
17608 thread_safe_flag_spec \
17609 whole_archive_flag_spec \
17610 enable_shared_with_static_runtimes \
17611 old_archive_cmds \
17612 old_archive_from_new_cmds \
17613 predep_objects \
17614 postdep_objects \
17615 predeps \
17616 postdeps \
17617 compiler_lib_search_path \
17618 archive_cmds \
17619 archive_expsym_cmds \
17620 postinstall_cmds \
17621 postuninstall_cmds \
17622 old_archive_from_expsyms_cmds \
17623 allow_undefined_flag \
17624 no_undefined_flag \
17625 export_symbols_cmds \
17626 hardcode_libdir_flag_spec \
17627 hardcode_libdir_flag_spec_ld \
17628 hardcode_libdir_separator \
17629 hardcode_automatic \
17630 module_cmds \
17631 module_expsym_cmds \
17632 lt_cv_prog_compiler_c_o \
17633 exclude_expsyms \
17634 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017635
17636 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017637 old_archive_cmds | \
17638 old_archive_from_new_cmds | \
17639 archive_cmds | \
17640 archive_expsym_cmds | \
17641 module_cmds | \
17642 module_expsym_cmds | \
17643 old_archive_from_expsyms_cmds | \
17644 export_symbols_cmds | \
17645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017646 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017647 old_postinstall_cmds | old_postuninstall_cmds | \
17648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017649 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017650 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 +000017651 ;;
17652 *)
17653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17654 ;;
17655 esac
17656 done
17657
John Criswell47fdd832003-07-14 16:52:07 +000017658 case $lt_echo in
17659 *'\$0 --fallback-echo"')
17660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17661 ;;
17662 esac
17663
17664cfgfile="${ofile}T"
17665 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17666 $rm -f "$cfgfile"
17667 { echo "$as_me:$LINENO: creating $ofile" >&5
17668echo "$as_me: creating $ofile" >&6;}
17669
17670 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017671#! $SHELL
17672
John Criswell47fdd832003-07-14 16:52:07 +000017673# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017674# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17675# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17676#
John Criswell47fdd832003-07-14 16:52:07 +000017677# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17678# Free Software Foundation, Inc.
17679#
17680# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017681# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17682#
17683# This program is free software; you can redistribute it and/or modify
17684# it under the terms of the GNU General Public License as published by
17685# the Free Software Foundation; either version 2 of the License, or
17686# (at your option) any later version.
17687#
17688# This program is distributed in the hope that it will be useful, but
17689# WITHOUT ANY WARRANTY; without even the implied warranty of
17690# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17691# General Public License for more details.
17692#
17693# You should have received a copy of the GNU General Public License
17694# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017695# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017696#
17697# As a special exception to the GNU General Public License, if you
17698# distribute this file as part of a program that contains a
17699# configuration script generated by Autoconf, you may include it under
17700# the same distribution terms that you use for the rest of that program.
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702# A sed program that does not truncate output.
17703SED=$lt_SED
17704
John Criswell7a73b802003-06-30 21:59:07 +000017705# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017706Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017707
17708# The HP-UX ksh and POSIX shell print the target directory to stdout
17709# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017711
John Criswell47fdd832003-07-14 16:52:07 +000017712# The names of the tagged configurations supported by this script.
17713available_tags=
17714
John Criswell7a73b802003-06-30 21:59:07 +000017715# ### BEGIN LIBTOOL CONFIG
17716
17717# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17718
17719# Shell to use when invoking shell scripts.
17720SHELL=$lt_SHELL
17721
17722# Whether or not to build shared libraries.
17723build_libtool_libs=$enable_shared
17724
17725# Whether or not to build static libraries.
17726build_old_libs=$enable_static
17727
17728# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017729build_libtool_need_lc=$archive_cmds_need_lc
17730
17731# Whether or not to disallow shared libs when runtime libs are static
17732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017733
17734# Whether or not to optimize for fast installation.
17735fast_install=$enable_fast_install
17736
17737# The host system.
17738host_alias=$host_alias
17739host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017740host_os=$host_os
17741
17742# The build system.
17743build_alias=$build_alias
17744build=$build
17745build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017746
17747# An echo program that does not interpret backslashes.
17748echo=$lt_echo
17749
17750# The archiver.
17751AR=$lt_AR
17752AR_FLAGS=$lt_AR_FLAGS
17753
John Criswell47fdd832003-07-14 16:52:07 +000017754# A C compiler.
17755LTCC=$lt_LTCC
17756
Reid Spencera773bd52006-08-04 18:18:08 +000017757# LTCC compiler flags.
17758LTCFLAGS=$lt_LTCFLAGS
17759
John Criswell47fdd832003-07-14 16:52:07 +000017760# A language-specific compiler.
17761CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017762
17763# Is the compiler the GNU C compiler?
17764with_gcc=$GCC
17765
John Criswell47fdd832003-07-14 16:52:07 +000017766# An ERE matcher.
17767EGREP=$lt_EGREP
17768
John Criswell7a73b802003-06-30 21:59:07 +000017769# The linker used to build libraries.
17770LD=$lt_LD
17771
17772# Whether we need hard or soft links.
17773LN_S=$lt_LN_S
17774
17775# A BSD-compatible nm program.
17776NM=$lt_NM
17777
17778# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017779STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017780
17781# Used to examine libraries when file_magic_cmd begins "file"
17782MAGIC_CMD=$MAGIC_CMD
17783
17784# Used on cygwin: DLL creation program.
17785DLLTOOL="$DLLTOOL"
17786
17787# Used on cygwin: object dumper.
17788OBJDUMP="$OBJDUMP"
17789
17790# Used on cygwin: assembler.
17791AS="$AS"
17792
17793# The name of the directory that contains temporary libtool files.
17794objdir=$objdir
17795
17796# How to create reloadable object files.
17797reload_flag=$lt_reload_flag
17798reload_cmds=$lt_reload_cmds
17799
17800# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017801wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017802
17803# Object file suffix (normally "o").
17804objext="$ac_objext"
17805
17806# Old archive suffix (normally "a").
17807libext="$libext"
17808
John Criswell47fdd832003-07-14 16:52:07 +000017809# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017810shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017811
John Criswell7a73b802003-06-30 21:59:07 +000017812# Executable file suffix (normally "").
17813exeext="$exeext"
17814
17815# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017816pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017817pic_mode=$pic_mode
17818
John Criswell47fdd832003-07-14 16:52:07 +000017819# What is the maximum length of a command?
17820max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017821
John Criswell47fdd832003-07-14 16:52:07 +000017822# Does compiler simultaneously support -c and -o options?
17823compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017824
Reid Spencera773bd52006-08-04 18:18:08 +000017825# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017826need_locks=$lt_need_locks
17827
17828# Do we need the lib prefix for modules?
17829need_lib_prefix=$need_lib_prefix
17830
17831# Do we need a version for libraries?
17832need_version=$need_version
17833
17834# Whether dlopen is supported.
17835dlopen_support=$enable_dlopen
17836
17837# Whether dlopen of programs is supported.
17838dlopen_self=$enable_dlopen_self
17839
17840# Whether dlopen of statically linked programs is supported.
17841dlopen_self_static=$enable_dlopen_self_static
17842
17843# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017844link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017845
17846# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017847no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017848
17849# Compiler flag to allow reflexive dlopens.
17850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17851
17852# Compiler flag to generate shared objects directly from archives.
17853whole_archive_flag_spec=$lt_whole_archive_flag_spec
17854
17855# Compiler flag to generate thread-safe objects.
17856thread_safe_flag_spec=$lt_thread_safe_flag_spec
17857
17858# Library versioning type.
17859version_type=$version_type
17860
17861# Format of library name prefix.
17862libname_spec=$lt_libname_spec
17863
17864# List of archive names. First name is the real one, the rest are links.
17865# The last name is the one that the linker finds with -lNAME.
17866library_names_spec=$lt_library_names_spec
17867
17868# The coded name of the library, if different from the real name.
17869soname_spec=$lt_soname_spec
17870
17871# Commands used to build and install an old-style archive.
17872RANLIB=$lt_RANLIB
17873old_archive_cmds=$lt_old_archive_cmds
17874old_postinstall_cmds=$lt_old_postinstall_cmds
17875old_postuninstall_cmds=$lt_old_postuninstall_cmds
17876
17877# Create an old-style archive from a shared archive.
17878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17879
17880# Create a temporary old-style archive to link instead of a shared archive.
17881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17882
17883# Commands used to build and install a shared archive.
17884archive_cmds=$lt_archive_cmds
17885archive_expsym_cmds=$lt_archive_expsym_cmds
17886postinstall_cmds=$lt_postinstall_cmds
17887postuninstall_cmds=$lt_postuninstall_cmds
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889# Commands used to build a loadable module (assumed same as above if empty)
17890module_cmds=$lt_module_cmds
17891module_expsym_cmds=$lt_module_expsym_cmds
17892
John Criswell7a73b802003-06-30 21:59:07 +000017893# Commands to strip libraries.
17894old_striplib=$lt_old_striplib
17895striplib=$lt_striplib
17896
John Criswell47fdd832003-07-14 16:52:07 +000017897# Dependencies to place before the objects being linked to create a
17898# shared library.
17899predep_objects=$lt_predep_objects
17900
17901# Dependencies to place after the objects being linked to create a
17902# shared library.
17903postdep_objects=$lt_postdep_objects
17904
17905# Dependencies to place before the objects being linked to create a
17906# shared library.
17907predeps=$lt_predeps
17908
17909# Dependencies to place after the objects being linked to create a
17910# shared library.
17911postdeps=$lt_postdeps
17912
17913# The library search path used internally by the compiler when linking
17914# a shared library.
17915compiler_lib_search_path=$lt_compiler_lib_search_path
17916
John Criswell7a73b802003-06-30 21:59:07 +000017917# Method to check whether dependent libraries are shared objects.
17918deplibs_check_method=$lt_deplibs_check_method
17919
17920# Command to use when deplibs_check_method == file_magic.
17921file_magic_cmd=$lt_file_magic_cmd
17922
17923# Flag that allows shared libraries with undefined symbols to be built.
17924allow_undefined_flag=$lt_allow_undefined_flag
17925
17926# Flag that forces no undefined symbols.
17927no_undefined_flag=$lt_no_undefined_flag
17928
17929# Commands used to finish a libtool library installation in a directory.
17930finish_cmds=$lt_finish_cmds
17931
17932# Same as above, but a single script fragment to be evaled but not shown.
17933finish_eval=$lt_finish_eval
17934
17935# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017937
17938# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017940
17941# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017942global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017943
17944# This is the shared library runtime path variable.
17945runpath_var=$runpath_var
17946
17947# This is the shared library path variable.
17948shlibpath_var=$shlibpath_var
17949
17950# Is shlibpath searched before the hard-coded library search path?
17951shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17952
17953# How to hardcode a shared library path into an executable.
17954hardcode_action=$hardcode_action
17955
17956# Whether we should hardcode library paths into libraries.
17957hardcode_into_libs=$hardcode_into_libs
17958
17959# Flag to hardcode \$libdir into a binary during linking.
17960# This must work even if \$libdir does not exist.
17961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17962
John Criswell47fdd832003-07-14 16:52:07 +000017963# If ld is used when linking, flag to hardcode \$libdir into
17964# a binary during linking. This must work even if \$libdir does
17965# not exist.
17966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17967
John Criswell7a73b802003-06-30 21:59:07 +000017968# Whether we need a single -rpath flag with a separated argument.
17969hardcode_libdir_separator=$lt_hardcode_libdir_separator
17970
John Criswell47fdd832003-07-14 16:52:07 +000017971# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017972# resulting binary.
17973hardcode_direct=$hardcode_direct
17974
17975# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17976# resulting binary.
17977hardcode_minus_L=$hardcode_minus_L
17978
17979# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17980# the resulting binary.
17981hardcode_shlibpath_var=$hardcode_shlibpath_var
17982
John Criswell47fdd832003-07-14 16:52:07 +000017983# Set to yes if building a shared library automatically hardcodes DIR into the library
17984# and all subsequent libraries and executables linked against it.
17985hardcode_automatic=$hardcode_automatic
17986
John Criswell7a73b802003-06-30 21:59:07 +000017987# Variables whose values should be saved in libtool wrapper scripts and
17988# restored at relink time.
17989variables_saved_for_relink="$variables_saved_for_relink"
17990
17991# Whether libtool must link a program against all its dependency libraries.
17992link_all_deplibs=$link_all_deplibs
17993
17994# Compile-time system search path for libraries
17995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17996
17997# Run-time system search path for libraries
17998sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17999
18000# Fix the shell variable \$srcfile for the compiler.
18001fix_srcfile_path="$fix_srcfile_path"
18002
18003# Set to yes if exported symbols are required.
18004always_export_symbols=$always_export_symbols
18005
18006# The commands to list exported symbols.
18007export_symbols_cmds=$lt_export_symbols_cmds
18008
18009# The commands to extract the exported symbol list from a shared archive.
18010extract_expsyms_cmds=$lt_extract_expsyms_cmds
18011
18012# Symbols that should not be listed in the preloaded symbols.
18013exclude_expsyms=$lt_exclude_expsyms
18014
18015# Symbols that must always be exported.
18016include_expsyms=$lt_include_expsyms
18017
18018# ### END LIBTOOL CONFIG
18019
18020__EOF__
18021
John Criswell47fdd832003-07-14 16:52:07 +000018022
John Criswell7a73b802003-06-30 21:59:07 +000018023 case $host_os in
18024 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018025 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018026
18027# AIX sometimes has problems with the GCC collect2 program. For some
18028# reason, if we set the COLLECT_NAMES environment variable, the problems
18029# vanish in a puff of smoke.
18030if test "X${COLLECT_NAMES+set}" != Xset; then
18031 COLLECT_NAMES=
18032 export COLLECT_NAMES
18033fi
18034EOF
18035 ;;
18036 esac
18037
John Criswell7a73b802003-06-30 21:59:07 +000018038 # We use sed instead of cat because bash on DJGPP gets confused if
18039 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18040 # text mode, it properly converts lines to CR/LF. This bash problem
18041 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018042 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018043
John Criswell47fdd832003-07-14 16:52:07 +000018044 mv -f "$cfgfile" "$ofile" || \
18045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018046 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018047
18048else
18049 # If there is no Makefile yet, we rely on a make rule to execute
18050 # `config.status --recheck' to rerun these tests and create the
18051 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18053 if test -f "$ltmain_in"; then
18054 test -f Makefile && make "$ltmain"
18055 fi
John Criswell7a73b802003-06-30 21:59:07 +000018056fi
John Criswell7a73b802003-06-30 21:59:07 +000018057
18058
John Criswell47fdd832003-07-14 16:52:07 +000018059ac_ext=c
18060ac_cpp='$CPP $CPPFLAGS'
18061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064
18065CC="$lt_save_CC"
18066
18067
Reid Spencera773bd52006-08-04 18:18:08 +000018068# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018069if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018070 withval=$with_tags; tagnames="$withval"
18071fi
18072
John Criswell47fdd832003-07-14 16:52:07 +000018073
18074if test -f "$ltmain" && test -n "$tagnames"; then
18075 if test ! -f "${ofile}"; then
18076 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18077echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18078 fi
18079
18080 if test -z "$LTCC"; then
18081 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18082 if test -z "$LTCC"; then
18083 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18084echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18085 else
18086 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18087echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18088 fi
18089 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018090 if test -z "$LTCFLAGS"; then
18091 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18092 fi
John Criswell47fdd832003-07-14 16:52:07 +000018093
18094 # Extract list of available tagged configurations in $ofile.
18095 # Note that this assumes the entire list is on one line.
18096 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18097
18098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18099 for tagname in $tagnames; do
18100 IFS="$lt_save_ifs"
18101 # Check whether tagname contains only valid characters
18102 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18103 "") ;;
18104 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18105echo "$as_me: error: invalid tag name: $tagname" >&2;}
18106 { (exit 1); exit 1; }; }
18107 ;;
18108 esac
18109
18110 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18111 then
18112 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18113echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18114 { (exit 1); exit 1; }; }
18115 fi
18116
18117 # Update the list of available tags.
18118 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018119 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018120
18121 case $tagname in
18122 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018123 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18124 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18125 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018126 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018127ac_cpp='$CXXCPP $CPPFLAGS'
18128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18131
18132
18133
18134
18135archive_cmds_need_lc_CXX=no
18136allow_undefined_flag_CXX=
18137always_export_symbols_CXX=no
18138archive_expsym_cmds_CXX=
18139export_dynamic_flag_spec_CXX=
18140hardcode_direct_CXX=no
18141hardcode_libdir_flag_spec_CXX=
18142hardcode_libdir_flag_spec_ld_CXX=
18143hardcode_libdir_separator_CXX=
18144hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018145hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018146hardcode_automatic_CXX=no
18147module_cmds_CXX=
18148module_expsym_cmds_CXX=
18149link_all_deplibs_CXX=unknown
18150old_archive_cmds_CXX=$old_archive_cmds
18151no_undefined_flag_CXX=
18152whole_archive_flag_spec_CXX=
18153enable_shared_with_static_runtimes_CXX=no
18154
18155# Dependencies to place before and after the object being linked:
18156predep_objects_CXX=
18157postdep_objects_CXX=
18158predeps_CXX=
18159postdeps_CXX=
18160compiler_lib_search_path_CXX=
18161
18162# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018163ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018164
18165# Object file extension for compiled C++ test sources.
18166objext=o
18167objext_CXX=$objext
18168
18169# Code to be used in simple compile tests
18170lt_simple_compile_test_code="int some_variable = 0;\n"
18171
18172# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018173lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018174
18175# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18176
18177# If no C compiler was specified, use CC.
18178LTCC=${LTCC-"$CC"}
18179
Reid Spencera773bd52006-08-04 18:18:08 +000018180# If no C compiler flags were specified, use CFLAGS.
18181LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18182
John Criswell47fdd832003-07-14 16:52:07 +000018183# Allow CC to be a program name with arguments.
18184compiler=$CC
18185
18186
Reid Spencera773bd52006-08-04 18:18:08 +000018187# save warnings/boilerplate of simple test code
18188ac_outfile=conftest.$ac_objext
18189printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18191_lt_compiler_boilerplate=`cat conftest.err`
18192$rm conftest*
18193
18194ac_outfile=conftest.$ac_objext
18195printf "$lt_simple_link_test_code" >conftest.$ac_ext
18196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18197_lt_linker_boilerplate=`cat conftest.err`
18198$rm conftest*
18199
18200
John Criswell47fdd832003-07-14 16:52:07 +000018201# Allow CC to be a program name with arguments.
18202lt_save_CC=$CC
18203lt_save_LD=$LD
18204lt_save_GCC=$GCC
18205GCC=$GXX
18206lt_save_with_gnu_ld=$with_gnu_ld
18207lt_save_path_LD=$lt_cv_path_LD
18208if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18210else
Reid Spencera773bd52006-08-04 18:18:08 +000018211 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018212fi
18213if test -n "${lt_cv_path_LDCXX+set}"; then
18214 lt_cv_path_LD=$lt_cv_path_LDCXX
18215else
Reid Spencera773bd52006-08-04 18:18:08 +000018216 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018217fi
18218test -z "${LDCXX+set}" || LD=$LDCXX
18219CC=${CXX-"c++"}
18220compiler=$CC
18221compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018222for cc_temp in $compiler""; do
18223 case $cc_temp in
18224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18226 \-*) ;;
18227 *) break;;
18228 esac
18229done
18230cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18231
John Criswell47fdd832003-07-14 16:52:07 +000018232
18233# We don't want -fno-exception wen compiling C++ code, so set the
18234# no_builtin_flag separately
18235if test "$GXX" = yes; then
18236 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18237else
18238 lt_prog_compiler_no_builtin_flag_CXX=
18239fi
18240
18241if test "$GXX" = yes; then
18242 # Set up default GNU C++ configuration
18243
18244
Reid Spencera773bd52006-08-04 18:18:08 +000018245# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018246if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018248else
18249 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018250fi
18251
John Criswell47fdd832003-07-14 16:52:07 +000018252ac_prog=ld
18253if test "$GCC" = yes; then
18254 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018255 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18256echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018257 case $host in
18258 *-*-mingw*)
18259 # gcc leaves a trailing carriage return which upsets mingw
18260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18261 *)
18262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18263 esac
18264 case $ac_prog in
18265 # Accept absolute paths.
18266 [\\/]* | ?:[\\/]*)
18267 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018269 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18270 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18271 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18272 done
18273 test -z "$LD" && LD="$ac_prog"
18274 ;;
18275 "")
18276 # If it fails, then pretend we aren't using GCC.
18277 ac_prog=ld
18278 ;;
18279 *)
18280 # If it is relative, then search for the first ld in PATH.
18281 with_gnu_ld=unknown
18282 ;;
18283 esac
18284elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018285 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18286echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018287else
Reid Spencera773bd52006-08-04 18:18:08 +000018288 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18289echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018290fi
18291if test "${lt_cv_path_LD+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293else
18294 if test -z "$LD"; then
18295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18296 for ac_dir in $PATH; do
18297 IFS="$lt_save_ifs"
18298 test -z "$ac_dir" && ac_dir=.
18299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18300 lt_cv_path_LD="$ac_dir/$ac_prog"
18301 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018302 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018303 # Break only if it was the GNU/non-GNU ld that we prefer.
18304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18305 *GNU* | *'with BFD'*)
18306 test "$with_gnu_ld" != no && break
18307 ;;
18308 *)
18309 test "$with_gnu_ld" != yes && break
18310 ;;
18311 esac
18312 fi
18313 done
18314 IFS="$lt_save_ifs"
18315else
18316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18317fi
18318fi
18319
18320LD="$lt_cv_path_LD"
18321if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018322 { echo "$as_me:$LINENO: result: $LD" >&5
18323echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018324else
Reid Spencera773bd52006-08-04 18:18:08 +000018325 { echo "$as_me:$LINENO: result: no" >&5
18326echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018327fi
18328test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18329echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18330 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018331{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18332echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018333if test "${lt_cv_prog_gnu_ld+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
Reid Spencera773bd52006-08-04 18:18:08 +000018336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018337case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018338*GNU* | *'with BFD'*)
18339 lt_cv_prog_gnu_ld=yes
18340 ;;
18341*)
18342 lt_cv_prog_gnu_ld=no
18343 ;;
18344esac
18345fi
Reid Spencera773bd52006-08-04 18:18:08 +000018346{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18347echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018348with_gnu_ld=$lt_cv_prog_gnu_ld
18349
18350
18351
18352 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18353 # archiving commands below assume that GNU ld is being used.
18354 if test "$with_gnu_ld" = yes; then
18355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18356 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'
18357
18358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18360
18361 # If archive_cmds runs LD, not CC, wlarc should be empty
18362 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18363 # investigate it a little bit more. (MM)
18364 wlarc='${wl}'
18365
18366 # ancient GNU ld didn't support --whole-archive et. al.
18367 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18368 grep 'no-whole-archive' > /dev/null; then
18369 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18370 else
18371 whole_archive_flag_spec_CXX=
18372 fi
18373 else
18374 with_gnu_ld=no
18375 wlarc=
18376
18377 # A generic and very simple default shared library creation
18378 # command for GNU C++ for the case where it uses the native
18379 # linker, instead of GNU ld. If possible, this setting should
18380 # overridden to take advantage of the native linker features on
18381 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018383 fi
18384
18385 # Commands to make compiler produce verbose output that lists
18386 # what "hidden" libraries, object files and flags are used when
18387 # linking a shared library.
18388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18389
18390else
18391 GXX=no
18392 with_gnu_ld=no
18393 wlarc=
18394fi
18395
18396# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018397{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018399ld_shlibs_CXX=yes
18400case $host_os in
18401 aix3*)
18402 # FIXME: insert proper C++ library support
18403 ld_shlibs_CXX=no
18404 ;;
18405 aix4* | aix5*)
18406 if test "$host_cpu" = ia64; then
18407 # On IA64, the linker does run time linking by default, so we don't
18408 # have to do anything special.
18409 aix_use_runtimelinking=no
18410 exp_sym_flag='-Bexport'
18411 no_entry_flag=""
18412 else
18413 aix_use_runtimelinking=no
18414
18415 # Test if we are trying to use run time linking or normal
18416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18417 # need to do runtime linking.
18418 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18419 for ld_flag in $LDFLAGS; do
18420 case $ld_flag in
18421 *-brtl*)
18422 aix_use_runtimelinking=yes
18423 break
18424 ;;
18425 esac
18426 done
Reid Spencera773bd52006-08-04 18:18:08 +000018427 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018428 esac
18429
18430 exp_sym_flag='-bexport'
18431 no_entry_flag='-bnoentry'
18432 fi
18433
18434 # When large executables or shared objects are built, AIX ld can
18435 # have problems creating the table of contents. If linking a library
18436 # or program results in "error TOC overflow" add -mminimal-toc to
18437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18439
18440 archive_cmds_CXX=''
18441 hardcode_direct_CXX=yes
18442 hardcode_libdir_separator_CXX=':'
18443 link_all_deplibs_CXX=yes
18444
18445 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018446 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018447 # We only want to do this on AIX 4.2 and lower, the check
18448 # below for broken collect2 doesn't work under 4.3+
18449 collect2name=`${CC} -print-prog-name=collect2`
18450 if test -f "$collect2name" && \
18451 strings "$collect2name" | grep resolve_lib_name >/dev/null
18452 then
18453 # We have reworked collect2
18454 hardcode_direct_CXX=yes
18455 else
18456 # We have old collect2
18457 hardcode_direct_CXX=unsupported
18458 # It fails to find uninstalled libraries when the uninstalled
18459 # path is not listed in the libpath. Setting hardcode_minus_L
18460 # to unsupported forces relinking
18461 hardcode_minus_L_CXX=yes
18462 hardcode_libdir_flag_spec_CXX='-L$libdir'
18463 hardcode_libdir_separator_CXX=
18464 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018465 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018466 esac
18467 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018468 if test "$aix_use_runtimelinking" = yes; then
18469 shared_flag="$shared_flag "'${wl}-G'
18470 fi
John Criswell47fdd832003-07-14 16:52:07 +000018471 else
18472 # not using gcc
18473 if test "$host_cpu" = ia64; then
18474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18475 # chokes on -Wl,-G. The following line is correct:
18476 shared_flag='-G'
18477 else
18478 if test "$aix_use_runtimelinking" = yes; then
18479 shared_flag='${wl}-G'
18480 else
18481 shared_flag='${wl}-bM:SRE'
18482 fi
18483 fi
18484 fi
18485
18486 # It seems that -bexpall does not export symbols beginning with
18487 # underscore (_), so it is better to generate a list of symbols to export.
18488 always_export_symbols_CXX=yes
18489 if test "$aix_use_runtimelinking" = yes; then
18490 # Warning - without using the other runtime loading flags (-brtl),
18491 # -berok will link without error, but may produce a broken library.
18492 allow_undefined_flag_CXX='-berok'
18493 # Determine the default libpath from the value encoded in an empty executable.
18494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018500
John Criswell47fdd832003-07-14 16:52:07 +000018501int
18502main ()
18503{
18504
18505 ;
18506 return 0;
18507}
18508_ACEOF
18509rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018510if { (ac_try="$ac_link"
18511case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537esac
18538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018543
18544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18545}'`
18546# Check for a 64-bit object if we didn't find anything.
18547if 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; }
18548}'`; fi
18549else
18550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018551sed 's/^/| /' conftest.$ac_ext >&5
18552
Reid Spencera773bd52006-08-04 18:18:08 +000018553
John Criswell47fdd832003-07-14 16:52:07 +000018554fi
Reid Spencera773bd52006-08-04 18:18:08 +000018555
Tanya Lattnercf067672008-01-17 05:57:22 +000018556rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018557 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18559
18560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18561
Reid Spencera773bd52006-08-04 18:18:08 +000018562 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 +000018563 else
18564 if test "$host_cpu" = ia64; then
18565 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18566 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018567 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 +000018568 else
18569 # Determine the default libpath from the value encoded in an empty executable.
18570 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018576
John Criswell47fdd832003-07-14 16:52:07 +000018577int
18578main ()
18579{
18580
18581 ;
18582 return 0;
18583}
18584_ACEOF
18585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018586if { (ac_try="$ac_link"
18587case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613esac
18614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018619
18620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18621}'`
18622# Check for a 64-bit object if we didn't find anything.
18623if 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; }
18624}'`; fi
18625else
18626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018627sed 's/^/| /' conftest.$ac_ext >&5
18628
Reid Spencera773bd52006-08-04 18:18:08 +000018629
John Criswell47fdd832003-07-14 16:52:07 +000018630fi
Reid Spencera773bd52006-08-04 18:18:08 +000018631
Tanya Lattnercf067672008-01-17 05:57:22 +000018632rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018633 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18635
18636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18637 # Warning - without using the other run time loading flags,
18638 # -berok will link without error, but may produce a broken library.
18639 no_undefined_flag_CXX=' ${wl}-bernotok'
18640 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018641 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018642 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018643 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018644 # This is similar to how AIX traditionally builds its shared libraries.
18645 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 +000018646 fi
18647 fi
18648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018649
18650 beos*)
18651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652 allow_undefined_flag_CXX=unsupported
18653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654 # support --undefined. This deserves some investigation. FIXME
18655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 else
18657 ld_shlibs_CXX=no
18658 fi
18659 ;;
18660
John Criswell47fdd832003-07-14 16:52:07 +000018661 chorus*)
18662 case $cc_basename in
18663 *)
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18666 ;;
18667 esac
18668 ;;
18669
18670 cygwin* | mingw* | pw32*)
18671 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18672 # as there is no search path for DLLs.
18673 hardcode_libdir_flag_spec_CXX='-L$libdir'
18674 allow_undefined_flag_CXX=unsupported
18675 always_export_symbols_CXX=no
18676 enable_shared_with_static_runtimes_CXX=yes
18677
18678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018679 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 +000018680 # If the export-symbols file already is a .def file (1st line
18681 # is EXPORTS), use it as is; otherwise, prepend...
18682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18683 cp $export_symbols $output_objdir/$soname.def;
18684 else
18685 echo EXPORTS > $output_objdir/$soname.def;
18686 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018687 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018688 $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 +000018689 else
18690 ld_shlibs_CXX=no
18691 fi
18692 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018693 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018694 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018695 rhapsody* | darwin1.[012])
18696 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18697 ;;
18698 *) # Darwin 1.3 on
18699 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18700 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18701 else
18702 case ${MACOSX_DEPLOYMENT_TARGET} in
18703 10.[012])
18704 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18705 ;;
18706 10.*)
18707 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18708 ;;
18709 esac
18710 fi
18711 ;;
18712 esac
18713 archive_cmds_need_lc_CXX=no
18714 hardcode_direct_CXX=no
18715 hardcode_automatic_CXX=yes
18716 hardcode_shlibpath_var_CXX=unsupported
18717 whole_archive_flag_spec_CXX=''
18718 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018719
Reid Spencer2706f8c2004-09-19 23:53:36 +000018720 if test "$GXX" = yes ; then
18721 lt_int_apple_cc_single_mod=no
18722 output_verbose_link_cmd='echo'
18723 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18724 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018725 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018727 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 +000018728 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018729 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 +000018730 fi
18731 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018732 # 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 +000018733 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018734 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 +000018735 else
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 -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 +000018737 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018738 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 +000018739 else
Reid Spencera773bd52006-08-04 18:18:08 +000018740 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018741 xlc*)
18742 output_verbose_link_cmd='echo'
18743 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'
18744 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018745 # 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 +000018746 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}'
18747 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 +000018748 ;;
18749 *)
18750 ld_shlibs_CXX=no
18751 ;;
18752 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018753 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018754 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018755
18756 dgux*)
18757 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018758 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018759 # FIXME: insert proper C++ library support
18760 ld_shlibs_CXX=no
18761 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018762 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018763 # Green Hills C++ Compiler
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 *)
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18770 ;;
18771 esac
18772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018773 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018774 # C++ shared libraries reported to be fairly broken before switch to ELF
18775 ld_shlibs_CXX=no
18776 ;;
18777 freebsd-elf*)
18778 archive_cmds_need_lc_CXX=no
18779 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018780 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18782 # conventions
18783 ld_shlibs_CXX=yes
18784 ;;
18785 gnu*)
18786 ;;
18787 hpux9*)
18788 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18790 export_dynamic_flag_spec_CXX='${wl}-E'
18791 hardcode_direct_CXX=yes
18792 hardcode_minus_L_CXX=yes # Not in the search PATH,
18793 # but as the default
18794 # location of the library.
18795
18796 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018797 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18800 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018801 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018802 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 +000018803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18806 #
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18810 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018811 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 +000018812 ;;
18813 *)
18814 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018815 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 +000018816 else
18817 # FIXME: insert proper C++ library support
18818 ld_shlibs_CXX=no
18819 fi
18820 ;;
18821 esac
18822 ;;
18823 hpux10*|hpux11*)
18824 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18826 hardcode_libdir_separator_CXX=:
18827
18828 case $host_cpu in
18829 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018830 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018831 ;;
18832 *)
John Criswell47fdd832003-07-14 16:52:07 +000018833 export_dynamic_flag_spec_CXX='${wl}-E'
18834 ;;
18835 esac
18836 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018837 case $host_cpu in
18838 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 hardcode_direct_CXX=no
18840 hardcode_shlibpath_var_CXX=no
18841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018842 *)
18843 hardcode_direct_CXX=yes
18844 hardcode_minus_L_CXX=yes # Not in the search PATH,
18845 # but as the default
18846 # location of the library.
18847 ;;
18848 esac
18849
18850 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018851 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018855 aCC*)
18856 case $host_cpu in
18857 hppa*64*)
18858 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18859 ;;
18860 ia64*)
18861 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 +000018862 ;;
18863 *)
18864 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18865 ;;
18866 esac
18867 # Commands to make compiler produce verbose output that lists
18868 # what "hidden" libraries, object files and flags are used when
18869 # linking a shared library.
18870 #
18871 # There doesn't appear to be a way to prevent this compiler from
18872 # explicitly linking system object files so we need to strip them
18873 # from the output so that they don't get included in the library
18874 # dependencies.
18875 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'
18876 ;;
18877 *)
18878 if test "$GXX" = yes; then
18879 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018880 case $host_cpu in
18881 hppa*64*)
18882 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18883 ;;
18884 ia64*)
18885 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 +000018886 ;;
18887 *)
18888 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'
18889 ;;
18890 esac
18891 fi
18892 else
18893 # FIXME: insert proper C++ library support
18894 ld_shlibs_CXX=no
18895 fi
18896 ;;
18897 esac
18898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018899 interix3*)
18900 hardcode_direct_CXX=no
18901 hardcode_shlibpath_var_CXX=no
18902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18903 export_dynamic_flag_spec_CXX='${wl}-E'
18904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18905 # Instead, shared libraries are loaded at an image base (0x10000000 by
18906 # default) and relocated if they conflict, which is a slow very memory
18907 # consuming and fragmenting process. To avoid this, we pick a random,
18908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18909 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18910 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'
18911 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'
18912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018913 irix5* | irix6*)
18914 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018915 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018916 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018917 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 +000018918
18919 # Archives containing C++ object files must be created using
18920 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18921 # necessary to make sure instantiated templates are included
18922 # in the archive.
18923 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18924 ;;
18925 *)
18926 if test "$GXX" = yes; then
18927 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018928 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 +000018929 else
18930 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'
18931 fi
18932 fi
18933 link_all_deplibs_CXX=yes
18934 ;;
18935 esac
18936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18937 hardcode_libdir_separator_CXX=:
18938 ;;
18939 linux*)
18940 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018941 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018942 # Kuck and Associates, Inc. (KAI) C++ Compiler
18943
18944 # KCC will only create a shared library if the output file
18945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18946 # to its proper name (with version) after linking.
18947 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'
18948 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'
18949 # Commands to make compiler produce verbose output that lists
18950 # what "hidden" libraries, object files and flags are used when
18951 # linking a shared library.
18952 #
18953 # There doesn't appear to be a way to prevent this compiler from
18954 # explicitly linking system object files so we need to strip them
18955 # from the output so that they don't get included in the library
18956 # dependencies.
18957 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'
18958
18959 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18961
18962 # Archives containing C++ object files must be created using
18963 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18964 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018966 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 # Intel C++
18968 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018969 # version 8.0 and above of icpc choke on multiply defined symbols
18970 # if we add $predep_objects and $postdep_objects, however 7.1 and
18971 # earlier do not add the objects themselves.
18972 case `$CC -V 2>&1` in
18973 *"Version 7."*)
18974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18975 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'
18976 ;;
18977 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018978 tmp_idyn=
18979 case $host_cpu in
18980 ia64*) tmp_idyn=' -i_dynamic';;
18981 esac
18982 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18983 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 +000018984 ;;
18985 esac
John Criswell47fdd832003-07-14 16:52:07 +000018986 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018987 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18989 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018991 pgCC*)
18992 # Portland Group C++ compiler
18993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18994 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'
18995
18996 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18997 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18998 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'
18999 ;;
19000 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019001 # Compaq C++
19002 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19003 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'
19004
19005 runpath_var=LD_RUN_PATH
19006 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19007 hardcode_libdir_separator_CXX=:
19008
19009 # Commands to make compiler produce verbose output that lists
19010 # what "hidden" libraries, object files and flags are used when
19011 # linking a shared library.
19012 #
19013 # There doesn't appear to be a way to prevent this compiler from
19014 # explicitly linking system object files so we need to strip them
19015 # from the output so that they don't get included in the library
19016 # dependencies.
19017 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'
19018 ;;
19019 esac
19020 ;;
19021 lynxos*)
19022 # FIXME: insert proper C++ library support
19023 ld_shlibs_CXX=no
19024 ;;
19025 m88k*)
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 mvs*)
19030 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019031 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019032 # FIXME: insert proper C++ library support
19033 ld_shlibs_CXX=no
19034 ;;
19035 *)
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 ;;
19039 esac
19040 ;;
19041 netbsd*)
19042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19043 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19044 wlarc=
19045 hardcode_libdir_flag_spec_CXX='-R$libdir'
19046 hardcode_direct_CXX=yes
19047 hardcode_shlibpath_var_CXX=no
19048 fi
19049 # Workaround some broken pre-1.5 toolchains
19050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19051 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019052 openbsd2*)
19053 # C++ shared libraries are fairly broken
19054 ld_shlibs_CXX=no
19055 ;;
19056 openbsd*)
19057 hardcode_direct_CXX=yes
19058 hardcode_shlibpath_var_CXX=no
19059 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19062 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19063 export_dynamic_flag_spec_CXX='${wl}-E'
19064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19065 fi
19066 output_verbose_link_cmd='echo'
19067 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019068 osf3*)
19069 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019070 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019071 # Kuck and Associates, Inc. (KAI) C++ Compiler
19072
19073 # KCC will only create a shared library if the output file
19074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19075 # to its proper name (with version) after linking.
19076 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'
19077
19078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19079 hardcode_libdir_separator_CXX=:
19080
19081 # Archives containing C++ object files must be created using
19082 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19083 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19084
19085 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019086 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019087 # Rational C++ 2.4.1
19088 # FIXME: insert proper C++ library support
19089 ld_shlibs_CXX=no
19090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019091 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019092 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019093 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 +000019094
19095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19096 hardcode_libdir_separator_CXX=:
19097
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 #
19102 # There doesn't appear to be a way to prevent this compiler from
19103 # explicitly linking system object files so we need to strip them
19104 # from the output so that they don't get included in the library
19105 # dependencies.
19106 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'
19107 ;;
19108 *)
19109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019111 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 +000019112
19113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19114 hardcode_libdir_separator_CXX=:
19115
19116 # Commands to make compiler produce verbose output that lists
19117 # what "hidden" libraries, object files and flags are used when
19118 # linking a shared library.
19119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19120
19121 else
19122 # FIXME: insert proper C++ library support
19123 ld_shlibs_CXX=no
19124 fi
19125 ;;
19126 esac
19127 ;;
19128 osf4* | osf5*)
19129 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019130 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19132
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19137
19138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19139 hardcode_libdir_separator_CXX=:
19140
19141 # Archives containing C++ object files must be created using
19142 # the KAI C++ compiler.
19143 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19144 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019145 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019146 # Rational C++ 2.4.1
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019150 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019151 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019152 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 +000019153 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19154 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019155 $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 +000019156 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019157
19158 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19159 hardcode_libdir_separator_CXX=:
19160
19161 # Commands to make compiler produce verbose output that lists
19162 # what "hidden" libraries, object files and flags are used when
19163 # linking a shared library.
19164 #
19165 # There doesn't appear to be a way to prevent this compiler from
19166 # explicitly linking system object files so we need to strip them
19167 # from the output so that they don't get included in the library
19168 # dependencies.
19169 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'
19170 ;;
19171 *)
19172 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19173 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019174 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 +000019175
19176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19177 hardcode_libdir_separator_CXX=:
19178
19179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
19182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19183
19184 else
19185 # FIXME: insert proper C++ library support
19186 ld_shlibs_CXX=no
19187 fi
19188 ;;
19189 esac
19190 ;;
19191 psos*)
19192 # FIXME: insert proper C++ library support
19193 ld_shlibs_CXX=no
19194 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019195 sunos4*)
19196 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019197 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019198 # Sun C++ 4.x
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019202 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019203 # Lucid
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19206 ;;
19207 *)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19210 ;;
19211 esac
19212 ;;
19213 solaris*)
19214 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019215 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019216 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019217 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019218 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019219 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 +000019220 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 +000019221 $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 +000019222
19223 hardcode_libdir_flag_spec_CXX='-R$libdir'
19224 hardcode_shlibpath_var_CXX=no
19225 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019226 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019227 *)
19228 # The C++ compiler is used as linker so we must use $wl
19229 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019230 # linker. We must also pass each convience library through
19231 # to the system linker between allextract/defaultextract.
19232 # The C++ compiler will combine linker options so we
19233 # cannot just pass the convience library names through
19234 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019235 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019236 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 +000019237 ;;
19238 esac
19239 link_all_deplibs_CXX=yes
19240
Reid Spencera773bd52006-08-04 18:18:08 +000019241 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019242
19243 # Archives containing C++ object files must be created using
19244 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19245 # necessary to make sure instantiated templates are included
19246 # in the archive.
19247 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19248 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019249 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019250 # Green Hills C++ Compiler
19251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19252
19253 # The C++ compiler must be used to create the archive.
19254 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19255 ;;
19256 *)
19257 # GNU C++ compiler with Solaris linker
19258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19259 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19260 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019261 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 +000019262 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19263 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19264
John Criswell47fdd832003-07-14 16:52:07 +000019265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019268 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019269 else
19270 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19271 # platform.
19272 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 +000019273 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19274 $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 +000019275
19276 # Commands to make compiler produce verbose output that lists
19277 # what "hidden" libraries, object files and flags are used when
19278 # linking a shared library.
19279 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19280 fi
19281
19282 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19283 fi
19284 ;;
19285 esac
19286 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19288 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019289 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019290 hardcode_shlibpath_var_CXX=no
19291 runpath_var='LD_RUN_PATH'
19292
19293 case $cc_basename in
19294 CC*)
19295 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 ;;
19298 *)
19299 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 ;;
19302 esac
19303 ;;
19304 sysv5* | sco3.2v5* | sco5v6*)
19305 # Note: We can NOT use -z defs as we might desire, because we do not
19306 # link with -lc, and that would cause any symbols used from libc to
19307 # always be unresolved, which means just about no library would
19308 # ever link correctly. If we're not using GNU ld we use -z text
19309 # though, which does catch some bad symbols but isn't as heavy-handed
19310 # as -z defs.
19311 # For security reasons, it is highly recommended that you always
19312 # use absolute paths for naming shared libraries, and exclude the
19313 # DT_RUNPATH tag from executables and libraries. But doing so
19314 # requires that you compile everything twice, which is a pain.
19315 # So that behaviour is only enabled if SCOABSPATH is set to a
19316 # non-empty value in the environment. Most likely only useful for
19317 # creating official distributions of packages.
19318 # This is a hack until libtool officially supports absolute path
19319 # names for shared libraries.
19320 no_undefined_flag_CXX='${wl}-z,text'
19321 allow_undefined_flag_CXX='${wl}-z,nodefs'
19322 archive_cmds_need_lc_CXX=no
19323 hardcode_shlibpath_var_CXX=no
19324 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19325 hardcode_libdir_separator_CXX=':'
19326 link_all_deplibs_CXX=yes
19327 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19328 runpath_var='LD_RUN_PATH'
19329
19330 case $cc_basename in
19331 CC*)
19332 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19333 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 ;;
19335 *)
19336 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19337 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19338 ;;
19339 esac
John Criswell47fdd832003-07-14 16:52:07 +000019340 ;;
19341 tandem*)
19342 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019343 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019344 # NonStop-UX NCC 3.20
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 ;;
19352 esac
19353 ;;
19354 vxworks*)
19355 # FIXME: insert proper C++ library support
19356 ld_shlibs_CXX=no
19357 ;;
19358 *)
19359 # FIXME: insert proper C++ library support
19360 ld_shlibs_CXX=no
19361 ;;
19362esac
Reid Spencera773bd52006-08-04 18:18:08 +000019363{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19364echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019365test "$ld_shlibs_CXX" = no && can_build_shared=no
19366
19367GCC_CXX="$GXX"
19368LD_CXX="$LD"
19369
John Criswell47fdd832003-07-14 16:52:07 +000019370
19371cat > conftest.$ac_ext <<EOF
19372class Foo
19373{
19374public:
19375 Foo (void) { a = 0; }
19376private:
19377 int a;
19378};
19379EOF
19380
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; then
19386 # Parse the compiler output and extract the necessary
19387 # objects, libraries and library flags.
19388
19389 # Sentinel used to keep track of whether or not we are before
19390 # the conftest object file.
19391 pre_test_object_deps_done=no
19392
19393 # The `*' in the case matches for architectures that use `case' in
19394 # $output_verbose_cmd can trigger glob expansion during the loop
19395 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019396 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019397
19398 for p in `eval $output_verbose_link_cmd`; do
19399 case $p in
19400
19401 -L* | -R* | -l*)
19402 # Some compilers place space between "-{L,R}" and the path.
19403 # Remove the space.
19404 if test $p = "-L" \
19405 || test $p = "-R"; then
19406 prev=$p
19407 continue
19408 else
19409 prev=
19410 fi
19411
19412 if test "$pre_test_object_deps_done" = no; then
19413 case $p in
19414 -L* | -R*)
19415 # Internal compiler library paths should come after those
19416 # provided the user. The postdeps already come after the
19417 # user supplied libs so there is no need to process them.
19418 if test -z "$compiler_lib_search_path_CXX"; then
19419 compiler_lib_search_path_CXX="${prev}${p}"
19420 else
19421 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19422 fi
19423 ;;
19424 # The "-l" case would never come before the object being
19425 # linked, so don't bother handling this case.
19426 esac
19427 else
19428 if test -z "$postdeps_CXX"; then
19429 postdeps_CXX="${prev}${p}"
19430 else
19431 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19432 fi
19433 fi
19434 ;;
19435
19436 *.$objext)
19437 # This assumes that the test object file only shows up
19438 # once in the compiler output.
19439 if test "$p" = "conftest.$objext"; then
19440 pre_test_object_deps_done=yes
19441 continue
19442 fi
19443
19444 if test "$pre_test_object_deps_done" = no; then
19445 if test -z "$predep_objects_CXX"; then
19446 predep_objects_CXX="$p"
19447 else
19448 predep_objects_CXX="$predep_objects_CXX $p"
19449 fi
19450 else
19451 if test -z "$postdep_objects_CXX"; then
19452 postdep_objects_CXX="$p"
19453 else
19454 postdep_objects_CXX="$postdep_objects_CXX $p"
19455 fi
19456 fi
19457 ;;
19458
19459 *) ;; # Ignore the rest.
19460
19461 esac
19462 done
19463
19464 # Clean up.
19465 rm -f a.out a.exe
19466else
19467 echo "libtool.m4: error: problem compiling CXX test program"
19468fi
19469
19470$rm -f confest.$objext
19471
Reid Spencera773bd52006-08-04 18:18:08 +000019472# PORTME: override above test on systems where it is broken
19473case $host_os in
19474interix3*)
19475 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19476 # hack all around it, let's just trust "g++" to DTRT.
19477 predep_objects_CXX=
19478 postdep_objects_CXX=
19479 postdeps_CXX=
19480 ;;
19481
19482solaris*)
19483 case $cc_basename in
19484 CC*)
19485 # Adding this requires a known-good setup of shared libraries for
19486 # Sun compiler versions before 5.6, else PIC objects from an old
19487 # archive will be linked into the output, leading to subtle bugs.
19488 postdeps_CXX='-lCstd -lCrun'
19489 ;;
19490 esac
19491 ;;
19492esac
19493
19494
John Criswell47fdd832003-07-14 16:52:07 +000019495case " $postdeps_CXX " in
19496*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19497esac
19498
19499lt_prog_compiler_wl_CXX=
19500lt_prog_compiler_pic_CXX=
19501lt_prog_compiler_static_CXX=
19502
Reid Spencera773bd52006-08-04 18:18:08 +000019503{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019505
19506 # C++ specific cases for pic, static, wl, etc.
19507 if test "$GXX" = yes; then
19508 lt_prog_compiler_wl_CXX='-Wl,'
19509 lt_prog_compiler_static_CXX='-static'
19510
19511 case $host_os in
19512 aix*)
19513 # All AIX code is PIC.
19514 if test "$host_cpu" = ia64; then
19515 # AIX 5 now supports IA64 processor
19516 lt_prog_compiler_static_CXX='-Bstatic'
19517 fi
19518 ;;
19519 amigaos*)
19520 # FIXME: we need at least 68020 code to build shared libraries, but
19521 # adding the `-m68020' flag to GCC prevents building anything better,
19522 # like `-m68040'.
19523 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19524 ;;
19525 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19526 # PIC is the default for these OSes.
19527 ;;
19528 mingw* | os2* | pw32*)
19529 # This hack is so that the source file can tell whether it is being
19530 # built for inclusion in a dll (and should export symbols for example).
19531 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19532 ;;
19533 darwin* | rhapsody*)
19534 # PIC is the default on this platform
19535 # Common symbols not allowed in MH_DYLIB files
19536 lt_prog_compiler_pic_CXX='-fno-common'
19537 ;;
19538 *djgpp*)
19539 # DJGPP does not support shared libraries at all
19540 lt_prog_compiler_pic_CXX=
19541 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019542 interix3*)
19543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19544 # Instead, we relocate shared libraries at runtime.
19545 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019546 sysv4*MP*)
19547 if test -d /usr/nec; then
19548 lt_prog_compiler_pic_CXX=-Kconform_pic
19549 fi
19550 ;;
19551 hpux*)
19552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19553 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019554 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019555 hppa*64*|ia64*)
19556 ;;
19557 *)
19558 lt_prog_compiler_pic_CXX='-fPIC'
19559 ;;
19560 esac
19561 ;;
19562 *)
19563 lt_prog_compiler_pic_CXX='-fPIC'
19564 ;;
19565 esac
19566 else
19567 case $host_os in
19568 aix4* | aix5*)
19569 # All AIX code is PIC.
19570 if test "$host_cpu" = ia64; then
19571 # AIX 5 now supports IA64 processor
19572 lt_prog_compiler_static_CXX='-Bstatic'
19573 else
19574 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19575 fi
19576 ;;
19577 chorus*)
19578 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019579 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019580 # Green Hills C++ Compiler
19581 # _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"
19582 ;;
19583 esac
19584 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019585 darwin*)
19586 # PIC is the default on this platform
19587 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019588 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019589 xlc*)
19590 lt_prog_compiler_pic_CXX='-qnocommon'
19591 lt_prog_compiler_wl_CXX='-Wl,'
19592 ;;
19593 esac
19594 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019595 dgux*)
19596 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019597 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019598 lt_prog_compiler_pic_CXX='-KPIC'
19599 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019600 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019601 # Green Hills C++ Compiler
19602 lt_prog_compiler_pic_CXX='-pic'
19603 ;;
19604 *)
19605 ;;
19606 esac
19607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019608 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019609 # FreeBSD uses GNU C++
19610 ;;
19611 hpux9* | hpux10* | hpux11*)
19612 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019613 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019614 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019616 if test "$host_cpu" != ia64; then
19617 lt_prog_compiler_pic_CXX='+Z'
19618 fi
19619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019620 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019621 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019622 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19623 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019624 hppa*64*|ia64*)
19625 # +Z the default
19626 ;;
19627 *)
19628 lt_prog_compiler_pic_CXX='+Z'
19629 ;;
19630 esac
19631 ;;
19632 *)
19633 ;;
19634 esac
19635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019636 interix*)
19637 # This is c89, which is MS Visual C++ (no shared libs)
19638 # Anyone wants to do a port?
19639 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019640 irix5* | irix6* | nonstopux*)
19641 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019642 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='-non_shared'
19645 # CC pic flag -KPIC is the default.
19646 ;;
19647 *)
19648 ;;
19649 esac
19650 ;;
19651 linux*)
19652 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019653 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019654 # KAI C++ Compiler
19655 lt_prog_compiler_wl_CXX='--backend -Wl,'
19656 lt_prog_compiler_pic_CXX='-fPIC'
19657 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019658 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019659 # Intel C++
19660 lt_prog_compiler_wl_CXX='-Wl,'
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-static'
19663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019664 pgCC*)
19665 # Portland Group C++ compiler.
19666 lt_prog_compiler_wl_CXX='-Wl,'
19667 lt_prog_compiler_pic_CXX='-fpic'
19668 lt_prog_compiler_static_CXX='-Bstatic'
19669 ;;
19670 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019671 # Compaq C++
19672 # Make sure the PIC flag is empty. It appears that all Alpha
19673 # Linux and Compaq Tru64 Unix objects are PIC.
19674 lt_prog_compiler_pic_CXX=
19675 lt_prog_compiler_static_CXX='-non_shared'
19676 ;;
19677 *)
19678 ;;
19679 esac
19680 ;;
19681 lynxos*)
19682 ;;
19683 m88k*)
19684 ;;
19685 mvs*)
19686 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019687 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019688 lt_prog_compiler_pic_CXX='-W c,exportall'
19689 ;;
19690 *)
19691 ;;
19692 esac
19693 ;;
19694 netbsd*)
19695 ;;
19696 osf3* | osf4* | osf5*)
19697 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019698 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019699 lt_prog_compiler_wl_CXX='--backend -Wl,'
19700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019701 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019702 # Rational C++ 2.4.1
19703 lt_prog_compiler_pic_CXX='-pic'
19704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019705 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019706 # Digital/Compaq C++
19707 lt_prog_compiler_wl_CXX='-Wl,'
19708 # Make sure the PIC flag is empty. It appears that all Alpha
19709 # Linux and Compaq Tru64 Unix objects are PIC.
19710 lt_prog_compiler_pic_CXX=
19711 lt_prog_compiler_static_CXX='-non_shared'
19712 ;;
19713 *)
19714 ;;
19715 esac
19716 ;;
19717 psos*)
19718 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019719 solaris*)
19720 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019721 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019722 # Sun C++ 4.2, 5.x and Centerline C++
19723 lt_prog_compiler_pic_CXX='-KPIC'
19724 lt_prog_compiler_static_CXX='-Bstatic'
19725 lt_prog_compiler_wl_CXX='-Qoption ld '
19726 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019727 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019728 # Green Hills C++ Compiler
19729 lt_prog_compiler_pic_CXX='-PIC'
19730 ;;
19731 *)
19732 ;;
19733 esac
19734 ;;
19735 sunos4*)
19736 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019737 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019738 # Sun C++ 4.x
19739 lt_prog_compiler_pic_CXX='-pic'
19740 lt_prog_compiler_static_CXX='-Bstatic'
19741 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019742 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019743 # Lucid
19744 lt_prog_compiler_pic_CXX='-pic'
19745 ;;
19746 *)
19747 ;;
19748 esac
19749 ;;
19750 tandem*)
19751 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019752 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019753 # NonStop-UX NCC 3.20
19754 lt_prog_compiler_pic_CXX='-KPIC'
19755 ;;
19756 *)
19757 ;;
19758 esac
19759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19761 case $cc_basename in
19762 CC*)
19763 lt_prog_compiler_wl_CXX='-Wl,'
19764 lt_prog_compiler_pic_CXX='-KPIC'
19765 lt_prog_compiler_static_CXX='-Bstatic'
19766 ;;
19767 esac
John Criswell47fdd832003-07-14 16:52:07 +000019768 ;;
19769 vxworks*)
19770 ;;
19771 *)
19772 lt_prog_compiler_can_build_shared_CXX=no
19773 ;;
19774 esac
19775 fi
19776
Reid Spencera773bd52006-08-04 18:18:08 +000019777{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19778echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019779
19780#
19781# Check to make sure the PIC flag actually works.
19782#
19783if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019784
Reid Spencera773bd52006-08-04 18:18:08 +000019785{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19786echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019787if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 lt_prog_compiler_pic_works_CXX=no
19791 ac_outfile=conftest.$ac_objext
19792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19793 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19794 # Insert the option either (1) after the last *FLAGS variable, or
19795 # (2) before a word containing "conftest.", or (3) at the end.
19796 # Note that $ac_compile itself does not contain backslashes and begins
19797 # with a dollar sign (not a hyphen), so the echo should work correctly.
19798 # The option is referenced via a variable to avoid confusing sed.
19799 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19802 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000019803 (eval echo "\"\$as_me:19803: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019804 (eval "$lt_compile" 2>conftest.err)
19805 ac_status=$?
19806 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000019807 echo "$as_me:19807: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019808 if (exit $ac_status) && test -s "$ac_outfile"; then
19809 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019810 # So say no if there are warnings other than the usual output.
19811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019814 lt_prog_compiler_pic_works_CXX=yes
19815 fi
19816 fi
19817 $rm conftest*
19818
19819fi
Reid Spencera773bd52006-08-04 18:18:08 +000019820{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19821echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019822
19823if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19824 case $lt_prog_compiler_pic_CXX in
19825 "" | " "*) ;;
19826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19827 esac
19828else
19829 lt_prog_compiler_pic_CXX=
19830 lt_prog_compiler_can_build_shared_CXX=no
19831fi
19832
19833fi
Reid Spencera773bd52006-08-04 18:18:08 +000019834case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019835 # For platforms which do not support PIC, -DPIC is meaningless:
19836 *djgpp*)
19837 lt_prog_compiler_pic_CXX=
19838 ;;
19839 *)
19840 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19841 ;;
19842esac
19843
Reid Spencera773bd52006-08-04 18:18:08 +000019844#
19845# Check to make sure the static flag actually works.
19846#
19847wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19848{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19849echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19850if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852else
19853 lt_prog_compiler_static_works_CXX=no
19854 save_LDFLAGS="$LDFLAGS"
19855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19856 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19858 # The linker can only warn and ignore the option if not recognized
19859 # So say no if there are warnings
19860 if test -s conftest.err; then
19861 # Append any errors to the config.log.
19862 cat conftest.err 1>&5
19863 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19865 if diff conftest.exp conftest.er2 >/dev/null; then
19866 lt_prog_compiler_static_works_CXX=yes
19867 fi
19868 else
19869 lt_prog_compiler_static_works_CXX=yes
19870 fi
19871 fi
19872 $rm conftest*
19873 LDFLAGS="$save_LDFLAGS"
19874
19875fi
19876{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19877echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19878
19879if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19880 :
19881else
19882 lt_prog_compiler_static_CXX=
19883fi
19884
19885
19886{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19887echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019888if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19890else
19891 lt_cv_prog_compiler_c_o_CXX=no
19892 $rm -r conftest 2>/dev/null
19893 mkdir conftest
19894 cd conftest
19895 mkdir out
19896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19897
John Criswell47fdd832003-07-14 16:52:07 +000019898 lt_compiler_flag="-o out/conftest2.$ac_objext"
19899 # Insert the option either (1) after the last *FLAGS variable, or
19900 # (2) before a word containing "conftest.", or (3) at the end.
19901 # Note that $ac_compile itself does not contain backslashes and begins
19902 # with a dollar sign (not a hyphen), so the echo should work correctly.
19903 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19906 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000019907 (eval echo "\"\$as_me:19907: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019908 (eval "$lt_compile" 2>out/conftest.err)
19909 ac_status=$?
19910 cat out/conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000019911 echo "$as_me:19911: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19913 then
19914 # The compiler can only warn and ignore the option if not recognized
19915 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019919 lt_cv_prog_compiler_c_o_CXX=yes
19920 fi
19921 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019922 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019923 $rm conftest*
19924 # SGI C++ compiler will create directory out/ii_files/ for
19925 # template instantiation
19926 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19927 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019928 cd ..
19929 rmdir conftest
19930 $rm conftest*
19931
19932fi
Reid Spencera773bd52006-08-04 18:18:08 +000019933{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19934echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019935
19936
19937hard_links="nottested"
19938if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19939 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19941echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019942 hard_links=yes
19943 $rm conftest*
19944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19945 touch conftest.a
19946 ln conftest.a conftest.b 2>&5 || hard_links=no
19947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019948 { echo "$as_me:$LINENO: result: $hard_links" >&5
19949echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019950 if test "$hard_links" = no; then
19951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19952echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19953 need_locks=warn
19954 fi
19955else
19956 need_locks=no
19957fi
19958
Reid Spencera773bd52006-08-04 18:18:08 +000019959{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19960echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019961
19962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19963 case $host_os in
19964 aix4* | aix5*)
19965 # If we're using GNU nm, then we don't want the "-C" option.
19966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19967 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19968 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'
19969 else
19970 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'
19971 fi
19972 ;;
19973 pw32*)
19974 export_symbols_cmds_CXX="$ltdll_cmds"
19975 ;;
19976 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019977 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 +000019978 ;;
19979 *)
19980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19981 ;;
19982 esac
19983
Reid Spencera773bd52006-08-04 18:18:08 +000019984{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19985echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019986test "$ld_shlibs_CXX" = no && can_build_shared=no
19987
John Criswell47fdd832003-07-14 16:52:07 +000019988#
19989# Do we need to explicitly link libc?
19990#
19991case "x$archive_cmds_need_lc_CXX" in
19992x|xyes)
19993 # Assume -lc should be added
19994 archive_cmds_need_lc_CXX=yes
19995
19996 if test "$enable_shared" = yes && test "$GCC" = yes; then
19997 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019998 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019999 # FIXME: we may have to deal with multi-command sequences.
20000 ;;
20001 '$CC '*)
20002 # Test whether the compiler implicitly links with -lc since on some
20003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20004 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020005 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20006echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020007 $rm conftest*
20008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20009
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } 2>conftest.err; then
20015 soname=conftest
20016 lib=conftest
20017 libobjs=conftest.$ac_objext
20018 deplibs=
20019 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020020 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020021 compiler_flags=-v
20022 linker_flags=-v
20023 verstring=
20024 output_objdir=.
20025 libname=conftest
20026 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20027 allow_undefined_flag_CXX=
20028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20029 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }
20033 then
20034 archive_cmds_need_lc_CXX=no
20035 else
20036 archive_cmds_need_lc_CXX=yes
20037 fi
20038 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20039 else
20040 cat conftest.err 1>&5
20041 fi
20042 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020043 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20044echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020045 ;;
20046 esac
20047 fi
20048 ;;
20049esac
20050
Reid Spencera773bd52006-08-04 18:18:08 +000020051{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20052echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020053library_names_spec=
20054libname_spec='lib$name'
20055soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020056shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020057postinstall_cmds=
20058postuninstall_cmds=
20059finish_cmds=
20060finish_eval=
20061shlibpath_var=
20062shlibpath_overrides_runpath=unknown
20063version_type=none
20064dynamic_linker="$host_os ld.so"
20065sys_lib_dlsearch_path_spec="/lib /usr/lib"
20066if test "$GCC" = yes; then
20067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20069 # if the path contains ";" then we assume it to be the separator
20070 # otherwise default to the standard path separator (i.e. ":") - it is
20071 # assumed that no part of a normal pathname contains ";" but that should
20072 # okay in the real world where ";" in dirpaths is itself problematic.
20073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20074 else
20075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20076 fi
20077else
20078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20079fi
20080need_lib_prefix=unknown
20081hardcode_into_libs=no
20082
20083# when you set need_version to no, make sure it does not cause -set_version
20084# flags to be left without arguments
20085need_version=unknown
20086
20087case $host_os in
20088aix3*)
20089 version_type=linux
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20091 shlibpath_var=LIBPATH
20092
20093 # AIX 3 has no versioning support, so we append a major version to the name.
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 ;;
20096
20097aix4* | aix5*)
20098 version_type=linux
20099 need_lib_prefix=no
20100 need_version=no
20101 hardcode_into_libs=yes
20102 if test "$host_cpu" = ia64; then
20103 # AIX 5 supports IA64
20104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20105 shlibpath_var=LD_LIBRARY_PATH
20106 else
20107 # With GCC up to 2.95.x, collect2 would create an import file
20108 # for dependence libraries. The import file would start with
20109 # the line `#! .'. This would cause the generated library to
20110 # depend on `.', always an invalid library. This was fixed in
20111 # development snapshots of GCC prior to 3.0.
20112 case $host_os in
20113 aix4 | aix4.[01] | aix4.[01].*)
20114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20115 echo ' yes '
20116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20117 :
20118 else
20119 can_build_shared=no
20120 fi
20121 ;;
20122 esac
20123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20124 # soname into executable. Probably we can add versioning support to
20125 # collect2, so additional links can be useful in future.
20126 if test "$aix_use_runtimelinking" = yes; then
20127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20128 # instead of lib<name>.a to let people know that these are not
20129 # typical AIX shared libraries.
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20131 else
20132 # We preserve .a as extension for shared libraries through AIX4.2
20133 # and later when we are not doing run time linking.
20134 library_names_spec='${libname}${release}.a $libname.a'
20135 soname_spec='${libname}${release}${shared_ext}$major'
20136 fi
20137 shlibpath_var=LIBPATH
20138 fi
20139 ;;
20140
20141amigaos*)
20142 library_names_spec='$libname.ixlibrary $libname.a'
20143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020144 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 +000020145 ;;
20146
20147beos*)
20148 library_names_spec='${libname}${shared_ext}'
20149 dynamic_linker="$host_os ld.so"
20150 shlibpath_var=LIBRARY_PATH
20151 ;;
20152
Reid Spencer2706f8c2004-09-19 23:53:36 +000020153bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020154 version_type=linux
20155 need_version=no
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20159 shlibpath_var=LD_LIBRARY_PATH
20160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20162 # the default ld.so.conf also contains /usr/contrib/lib and
20163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20164 # libtool to hard-code these into programs
20165 ;;
20166
20167cygwin* | mingw* | pw32*)
20168 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020169 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020170 need_version=no
20171 need_lib_prefix=no
20172
20173 case $GCC,$host_os in
20174 yes,cygwin* | yes,mingw* | yes,pw32*)
20175 library_names_spec='$libname.dll.a'
20176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020177 postinstall_cmds='base_file=`basename \${file}`~
20178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20179 dldir=$destdir/`dirname \$dlpath`~
20180 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020181 $install_prog $dir/$dlname \$dldir/$dlname~
20182 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20184 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020185 $rm \$dlpath'
20186 shlibpath_overrides_runpath=yes
20187
20188 case $host_os in
20189 cygwin*)
20190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20191 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 +000020192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020193 ;;
20194 mingw*)
20195 # MinGW DLLs use traditional 'lib' prefix
20196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20199 # It is most probably a Windows format PATH printed by
20200 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20201 # path with ; separators, and with drive letters. We can handle the
20202 # drive letters (cygwin fileutils understands them), so leave them,
20203 # especially as we might pass files found there to a mingw objdump,
20204 # which wouldn't understand a cygwinified path. Ahh.
20205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20206 else
20207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20208 fi
20209 ;;
20210 pw32*)
20211 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020212 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 +000020213 ;;
20214 esac
20215 ;;
20216
20217 *)
20218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20219 ;;
20220 esac
20221 dynamic_linker='Win32 ld.exe'
20222 # FIXME: first we should search . and the directory the executable is in
20223 shlibpath_var=PATH
20224 ;;
20225
20226darwin* | rhapsody*)
20227 dynamic_linker="$host_os dyld"
20228 version_type=darwin
20229 need_lib_prefix=no
20230 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020232 soname_spec='${libname}${release}${major}$shared_ext'
20233 shlibpath_overrides_runpath=yes
20234 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020235 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237 if test "$GCC" = yes; then
20238 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"`
20239 else
20240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020241 fi
20242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20243 ;;
20244
20245dgux*)
20246 version_type=linux
20247 need_lib_prefix=no
20248 need_version=no
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 ;;
20253
20254freebsd1*)
20255 dynamic_linker=no
20256 ;;
20257
Reid Spencer2706f8c2004-09-19 23:53:36 +000020258kfreebsd*-gnu)
20259 version_type=linux
20260 need_lib_prefix=no
20261 need_version=no
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 hardcode_into_libs=yes
20267 dynamic_linker='GNU ld.so'
20268 ;;
20269
Reid Spencera773bd52006-08-04 18:18:08 +000020270freebsd* | dragonfly*)
20271 # DragonFly does not have aout. When/if they implement a new
20272 # versioning mechanism, adjust this.
20273 if test -x /usr/bin/objformat; then
20274 objformat=`/usr/bin/objformat`
20275 else
20276 case $host_os in
20277 freebsd[123]*) objformat=aout ;;
20278 *) objformat=elf ;;
20279 esac
20280 fi
John Criswell47fdd832003-07-14 16:52:07 +000020281 version_type=freebsd-$objformat
20282 case $version_type in
20283 freebsd-elf*)
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20285 need_version=no
20286 need_lib_prefix=no
20287 ;;
20288 freebsd-*)
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20290 need_version=yes
20291 ;;
20292 esac
20293 shlibpath_var=LD_LIBRARY_PATH
20294 case $host_os in
20295 freebsd2*)
20296 shlibpath_overrides_runpath=yes
20297 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020298 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020299 shlibpath_overrides_runpath=yes
20300 hardcode_into_libs=yes
20301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020304 shlibpath_overrides_runpath=no
20305 hardcode_into_libs=yes
20306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020307 freebsd*) # from 4.6 on
20308 shlibpath_overrides_runpath=yes
20309 hardcode_into_libs=yes
20310 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020311 esac
20312 ;;
20313
20314gnu*)
20315 version_type=linux
20316 need_lib_prefix=no
20317 need_version=no
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20319 soname_spec='${libname}${release}${shared_ext}$major'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 hardcode_into_libs=yes
20322 ;;
20323
20324hpux9* | hpux10* | hpux11*)
20325 # Give a soname corresponding to the major version so that dld.sl refuses to
20326 # link against other versions.
20327 version_type=sunos
20328 need_lib_prefix=no
20329 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020330 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020331 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020332 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020333 hardcode_into_libs=yes
20334 dynamic_linker="$host_os dld.so"
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 if test "X$HPUX_IA64_MODE" = X32; then
20340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20341 else
20342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20343 fi
20344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20345 ;;
20346 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020347 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020348 hardcode_into_libs=yes
20349 dynamic_linker="$host_os dld.sl"
20350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20356 ;;
20357 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020358 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020359 dynamic_linker="$host_os dld.sl"
20360 shlibpath_var=SHLIB_PATH
20361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 ;;
20365 esac
20366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20367 postinstall_cmds='chmod 555 $lib'
20368 ;;
20369
Reid Spencera773bd52006-08-04 18:18:08 +000020370interix3*)
20371 version_type=linux
20372 need_lib_prefix=no
20373 need_version=no
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=no
20379 hardcode_into_libs=yes
20380 ;;
20381
John Criswell47fdd832003-07-14 16:52:07 +000020382irix5* | irix6* | nonstopux*)
20383 case $host_os in
20384 nonstopux*) version_type=nonstopux ;;
20385 *)
20386 if test "$lt_cv_prog_gnu_ld" = yes; then
20387 version_type=linux
20388 else
20389 version_type=irix
20390 fi ;;
20391 esac
20392 need_lib_prefix=no
20393 need_version=no
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20396 case $host_os in
20397 irix5* | nonstopux*)
20398 libsuff= shlibsuff=
20399 ;;
20400 *)
20401 case $LD in # libtool.m4 will add one of these switches to LD
20402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20403 libsuff= shlibsuff= libmagic=32-bit;;
20404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20405 libsuff=32 shlibsuff=N32 libmagic=N32;;
20406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20408 *) libsuff= shlibsuff= libmagic=never-match;;
20409 esac
20410 ;;
20411 esac
20412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20413 shlibpath_overrides_runpath=no
20414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20416 hardcode_into_libs=yes
20417 ;;
20418
20419# No shared lib support for Linux oldld, aout, or coff.
20420linux*oldld* | linux*aout* | linux*coff*)
20421 dynamic_linker=no
20422 ;;
20423
20424# This must be Linux ELF.
20425linux*)
20426 version_type=linux
20427 need_lib_prefix=no
20428 need_version=no
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20432 shlibpath_var=LD_LIBRARY_PATH
20433 shlibpath_overrides_runpath=no
20434 # This implies no fast_install, which is unacceptable.
20435 # Some rework will be needed to allow for fast_install
20436 # before this can be enabled.
20437 hardcode_into_libs=yes
20438
Reid Spencer2706f8c2004-09-19 23:53:36 +000020439 # Append ld.so.conf contents to the search path
20440 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020441 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 +000020442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20443 fi
20444
John Criswell47fdd832003-07-14 16:52:07 +000020445 # We used to test for /lib/ld.so.1 and disable shared libraries on
20446 # powerpc, because MkLinux only supported shared libraries with the
20447 # GNU dynamic linker. Since this was broken with cross compilers,
20448 # most powerpc-linux boxes support dynamic linking these days and
20449 # people can always --disable-shared, the test was removed, and we
20450 # assume the GNU/Linux dynamic linker is in use.
20451 dynamic_linker='GNU/Linux ld.so'
20452 ;;
20453
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454knetbsd*-gnu)
20455 version_type=linux
20456 need_lib_prefix=no
20457 need_version=no
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20459 soname_spec='${libname}${release}${shared_ext}$major'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=no
20462 hardcode_into_libs=yes
20463 dynamic_linker='GNU ld.so'
20464 ;;
20465
John Criswell47fdd832003-07-14 16:52:07 +000020466netbsd*)
20467 version_type=sunos
20468 need_lib_prefix=no
20469 need_version=no
20470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20473 dynamic_linker='NetBSD (a.out) ld.so'
20474 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020476 soname_spec='${libname}${release}${shared_ext}$major'
20477 dynamic_linker='NetBSD ld.elf_so'
20478 fi
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=yes
20481 hardcode_into_libs=yes
20482 ;;
20483
20484newsos6)
20485 version_type=linux
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 ;;
20490
Reid Spencer2706f8c2004-09-19 23:53:36 +000020491nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020492 version_type=linux
20493 need_lib_prefix=no
20494 need_version=no
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 soname_spec='${libname}${release}${shared_ext}$major'
20497 shlibpath_var=LD_LIBRARY_PATH
20498 shlibpath_overrides_runpath=yes
20499 ;;
20500
20501openbsd*)
20502 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020503 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020504 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020505 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20506 case $host_os in
20507 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20508 *) need_version=no ;;
20509 esac
John Criswell47fdd832003-07-14 16:52:07 +000020510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20514 case $host_os in
20515 openbsd2.[89] | openbsd2.[89].*)
20516 shlibpath_overrides_runpath=no
20517 ;;
20518 *)
20519 shlibpath_overrides_runpath=yes
20520 ;;
20521 esac
20522 else
20523 shlibpath_overrides_runpath=yes
20524 fi
20525 ;;
20526
20527os2*)
20528 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020529 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020530 need_lib_prefix=no
20531 library_names_spec='$libname${shared_ext} $libname.a'
20532 dynamic_linker='OS/2 ld.exe'
20533 shlibpath_var=LIBPATH
20534 ;;
20535
20536osf3* | osf4* | osf5*)
20537 version_type=osf
20538 need_lib_prefix=no
20539 need_version=no
20540 soname_spec='${libname}${release}${shared_ext}$major'
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20545 ;;
20546
John Criswell47fdd832003-07-14 16:52:07 +000020547solaris*)
20548 version_type=linux
20549 need_lib_prefix=no
20550 need_version=no
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20552 soname_spec='${libname}${release}${shared_ext}$major'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 shlibpath_overrides_runpath=yes
20555 hardcode_into_libs=yes
20556 # ldd complains unless libraries are executable
20557 postinstall_cmds='chmod +x $lib'
20558 ;;
20559
20560sunos4*)
20561 version_type=sunos
20562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20564 shlibpath_var=LD_LIBRARY_PATH
20565 shlibpath_overrides_runpath=yes
20566 if test "$with_gnu_ld" = yes; then
20567 need_lib_prefix=no
20568 fi
20569 need_version=yes
20570 ;;
20571
Reid Spencera773bd52006-08-04 18:18:08 +000020572sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020573 version_type=linux
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 case $host_vendor in
20578 sni)
20579 shlibpath_overrides_runpath=no
20580 need_lib_prefix=no
20581 export_dynamic_flag_spec='${wl}-Blargedynsym'
20582 runpath_var=LD_RUN_PATH
20583 ;;
20584 siemens)
20585 need_lib_prefix=no
20586 ;;
20587 motorola)
20588 need_lib_prefix=no
20589 need_version=no
20590 shlibpath_overrides_runpath=no
20591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20592 ;;
20593 esac
20594 ;;
20595
20596sysv4*MP*)
20597 if test -d /usr/nec ;then
20598 version_type=linux
20599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20600 soname_spec='$libname${shared_ext}.$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20602 fi
20603 ;;
20604
Reid Spencera773bd52006-08-04 18:18:08 +000020605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20606 version_type=freebsd-elf
20607 need_lib_prefix=no
20608 need_version=no
20609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20610 soname_spec='${libname}${release}${shared_ext}$major'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 hardcode_into_libs=yes
20613 if test "$with_gnu_ld" = yes; then
20614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20615 shlibpath_overrides_runpath=no
20616 else
20617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20618 shlibpath_overrides_runpath=yes
20619 case $host_os in
20620 sco3.2v5*)
20621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20622 ;;
20623 esac
20624 fi
20625 sys_lib_dlsearch_path_spec='/usr/lib'
20626 ;;
20627
John Criswell47fdd832003-07-14 16:52:07 +000020628uts4*)
20629 version_type=linux
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 ;;
20634
20635*)
20636 dynamic_linker=no
20637 ;;
20638esac
Reid Spencera773bd52006-08-04 18:18:08 +000020639{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20640echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020641test "$dynamic_linker" = no && can_build_shared=no
20642
Reid Spencera773bd52006-08-04 18:18:08 +000020643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20644if test "$GCC" = yes; then
20645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20646fi
20647
20648{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20649echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020650hardcode_action_CXX=
20651if test -n "$hardcode_libdir_flag_spec_CXX" || \
20652 test -n "$runpath_var_CXX" || \
20653 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20654
20655 # We can hardcode non-existant directories.
20656 if test "$hardcode_direct_CXX" != no &&
20657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20658 # have to relink, otherwise we might link with an installed library
20659 # when we should be linking with a yet-to-be-installed one
20660 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20661 test "$hardcode_minus_L_CXX" != no; then
20662 # Linking always hardcodes the temporary library directory.
20663 hardcode_action_CXX=relink
20664 else
20665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20666 hardcode_action_CXX=immediate
20667 fi
20668else
20669 # We cannot hardcode anything, or else we can only hardcode existing
20670 # directories.
20671 hardcode_action_CXX=unsupported
20672fi
Reid Spencera773bd52006-08-04 18:18:08 +000020673{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20674echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020675
20676if test "$hardcode_action_CXX" = relink; then
20677 # Fast installation is not supported
20678 enable_fast_install=no
20679elif test "$shlibpath_overrides_runpath" = yes ||
20680 test "$enable_shared" = no; then
20681 # Fast installation is not necessary
20682 enable_fast_install=needless
20683fi
20684
John Criswell47fdd832003-07-14 16:52:07 +000020685
20686# The else clause should only fire when bootstrapping the
20687# libtool distribution, otherwise you forgot to ship ltmain.sh
20688# with your package, and you will get complaints that there are
20689# no rules to generate ltmain.sh.
20690if test -f "$ltmain"; then
20691 # See if we are running on zsh, and set the options which allow our commands through
20692 # without removal of \ escapes.
20693 if test -n "${ZSH_VERSION+set}" ; then
20694 setopt NO_GLOB_SUBST
20695 fi
20696 # Now quote all the things that may contain metacharacters while being
20697 # careful not to overquote the AC_SUBSTed values. We take copies of the
20698 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020699 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 +000020700 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20703 deplibs_check_method reload_flag reload_cmds need_locks \
20704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20705 lt_cv_sys_global_symbol_to_c_name_address \
20706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20707 old_postinstall_cmds old_postuninstall_cmds \
20708 compiler_CXX \
20709 CC_CXX \
20710 LD_CXX \
20711 lt_prog_compiler_wl_CXX \
20712 lt_prog_compiler_pic_CXX \
20713 lt_prog_compiler_static_CXX \
20714 lt_prog_compiler_no_builtin_flag_CXX \
20715 export_dynamic_flag_spec_CXX \
20716 thread_safe_flag_spec_CXX \
20717 whole_archive_flag_spec_CXX \
20718 enable_shared_with_static_runtimes_CXX \
20719 old_archive_cmds_CXX \
20720 old_archive_from_new_cmds_CXX \
20721 predep_objects_CXX \
20722 postdep_objects_CXX \
20723 predeps_CXX \
20724 postdeps_CXX \
20725 compiler_lib_search_path_CXX \
20726 archive_cmds_CXX \
20727 archive_expsym_cmds_CXX \
20728 postinstall_cmds_CXX \
20729 postuninstall_cmds_CXX \
20730 old_archive_from_expsyms_cmds_CXX \
20731 allow_undefined_flag_CXX \
20732 no_undefined_flag_CXX \
20733 export_symbols_cmds_CXX \
20734 hardcode_libdir_flag_spec_CXX \
20735 hardcode_libdir_flag_spec_ld_CXX \
20736 hardcode_libdir_separator_CXX \
20737 hardcode_automatic_CXX \
20738 module_cmds_CXX \
20739 module_expsym_cmds_CXX \
20740 lt_cv_prog_compiler_c_o_CXX \
20741 exclude_expsyms_CXX \
20742 include_expsyms_CXX; do
20743
20744 case $var in
20745 old_archive_cmds_CXX | \
20746 old_archive_from_new_cmds_CXX | \
20747 archive_cmds_CXX | \
20748 archive_expsym_cmds_CXX | \
20749 module_cmds_CXX | \
20750 module_expsym_cmds_CXX | \
20751 old_archive_from_expsyms_cmds_CXX | \
20752 export_symbols_cmds_CXX | \
20753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20754 postinstall_cmds | postuninstall_cmds | \
20755 old_postinstall_cmds | old_postuninstall_cmds | \
20756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20757 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020758 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 +000020759 ;;
20760 *)
20761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20762 ;;
20763 esac
20764 done
20765
20766 case $lt_echo in
20767 *'\$0 --fallback-echo"')
20768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20769 ;;
20770 esac
20771
20772cfgfile="$ofile"
20773
20774 cat <<__EOF__ >> "$cfgfile"
20775# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20776
20777# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20778
20779# Shell to use when invoking shell scripts.
20780SHELL=$lt_SHELL
20781
20782# Whether or not to build shared libraries.
20783build_libtool_libs=$enable_shared
20784
20785# Whether or not to build static libraries.
20786build_old_libs=$enable_static
20787
20788# Whether or not to add -lc for building shared libraries.
20789build_libtool_need_lc=$archive_cmds_need_lc_CXX
20790
20791# Whether or not to disallow shared libs when runtime libs are static
20792allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20793
20794# Whether or not to optimize for fast installation.
20795fast_install=$enable_fast_install
20796
20797# The host system.
20798host_alias=$host_alias
20799host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020800host_os=$host_os
20801
20802# The build system.
20803build_alias=$build_alias
20804build=$build
20805build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020806
20807# An echo program that does not interpret backslashes.
20808echo=$lt_echo
20809
20810# The archiver.
20811AR=$lt_AR
20812AR_FLAGS=$lt_AR_FLAGS
20813
20814# A C compiler.
20815LTCC=$lt_LTCC
20816
Reid Spencera773bd52006-08-04 18:18:08 +000020817# LTCC compiler flags.
20818LTCFLAGS=$lt_LTCFLAGS
20819
John Criswell47fdd832003-07-14 16:52:07 +000020820# A language-specific compiler.
20821CC=$lt_compiler_CXX
20822
20823# Is the compiler the GNU C compiler?
20824with_gcc=$GCC_CXX
20825
20826# An ERE matcher.
20827EGREP=$lt_EGREP
20828
20829# The linker used to build libraries.
20830LD=$lt_LD_CXX
20831
20832# Whether we need hard or soft links.
20833LN_S=$lt_LN_S
20834
20835# A BSD-compatible nm program.
20836NM=$lt_NM
20837
20838# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020839STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020840
20841# Used to examine libraries when file_magic_cmd begins "file"
20842MAGIC_CMD=$MAGIC_CMD
20843
20844# Used on cygwin: DLL creation program.
20845DLLTOOL="$DLLTOOL"
20846
20847# Used on cygwin: object dumper.
20848OBJDUMP="$OBJDUMP"
20849
20850# Used on cygwin: assembler.
20851AS="$AS"
20852
20853# The name of the directory that contains temporary libtool files.
20854objdir=$objdir
20855
20856# How to create reloadable object files.
20857reload_flag=$lt_reload_flag
20858reload_cmds=$lt_reload_cmds
20859
20860# How to pass a linker flag through the compiler.
20861wl=$lt_lt_prog_compiler_wl_CXX
20862
20863# Object file suffix (normally "o").
20864objext="$ac_objext"
20865
20866# Old archive suffix (normally "a").
20867libext="$libext"
20868
20869# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020870shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020871
20872# Executable file suffix (normally "").
20873exeext="$exeext"
20874
20875# Additional compiler flags for building library objects.
20876pic_flag=$lt_lt_prog_compiler_pic_CXX
20877pic_mode=$pic_mode
20878
20879# What is the maximum length of a command?
20880max_cmd_len=$lt_cv_sys_max_cmd_len
20881
20882# Does compiler simultaneously support -c and -o options?
20883compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20884
Reid Spencera773bd52006-08-04 18:18:08 +000020885# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020886need_locks=$lt_need_locks
20887
20888# Do we need the lib prefix for modules?
20889need_lib_prefix=$need_lib_prefix
20890
20891# Do we need a version for libraries?
20892need_version=$need_version
20893
20894# Whether dlopen is supported.
20895dlopen_support=$enable_dlopen
20896
20897# Whether dlopen of programs is supported.
20898dlopen_self=$enable_dlopen_self
20899
20900# Whether dlopen of statically linked programs is supported.
20901dlopen_self_static=$enable_dlopen_self_static
20902
20903# Compiler flag to prevent dynamic linking.
20904link_static_flag=$lt_lt_prog_compiler_static_CXX
20905
20906# Compiler flag to turn off builtin functions.
20907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20908
20909# Compiler flag to allow reflexive dlopens.
20910export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20911
20912# Compiler flag to generate shared objects directly from archives.
20913whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20914
20915# Compiler flag to generate thread-safe objects.
20916thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20917
20918# Library versioning type.
20919version_type=$version_type
20920
20921# Format of library name prefix.
20922libname_spec=$lt_libname_spec
20923
20924# List of archive names. First name is the real one, the rest are links.
20925# The last name is the one that the linker finds with -lNAME.
20926library_names_spec=$lt_library_names_spec
20927
20928# The coded name of the library, if different from the real name.
20929soname_spec=$lt_soname_spec
20930
20931# Commands used to build and install an old-style archive.
20932RANLIB=$lt_RANLIB
20933old_archive_cmds=$lt_old_archive_cmds_CXX
20934old_postinstall_cmds=$lt_old_postinstall_cmds
20935old_postuninstall_cmds=$lt_old_postuninstall_cmds
20936
20937# Create an old-style archive from a shared archive.
20938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20939
20940# Create a temporary old-style archive to link instead of a shared archive.
20941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20942
20943# Commands used to build and install a shared archive.
20944archive_cmds=$lt_archive_cmds_CXX
20945archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20946postinstall_cmds=$lt_postinstall_cmds
20947postuninstall_cmds=$lt_postuninstall_cmds
20948
20949# Commands used to build a loadable module (assumed same as above if empty)
20950module_cmds=$lt_module_cmds_CXX
20951module_expsym_cmds=$lt_module_expsym_cmds_CXX
20952
20953# Commands to strip libraries.
20954old_striplib=$lt_old_striplib
20955striplib=$lt_striplib
20956
20957# Dependencies to place before the objects being linked to create a
20958# shared library.
20959predep_objects=$lt_predep_objects_CXX
20960
20961# Dependencies to place after the objects being linked to create a
20962# shared library.
20963postdep_objects=$lt_postdep_objects_CXX
20964
20965# Dependencies to place before the objects being linked to create a
20966# shared library.
20967predeps=$lt_predeps_CXX
20968
20969# Dependencies to place after the objects being linked to create a
20970# shared library.
20971postdeps=$lt_postdeps_CXX
20972
20973# The library search path used internally by the compiler when linking
20974# a shared library.
20975compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20976
20977# Method to check whether dependent libraries are shared objects.
20978deplibs_check_method=$lt_deplibs_check_method
20979
20980# Command to use when deplibs_check_method == file_magic.
20981file_magic_cmd=$lt_file_magic_cmd
20982
20983# Flag that allows shared libraries with undefined symbols to be built.
20984allow_undefined_flag=$lt_allow_undefined_flag_CXX
20985
20986# Flag that forces no undefined symbols.
20987no_undefined_flag=$lt_no_undefined_flag_CXX
20988
20989# Commands used to finish a libtool library installation in a directory.
20990finish_cmds=$lt_finish_cmds
20991
20992# Same as above, but a single script fragment to be evaled but not shown.
20993finish_eval=$lt_finish_eval
20994
20995# Take the output of nm and produce a listing of raw symbols and C names.
20996global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20997
20998# Transform the output of nm in a proper C declaration
20999global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21000
21001# Transform the output of nm in a C name address pair
21002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21003
21004# This is the shared library runtime path variable.
21005runpath_var=$runpath_var
21006
21007# This is the shared library path variable.
21008shlibpath_var=$shlibpath_var
21009
21010# Is shlibpath searched before the hard-coded library search path?
21011shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21012
21013# How to hardcode a shared library path into an executable.
21014hardcode_action=$hardcode_action_CXX
21015
21016# Whether we should hardcode library paths into libraries.
21017hardcode_into_libs=$hardcode_into_libs
21018
21019# Flag to hardcode \$libdir into a binary during linking.
21020# This must work even if \$libdir does not exist.
21021hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21022
21023# If ld is used when linking, flag to hardcode \$libdir into
21024# a binary during linking. This must work even if \$libdir does
21025# not exist.
21026hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21027
21028# Whether we need a single -rpath flag with a separated argument.
21029hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21030
21031# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21032# resulting binary.
21033hardcode_direct=$hardcode_direct_CXX
21034
21035# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21036# resulting binary.
21037hardcode_minus_L=$hardcode_minus_L_CXX
21038
21039# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21040# the resulting binary.
21041hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21042
21043# Set to yes if building a shared library automatically hardcodes DIR into the library
21044# and all subsequent libraries and executables linked against it.
21045hardcode_automatic=$hardcode_automatic_CXX
21046
21047# Variables whose values should be saved in libtool wrapper scripts and
21048# restored at relink time.
21049variables_saved_for_relink="$variables_saved_for_relink"
21050
21051# Whether libtool must link a program against all its dependency libraries.
21052link_all_deplibs=$link_all_deplibs_CXX
21053
21054# Compile-time system search path for libraries
21055sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21056
21057# Run-time system search path for libraries
21058sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21059
21060# Fix the shell variable \$srcfile for the compiler.
21061fix_srcfile_path="$fix_srcfile_path_CXX"
21062
21063# Set to yes if exported symbols are required.
21064always_export_symbols=$always_export_symbols_CXX
21065
21066# The commands to list exported symbols.
21067export_symbols_cmds=$lt_export_symbols_cmds_CXX
21068
21069# The commands to extract the exported symbol list from a shared archive.
21070extract_expsyms_cmds=$lt_extract_expsyms_cmds
21071
21072# Symbols that should not be listed in the preloaded symbols.
21073exclude_expsyms=$lt_exclude_expsyms_CXX
21074
21075# Symbols that must always be exported.
21076include_expsyms=$lt_include_expsyms_CXX
21077
21078# ### END LIBTOOL TAG CONFIG: $tagname
21079
21080__EOF__
21081
21082
21083else
21084 # If there is no Makefile yet, we rely on a make rule to execute
21085 # `config.status --recheck' to rerun these tests and create the
21086 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21088 if test -f "$ltmain_in"; then
21089 test -f Makefile && make "$ltmain"
21090 fi
John Criswell47fdd832003-07-14 16:52:07 +000021091fi
21092
21093
21094ac_ext=c
21095ac_cpp='$CPP $CPPFLAGS'
21096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100CC=$lt_save_CC
21101LDCXX=$LD
21102LD=$lt_save_LD
21103GCC=$lt_save_GCC
21104with_gnu_ldcxx=$with_gnu_ld
21105with_gnu_ld=$lt_save_with_gnu_ld
21106lt_cv_path_LDCXX=$lt_cv_path_LD
21107lt_cv_path_LD=$lt_save_path_LD
21108lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21109lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21110
21111 else
21112 tagname=""
21113 fi
21114 ;;
21115
21116 F77)
21117 if test -n "$F77" && test "X$F77" != "Xno"; then
21118
21119ac_ext=f
21120ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21121ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21123
21124
21125archive_cmds_need_lc_F77=no
21126allow_undefined_flag_F77=
21127always_export_symbols_F77=no
21128archive_expsym_cmds_F77=
21129export_dynamic_flag_spec_F77=
21130hardcode_direct_F77=no
21131hardcode_libdir_flag_spec_F77=
21132hardcode_libdir_flag_spec_ld_F77=
21133hardcode_libdir_separator_F77=
21134hardcode_minus_L_F77=no
21135hardcode_automatic_F77=no
21136module_cmds_F77=
21137module_expsym_cmds_F77=
21138link_all_deplibs_F77=unknown
21139old_archive_cmds_F77=$old_archive_cmds
21140no_undefined_flag_F77=
21141whole_archive_flag_spec_F77=
21142enable_shared_with_static_runtimes_F77=no
21143
21144# Source file extension for f77 test sources.
21145ac_ext=f
21146
21147# Object file extension for compiled f77 test sources.
21148objext=o
21149objext_F77=$objext
21150
21151# Code to be used in simple compile tests
21152lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21153
21154# Code to be used in simple link tests
21155lt_simple_link_test_code=" program t\n end\n"
21156
21157# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21158
21159# If no C compiler was specified, use CC.
21160LTCC=${LTCC-"$CC"}
21161
Reid Spencera773bd52006-08-04 18:18:08 +000021162# If no C compiler flags were specified, use CFLAGS.
21163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21164
John Criswell47fdd832003-07-14 16:52:07 +000021165# Allow CC to be a program name with arguments.
21166compiler=$CC
21167
21168
Reid Spencera773bd52006-08-04 18:18:08 +000021169# save warnings/boilerplate of simple test code
21170ac_outfile=conftest.$ac_objext
21171printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21172eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21173_lt_compiler_boilerplate=`cat conftest.err`
21174$rm conftest*
21175
21176ac_outfile=conftest.$ac_objext
21177printf "$lt_simple_link_test_code" >conftest.$ac_ext
21178eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21179_lt_linker_boilerplate=`cat conftest.err`
21180$rm conftest*
21181
21182
John Criswell47fdd832003-07-14 16:52:07 +000021183# Allow CC to be a program name with arguments.
21184lt_save_CC="$CC"
21185CC=${F77-"f77"}
21186compiler=$CC
21187compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021188for cc_temp in $compiler""; do
21189 case $cc_temp in
21190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21192 \-*) ;;
21193 *) break;;
21194 esac
21195done
21196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021197
John Criswell47fdd832003-07-14 16:52:07 +000021198
Reid Spencera773bd52006-08-04 18:18:08 +000021199{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21200echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21201{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21202echo "${ECHO_T}$can_build_shared" >&6; }
21203
21204{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21205echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021206test "$can_build_shared" = "no" && enable_shared=no
21207
21208# On AIX, shared libraries and static libraries use the same namespace, and
21209# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021210case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021211aix3*)
21212 test "$enable_shared" = yes && enable_static=no
21213 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021214 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021215 postinstall_cmds='$RANLIB $lib'
21216 fi
21217 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021219 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21220 test "$enable_shared" = yes && enable_static=no
21221 fi
John Criswell47fdd832003-07-14 16:52:07 +000021222 ;;
21223esac
Reid Spencera773bd52006-08-04 18:18:08 +000021224{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21225echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021226
Reid Spencera773bd52006-08-04 18:18:08 +000021227{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21228echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021229# Make sure either enable_shared or enable_static is yes.
21230test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021231{ echo "$as_me:$LINENO: result: $enable_static" >&5
21232echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021233
21234GCC_F77="$G77"
21235LD_F77="$LD"
21236
21237lt_prog_compiler_wl_F77=
21238lt_prog_compiler_pic_F77=
21239lt_prog_compiler_static_F77=
21240
Reid Spencera773bd52006-08-04 18:18:08 +000021241{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21242echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021243
21244 if test "$GCC" = yes; then
21245 lt_prog_compiler_wl_F77='-Wl,'
21246 lt_prog_compiler_static_F77='-static'
21247
21248 case $host_os in
21249 aix*)
21250 # All AIX code is PIC.
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_F77='-Bstatic'
21254 fi
21255 ;;
21256
21257 amigaos*)
21258 # FIXME: we need at least 68020 code to build shared libraries, but
21259 # adding the `-m68020' flag to GCC prevents building anything better,
21260 # like `-m68040'.
21261 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21262 ;;
21263
21264 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21265 # PIC is the default for these OSes.
21266 ;;
21267
21268 mingw* | pw32* | os2*)
21269 # This hack is so that the source file can tell whether it is being
21270 # built for inclusion in a dll (and should export symbols for example).
21271 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21272 ;;
21273
21274 darwin* | rhapsody*)
21275 # PIC is the default on this platform
21276 # Common symbols not allowed in MH_DYLIB files
21277 lt_prog_compiler_pic_F77='-fno-common'
21278 ;;
21279
Reid Spencera773bd52006-08-04 18:18:08 +000021280 interix3*)
21281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21282 # Instead, we relocate shared libraries at runtime.
21283 ;;
21284
John Criswell47fdd832003-07-14 16:52:07 +000021285 msdosdjgpp*)
21286 # Just because we use GCC doesn't mean we suddenly get shared libraries
21287 # on systems that don't support them.
21288 lt_prog_compiler_can_build_shared_F77=no
21289 enable_shared=no
21290 ;;
21291
21292 sysv4*MP*)
21293 if test -d /usr/nec; then
21294 lt_prog_compiler_pic_F77=-Kconform_pic
21295 fi
21296 ;;
21297
21298 hpux*)
21299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21300 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021301 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021302 hppa*64*|ia64*)
21303 # +Z the default
21304 ;;
21305 *)
21306 lt_prog_compiler_pic_F77='-fPIC'
21307 ;;
21308 esac
21309 ;;
21310
21311 *)
21312 lt_prog_compiler_pic_F77='-fPIC'
21313 ;;
21314 esac
21315 else
21316 # PORTME Check for flag to pass linker flags through the system compiler.
21317 case $host_os in
21318 aix*)
21319 lt_prog_compiler_wl_F77='-Wl,'
21320 if test "$host_cpu" = ia64; then
21321 # AIX 5 now supports IA64 processor
21322 lt_prog_compiler_static_F77='-Bstatic'
21323 else
21324 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21325 fi
21326 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021327 darwin*)
21328 # PIC is the default on this platform
21329 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021330 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021331 xlc*)
21332 lt_prog_compiler_pic_F77='-qnocommon'
21333 lt_prog_compiler_wl_F77='-Wl,'
21334 ;;
21335 esac
21336 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021337
21338 mingw* | pw32* | os2*)
21339 # This hack is so that the source file can tell whether it is being
21340 # built for inclusion in a dll (and should export symbols for example).
21341 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21342 ;;
21343
21344 hpux9* | hpux10* | hpux11*)
21345 lt_prog_compiler_wl_F77='-Wl,'
21346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21347 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021348 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021349 hppa*64*|ia64*)
21350 # +Z the default
21351 ;;
21352 *)
21353 lt_prog_compiler_pic_F77='+Z'
21354 ;;
21355 esac
21356 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21357 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21358 ;;
21359
21360 irix5* | irix6* | nonstopux*)
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 # PIC (with -KPIC) is the default.
21363 lt_prog_compiler_static_F77='-non_shared'
21364 ;;
21365
21366 newsos6)
21367 lt_prog_compiler_pic_F77='-KPIC'
21368 lt_prog_compiler_static_F77='-Bstatic'
21369 ;;
21370
21371 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021372 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021373 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_pic_F77='-KPIC'
21376 lt_prog_compiler_static_F77='-static'
21377 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021378 pgcc* | pgf77* | pgf90* | pgf95*)
21379 # Portland Group compilers (*not* the Pentium gcc compiler,
21380 # which looks to be a dead project)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 lt_prog_compiler_pic_F77='-fpic'
21383 lt_prog_compiler_static_F77='-Bstatic'
21384 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021385 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021386 lt_prog_compiler_wl_F77='-Wl,'
21387 # All Alpha code is PIC.
21388 lt_prog_compiler_static_F77='-non_shared'
21389 ;;
21390 esac
21391 ;;
21392
21393 osf3* | osf4* | osf5*)
21394 lt_prog_compiler_wl_F77='-Wl,'
21395 # All OSF/1 code is PIC.
21396 lt_prog_compiler_static_F77='-non_shared'
21397 ;;
21398
John Criswell47fdd832003-07-14 16:52:07 +000021399 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021402 case $cc_basename in
21403 f77* | f90* | f95*)
21404 lt_prog_compiler_wl_F77='-Qoption ld ';;
21405 *)
21406 lt_prog_compiler_wl_F77='-Wl,';;
21407 esac
John Criswell47fdd832003-07-14 16:52:07 +000021408 ;;
21409
21410 sunos4*)
21411 lt_prog_compiler_wl_F77='-Qoption ld '
21412 lt_prog_compiler_pic_F77='-PIC'
21413 lt_prog_compiler_static_F77='-Bstatic'
21414 ;;
21415
Reid Spencera773bd52006-08-04 18:18:08 +000021416 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021417 lt_prog_compiler_wl_F77='-Wl,'
21418 lt_prog_compiler_pic_F77='-KPIC'
21419 lt_prog_compiler_static_F77='-Bstatic'
21420 ;;
21421
21422 sysv4*MP*)
21423 if test -d /usr/nec ;then
21424 lt_prog_compiler_pic_F77='-Kconform_pic'
21425 lt_prog_compiler_static_F77='-Bstatic'
21426 fi
21427 ;;
21428
Reid Spencera773bd52006-08-04 18:18:08 +000021429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21430 lt_prog_compiler_wl_F77='-Wl,'
21431 lt_prog_compiler_pic_F77='-KPIC'
21432 lt_prog_compiler_static_F77='-Bstatic'
21433 ;;
21434
21435 unicos*)
21436 lt_prog_compiler_wl_F77='-Wl,'
21437 lt_prog_compiler_can_build_shared_F77=no
21438 ;;
21439
John Criswell47fdd832003-07-14 16:52:07 +000021440 uts4*)
21441 lt_prog_compiler_pic_F77='-pic'
21442 lt_prog_compiler_static_F77='-Bstatic'
21443 ;;
21444
21445 *)
21446 lt_prog_compiler_can_build_shared_F77=no
21447 ;;
21448 esac
21449 fi
21450
Reid Spencera773bd52006-08-04 18:18:08 +000021451{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21452echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021453
21454#
21455# Check to make sure the PIC flag actually works.
21456#
21457if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458
Reid Spencera773bd52006-08-04 18:18:08 +000021459{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21460echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021461if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463else
21464 lt_prog_compiler_pic_works_F77=no
21465 ac_outfile=conftest.$ac_objext
21466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21467 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21468 # Insert the option either (1) after the last *FLAGS variable, or
21469 # (2) before a word containing "conftest.", or (3) at the end.
21470 # Note that $ac_compile itself does not contain backslashes and begins
21471 # with a dollar sign (not a hyphen), so the echo should work correctly.
21472 # The option is referenced via a variable to avoid confusing sed.
21473 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21476 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000021477 (eval echo "\"\$as_me:21477: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021478 (eval "$lt_compile" 2>conftest.err)
21479 ac_status=$?
21480 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000021481 echo "$as_me:21481: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021482 if (exit $ac_status) && test -s "$ac_outfile"; then
21483 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021484 # So say no if there are warnings other than the usual output.
21485 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021488 lt_prog_compiler_pic_works_F77=yes
21489 fi
21490 fi
21491 $rm conftest*
21492
21493fi
Reid Spencera773bd52006-08-04 18:18:08 +000021494{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21495echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021496
21497if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21498 case $lt_prog_compiler_pic_F77 in
21499 "" | " "*) ;;
21500 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21501 esac
21502else
21503 lt_prog_compiler_pic_F77=
21504 lt_prog_compiler_can_build_shared_F77=no
21505fi
21506
21507fi
Reid Spencera773bd52006-08-04 18:18:08 +000021508case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021509 # For platforms which do not support PIC, -DPIC is meaningless:
21510 *djgpp*)
21511 lt_prog_compiler_pic_F77=
21512 ;;
21513 *)
21514 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21515 ;;
21516esac
21517
Reid Spencera773bd52006-08-04 18:18:08 +000021518#
21519# Check to make sure the static flag actually works.
21520#
21521wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21522{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21523echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21524if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526else
21527 lt_prog_compiler_static_works_F77=no
21528 save_LDFLAGS="$LDFLAGS"
21529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21530 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21532 # The linker can only warn and ignore the option if not recognized
21533 # So say no if there are warnings
21534 if test -s conftest.err; then
21535 # Append any errors to the config.log.
21536 cat conftest.err 1>&5
21537 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21539 if diff conftest.exp conftest.er2 >/dev/null; then
21540 lt_prog_compiler_static_works_F77=yes
21541 fi
21542 else
21543 lt_prog_compiler_static_works_F77=yes
21544 fi
21545 fi
21546 $rm conftest*
21547 LDFLAGS="$save_LDFLAGS"
21548
21549fi
21550{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21551echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21552
21553if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21554 :
21555else
21556 lt_prog_compiler_static_F77=
21557fi
21558
21559
21560{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21561echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021562if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564else
21565 lt_cv_prog_compiler_c_o_F77=no
21566 $rm -r conftest 2>/dev/null
21567 mkdir conftest
21568 cd conftest
21569 mkdir out
21570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21571
John Criswell47fdd832003-07-14 16:52:07 +000021572 lt_compiler_flag="-o out/conftest2.$ac_objext"
21573 # Insert the option either (1) after the last *FLAGS variable, or
21574 # (2) before a word containing "conftest.", or (3) at the end.
21575 # Note that $ac_compile itself does not contain backslashes and begins
21576 # with a dollar sign (not a hyphen), so the echo should work correctly.
21577 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21580 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000021581 (eval echo "\"\$as_me:21581: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021582 (eval "$lt_compile" 2>out/conftest.err)
21583 ac_status=$?
21584 cat out/conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000021585 echo "$as_me:21585: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21587 then
21588 # The compiler can only warn and ignore the option if not recognized
21589 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021590 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021593 lt_cv_prog_compiler_c_o_F77=yes
21594 fi
21595 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021596 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021597 $rm conftest*
21598 # SGI C++ compiler will create directory out/ii_files/ for
21599 # template instantiation
21600 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21601 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021602 cd ..
21603 rmdir conftest
21604 $rm conftest*
21605
21606fi
Reid Spencera773bd52006-08-04 18:18:08 +000021607{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21608echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021609
21610
21611hard_links="nottested"
21612if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21613 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021614 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21615echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021616 hard_links=yes
21617 $rm conftest*
21618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21619 touch conftest.a
21620 ln conftest.a conftest.b 2>&5 || hard_links=no
21621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021622 { echo "$as_me:$LINENO: result: $hard_links" >&5
21623echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021624 if test "$hard_links" = no; then
21625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21626echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21627 need_locks=warn
21628 fi
21629else
21630 need_locks=no
21631fi
21632
Reid Spencera773bd52006-08-04 18:18:08 +000021633{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21634echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021635
21636 runpath_var=
21637 allow_undefined_flag_F77=
21638 enable_shared_with_static_runtimes_F77=no
21639 archive_cmds_F77=
21640 archive_expsym_cmds_F77=
21641 old_archive_From_new_cmds_F77=
21642 old_archive_from_expsyms_cmds_F77=
21643 export_dynamic_flag_spec_F77=
21644 whole_archive_flag_spec_F77=
21645 thread_safe_flag_spec_F77=
21646 hardcode_libdir_flag_spec_F77=
21647 hardcode_libdir_flag_spec_ld_F77=
21648 hardcode_libdir_separator_F77=
21649 hardcode_direct_F77=no
21650 hardcode_minus_L_F77=no
21651 hardcode_shlibpath_var_F77=unsupported
21652 link_all_deplibs_F77=unknown
21653 hardcode_automatic_F77=no
21654 module_cmds_F77=
21655 module_expsym_cmds_F77=
21656 always_export_symbols_F77=no
21657 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21658 # include_expsyms should be a list of space-separated symbols to be *always*
21659 # included in the symbol list
21660 include_expsyms_F77=
21661 # exclude_expsyms can be an extended regexp of symbols to exclude
21662 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21663 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21664 # as well as any symbol that contains `d'.
21665 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21666 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21667 # platforms (ab)use it in PIC code, but their linkers get confused if
21668 # the symbol is explicitly referenced. Since portable code cannot
21669 # rely on this symbol name, it's probably fine to never include it in
21670 # preloaded symbol tables.
21671 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021672 # Just being paranoid about ensuring that cc_basename is set.
21673 for cc_temp in $compiler""; do
21674 case $cc_temp in
21675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21677 \-*) ;;
21678 *) break;;
21679 esac
21680done
21681cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021682
21683 case $host_os in
21684 cygwin* | mingw* | pw32*)
21685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21686 # When not using gcc, we currently assume that we are using
21687 # Microsoft Visual C++.
21688 if test "$GCC" != yes; then
21689 with_gnu_ld=no
21690 fi
21691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021692 interix*)
21693 # we just hope/assume this is gcc and not c89 (= MSVC++)
21694 with_gnu_ld=yes
21695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021696 openbsd*)
21697 with_gnu_ld=no
21698 ;;
21699 esac
21700
21701 ld_shlibs_F77=yes
21702 if test "$with_gnu_ld" = yes; then
21703 # If archive_cmds runs LD, not CC, wlarc should be empty
21704 wlarc='${wl}'
21705
Reid Spencera773bd52006-08-04 18:18:08 +000021706 # Set some defaults for GNU ld with shared library support. These
21707 # are reset later if shared libraries are not supported. Putting them
21708 # here allows them to be overridden if necessary.
21709 runpath_var=LD_RUN_PATH
21710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21712 # ancient GNU ld didn't support --whole-archive et. al.
21713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21715 else
21716 whole_archive_flag_spec_F77=
21717 fi
21718 supports_anon_versioning=no
21719 case `$LD -v 2>/dev/null` in
21720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21723 *\ 2.11.*) ;; # other 2.11 versions
21724 *) supports_anon_versioning=yes ;;
21725 esac
21726
John Criswell47fdd832003-07-14 16:52:07 +000021727 # See if GNU ld supports shared libraries.
21728 case $host_os in
21729 aix3* | aix4* | aix5*)
21730 # On AIX/PPC, the GNU linker is very broken
21731 if test "$host_cpu" != ia64; then
21732 ld_shlibs_F77=no
21733 cat <<EOF 1>&2
21734
21735*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21736*** to be unable to reliably create shared libraries on AIX.
21737*** Therefore, libtool is disabling shared libraries support. If you
21738*** really care for shared libraries, you may want to modify your PATH
21739*** so that a non-GNU linker is found, and then restart.
21740
21741EOF
21742 fi
21743 ;;
21744
21745 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021746 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 +000021747 hardcode_libdir_flag_spec_F77='-L$libdir'
21748 hardcode_minus_L_F77=yes
21749
21750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21751 # that the semantics of dynamic libraries on AmigaOS, at least up
21752 # to version 4, is to share data among multiple programs linked
21753 # with the same dynamic library. Since this doesn't match the
21754 # behavior of shared libraries on other platforms, we can't use
21755 # them.
21756 ld_shlibs_F77=no
21757 ;;
21758
21759 beos*)
21760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761 allow_undefined_flag_F77=unsupported
21762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21763 # support --undefined. This deserves some investigation. FIXME
21764 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21765 else
21766 ld_shlibs_F77=no
21767 fi
21768 ;;
21769
21770 cygwin* | mingw* | pw32*)
21771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21772 # as there is no search path for DLLs.
21773 hardcode_libdir_flag_spec_F77='-L$libdir'
21774 allow_undefined_flag_F77=unsupported
21775 always_export_symbols_F77=no
21776 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021777 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 +000021778
21779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021780 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 +000021781 # If the export-symbols file already is a .def file (1st line
21782 # is EXPORTS), use it as is; otherwise, prepend...
21783 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21784 cp $export_symbols $output_objdir/$soname.def;
21785 else
21786 echo EXPORTS > $output_objdir/$soname.def;
21787 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021788 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021789 $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 +000021790 else
Reid Spencera773bd52006-08-04 18:18:08 +000021791 ld_shlibs_F77=no
21792 fi
21793 ;;
21794
21795 interix3*)
21796 hardcode_direct_F77=no
21797 hardcode_shlibpath_var_F77=no
21798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21799 export_dynamic_flag_spec_F77='${wl}-E'
21800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21801 # Instead, shared libraries are loaded at an image base (0x10000000 by
21802 # default) and relocated if they conflict, which is a slow very memory
21803 # consuming and fragmenting process. To avoid this, we pick a random,
21804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21806 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'
21807 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'
21808 ;;
21809
21810 linux*)
21811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21812 tmp_addflag=
21813 case $cc_basename,$host_cpu in
21814 pgcc*) # Portland Group C compiler
21815 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'
21816 tmp_addflag=' $pic_flag'
21817 ;;
21818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21819 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'
21820 tmp_addflag=' $pic_flag -Mnomain' ;;
21821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21822 tmp_addflag=' -i_dynamic' ;;
21823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21824 tmp_addflag=' -i_dynamic -nofor_main' ;;
21825 ifc* | ifort*) # Intel Fortran compiler
21826 tmp_addflag=' -nofor_main' ;;
21827 esac
21828 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829
21830 if test $supports_anon_versioning = yes; then
21831 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21833 $echo "local: *; };" >> $output_objdir/$libname.ver~
21834 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21835 fi
21836 else
21837 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021838 fi
21839 ;;
21840
21841 netbsd*)
21842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21843 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21844 wlarc=
21845 else
21846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21848 fi
21849 ;;
21850
Reid Spencera773bd52006-08-04 18:18:08 +000021851 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021852 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21853 ld_shlibs_F77=no
21854 cat <<EOF 1>&2
21855
21856*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21857*** create shared libraries on Solaris systems. Therefore, libtool
21858*** is disabling shared libraries support. We urge you to upgrade GNU
21859*** binutils to release 2.9.1 or newer. Another option is to modify
21860*** your PATH or compiler configuration so that the native linker is
21861*** used, and then restart.
21862
21863EOF
21864 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21867 else
21868 ld_shlibs_F77=no
21869 fi
21870 ;;
21871
Reid Spencera773bd52006-08-04 18:18:08 +000021872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21873 case `$LD -v 2>&1` in
21874 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21875 ld_shlibs_F77=no
21876 cat <<_LT_EOF 1>&2
21877
21878*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21879*** reliably create shared libraries on SCO systems. Therefore, libtool
21880*** is disabling shared libraries support. We urge you to upgrade GNU
21881*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21882*** your PATH or compiler configuration so that the native linker is
21883*** used, and then restart.
21884
21885_LT_EOF
21886 ;;
21887 *)
21888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21889 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21892 else
21893 ld_shlibs_F77=no
21894 fi
21895 ;;
21896 esac
21897 ;;
21898
John Criswell47fdd832003-07-14 16:52:07 +000021899 sunos4*)
21900 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21901 wlarc=
21902 hardcode_direct_F77=yes
21903 hardcode_shlibpath_var_F77=no
21904 ;;
21905
21906 *)
21907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21910 else
21911 ld_shlibs_F77=no
21912 fi
21913 ;;
21914 esac
21915
Reid Spencera773bd52006-08-04 18:18:08 +000021916 if test "$ld_shlibs_F77" = no; then
21917 runpath_var=
21918 hardcode_libdir_flag_spec_F77=
21919 export_dynamic_flag_spec_F77=
21920 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021921 fi
21922 else
21923 # PORTME fill in a description of your system's linker (not GNU ld)
21924 case $host_os in
21925 aix3*)
21926 allow_undefined_flag_F77=unsupported
21927 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021928 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 +000021929 # Note: this linker hardcodes the directories in LIBPATH if there
21930 # are no directories specified by -L.
21931 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021932 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021933 # Neither direct hardcoding nor static linking is supported with a
21934 # broken collect2.
21935 hardcode_direct_F77=unsupported
21936 fi
21937 ;;
21938
21939 aix4* | aix5*)
21940 if test "$host_cpu" = ia64; then
21941 # On IA64, the linker does run time linking by default, so we don't
21942 # have to do anything special.
21943 aix_use_runtimelinking=no
21944 exp_sym_flag='-Bexport'
21945 no_entry_flag=""
21946 else
21947 # If we're using GNU nm, then we don't want the "-C" option.
21948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21950 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'
21951 else
21952 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'
21953 fi
21954 aix_use_runtimelinking=no
21955
21956 # Test if we are trying to use run time linking or normal
21957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21958 # need to do runtime linking.
21959 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21960 for ld_flag in $LDFLAGS; do
21961 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21962 aix_use_runtimelinking=yes
21963 break
21964 fi
21965 done
Reid Spencera773bd52006-08-04 18:18:08 +000021966 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021967 esac
21968
21969 exp_sym_flag='-bexport'
21970 no_entry_flag='-bnoentry'
21971 fi
21972
21973 # When large executables or shared objects are built, AIX ld can
21974 # have problems creating the table of contents. If linking a library
21975 # or program results in "error TOC overflow" add -mminimal-toc to
21976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21978
21979 archive_cmds_F77=''
21980 hardcode_direct_F77=yes
21981 hardcode_libdir_separator_F77=':'
21982 link_all_deplibs_F77=yes
21983
21984 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021985 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021986 # We only want to do this on AIX 4.2 and lower, the check
21987 # below for broken collect2 doesn't work under 4.3+
21988 collect2name=`${CC} -print-prog-name=collect2`
21989 if test -f "$collect2name" && \
21990 strings "$collect2name" | grep resolve_lib_name >/dev/null
21991 then
21992 # We have reworked collect2
21993 hardcode_direct_F77=yes
21994 else
21995 # We have old collect2
21996 hardcode_direct_F77=unsupported
21997 # It fails to find uninstalled libraries when the uninstalled
21998 # path is not listed in the libpath. Setting hardcode_minus_L
21999 # to unsupported forces relinking
22000 hardcode_minus_L_F77=yes
22001 hardcode_libdir_flag_spec_F77='-L$libdir'
22002 hardcode_libdir_separator_F77=
22003 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022004 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022005 esac
22006 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022007 if test "$aix_use_runtimelinking" = yes; then
22008 shared_flag="$shared_flag "'${wl}-G'
22009 fi
John Criswell47fdd832003-07-14 16:52:07 +000022010 else
22011 # not using gcc
22012 if test "$host_cpu" = ia64; then
22013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22014 # chokes on -Wl,-G. The following line is correct:
22015 shared_flag='-G'
22016 else
Reid Spencera773bd52006-08-04 18:18:08 +000022017 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022018 shared_flag='${wl}-G'
22019 else
22020 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022021 fi
John Criswell47fdd832003-07-14 16:52:07 +000022022 fi
22023 fi
22024
22025 # It seems that -bexpall does not export symbols beginning with
22026 # underscore (_), so it is better to generate a list of symbols to export.
22027 always_export_symbols_F77=yes
22028 if test "$aix_use_runtimelinking" = yes; then
22029 # Warning - without using the other runtime loading flags (-brtl),
22030 # -berok will link without error, but may produce a broken library.
22031 allow_undefined_flag_F77='-berok'
22032 # Determine the default libpath from the value encoded in an empty executable.
22033 cat >conftest.$ac_ext <<_ACEOF
22034 program main
22035
22036 end
22037_ACEOF
22038rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022039if { (ac_try="$ac_link"
22040case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043esac
22044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022051 (exit $ac_status); } &&
22052 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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); }; } &&
22062 { ac_try='test -s conftest$ac_exeext'
22063 { (case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22066esac
22067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_try") 2>&5
22069 ac_status=$?
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022072
22073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22074}'`
22075# Check for a 64-bit object if we didn't find anything.
22076if 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; }
22077}'`; fi
22078else
22079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022080sed 's/^/| /' conftest.$ac_ext >&5
22081
Reid Spencera773bd52006-08-04 18:18:08 +000022082
John Criswell47fdd832003-07-14 16:52:07 +000022083fi
Reid Spencera773bd52006-08-04 18:18:08 +000022084
Tanya Lattnercf067672008-01-17 05:57:22 +000022085rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022086 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22088
22089 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022090 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 +000022091 else
22092 if test "$host_cpu" = ia64; then
22093 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22094 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022095 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 +000022096 else
22097 # Determine the default libpath from the value encoded in an empty executable.
22098 cat >conftest.$ac_ext <<_ACEOF
22099 program main
22100
22101 end
22102_ACEOF
22103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022104if { (ac_try="$ac_link"
22105case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108esac
22109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022116 (exit $ac_status); } &&
22117 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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); }; } &&
22127 { ac_try='test -s conftest$ac_exeext'
22128 { (case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131esac
22132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_try") 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022137
22138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22139}'`
22140# Check for a 64-bit object if we didn't find anything.
22141if 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; }
22142}'`; fi
22143else
22144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022145sed 's/^/| /' conftest.$ac_ext >&5
22146
Reid Spencera773bd52006-08-04 18:18:08 +000022147
John Criswell47fdd832003-07-14 16:52:07 +000022148fi
Reid Spencera773bd52006-08-04 18:18:08 +000022149
Tanya Lattnercf067672008-01-17 05:57:22 +000022150rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022151 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22153
22154 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22155 # Warning - without using the other run time loading flags,
22156 # -berok will link without error, but may produce a broken library.
22157 no_undefined_flag_F77=' ${wl}-bernotok'
22158 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022159 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022160 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022161 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022162 # This is similar to how AIX traditionally builds its shared libraries.
22163 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 +000022164 fi
22165 fi
22166 ;;
22167
22168 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022169 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 +000022170 hardcode_libdir_flag_spec_F77='-L$libdir'
22171 hardcode_minus_L_F77=yes
22172 # see comment about different semantics on the GNU ld section
22173 ld_shlibs_F77=no
22174 ;;
22175
Reid Spencer2706f8c2004-09-19 23:53:36 +000022176 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022177 export_dynamic_flag_spec_F77=-rdynamic
22178 ;;
22179
22180 cygwin* | mingw* | pw32*)
22181 # When not using gcc, we currently assume that we are using
22182 # Microsoft Visual C++.
22183 # hardcode_libdir_flag_spec is actually meaningless, as there is
22184 # no search path for DLLs.
22185 hardcode_libdir_flag_spec_F77=' '
22186 allow_undefined_flag_F77=unsupported
22187 # Tell ltmain to make .lib files, not .a files.
22188 libext=lib
22189 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022190 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022191 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022192 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 +000022193 # The linker will automatically build a .lib file if we build a DLL.
22194 old_archive_From_new_cmds_F77='true'
22195 # FIXME: Should let the user specify the lib program.
22196 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022197 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022198 enable_shared_with_static_runtimes_F77=yes
22199 ;;
22200
22201 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022202 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022203 rhapsody* | darwin1.[012])
22204 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22205 ;;
22206 *) # Darwin 1.3 on
22207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22208 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22209 else
22210 case ${MACOSX_DEPLOYMENT_TARGET} in
22211 10.[012])
22212 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22213 ;;
22214 10.*)
22215 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22216 ;;
22217 esac
22218 fi
22219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022220 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022221 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022222 hardcode_direct_F77=no
22223 hardcode_automatic_F77=yes
22224 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022225 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022226 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022227 if test "$GCC" = yes ; then
22228 output_verbose_link_cmd='echo'
22229 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022231 # 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 +000022232 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}'
22233 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 +000022234 else
Reid Spencera773bd52006-08-04 18:18:08 +000022235 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022236 xlc*)
22237 output_verbose_link_cmd='echo'
22238 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22239 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022240 # 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 +000022241 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}'
22242 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 +000022243 ;;
22244 *)
22245 ld_shlibs_F77=no
22246 ;;
22247 esac
John Criswell47fdd832003-07-14 16:52:07 +000022248 fi
22249 ;;
22250
22251 dgux*)
22252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22253 hardcode_libdir_flag_spec_F77='-L$libdir'
22254 hardcode_shlibpath_var_F77=no
22255 ;;
22256
22257 freebsd1*)
22258 ld_shlibs_F77=no
22259 ;;
22260
22261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22262 # support. Future versions do this automatically, but an explicit c++rt0.o
22263 # does not break anything, and helps significantly (at the cost of a little
22264 # extra space).
22265 freebsd2.2*)
22266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22268 hardcode_direct_F77=yes
22269 hardcode_shlibpath_var_F77=no
22270 ;;
22271
22272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22273 freebsd2*)
22274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22275 hardcode_direct_F77=yes
22276 hardcode_minus_L_F77=yes
22277 hardcode_shlibpath_var_F77=no
22278 ;;
22279
22280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022281 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022282 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22283 hardcode_libdir_flag_spec_F77='-R$libdir'
22284 hardcode_direct_F77=yes
22285 hardcode_shlibpath_var_F77=no
22286 ;;
22287
22288 hpux9*)
22289 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022290 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 +000022291 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022292 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 +000022293 fi
22294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296 hardcode_direct_F77=yes
22297
22298 # hardcode_minus_L: Not really in the search PATH,
22299 # but as the default location of the library.
22300 hardcode_minus_L_F77=yes
22301 export_dynamic_flag_spec_F77='${wl}-E'
22302 ;;
22303
Reid Spencera773bd52006-08-04 18:18:08 +000022304 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022306 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22307 else
22308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22309 fi
22310 if test "$with_gnu_ld" = no; then
22311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22312 hardcode_libdir_separator_F77=:
22313
22314 hardcode_direct_F77=yes
22315 export_dynamic_flag_spec_F77='${wl}-E'
22316
22317 # hardcode_minus_L: Not really in the search PATH,
22318 # but as the default location of the library.
22319 hardcode_minus_L_F77=yes
22320 fi
22321 ;;
22322
22323 hpux11*)
22324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22325 case $host_cpu in
22326 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022327 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22328 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022329 ia64*)
22330 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022332 *)
22333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22334 ;;
22335 esac
22336 else
Reid Spencera773bd52006-08-04 18:18:08 +000022337 case $host_cpu in
22338 hppa*64*)
22339 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22340 ;;
22341 ia64*)
22342 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022343 ;;
22344 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022345 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 +000022346 ;;
22347 esac
22348 fi
22349 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22351 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022352
Reid Spencera773bd52006-08-04 18:18:08 +000022353 case $host_cpu in
22354 hppa*64*|ia64*)
22355 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22356 hardcode_direct_F77=no
22357 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022358 ;;
22359 *)
John Criswell47fdd832003-07-14 16:52:07 +000022360 hardcode_direct_F77=yes
22361 export_dynamic_flag_spec_F77='${wl}-E'
22362
22363 # hardcode_minus_L: Not really in the search PATH,
22364 # but as the default location of the library.
22365 hardcode_minus_L_F77=yes
22366 ;;
22367 esac
22368 fi
22369 ;;
22370
22371 irix5* | irix6* | nonstopux*)
22372 if test "$GCC" = yes; then
22373 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'
22374 else
22375 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'
22376 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22377 fi
22378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22379 hardcode_libdir_separator_F77=:
22380 link_all_deplibs_F77=yes
22381 ;;
22382
22383 netbsd*)
22384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22386 else
22387 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22388 fi
22389 hardcode_libdir_flag_spec_F77='-R$libdir'
22390 hardcode_direct_F77=yes
22391 hardcode_shlibpath_var_F77=no
22392 ;;
22393
22394 newsos6)
22395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22396 hardcode_direct_F77=yes
22397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22398 hardcode_libdir_separator_F77=:
22399 hardcode_shlibpath_var_F77=no
22400 ;;
22401
22402 openbsd*)
22403 hardcode_direct_F77=yes
22404 hardcode_shlibpath_var_F77=no
22405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22406 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022407 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 +000022408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22409 export_dynamic_flag_spec_F77='${wl}-E'
22410 else
22411 case $host_os in
22412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22415 ;;
22416 *)
22417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22419 ;;
22420 esac
22421 fi
22422 ;;
22423
22424 os2*)
22425 hardcode_libdir_flag_spec_F77='-L$libdir'
22426 hardcode_minus_L_F77=yes
22427 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022428 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 +000022429 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22430 ;;
22431
22432 osf3*)
22433 if test "$GCC" = yes; then
22434 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22435 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'
22436 else
22437 allow_undefined_flag_F77=' -expect_unresolved \*'
22438 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'
22439 fi
22440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22441 hardcode_libdir_separator_F77=:
22442 ;;
22443
22444 osf4* | osf5*) # as osf3* with the addition of -msym flag
22445 if test "$GCC" = yes; then
22446 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22447 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'
22448 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22449 else
22450 allow_undefined_flag_F77=' -expect_unresolved \*'
22451 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 +000022452 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 +000022453 $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 +000022454
John Criswell47fdd832003-07-14 16:52:07 +000022455 # Both c and cxx compiler support -rpath directly
22456 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22457 fi
22458 hardcode_libdir_separator_F77=:
22459 ;;
22460
John Criswell47fdd832003-07-14 16:52:07 +000022461 solaris*)
22462 no_undefined_flag_F77=' -z text'
22463 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022464 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022465 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22467 $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 +000022468 else
Reid Spencera773bd52006-08-04 18:18:08 +000022469 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022470 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022471 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22472 $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 +000022473 fi
22474 hardcode_libdir_flag_spec_F77='-R$libdir'
22475 hardcode_shlibpath_var_F77=no
22476 case $host_os in
22477 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 *)
22479 # The compiler driver will combine linker options so we
22480 # cannot just pass the convience library names through
22481 # without $wl, iff we do not link with $LD.
22482 # Luckily, gcc supports the same syntax we need for Sun Studio.
22483 # Supported since Solaris 2.6 (maybe 2.5.1?)
22484 case $wlarc in
22485 '')
22486 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22487 *)
22488 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' ;;
22489 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022490 esac
22491 link_all_deplibs_F77=yes
22492 ;;
22493
22494 sunos4*)
22495 if test "x$host_vendor" = xsequent; then
22496 # Use $CC to link under sequent, because it throws in some extra .o
22497 # files that make .init and .fini sections work.
22498 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22499 else
22500 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22501 fi
22502 hardcode_libdir_flag_spec_F77='-L$libdir'
22503 hardcode_direct_F77=yes
22504 hardcode_minus_L_F77=yes
22505 hardcode_shlibpath_var_F77=no
22506 ;;
22507
22508 sysv4)
22509 case $host_vendor in
22510 sni)
22511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 hardcode_direct_F77=yes # is this really true???
22513 ;;
22514 siemens)
22515 ## LD is ld it makes a PLAMLIB
22516 ## CC just makes a GrossModule.
22517 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22518 reload_cmds_F77='$CC -r -o $output$reload_objs'
22519 hardcode_direct_F77=no
22520 ;;
22521 motorola)
22522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22524 ;;
22525 esac
22526 runpath_var='LD_RUN_PATH'
22527 hardcode_shlibpath_var_F77=no
22528 ;;
22529
22530 sysv4.3*)
22531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_shlibpath_var_F77=no
22533 export_dynamic_flag_spec_F77='-Bexport'
22534 ;;
22535
22536 sysv4*MP*)
22537 if test -d /usr/nec; then
22538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22539 hardcode_shlibpath_var_F77=no
22540 runpath_var=LD_RUN_PATH
22541 hardcode_runpath_var=yes
22542 ld_shlibs_F77=yes
22543 fi
22544 ;;
22545
Reid Spencera773bd52006-08-04 18:18:08 +000022546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22547 no_undefined_flag_F77='${wl}-z,text'
22548 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022549 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022550 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022551
John Criswell47fdd832003-07-14 16:52:07 +000022552 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022553 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22554 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 +000022555 else
Reid Spencera773bd52006-08-04 18:18:08 +000022556 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22557 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 +000022558 fi
John Criswell47fdd832003-07-14 16:52:07 +000022559 ;;
22560
Reid Spencera773bd52006-08-04 18:18:08 +000022561 sysv5* | sco3.2v5* | sco5v6*)
22562 # Note: We can NOT use -z defs as we might desire, because we do not
22563 # link with -lc, and that would cause any symbols used from libc to
22564 # always be unresolved, which means just about no library would
22565 # ever link correctly. If we're not using GNU ld we use -z text
22566 # though, which does catch some bad symbols but isn't as heavy-handed
22567 # as -z defs.
22568 no_undefined_flag_F77='${wl}-z,text'
22569 allow_undefined_flag_F77='${wl}-z,nodefs'
22570 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022571 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22573 hardcode_libdir_separator_F77=':'
22574 link_all_deplibs_F77=yes
22575 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022576 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022577
22578 if test "$GCC" = yes; then
22579 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22580 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 else
22582 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 fi
John Criswell47fdd832003-07-14 16:52:07 +000022585 ;;
22586
22587 uts4*)
22588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22589 hardcode_libdir_flag_spec_F77='-L$libdir'
22590 hardcode_shlibpath_var_F77=no
22591 ;;
22592
22593 *)
22594 ld_shlibs_F77=no
22595 ;;
22596 esac
22597 fi
22598
Reid Spencera773bd52006-08-04 18:18:08 +000022599{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22600echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022601test "$ld_shlibs_F77" = no && can_build_shared=no
22602
John Criswell47fdd832003-07-14 16:52:07 +000022603#
22604# Do we need to explicitly link libc?
22605#
22606case "x$archive_cmds_need_lc_F77" in
22607x|xyes)
22608 # Assume -lc should be added
22609 archive_cmds_need_lc_F77=yes
22610
22611 if test "$enable_shared" = yes && test "$GCC" = yes; then
22612 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022613 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022614 # FIXME: we may have to deal with multi-command sequences.
22615 ;;
22616 '$CC '*)
22617 # Test whether the compiler implicitly links with -lc since on some
22618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22619 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022620 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22621echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022622 $rm conftest*
22623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22624
22625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } 2>conftest.err; then
22630 soname=conftest
22631 lib=conftest
22632 libobjs=conftest.$ac_objext
22633 deplibs=
22634 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022635 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022636 compiler_flags=-v
22637 linker_flags=-v
22638 verstring=
22639 output_objdir=.
22640 libname=conftest
22641 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22642 allow_undefined_flag_F77=
22643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22644 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }
22648 then
22649 archive_cmds_need_lc_F77=no
22650 else
22651 archive_cmds_need_lc_F77=yes
22652 fi
22653 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22654 else
22655 cat conftest.err 1>&5
22656 fi
22657 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022658 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22659echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022660 ;;
22661 esac
22662 fi
22663 ;;
22664esac
22665
Reid Spencera773bd52006-08-04 18:18:08 +000022666{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22667echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022668library_names_spec=
22669libname_spec='lib$name'
22670soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022671shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022672postinstall_cmds=
22673postuninstall_cmds=
22674finish_cmds=
22675finish_eval=
22676shlibpath_var=
22677shlibpath_overrides_runpath=unknown
22678version_type=none
22679dynamic_linker="$host_os ld.so"
22680sys_lib_dlsearch_path_spec="/lib /usr/lib"
22681if test "$GCC" = yes; then
22682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22683 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22684 # if the path contains ";" then we assume it to be the separator
22685 # otherwise default to the standard path separator (i.e. ":") - it is
22686 # assumed that no part of a normal pathname contains ";" but that should
22687 # okay in the real world where ";" in dirpaths is itself problematic.
22688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22689 else
22690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22691 fi
22692else
22693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22694fi
22695need_lib_prefix=unknown
22696hardcode_into_libs=no
22697
22698# when you set need_version to no, make sure it does not cause -set_version
22699# flags to be left without arguments
22700need_version=unknown
22701
22702case $host_os in
22703aix3*)
22704 version_type=linux
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22706 shlibpath_var=LIBPATH
22707
22708 # AIX 3 has no versioning support, so we append a major version to the name.
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 ;;
22711
22712aix4* | aix5*)
22713 version_type=linux
22714 need_lib_prefix=no
22715 need_version=no
22716 hardcode_into_libs=yes
22717 if test "$host_cpu" = ia64; then
22718 # AIX 5 supports IA64
22719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 else
22722 # With GCC up to 2.95.x, collect2 would create an import file
22723 # for dependence libraries. The import file would start with
22724 # the line `#! .'. This would cause the generated library to
22725 # depend on `.', always an invalid library. This was fixed in
22726 # development snapshots of GCC prior to 3.0.
22727 case $host_os in
22728 aix4 | aix4.[01] | aix4.[01].*)
22729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22730 echo ' yes '
22731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22732 :
22733 else
22734 can_build_shared=no
22735 fi
22736 ;;
22737 esac
22738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22739 # soname into executable. Probably we can add versioning support to
22740 # collect2, so additional links can be useful in future.
22741 if test "$aix_use_runtimelinking" = yes; then
22742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22743 # instead of lib<name>.a to let people know that these are not
22744 # typical AIX shared libraries.
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746 else
22747 # We preserve .a as extension for shared libraries through AIX4.2
22748 # and later when we are not doing run time linking.
22749 library_names_spec='${libname}${release}.a $libname.a'
22750 soname_spec='${libname}${release}${shared_ext}$major'
22751 fi
22752 shlibpath_var=LIBPATH
22753 fi
22754 ;;
22755
22756amigaos*)
22757 library_names_spec='$libname.ixlibrary $libname.a'
22758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022759 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 +000022760 ;;
22761
22762beos*)
22763 library_names_spec='${libname}${shared_ext}'
22764 dynamic_linker="$host_os ld.so"
22765 shlibpath_var=LIBRARY_PATH
22766 ;;
22767
Reid Spencer2706f8c2004-09-19 23:53:36 +000022768bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022769 version_type=linux
22770 need_version=no
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22777 # the default ld.so.conf also contains /usr/contrib/lib and
22778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22779 # libtool to hard-code these into programs
22780 ;;
22781
22782cygwin* | mingw* | pw32*)
22783 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022784 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022785 need_version=no
22786 need_lib_prefix=no
22787
22788 case $GCC,$host_os in
22789 yes,cygwin* | yes,mingw* | yes,pw32*)
22790 library_names_spec='$libname.dll.a'
22791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022792 postinstall_cmds='base_file=`basename \${file}`~
22793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22794 dldir=$destdir/`dirname \$dlpath`~
22795 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022796 $install_prog $dir/$dlname \$dldir/$dlname~
22797 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22799 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022800 $rm \$dlpath'
22801 shlibpath_overrides_runpath=yes
22802
22803 case $host_os in
22804 cygwin*)
22805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22806 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 +000022807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022808 ;;
22809 mingw*)
22810 # MinGW DLLs use traditional 'lib' prefix
22811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22814 # It is most probably a Windows format PATH printed by
22815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22816 # path with ; separators, and with drive letters. We can handle the
22817 # drive letters (cygwin fileutils understands them), so leave them,
22818 # especially as we might pass files found there to a mingw objdump,
22819 # which wouldn't understand a cygwinified path. Ahh.
22820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22821 else
22822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22823 fi
22824 ;;
22825 pw32*)
22826 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022827 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 +000022828 ;;
22829 esac
22830 ;;
22831
22832 *)
22833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22834 ;;
22835 esac
22836 dynamic_linker='Win32 ld.exe'
22837 # FIXME: first we should search . and the directory the executable is in
22838 shlibpath_var=PATH
22839 ;;
22840
22841darwin* | rhapsody*)
22842 dynamic_linker="$host_os dyld"
22843 version_type=darwin
22844 need_lib_prefix=no
22845 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022847 soname_spec='${libname}${release}${major}$shared_ext'
22848 shlibpath_overrides_runpath=yes
22849 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022850 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022851 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022852 if test "$GCC" = yes; then
22853 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"`
22854 else
22855 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022856 fi
22857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22858 ;;
22859
22860dgux*)
22861 version_type=linux
22862 need_lib_prefix=no
22863 need_version=no
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 ;;
22868
22869freebsd1*)
22870 dynamic_linker=no
22871 ;;
22872
Reid Spencer2706f8c2004-09-19 23:53:36 +000022873kfreebsd*-gnu)
22874 version_type=linux
22875 need_lib_prefix=no
22876 need_version=no
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=no
22881 hardcode_into_libs=yes
22882 dynamic_linker='GNU ld.so'
22883 ;;
22884
Reid Spencera773bd52006-08-04 18:18:08 +000022885freebsd* | dragonfly*)
22886 # DragonFly does not have aout. When/if they implement a new
22887 # versioning mechanism, adjust this.
22888 if test -x /usr/bin/objformat; then
22889 objformat=`/usr/bin/objformat`
22890 else
22891 case $host_os in
22892 freebsd[123]*) objformat=aout ;;
22893 *) objformat=elf ;;
22894 esac
22895 fi
John Criswell47fdd832003-07-14 16:52:07 +000022896 version_type=freebsd-$objformat
22897 case $version_type in
22898 freebsd-elf*)
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22900 need_version=no
22901 need_lib_prefix=no
22902 ;;
22903 freebsd-*)
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22905 need_version=yes
22906 ;;
22907 esac
22908 shlibpath_var=LD_LIBRARY_PATH
22909 case $host_os in
22910 freebsd2*)
22911 shlibpath_overrides_runpath=yes
22912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022913 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022914 shlibpath_overrides_runpath=yes
22915 hardcode_into_libs=yes
22916 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022919 shlibpath_overrides_runpath=no
22920 hardcode_into_libs=yes
22921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022922 freebsd*) # from 4.6 on
22923 shlibpath_overrides_runpath=yes
22924 hardcode_into_libs=yes
22925 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022926 esac
22927 ;;
22928
22929gnu*)
22930 version_type=linux
22931 need_lib_prefix=no
22932 need_version=no
22933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22934 soname_spec='${libname}${release}${shared_ext}$major'
22935 shlibpath_var=LD_LIBRARY_PATH
22936 hardcode_into_libs=yes
22937 ;;
22938
22939hpux9* | hpux10* | hpux11*)
22940 # Give a soname corresponding to the major version so that dld.sl refuses to
22941 # link against other versions.
22942 version_type=sunos
22943 need_lib_prefix=no
22944 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022945 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022946 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022947 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022948 hardcode_into_libs=yes
22949 dynamic_linker="$host_os dld.so"
22950 shlibpath_var=LD_LIBRARY_PATH
22951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 if test "X$HPUX_IA64_MODE" = X32; then
22955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22956 else
22957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22958 fi
22959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22960 ;;
22961 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022962 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022963 hardcode_into_libs=yes
22964 dynamic_linker="$host_os dld.sl"
22965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22971 ;;
22972 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022973 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022974 dynamic_linker="$host_os dld.sl"
22975 shlibpath_var=SHLIB_PATH
22976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 soname_spec='${libname}${release}${shared_ext}$major'
22979 ;;
22980 esac
22981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22982 postinstall_cmds='chmod 555 $lib'
22983 ;;
22984
Reid Spencera773bd52006-08-04 18:18:08 +000022985interix3*)
22986 version_type=linux
22987 need_lib_prefix=no
22988 need_version=no
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22990 soname_spec='${libname}${release}${shared_ext}$major'
22991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=no
22994 hardcode_into_libs=yes
22995 ;;
22996
John Criswell47fdd832003-07-14 16:52:07 +000022997irix5* | irix6* | nonstopux*)
22998 case $host_os in
22999 nonstopux*) version_type=nonstopux ;;
23000 *)
23001 if test "$lt_cv_prog_gnu_ld" = yes; then
23002 version_type=linux
23003 else
23004 version_type=irix
23005 fi ;;
23006 esac
23007 need_lib_prefix=no
23008 need_version=no
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23011 case $host_os in
23012 irix5* | nonstopux*)
23013 libsuff= shlibsuff=
23014 ;;
23015 *)
23016 case $LD in # libtool.m4 will add one of these switches to LD
23017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23018 libsuff= shlibsuff= libmagic=32-bit;;
23019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23020 libsuff=32 shlibsuff=N32 libmagic=N32;;
23021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23023 *) libsuff= shlibsuff= libmagic=never-match;;
23024 esac
23025 ;;
23026 esac
23027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23028 shlibpath_overrides_runpath=no
23029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23031 hardcode_into_libs=yes
23032 ;;
23033
23034# No shared lib support for Linux oldld, aout, or coff.
23035linux*oldld* | linux*aout* | linux*coff*)
23036 dynamic_linker=no
23037 ;;
23038
23039# This must be Linux ELF.
23040linux*)
23041 version_type=linux
23042 need_lib_prefix=no
23043 need_version=no
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23047 shlibpath_var=LD_LIBRARY_PATH
23048 shlibpath_overrides_runpath=no
23049 # This implies no fast_install, which is unacceptable.
23050 # Some rework will be needed to allow for fast_install
23051 # before this can be enabled.
23052 hardcode_into_libs=yes
23053
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054 # Append ld.so.conf contents to the search path
23055 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023056 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 +000023057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23058 fi
23059
John Criswell47fdd832003-07-14 16:52:07 +000023060 # We used to test for /lib/ld.so.1 and disable shared libraries on
23061 # powerpc, because MkLinux only supported shared libraries with the
23062 # GNU dynamic linker. Since this was broken with cross compilers,
23063 # most powerpc-linux boxes support dynamic linking these days and
23064 # people can always --disable-shared, the test was removed, and we
23065 # assume the GNU/Linux dynamic linker is in use.
23066 dynamic_linker='GNU/Linux ld.so'
23067 ;;
23068
Reid Spencer2706f8c2004-09-19 23:53:36 +000023069knetbsd*-gnu)
23070 version_type=linux
23071 need_lib_prefix=no
23072 need_version=no
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=no
23077 hardcode_into_libs=yes
23078 dynamic_linker='GNU ld.so'
23079 ;;
23080
John Criswell47fdd832003-07-14 16:52:07 +000023081netbsd*)
23082 version_type=sunos
23083 need_lib_prefix=no
23084 need_version=no
23085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23088 dynamic_linker='NetBSD (a.out) ld.so'
23089 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023091 soname_spec='${libname}${release}${shared_ext}$major'
23092 dynamic_linker='NetBSD ld.elf_so'
23093 fi
23094 shlibpath_var=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath=yes
23096 hardcode_into_libs=yes
23097 ;;
23098
23099newsos6)
23100 version_type=linux
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 ;;
23105
Reid Spencer2706f8c2004-09-19 23:53:36 +000023106nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023107 version_type=linux
23108 need_lib_prefix=no
23109 need_version=no
23110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23111 soname_spec='${libname}${release}${shared_ext}$major'
23112 shlibpath_var=LD_LIBRARY_PATH
23113 shlibpath_overrides_runpath=yes
23114 ;;
23115
23116openbsd*)
23117 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023118 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023119 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023120 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23121 case $host_os in
23122 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23123 *) need_version=no ;;
23124 esac
John Criswell47fdd832003-07-14 16:52:07 +000023125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23129 case $host_os in
23130 openbsd2.[89] | openbsd2.[89].*)
23131 shlibpath_overrides_runpath=no
23132 ;;
23133 *)
23134 shlibpath_overrides_runpath=yes
23135 ;;
23136 esac
23137 else
23138 shlibpath_overrides_runpath=yes
23139 fi
23140 ;;
23141
23142os2*)
23143 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023144 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023145 need_lib_prefix=no
23146 library_names_spec='$libname${shared_ext} $libname.a'
23147 dynamic_linker='OS/2 ld.exe'
23148 shlibpath_var=LIBPATH
23149 ;;
23150
23151osf3* | osf4* | osf5*)
23152 version_type=osf
23153 need_lib_prefix=no
23154 need_version=no
23155 soname_spec='${libname}${release}${shared_ext}$major'
23156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 shlibpath_var=LD_LIBRARY_PATH
23158 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23159 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23160 ;;
23161
John Criswell47fdd832003-07-14 16:52:07 +000023162solaris*)
23163 version_type=linux
23164 need_lib_prefix=no
23165 need_version=no
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23167 soname_spec='${libname}${release}${shared_ext}$major'
23168 shlibpath_var=LD_LIBRARY_PATH
23169 shlibpath_overrides_runpath=yes
23170 hardcode_into_libs=yes
23171 # ldd complains unless libraries are executable
23172 postinstall_cmds='chmod +x $lib'
23173 ;;
23174
23175sunos4*)
23176 version_type=sunos
23177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23179 shlibpath_var=LD_LIBRARY_PATH
23180 shlibpath_overrides_runpath=yes
23181 if test "$with_gnu_ld" = yes; then
23182 need_lib_prefix=no
23183 fi
23184 need_version=yes
23185 ;;
23186
Reid Spencera773bd52006-08-04 18:18:08 +000023187sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023188 version_type=linux
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 case $host_vendor in
23193 sni)
23194 shlibpath_overrides_runpath=no
23195 need_lib_prefix=no
23196 export_dynamic_flag_spec='${wl}-Blargedynsym'
23197 runpath_var=LD_RUN_PATH
23198 ;;
23199 siemens)
23200 need_lib_prefix=no
23201 ;;
23202 motorola)
23203 need_lib_prefix=no
23204 need_version=no
23205 shlibpath_overrides_runpath=no
23206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23207 ;;
23208 esac
23209 ;;
23210
23211sysv4*MP*)
23212 if test -d /usr/nec ;then
23213 version_type=linux
23214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23215 soname_spec='$libname${shared_ext}.$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 fi
23218 ;;
23219
Reid Spencera773bd52006-08-04 18:18:08 +000023220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23221 version_type=freebsd-elf
23222 need_lib_prefix=no
23223 need_version=no
23224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23225 soname_spec='${libname}${release}${shared_ext}$major'
23226 shlibpath_var=LD_LIBRARY_PATH
23227 hardcode_into_libs=yes
23228 if test "$with_gnu_ld" = yes; then
23229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23230 shlibpath_overrides_runpath=no
23231 else
23232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23233 shlibpath_overrides_runpath=yes
23234 case $host_os in
23235 sco3.2v5*)
23236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23237 ;;
23238 esac
23239 fi
23240 sys_lib_dlsearch_path_spec='/usr/lib'
23241 ;;
23242
John Criswell47fdd832003-07-14 16:52:07 +000023243uts4*)
23244 version_type=linux
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 shlibpath_var=LD_LIBRARY_PATH
23248 ;;
23249
23250*)
23251 dynamic_linker=no
23252 ;;
23253esac
Reid Spencera773bd52006-08-04 18:18:08 +000023254{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23255echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023256test "$dynamic_linker" = no && can_build_shared=no
23257
Reid Spencera773bd52006-08-04 18:18:08 +000023258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23259if test "$GCC" = yes; then
23260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23261fi
23262
23263{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23264echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023265hardcode_action_F77=
23266if test -n "$hardcode_libdir_flag_spec_F77" || \
23267 test -n "$runpath_var_F77" || \
23268 test "X$hardcode_automatic_F77" = "Xyes" ; then
23269
23270 # We can hardcode non-existant directories.
23271 if test "$hardcode_direct_F77" != no &&
23272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23273 # have to relink, otherwise we might link with an installed library
23274 # when we should be linking with a yet-to-be-installed one
23275 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23276 test "$hardcode_minus_L_F77" != no; then
23277 # Linking always hardcodes the temporary library directory.
23278 hardcode_action_F77=relink
23279 else
23280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23281 hardcode_action_F77=immediate
23282 fi
23283else
23284 # We cannot hardcode anything, or else we can only hardcode existing
23285 # directories.
23286 hardcode_action_F77=unsupported
23287fi
Reid Spencera773bd52006-08-04 18:18:08 +000023288{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23289echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023290
23291if test "$hardcode_action_F77" = relink; then
23292 # Fast installation is not supported
23293 enable_fast_install=no
23294elif test "$shlibpath_overrides_runpath" = yes ||
23295 test "$enable_shared" = no; then
23296 # Fast installation is not necessary
23297 enable_fast_install=needless
23298fi
23299
John Criswell47fdd832003-07-14 16:52:07 +000023300
23301# The else clause should only fire when bootstrapping the
23302# libtool distribution, otherwise you forgot to ship ltmain.sh
23303# with your package, and you will get complaints that there are
23304# no rules to generate ltmain.sh.
23305if test -f "$ltmain"; then
23306 # See if we are running on zsh, and set the options which allow our commands through
23307 # without removal of \ escapes.
23308 if test -n "${ZSH_VERSION+set}" ; then
23309 setopt NO_GLOB_SUBST
23310 fi
23311 # Now quote all the things that may contain metacharacters while being
23312 # careful not to overquote the AC_SUBSTed values. We take copies of the
23313 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023314 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 +000023315 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023316 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23317 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23318 deplibs_check_method reload_flag reload_cmds need_locks \
23319 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23320 lt_cv_sys_global_symbol_to_c_name_address \
23321 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23322 old_postinstall_cmds old_postuninstall_cmds \
23323 compiler_F77 \
23324 CC_F77 \
23325 LD_F77 \
23326 lt_prog_compiler_wl_F77 \
23327 lt_prog_compiler_pic_F77 \
23328 lt_prog_compiler_static_F77 \
23329 lt_prog_compiler_no_builtin_flag_F77 \
23330 export_dynamic_flag_spec_F77 \
23331 thread_safe_flag_spec_F77 \
23332 whole_archive_flag_spec_F77 \
23333 enable_shared_with_static_runtimes_F77 \
23334 old_archive_cmds_F77 \
23335 old_archive_from_new_cmds_F77 \
23336 predep_objects_F77 \
23337 postdep_objects_F77 \
23338 predeps_F77 \
23339 postdeps_F77 \
23340 compiler_lib_search_path_F77 \
23341 archive_cmds_F77 \
23342 archive_expsym_cmds_F77 \
23343 postinstall_cmds_F77 \
23344 postuninstall_cmds_F77 \
23345 old_archive_from_expsyms_cmds_F77 \
23346 allow_undefined_flag_F77 \
23347 no_undefined_flag_F77 \
23348 export_symbols_cmds_F77 \
23349 hardcode_libdir_flag_spec_F77 \
23350 hardcode_libdir_flag_spec_ld_F77 \
23351 hardcode_libdir_separator_F77 \
23352 hardcode_automatic_F77 \
23353 module_cmds_F77 \
23354 module_expsym_cmds_F77 \
23355 lt_cv_prog_compiler_c_o_F77 \
23356 exclude_expsyms_F77 \
23357 include_expsyms_F77; do
23358
23359 case $var in
23360 old_archive_cmds_F77 | \
23361 old_archive_from_new_cmds_F77 | \
23362 archive_cmds_F77 | \
23363 archive_expsym_cmds_F77 | \
23364 module_cmds_F77 | \
23365 module_expsym_cmds_F77 | \
23366 old_archive_from_expsyms_cmds_F77 | \
23367 export_symbols_cmds_F77 | \
23368 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23369 postinstall_cmds | postuninstall_cmds | \
23370 old_postinstall_cmds | old_postuninstall_cmds | \
23371 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23372 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373 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 +000023374 ;;
23375 *)
23376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23377 ;;
23378 esac
23379 done
23380
23381 case $lt_echo in
23382 *'\$0 --fallback-echo"')
23383 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23384 ;;
23385 esac
23386
23387cfgfile="$ofile"
23388
23389 cat <<__EOF__ >> "$cfgfile"
23390# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23391
23392# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23393
23394# Shell to use when invoking shell scripts.
23395SHELL=$lt_SHELL
23396
23397# Whether or not to build shared libraries.
23398build_libtool_libs=$enable_shared
23399
23400# Whether or not to build static libraries.
23401build_old_libs=$enable_static
23402
23403# Whether or not to add -lc for building shared libraries.
23404build_libtool_need_lc=$archive_cmds_need_lc_F77
23405
23406# Whether or not to disallow shared libs when runtime libs are static
23407allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23408
23409# Whether or not to optimize for fast installation.
23410fast_install=$enable_fast_install
23411
23412# The host system.
23413host_alias=$host_alias
23414host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023415host_os=$host_os
23416
23417# The build system.
23418build_alias=$build_alias
23419build=$build
23420build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023421
23422# An echo program that does not interpret backslashes.
23423echo=$lt_echo
23424
23425# The archiver.
23426AR=$lt_AR
23427AR_FLAGS=$lt_AR_FLAGS
23428
23429# A C compiler.
23430LTCC=$lt_LTCC
23431
Reid Spencera773bd52006-08-04 18:18:08 +000023432# LTCC compiler flags.
23433LTCFLAGS=$lt_LTCFLAGS
23434
John Criswell47fdd832003-07-14 16:52:07 +000023435# A language-specific compiler.
23436CC=$lt_compiler_F77
23437
23438# Is the compiler the GNU C compiler?
23439with_gcc=$GCC_F77
23440
23441# An ERE matcher.
23442EGREP=$lt_EGREP
23443
23444# The linker used to build libraries.
23445LD=$lt_LD_F77
23446
23447# Whether we need hard or soft links.
23448LN_S=$lt_LN_S
23449
23450# A BSD-compatible nm program.
23451NM=$lt_NM
23452
23453# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023455
23456# Used to examine libraries when file_magic_cmd begins "file"
23457MAGIC_CMD=$MAGIC_CMD
23458
23459# Used on cygwin: DLL creation program.
23460DLLTOOL="$DLLTOOL"
23461
23462# Used on cygwin: object dumper.
23463OBJDUMP="$OBJDUMP"
23464
23465# Used on cygwin: assembler.
23466AS="$AS"
23467
23468# The name of the directory that contains temporary libtool files.
23469objdir=$objdir
23470
23471# How to create reloadable object files.
23472reload_flag=$lt_reload_flag
23473reload_cmds=$lt_reload_cmds
23474
23475# How to pass a linker flag through the compiler.
23476wl=$lt_lt_prog_compiler_wl_F77
23477
23478# Object file suffix (normally "o").
23479objext="$ac_objext"
23480
23481# Old archive suffix (normally "a").
23482libext="$libext"
23483
23484# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023485shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023486
23487# Executable file suffix (normally "").
23488exeext="$exeext"
23489
23490# Additional compiler flags for building library objects.
23491pic_flag=$lt_lt_prog_compiler_pic_F77
23492pic_mode=$pic_mode
23493
23494# What is the maximum length of a command?
23495max_cmd_len=$lt_cv_sys_max_cmd_len
23496
23497# Does compiler simultaneously support -c and -o options?
23498compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23499
Reid Spencera773bd52006-08-04 18:18:08 +000023500# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023501need_locks=$lt_need_locks
23502
23503# Do we need the lib prefix for modules?
23504need_lib_prefix=$need_lib_prefix
23505
23506# Do we need a version for libraries?
23507need_version=$need_version
23508
23509# Whether dlopen is supported.
23510dlopen_support=$enable_dlopen
23511
23512# Whether dlopen of programs is supported.
23513dlopen_self=$enable_dlopen_self
23514
23515# Whether dlopen of statically linked programs is supported.
23516dlopen_self_static=$enable_dlopen_self_static
23517
23518# Compiler flag to prevent dynamic linking.
23519link_static_flag=$lt_lt_prog_compiler_static_F77
23520
23521# Compiler flag to turn off builtin functions.
23522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23523
23524# Compiler flag to allow reflexive dlopens.
23525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23526
23527# Compiler flag to generate shared objects directly from archives.
23528whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23529
23530# Compiler flag to generate thread-safe objects.
23531thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23532
23533# Library versioning type.
23534version_type=$version_type
23535
23536# Format of library name prefix.
23537libname_spec=$lt_libname_spec
23538
23539# List of archive names. First name is the real one, the rest are links.
23540# The last name is the one that the linker finds with -lNAME.
23541library_names_spec=$lt_library_names_spec
23542
23543# The coded name of the library, if different from the real name.
23544soname_spec=$lt_soname_spec
23545
23546# Commands used to build and install an old-style archive.
23547RANLIB=$lt_RANLIB
23548old_archive_cmds=$lt_old_archive_cmds_F77
23549old_postinstall_cmds=$lt_old_postinstall_cmds
23550old_postuninstall_cmds=$lt_old_postuninstall_cmds
23551
23552# Create an old-style archive from a shared archive.
23553old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23554
23555# Create a temporary old-style archive to link instead of a shared archive.
23556old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23557
23558# Commands used to build and install a shared archive.
23559archive_cmds=$lt_archive_cmds_F77
23560archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23561postinstall_cmds=$lt_postinstall_cmds
23562postuninstall_cmds=$lt_postuninstall_cmds
23563
23564# Commands used to build a loadable module (assumed same as above if empty)
23565module_cmds=$lt_module_cmds_F77
23566module_expsym_cmds=$lt_module_expsym_cmds_F77
23567
23568# Commands to strip libraries.
23569old_striplib=$lt_old_striplib
23570striplib=$lt_striplib
23571
23572# Dependencies to place before the objects being linked to create a
23573# shared library.
23574predep_objects=$lt_predep_objects_F77
23575
23576# Dependencies to place after the objects being linked to create a
23577# shared library.
23578postdep_objects=$lt_postdep_objects_F77
23579
23580# Dependencies to place before the objects being linked to create a
23581# shared library.
23582predeps=$lt_predeps_F77
23583
23584# Dependencies to place after the objects being linked to create a
23585# shared library.
23586postdeps=$lt_postdeps_F77
23587
23588# The library search path used internally by the compiler when linking
23589# a shared library.
23590compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23591
23592# Method to check whether dependent libraries are shared objects.
23593deplibs_check_method=$lt_deplibs_check_method
23594
23595# Command to use when deplibs_check_method == file_magic.
23596file_magic_cmd=$lt_file_magic_cmd
23597
23598# Flag that allows shared libraries with undefined symbols to be built.
23599allow_undefined_flag=$lt_allow_undefined_flag_F77
23600
23601# Flag that forces no undefined symbols.
23602no_undefined_flag=$lt_no_undefined_flag_F77
23603
23604# Commands used to finish a libtool library installation in a directory.
23605finish_cmds=$lt_finish_cmds
23606
23607# Same as above, but a single script fragment to be evaled but not shown.
23608finish_eval=$lt_finish_eval
23609
23610# Take the output of nm and produce a listing of raw symbols and C names.
23611global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23612
23613# Transform the output of nm in a proper C declaration
23614global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23615
23616# Transform the output of nm in a C name address pair
23617global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23618
23619# This is the shared library runtime path variable.
23620runpath_var=$runpath_var
23621
23622# This is the shared library path variable.
23623shlibpath_var=$shlibpath_var
23624
23625# Is shlibpath searched before the hard-coded library search path?
23626shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23627
23628# How to hardcode a shared library path into an executable.
23629hardcode_action=$hardcode_action_F77
23630
23631# Whether we should hardcode library paths into libraries.
23632hardcode_into_libs=$hardcode_into_libs
23633
23634# Flag to hardcode \$libdir into a binary during linking.
23635# This must work even if \$libdir does not exist.
23636hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23637
23638# If ld is used when linking, flag to hardcode \$libdir into
23639# a binary during linking. This must work even if \$libdir does
23640# not exist.
23641hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23642
23643# Whether we need a single -rpath flag with a separated argument.
23644hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23645
23646# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23647# resulting binary.
23648hardcode_direct=$hardcode_direct_F77
23649
23650# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23651# resulting binary.
23652hardcode_minus_L=$hardcode_minus_L_F77
23653
23654# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23655# the resulting binary.
23656hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23657
23658# Set to yes if building a shared library automatically hardcodes DIR into the library
23659# and all subsequent libraries and executables linked against it.
23660hardcode_automatic=$hardcode_automatic_F77
23661
23662# Variables whose values should be saved in libtool wrapper scripts and
23663# restored at relink time.
23664variables_saved_for_relink="$variables_saved_for_relink"
23665
23666# Whether libtool must link a program against all its dependency libraries.
23667link_all_deplibs=$link_all_deplibs_F77
23668
23669# Compile-time system search path for libraries
23670sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23671
23672# Run-time system search path for libraries
23673sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23674
23675# Fix the shell variable \$srcfile for the compiler.
23676fix_srcfile_path="$fix_srcfile_path_F77"
23677
23678# Set to yes if exported symbols are required.
23679always_export_symbols=$always_export_symbols_F77
23680
23681# The commands to list exported symbols.
23682export_symbols_cmds=$lt_export_symbols_cmds_F77
23683
23684# The commands to extract the exported symbol list from a shared archive.
23685extract_expsyms_cmds=$lt_extract_expsyms_cmds
23686
23687# Symbols that should not be listed in the preloaded symbols.
23688exclude_expsyms=$lt_exclude_expsyms_F77
23689
23690# Symbols that must always be exported.
23691include_expsyms=$lt_include_expsyms_F77
23692
23693# ### END LIBTOOL TAG CONFIG: $tagname
23694
23695__EOF__
23696
23697
23698else
23699 # If there is no Makefile yet, we rely on a make rule to execute
23700 # `config.status --recheck' to rerun these tests and create the
23701 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023702 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23703 if test -f "$ltmain_in"; then
23704 test -f Makefile && make "$ltmain"
23705 fi
John Criswell47fdd832003-07-14 16:52:07 +000023706fi
23707
23708
23709ac_ext=c
23710ac_cpp='$CPP $CPPFLAGS'
23711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714
23715CC="$lt_save_CC"
23716
23717 else
23718 tagname=""
23719 fi
23720 ;;
23721
23722 GCJ)
23723 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023724 ac_ext=c
23725ac_cpp='$CPP $CPPFLAGS'
23726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023729
23730
23731# Source file extension for Java test sources.
23732ac_ext=java
23733
23734# Object file extension for compiled Java test sources.
23735objext=o
23736objext_GCJ=$objext
23737
23738# Code to be used in simple compile tests
23739lt_simple_compile_test_code="class foo {}\n"
23740
23741# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023742lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023743
23744# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23745
23746# If no C compiler was specified, use CC.
23747LTCC=${LTCC-"$CC"}
23748
Reid Spencera773bd52006-08-04 18:18:08 +000023749# If no C compiler flags were specified, use CFLAGS.
23750LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23751
John Criswell47fdd832003-07-14 16:52:07 +000023752# Allow CC to be a program name with arguments.
23753compiler=$CC
23754
23755
Reid Spencera773bd52006-08-04 18:18:08 +000023756# save warnings/boilerplate of simple test code
23757ac_outfile=conftest.$ac_objext
23758printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23760_lt_compiler_boilerplate=`cat conftest.err`
23761$rm conftest*
23762
23763ac_outfile=conftest.$ac_objext
23764printf "$lt_simple_link_test_code" >conftest.$ac_ext
23765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23766_lt_linker_boilerplate=`cat conftest.err`
23767$rm conftest*
23768
23769
John Criswell47fdd832003-07-14 16:52:07 +000023770# Allow CC to be a program name with arguments.
23771lt_save_CC="$CC"
23772CC=${GCJ-"gcj"}
23773compiler=$CC
23774compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023775for cc_temp in $compiler""; do
23776 case $cc_temp in
23777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23779 \-*) ;;
23780 *) break;;
23781 esac
23782done
23783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23784
John Criswell47fdd832003-07-14 16:52:07 +000023785
23786# GCJ did not exist at the time GCC didn't implicitly link libc in.
23787archive_cmds_need_lc_GCJ=no
23788
Reid Spencera773bd52006-08-04 18:18:08 +000023789old_archive_cmds_GCJ=$old_archive_cmds
23790
John Criswell47fdd832003-07-14 16:52:07 +000023791
23792lt_prog_compiler_no_builtin_flag_GCJ=
23793
23794if test "$GCC" = yes; then
23795 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23796
Reid Spencer2706f8c2004-09-19 23:53:36 +000023797
Reid Spencera773bd52006-08-04 18:18:08 +000023798{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23799echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023800if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23802else
23803 lt_cv_prog_compiler_rtti_exceptions=no
23804 ac_outfile=conftest.$ac_objext
23805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23806 lt_compiler_flag="-fno-rtti -fno-exceptions"
23807 # Insert the option either (1) after the last *FLAGS variable, or
23808 # (2) before a word containing "conftest.", or (3) at the end.
23809 # Note that $ac_compile itself does not contain backslashes and begins
23810 # with a dollar sign (not a hyphen), so the echo should work correctly.
23811 # The option is referenced via a variable to avoid confusing sed.
23812 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23815 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000023816 (eval echo "\"\$as_me:23816: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023817 (eval "$lt_compile" 2>conftest.err)
23818 ac_status=$?
23819 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000023820 echo "$as_me:23820: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023821 if (exit $ac_status) && test -s "$ac_outfile"; then
23822 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023823 # So say no if there are warnings other than the usual output.
23824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023827 lt_cv_prog_compiler_rtti_exceptions=yes
23828 fi
23829 fi
23830 $rm conftest*
23831
23832fi
Reid Spencera773bd52006-08-04 18:18:08 +000023833{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23834echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023835
23836if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23837 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23838else
23839 :
23840fi
23841
23842fi
23843
23844lt_prog_compiler_wl_GCJ=
23845lt_prog_compiler_pic_GCJ=
23846lt_prog_compiler_static_GCJ=
23847
Reid Spencera773bd52006-08-04 18:18:08 +000023848{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23849echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023850
23851 if test "$GCC" = yes; then
23852 lt_prog_compiler_wl_GCJ='-Wl,'
23853 lt_prog_compiler_static_GCJ='-static'
23854
23855 case $host_os in
23856 aix*)
23857 # All AIX code is PIC.
23858 if test "$host_cpu" = ia64; then
23859 # AIX 5 now supports IA64 processor
23860 lt_prog_compiler_static_GCJ='-Bstatic'
23861 fi
23862 ;;
23863
23864 amigaos*)
23865 # FIXME: we need at least 68020 code to build shared libraries, but
23866 # adding the `-m68020' flag to GCC prevents building anything better,
23867 # like `-m68040'.
23868 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23869 ;;
23870
23871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23872 # PIC is the default for these OSes.
23873 ;;
23874
23875 mingw* | pw32* | os2*)
23876 # This hack is so that the source file can tell whether it is being
23877 # built for inclusion in a dll (and should export symbols for example).
23878 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23879 ;;
23880
23881 darwin* | rhapsody*)
23882 # PIC is the default on this platform
23883 # Common symbols not allowed in MH_DYLIB files
23884 lt_prog_compiler_pic_GCJ='-fno-common'
23885 ;;
23886
Reid Spencera773bd52006-08-04 18:18:08 +000023887 interix3*)
23888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23889 # Instead, we relocate shared libraries at runtime.
23890 ;;
23891
John Criswell47fdd832003-07-14 16:52:07 +000023892 msdosdjgpp*)
23893 # Just because we use GCC doesn't mean we suddenly get shared libraries
23894 # on systems that don't support them.
23895 lt_prog_compiler_can_build_shared_GCJ=no
23896 enable_shared=no
23897 ;;
23898
23899 sysv4*MP*)
23900 if test -d /usr/nec; then
23901 lt_prog_compiler_pic_GCJ=-Kconform_pic
23902 fi
23903 ;;
23904
23905 hpux*)
23906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23907 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023908 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023909 hppa*64*|ia64*)
23910 # +Z the default
23911 ;;
23912 *)
23913 lt_prog_compiler_pic_GCJ='-fPIC'
23914 ;;
23915 esac
23916 ;;
23917
23918 *)
23919 lt_prog_compiler_pic_GCJ='-fPIC'
23920 ;;
23921 esac
23922 else
23923 # PORTME Check for flag to pass linker flags through the system compiler.
23924 case $host_os in
23925 aix*)
23926 lt_prog_compiler_wl_GCJ='-Wl,'
23927 if test "$host_cpu" = ia64; then
23928 # AIX 5 now supports IA64 processor
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23930 else
23931 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23932 fi
23933 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023934 darwin*)
23935 # PIC is the default on this platform
23936 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023937 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023938 xlc*)
23939 lt_prog_compiler_pic_GCJ='-qnocommon'
23940 lt_prog_compiler_wl_GCJ='-Wl,'
23941 ;;
23942 esac
23943 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023944
23945 mingw* | pw32* | os2*)
23946 # This hack is so that the source file can tell whether it is being
23947 # built for inclusion in a dll (and should export symbols for example).
23948 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23949 ;;
23950
23951 hpux9* | hpux10* | hpux11*)
23952 lt_prog_compiler_wl_GCJ='-Wl,'
23953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23954 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023955 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023956 hppa*64*|ia64*)
23957 # +Z the default
23958 ;;
23959 *)
23960 lt_prog_compiler_pic_GCJ='+Z'
23961 ;;
23962 esac
23963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23964 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23965 ;;
23966
23967 irix5* | irix6* | nonstopux*)
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 # PIC (with -KPIC) is the default.
23970 lt_prog_compiler_static_GCJ='-non_shared'
23971 ;;
23972
23973 newsos6)
23974 lt_prog_compiler_pic_GCJ='-KPIC'
23975 lt_prog_compiler_static_GCJ='-Bstatic'
23976 ;;
23977
23978 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023979 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023980 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_pic_GCJ='-KPIC'
23983 lt_prog_compiler_static_GCJ='-static'
23984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023985 pgcc* | pgf77* | pgf90* | pgf95*)
23986 # Portland Group compilers (*not* the Pentium gcc compiler,
23987 # which looks to be a dead project)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 lt_prog_compiler_pic_GCJ='-fpic'
23990 lt_prog_compiler_static_GCJ='-Bstatic'
23991 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023992 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023993 lt_prog_compiler_wl_GCJ='-Wl,'
23994 # All Alpha code is PIC.
23995 lt_prog_compiler_static_GCJ='-non_shared'
23996 ;;
23997 esac
23998 ;;
23999
24000 osf3* | osf4* | osf5*)
24001 lt_prog_compiler_wl_GCJ='-Wl,'
24002 # All OSF/1 code is PIC.
24003 lt_prog_compiler_static_GCJ='-non_shared'
24004 ;;
24005
John Criswell47fdd832003-07-14 16:52:07 +000024006 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024009 case $cc_basename in
24010 f77* | f90* | f95*)
24011 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24012 *)
24013 lt_prog_compiler_wl_GCJ='-Wl,';;
24014 esac
John Criswell47fdd832003-07-14 16:52:07 +000024015 ;;
24016
24017 sunos4*)
24018 lt_prog_compiler_wl_GCJ='-Qoption ld '
24019 lt_prog_compiler_pic_GCJ='-PIC'
24020 lt_prog_compiler_static_GCJ='-Bstatic'
24021 ;;
24022
Reid Spencera773bd52006-08-04 18:18:08 +000024023 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024024 lt_prog_compiler_wl_GCJ='-Wl,'
24025 lt_prog_compiler_pic_GCJ='-KPIC'
24026 lt_prog_compiler_static_GCJ='-Bstatic'
24027 ;;
24028
24029 sysv4*MP*)
24030 if test -d /usr/nec ;then
24031 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24033 fi
24034 ;;
24035
Reid Spencera773bd52006-08-04 18:18:08 +000024036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24037 lt_prog_compiler_wl_GCJ='-Wl,'
24038 lt_prog_compiler_pic_GCJ='-KPIC'
24039 lt_prog_compiler_static_GCJ='-Bstatic'
24040 ;;
24041
24042 unicos*)
24043 lt_prog_compiler_wl_GCJ='-Wl,'
24044 lt_prog_compiler_can_build_shared_GCJ=no
24045 ;;
24046
John Criswell47fdd832003-07-14 16:52:07 +000024047 uts4*)
24048 lt_prog_compiler_pic_GCJ='-pic'
24049 lt_prog_compiler_static_GCJ='-Bstatic'
24050 ;;
24051
24052 *)
24053 lt_prog_compiler_can_build_shared_GCJ=no
24054 ;;
24055 esac
24056 fi
24057
Reid Spencera773bd52006-08-04 18:18:08 +000024058{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24059echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024060
24061#
24062# Check to make sure the PIC flag actually works.
24063#
24064if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024065
Reid Spencera773bd52006-08-04 18:18:08 +000024066{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24067echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024068if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070else
24071 lt_prog_compiler_pic_works_GCJ=no
24072 ac_outfile=conftest.$ac_objext
24073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24074 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24075 # Insert the option either (1) after the last *FLAGS variable, or
24076 # (2) before a word containing "conftest.", or (3) at the end.
24077 # Note that $ac_compile itself does not contain backslashes and begins
24078 # with a dollar sign (not a hyphen), so the echo should work correctly.
24079 # The option is referenced via a variable to avoid confusing sed.
24080 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24083 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000024084 (eval echo "\"\$as_me:24084: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024085 (eval "$lt_compile" 2>conftest.err)
24086 ac_status=$?
24087 cat conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000024088 echo "$as_me:24088: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024089 if (exit $ac_status) && test -s "$ac_outfile"; then
24090 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024091 # So say no if there are warnings other than the usual output.
24092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024095 lt_prog_compiler_pic_works_GCJ=yes
24096 fi
24097 fi
24098 $rm conftest*
24099
24100fi
Reid Spencera773bd52006-08-04 18:18:08 +000024101{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24102echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024103
24104if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24105 case $lt_prog_compiler_pic_GCJ in
24106 "" | " "*) ;;
24107 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24108 esac
24109else
24110 lt_prog_compiler_pic_GCJ=
24111 lt_prog_compiler_can_build_shared_GCJ=no
24112fi
24113
24114fi
Reid Spencera773bd52006-08-04 18:18:08 +000024115case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024116 # For platforms which do not support PIC, -DPIC is meaningless:
24117 *djgpp*)
24118 lt_prog_compiler_pic_GCJ=
24119 ;;
24120 *)
24121 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24122 ;;
24123esac
24124
Reid Spencera773bd52006-08-04 18:18:08 +000024125#
24126# Check to make sure the static flag actually works.
24127#
24128wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24129{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24130echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24131if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133else
24134 lt_prog_compiler_static_works_GCJ=no
24135 save_LDFLAGS="$LDFLAGS"
24136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24137 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24139 # The linker can only warn and ignore the option if not recognized
24140 # So say no if there are warnings
24141 if test -s conftest.err; then
24142 # Append any errors to the config.log.
24143 cat conftest.err 1>&5
24144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24146 if diff conftest.exp conftest.er2 >/dev/null; then
24147 lt_prog_compiler_static_works_GCJ=yes
24148 fi
24149 else
24150 lt_prog_compiler_static_works_GCJ=yes
24151 fi
24152 fi
24153 $rm conftest*
24154 LDFLAGS="$save_LDFLAGS"
24155
24156fi
24157{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24158echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24159
24160if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24161 :
24162else
24163 lt_prog_compiler_static_GCJ=
24164fi
24165
24166
24167{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24168echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024169if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171else
24172 lt_cv_prog_compiler_c_o_GCJ=no
24173 $rm -r conftest 2>/dev/null
24174 mkdir conftest
24175 cd conftest
24176 mkdir out
24177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24178
John Criswell47fdd832003-07-14 16:52:07 +000024179 lt_compiler_flag="-o out/conftest2.$ac_objext"
24180 # Insert the option either (1) after the last *FLAGS variable, or
24181 # (2) before a word containing "conftest.", or (3) at the end.
24182 # Note that $ac_compile itself does not contain backslashes and begins
24183 # with a dollar sign (not a hyphen), so the echo should work correctly.
24184 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24187 -e 's:$: $lt_compiler_flag:'`
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000024188 (eval echo "\"\$as_me:24188: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024189 (eval "$lt_compile" 2>out/conftest.err)
24190 ac_status=$?
24191 cat out/conftest.err >&5
Matthijs Kooijmanf5122812008-06-26 10:36:58 +000024192 echo "$as_me:24192: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24194 then
24195 # The compiler can only warn and ignore the option if not recognized
24196 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024200 lt_cv_prog_compiler_c_o_GCJ=yes
24201 fi
24202 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024203 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024204 $rm conftest*
24205 # SGI C++ compiler will create directory out/ii_files/ for
24206 # template instantiation
24207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24208 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024209 cd ..
24210 rmdir conftest
24211 $rm conftest*
24212
24213fi
Reid Spencera773bd52006-08-04 18:18:08 +000024214{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24215echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024216
24217
24218hard_links="nottested"
24219if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24220 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024221 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24222echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024223 hard_links=yes
24224 $rm conftest*
24225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24226 touch conftest.a
24227 ln conftest.a conftest.b 2>&5 || hard_links=no
24228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024229 { echo "$as_me:$LINENO: result: $hard_links" >&5
24230echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024231 if test "$hard_links" = no; then
24232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24233echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24234 need_locks=warn
24235 fi
24236else
24237 need_locks=no
24238fi
24239
Reid Spencera773bd52006-08-04 18:18:08 +000024240{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24241echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024242
24243 runpath_var=
24244 allow_undefined_flag_GCJ=
24245 enable_shared_with_static_runtimes_GCJ=no
24246 archive_cmds_GCJ=
24247 archive_expsym_cmds_GCJ=
24248 old_archive_From_new_cmds_GCJ=
24249 old_archive_from_expsyms_cmds_GCJ=
24250 export_dynamic_flag_spec_GCJ=
24251 whole_archive_flag_spec_GCJ=
24252 thread_safe_flag_spec_GCJ=
24253 hardcode_libdir_flag_spec_GCJ=
24254 hardcode_libdir_flag_spec_ld_GCJ=
24255 hardcode_libdir_separator_GCJ=
24256 hardcode_direct_GCJ=no
24257 hardcode_minus_L_GCJ=no
24258 hardcode_shlibpath_var_GCJ=unsupported
24259 link_all_deplibs_GCJ=unknown
24260 hardcode_automatic_GCJ=no
24261 module_cmds_GCJ=
24262 module_expsym_cmds_GCJ=
24263 always_export_symbols_GCJ=no
24264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24265 # include_expsyms should be a list of space-separated symbols to be *always*
24266 # included in the symbol list
24267 include_expsyms_GCJ=
24268 # exclude_expsyms can be an extended regexp of symbols to exclude
24269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24271 # as well as any symbol that contains `d'.
24272 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24274 # platforms (ab)use it in PIC code, but their linkers get confused if
24275 # the symbol is explicitly referenced. Since portable code cannot
24276 # rely on this symbol name, it's probably fine to never include it in
24277 # preloaded symbol tables.
24278 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024279 # Just being paranoid about ensuring that cc_basename is set.
24280 for cc_temp in $compiler""; do
24281 case $cc_temp in
24282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24284 \-*) ;;
24285 *) break;;
24286 esac
24287done
24288cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024289
24290 case $host_os in
24291 cygwin* | mingw* | pw32*)
24292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24293 # When not using gcc, we currently assume that we are using
24294 # Microsoft Visual C++.
24295 if test "$GCC" != yes; then
24296 with_gnu_ld=no
24297 fi
24298 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024299 interix*)
24300 # we just hope/assume this is gcc and not c89 (= MSVC++)
24301 with_gnu_ld=yes
24302 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024303 openbsd*)
24304 with_gnu_ld=no
24305 ;;
24306 esac
24307
24308 ld_shlibs_GCJ=yes
24309 if test "$with_gnu_ld" = yes; then
24310 # If archive_cmds runs LD, not CC, wlarc should be empty
24311 wlarc='${wl}'
24312
Reid Spencera773bd52006-08-04 18:18:08 +000024313 # Set some defaults for GNU ld with shared library support. These
24314 # are reset later if shared libraries are not supported. Putting them
24315 # here allows them to be overridden if necessary.
24316 runpath_var=LD_RUN_PATH
24317 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24318 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24319 # ancient GNU ld didn't support --whole-archive et. al.
24320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24321 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24322 else
24323 whole_archive_flag_spec_GCJ=
24324 fi
24325 supports_anon_versioning=no
24326 case `$LD -v 2>/dev/null` in
24327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24330 *\ 2.11.*) ;; # other 2.11 versions
24331 *) supports_anon_versioning=yes ;;
24332 esac
24333
John Criswell47fdd832003-07-14 16:52:07 +000024334 # See if GNU ld supports shared libraries.
24335 case $host_os in
24336 aix3* | aix4* | aix5*)
24337 # On AIX/PPC, the GNU linker is very broken
24338 if test "$host_cpu" != ia64; then
24339 ld_shlibs_GCJ=no
24340 cat <<EOF 1>&2
24341
24342*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24343*** to be unable to reliably create shared libraries on AIX.
24344*** Therefore, libtool is disabling shared libraries support. If you
24345*** really care for shared libraries, you may want to modify your PATH
24346*** so that a non-GNU linker is found, and then restart.
24347
24348EOF
24349 fi
24350 ;;
24351
24352 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024353 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 +000024354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24355 hardcode_minus_L_GCJ=yes
24356
24357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24358 # that the semantics of dynamic libraries on AmigaOS, at least up
24359 # to version 4, is to share data among multiple programs linked
24360 # with the same dynamic library. Since this doesn't match the
24361 # behavior of shared libraries on other platforms, we can't use
24362 # them.
24363 ld_shlibs_GCJ=no
24364 ;;
24365
24366 beos*)
24367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368 allow_undefined_flag_GCJ=unsupported
24369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24370 # support --undefined. This deserves some investigation. FIXME
24371 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24372 else
24373 ld_shlibs_GCJ=no
24374 fi
24375 ;;
24376
24377 cygwin* | mingw* | pw32*)
24378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24379 # as there is no search path for DLLs.
24380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24381 allow_undefined_flag_GCJ=unsupported
24382 always_export_symbols_GCJ=no
24383 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024384 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 +000024385
24386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024387 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 +000024388 # If the export-symbols file already is a .def file (1st line
24389 # is EXPORTS), use it as is; otherwise, prepend...
24390 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24391 cp $export_symbols $output_objdir/$soname.def;
24392 else
24393 echo EXPORTS > $output_objdir/$soname.def;
24394 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024395 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024396 $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 +000024397 else
Reid Spencera773bd52006-08-04 18:18:08 +000024398 ld_shlibs_GCJ=no
24399 fi
24400 ;;
24401
24402 interix3*)
24403 hardcode_direct_GCJ=no
24404 hardcode_shlibpath_var_GCJ=no
24405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24406 export_dynamic_flag_spec_GCJ='${wl}-E'
24407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24408 # Instead, shared libraries are loaded at an image base (0x10000000 by
24409 # default) and relocated if they conflict, which is a slow very memory
24410 # consuming and fragmenting process. To avoid this, we pick a random,
24411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24413 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'
24414 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'
24415 ;;
24416
24417 linux*)
24418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24419 tmp_addflag=
24420 case $cc_basename,$host_cpu in
24421 pgcc*) # Portland Group C compiler
24422 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'
24423 tmp_addflag=' $pic_flag'
24424 ;;
24425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24426 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'
24427 tmp_addflag=' $pic_flag -Mnomain' ;;
24428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24429 tmp_addflag=' -i_dynamic' ;;
24430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24431 tmp_addflag=' -i_dynamic -nofor_main' ;;
24432 ifc* | ifort*) # Intel Fortran compiler
24433 tmp_addflag=' -nofor_main' ;;
24434 esac
24435 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436
24437 if test $supports_anon_versioning = yes; then
24438 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24440 $echo "local: *; };" >> $output_objdir/$libname.ver~
24441 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24442 fi
24443 else
24444 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024445 fi
24446 ;;
24447
24448 netbsd*)
24449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24451 wlarc=
24452 else
24453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24455 fi
24456 ;;
24457
Reid Spencera773bd52006-08-04 18:18:08 +000024458 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24460 ld_shlibs_GCJ=no
24461 cat <<EOF 1>&2
24462
24463*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24464*** create shared libraries on Solaris systems. Therefore, libtool
24465*** is disabling shared libraries support. We urge you to upgrade GNU
24466*** binutils to release 2.9.1 or newer. Another option is to modify
24467*** your PATH or compiler configuration so that the native linker is
24468*** used, and then restart.
24469
24470EOF
24471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24474 else
24475 ld_shlibs_GCJ=no
24476 fi
24477 ;;
24478
Reid Spencera773bd52006-08-04 18:18:08 +000024479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24480 case `$LD -v 2>&1` in
24481 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24482 ld_shlibs_GCJ=no
24483 cat <<_LT_EOF 1>&2
24484
24485*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24486*** reliably create shared libraries on SCO systems. Therefore, libtool
24487*** is disabling shared libraries support. We urge you to upgrade GNU
24488*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24489*** your PATH or compiler configuration so that the native linker is
24490*** used, and then restart.
24491
24492_LT_EOF
24493 ;;
24494 *)
24495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24499 else
24500 ld_shlibs_GCJ=no
24501 fi
24502 ;;
24503 esac
24504 ;;
24505
John Criswell47fdd832003-07-14 16:52:07 +000024506 sunos4*)
24507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24508 wlarc=
24509 hardcode_direct_GCJ=yes
24510 hardcode_shlibpath_var_GCJ=no
24511 ;;
24512
24513 *)
24514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24517 else
24518 ld_shlibs_GCJ=no
24519 fi
24520 ;;
24521 esac
24522
Reid Spencera773bd52006-08-04 18:18:08 +000024523 if test "$ld_shlibs_GCJ" = no; then
24524 runpath_var=
24525 hardcode_libdir_flag_spec_GCJ=
24526 export_dynamic_flag_spec_GCJ=
24527 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024528 fi
24529 else
24530 # PORTME fill in a description of your system's linker (not GNU ld)
24531 case $host_os in
24532 aix3*)
24533 allow_undefined_flag_GCJ=unsupported
24534 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024535 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 +000024536 # Note: this linker hardcodes the directories in LIBPATH if there
24537 # are no directories specified by -L.
24538 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024540 # Neither direct hardcoding nor static linking is supported with a
24541 # broken collect2.
24542 hardcode_direct_GCJ=unsupported
24543 fi
24544 ;;
24545
24546 aix4* | aix5*)
24547 if test "$host_cpu" = ia64; then
24548 # On IA64, the linker does run time linking by default, so we don't
24549 # have to do anything special.
24550 aix_use_runtimelinking=no
24551 exp_sym_flag='-Bexport'
24552 no_entry_flag=""
24553 else
24554 # If we're using GNU nm, then we don't want the "-C" option.
24555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24557 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'
24558 else
24559 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'
24560 fi
24561 aix_use_runtimelinking=no
24562
24563 # Test if we are trying to use run time linking or normal
24564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24565 # need to do runtime linking.
24566 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24567 for ld_flag in $LDFLAGS; do
24568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24569 aix_use_runtimelinking=yes
24570 break
24571 fi
24572 done
Reid Spencera773bd52006-08-04 18:18:08 +000024573 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024574 esac
24575
24576 exp_sym_flag='-bexport'
24577 no_entry_flag='-bnoentry'
24578 fi
24579
24580 # When large executables or shared objects are built, AIX ld can
24581 # have problems creating the table of contents. If linking a library
24582 # or program results in "error TOC overflow" add -mminimal-toc to
24583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24585
24586 archive_cmds_GCJ=''
24587 hardcode_direct_GCJ=yes
24588 hardcode_libdir_separator_GCJ=':'
24589 link_all_deplibs_GCJ=yes
24590
24591 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024592 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024593 # We only want to do this on AIX 4.2 and lower, the check
24594 # below for broken collect2 doesn't work under 4.3+
24595 collect2name=`${CC} -print-prog-name=collect2`
24596 if test -f "$collect2name" && \
24597 strings "$collect2name" | grep resolve_lib_name >/dev/null
24598 then
24599 # We have reworked collect2
24600 hardcode_direct_GCJ=yes
24601 else
24602 # We have old collect2
24603 hardcode_direct_GCJ=unsupported
24604 # It fails to find uninstalled libraries when the uninstalled
24605 # path is not listed in the libpath. Setting hardcode_minus_L
24606 # to unsupported forces relinking
24607 hardcode_minus_L_GCJ=yes
24608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24609 hardcode_libdir_separator_GCJ=
24610 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024611 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024612 esac
24613 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024614 if test "$aix_use_runtimelinking" = yes; then
24615 shared_flag="$shared_flag "'${wl}-G'
24616 fi
John Criswell47fdd832003-07-14 16:52:07 +000024617 else
24618 # not using gcc
24619 if test "$host_cpu" = ia64; then
24620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24621 # chokes on -Wl,-G. The following line is correct:
24622 shared_flag='-G'
24623 else
Reid Spencera773bd52006-08-04 18:18:08 +000024624 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024625 shared_flag='${wl}-G'
24626 else
24627 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024628 fi
John Criswell47fdd832003-07-14 16:52:07 +000024629 fi
24630 fi
24631
24632 # It seems that -bexpall does not export symbols beginning with
24633 # underscore (_), so it is better to generate a list of symbols to export.
24634 always_export_symbols_GCJ=yes
24635 if test "$aix_use_runtimelinking" = yes; then
24636 # Warning - without using the other runtime loading flags (-brtl),
24637 # -berok will link without error, but may produce a broken library.
24638 allow_undefined_flag_GCJ='-berok'
24639 # Determine the default libpath from the value encoded in an empty executable.
24640 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024646
John Criswell47fdd832003-07-14 16:52:07 +000024647int
24648main ()
24649{
24650
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024656if { (ac_try="$ac_link"
24657case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024664 grep -v '^ *+' conftest.er1 >conftest.err
24665 rm -f conftest.er1
24666 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024668 (exit $ac_status); } &&
24669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
24679 { ac_try='test -s conftest$ac_exeext'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683esac
24684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024689
24690aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24691}'`
24692# Check for a 64-bit object if we didn't find anything.
24693if 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; }
24694}'`; fi
24695else
24696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024697sed 's/^/| /' conftest.$ac_ext >&5
24698
Reid Spencera773bd52006-08-04 18:18:08 +000024699
John Criswell47fdd832003-07-14 16:52:07 +000024700fi
Reid Spencera773bd52006-08-04 18:18:08 +000024701
Tanya Lattnercf067672008-01-17 05:57:22 +000024702rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024703 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024704if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24705
24706 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024707 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 +000024708 else
24709 if test "$host_cpu" = ia64; then
24710 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24711 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024712 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 +000024713 else
24714 # Determine the default libpath from the value encoded in an empty executable.
24715 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024716/* confdefs.h. */
24717_ACEOF
24718cat confdefs.h >>conftest.$ac_ext
24719cat >>conftest.$ac_ext <<_ACEOF
24720/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024721
John Criswell47fdd832003-07-14 16:52:07 +000024722int
24723main ()
24724{
24725
24726 ;
24727 return 0;
24728}
24729_ACEOF
24730rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024731if { (ac_try="$ac_link"
24732case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24735esac
24736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024739 grep -v '^ *+' conftest.er1 >conftest.err
24740 rm -f conftest.er1
24741 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024743 (exit $ac_status); } &&
24744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758esac
24759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_try") 2>&5
24761 ac_status=$?
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024764
24765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24766}'`
24767# Check for a 64-bit object if we didn't find anything.
24768if 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; }
24769}'`; fi
24770else
24771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024772sed 's/^/| /' conftest.$ac_ext >&5
24773
Reid Spencera773bd52006-08-04 18:18:08 +000024774
John Criswell47fdd832003-07-14 16:52:07 +000024775fi
Reid Spencera773bd52006-08-04 18:18:08 +000024776
Tanya Lattnercf067672008-01-17 05:57:22 +000024777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24780
24781 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24782 # Warning - without using the other run time loading flags,
24783 # -berok will link without error, but may produce a broken library.
24784 no_undefined_flag_GCJ=' ${wl}-bernotok'
24785 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024786 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024787 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024788 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024789 # This is similar to how AIX traditionally builds its shared libraries.
24790 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 +000024791 fi
24792 fi
24793 ;;
24794
24795 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024796 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 +000024797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24798 hardcode_minus_L_GCJ=yes
24799 # see comment about different semantics on the GNU ld section
24800 ld_shlibs_GCJ=no
24801 ;;
24802
Reid Spencer2706f8c2004-09-19 23:53:36 +000024803 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024804 export_dynamic_flag_spec_GCJ=-rdynamic
24805 ;;
24806
24807 cygwin* | mingw* | pw32*)
24808 # When not using gcc, we currently assume that we are using
24809 # Microsoft Visual C++.
24810 # hardcode_libdir_flag_spec is actually meaningless, as there is
24811 # no search path for DLLs.
24812 hardcode_libdir_flag_spec_GCJ=' '
24813 allow_undefined_flag_GCJ=unsupported
24814 # Tell ltmain to make .lib files, not .a files.
24815 libext=lib
24816 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024817 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024818 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024819 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 +000024820 # The linker will automatically build a .lib file if we build a DLL.
24821 old_archive_From_new_cmds_GCJ='true'
24822 # FIXME: Should let the user specify the lib program.
24823 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024824 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024825 enable_shared_with_static_runtimes_GCJ=yes
24826 ;;
24827
24828 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024829 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024830 rhapsody* | darwin1.[012])
24831 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24832 ;;
24833 *) # Darwin 1.3 on
24834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24835 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24836 else
24837 case ${MACOSX_DEPLOYMENT_TARGET} in
24838 10.[012])
24839 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24840 ;;
24841 10.*)
24842 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24843 ;;
24844 esac
24845 fi
24846 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024847 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024848 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024849 hardcode_direct_GCJ=no
24850 hardcode_automatic_GCJ=yes
24851 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024852 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024853 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024854 if test "$GCC" = yes ; then
24855 output_verbose_link_cmd='echo'
24856 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24857 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024858 # 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 +000024859 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}'
24860 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 +000024861 else
Reid Spencera773bd52006-08-04 18:18:08 +000024862 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024863 xlc*)
24864 output_verbose_link_cmd='echo'
24865 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024867 # 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 +000024868 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}'
24869 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 +000024870 ;;
24871 *)
24872 ld_shlibs_GCJ=no
24873 ;;
24874 esac
John Criswell47fdd832003-07-14 16:52:07 +000024875 fi
24876 ;;
24877
24878 dgux*)
24879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24881 hardcode_shlibpath_var_GCJ=no
24882 ;;
24883
24884 freebsd1*)
24885 ld_shlibs_GCJ=no
24886 ;;
24887
24888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24889 # support. Future versions do this automatically, but an explicit c++rt0.o
24890 # does not break anything, and helps significantly (at the cost of a little
24891 # extra space).
24892 freebsd2.2*)
24893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895 hardcode_direct_GCJ=yes
24896 hardcode_shlibpath_var_GCJ=no
24897 ;;
24898
24899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24900 freebsd2*)
24901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24902 hardcode_direct_GCJ=yes
24903 hardcode_minus_L_GCJ=yes
24904 hardcode_shlibpath_var_GCJ=no
24905 ;;
24906
24907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024908 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024909 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24911 hardcode_direct_GCJ=yes
24912 hardcode_shlibpath_var_GCJ=no
24913 ;;
24914
24915 hpux9*)
24916 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024917 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 +000024918 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024919 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 +000024920 fi
24921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923 hardcode_direct_GCJ=yes
24924
24925 # hardcode_minus_L: Not really in the search PATH,
24926 # but as the default location of the library.
24927 hardcode_minus_L_GCJ=yes
24928 export_dynamic_flag_spec_GCJ='${wl}-E'
24929 ;;
24930
Reid Spencera773bd52006-08-04 18:18:08 +000024931 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024933 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24934 else
24935 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24936 fi
24937 if test "$with_gnu_ld" = no; then
24938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24939 hardcode_libdir_separator_GCJ=:
24940
24941 hardcode_direct_GCJ=yes
24942 export_dynamic_flag_spec_GCJ='${wl}-E'
24943
24944 # hardcode_minus_L: Not really in the search PATH,
24945 # but as the default location of the library.
24946 hardcode_minus_L_GCJ=yes
24947 fi
24948 ;;
24949
24950 hpux11*)
24951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24952 case $host_cpu in
24953 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024954 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024956 ia64*)
24957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024959 *)
24960 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24961 ;;
24962 esac
24963 else
Reid Spencera773bd52006-08-04 18:18:08 +000024964 case $host_cpu in
24965 hppa*64*)
24966 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24967 ;;
24968 ia64*)
24969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024970 ;;
24971 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024972 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 +000024973 ;;
24974 esac
24975 fi
24976 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024977 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24978 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024979
Reid Spencera773bd52006-08-04 18:18:08 +000024980 case $host_cpu in
24981 hppa*64*|ia64*)
24982 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24983 hardcode_direct_GCJ=no
24984 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024985 ;;
24986 *)
John Criswell47fdd832003-07-14 16:52:07 +000024987 hardcode_direct_GCJ=yes
24988 export_dynamic_flag_spec_GCJ='${wl}-E'
24989
24990 # hardcode_minus_L: Not really in the search PATH,
24991 # but as the default location of the library.
24992 hardcode_minus_L_GCJ=yes
24993 ;;
24994 esac
24995 fi
24996 ;;
24997
24998 irix5* | irix6* | nonstopux*)
24999 if test "$GCC" = yes; then
25000 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'
25001 else
25002 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'
25003 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25004 fi
25005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25006 hardcode_libdir_separator_GCJ=:
25007 link_all_deplibs_GCJ=yes
25008 ;;
25009
25010 netbsd*)
25011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25013 else
25014 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25015 fi
25016 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25017 hardcode_direct_GCJ=yes
25018 hardcode_shlibpath_var_GCJ=no
25019 ;;
25020
25021 newsos6)
25022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25023 hardcode_direct_GCJ=yes
25024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25025 hardcode_libdir_separator_GCJ=:
25026 hardcode_shlibpath_var_GCJ=no
25027 ;;
25028
25029 openbsd*)
25030 hardcode_direct_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25033 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025034 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 +000025035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25036 export_dynamic_flag_spec_GCJ='${wl}-E'
25037 else
25038 case $host_os in
25039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042 ;;
25043 *)
25044 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25046 ;;
25047 esac
25048 fi
25049 ;;
25050
25051 os2*)
25052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25053 hardcode_minus_L_GCJ=yes
25054 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025055 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 +000025056 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25057 ;;
25058
25059 osf3*)
25060 if test "$GCC" = yes; then
25061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25062 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'
25063 else
25064 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065 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'
25066 fi
25067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25068 hardcode_libdir_separator_GCJ=:
25069 ;;
25070
25071 osf4* | osf5*) # as osf3* with the addition of -msym flag
25072 if test "$GCC" = yes; then
25073 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25074 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'
25075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25076 else
25077 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25078 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 +000025079 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 +000025080 $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 +000025081
John Criswell47fdd832003-07-14 16:52:07 +000025082 # Both c and cxx compiler support -rpath directly
25083 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25084 fi
25085 hardcode_libdir_separator_GCJ=:
25086 ;;
25087
John Criswell47fdd832003-07-14 16:52:07 +000025088 solaris*)
25089 no_undefined_flag_GCJ=' -z text'
25090 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025091 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025092 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25094 $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 +000025095 else
Reid Spencera773bd52006-08-04 18:18:08 +000025096 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025097 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025098 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25099 $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 +000025100 fi
25101 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25102 hardcode_shlibpath_var_GCJ=no
25103 case $host_os in
25104 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025105 *)
25106 # The compiler driver will combine linker options so we
25107 # cannot just pass the convience library names through
25108 # without $wl, iff we do not link with $LD.
25109 # Luckily, gcc supports the same syntax we need for Sun Studio.
25110 # Supported since Solaris 2.6 (maybe 2.5.1?)
25111 case $wlarc in
25112 '')
25113 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25114 *)
25115 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' ;;
25116 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025117 esac
25118 link_all_deplibs_GCJ=yes
25119 ;;
25120
25121 sunos4*)
25122 if test "x$host_vendor" = xsequent; then
25123 # Use $CC to link under sequent, because it throws in some extra .o
25124 # files that make .init and .fini sections work.
25125 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25126 else
25127 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25128 fi
25129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25130 hardcode_direct_GCJ=yes
25131 hardcode_minus_L_GCJ=yes
25132 hardcode_shlibpath_var_GCJ=no
25133 ;;
25134
25135 sysv4)
25136 case $host_vendor in
25137 sni)
25138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25139 hardcode_direct_GCJ=yes # is this really true???
25140 ;;
25141 siemens)
25142 ## LD is ld it makes a PLAMLIB
25143 ## CC just makes a GrossModule.
25144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25145 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25146 hardcode_direct_GCJ=no
25147 ;;
25148 motorola)
25149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25151 ;;
25152 esac
25153 runpath_var='LD_RUN_PATH'
25154 hardcode_shlibpath_var_GCJ=no
25155 ;;
25156
25157 sysv4.3*)
25158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25159 hardcode_shlibpath_var_GCJ=no
25160 export_dynamic_flag_spec_GCJ='-Bexport'
25161 ;;
25162
25163 sysv4*MP*)
25164 if test -d /usr/nec; then
25165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25166 hardcode_shlibpath_var_GCJ=no
25167 runpath_var=LD_RUN_PATH
25168 hardcode_runpath_var=yes
25169 ld_shlibs_GCJ=yes
25170 fi
25171 ;;
25172
Reid Spencera773bd52006-08-04 18:18:08 +000025173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25174 no_undefined_flag_GCJ='${wl}-z,text'
25175 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025176 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025177 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025178
John Criswell47fdd832003-07-14 16:52:07 +000025179 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025180 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25181 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 +000025182 else
Reid Spencera773bd52006-08-04 18:18:08 +000025183 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25184 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 +000025185 fi
John Criswell47fdd832003-07-14 16:52:07 +000025186 ;;
25187
Reid Spencera773bd52006-08-04 18:18:08 +000025188 sysv5* | sco3.2v5* | sco5v6*)
25189 # Note: We can NOT use -z defs as we might desire, because we do not
25190 # link with -lc, and that would cause any symbols used from libc to
25191 # always be unresolved, which means just about no library would
25192 # ever link correctly. If we're not using GNU ld we use -z text
25193 # though, which does catch some bad symbols but isn't as heavy-handed
25194 # as -z defs.
25195 no_undefined_flag_GCJ='${wl}-z,text'
25196 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25197 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025198 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025199 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25200 hardcode_libdir_separator_GCJ=':'
25201 link_all_deplibs_GCJ=yes
25202 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025203 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025204
25205 if test "$GCC" = yes; then
25206 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25207 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 else
25209 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25210 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 fi
John Criswell47fdd832003-07-14 16:52:07 +000025212 ;;
25213
25214 uts4*)
25215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25217 hardcode_shlibpath_var_GCJ=no
25218 ;;
25219
25220 *)
25221 ld_shlibs_GCJ=no
25222 ;;
25223 esac
25224 fi
25225
Reid Spencera773bd52006-08-04 18:18:08 +000025226{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25227echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025228test "$ld_shlibs_GCJ" = no && can_build_shared=no
25229
John Criswell47fdd832003-07-14 16:52:07 +000025230#
25231# Do we need to explicitly link libc?
25232#
25233case "x$archive_cmds_need_lc_GCJ" in
25234x|xyes)
25235 # Assume -lc should be added
25236 archive_cmds_need_lc_GCJ=yes
25237
25238 if test "$enable_shared" = yes && test "$GCC" = yes; then
25239 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025240 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025241 # FIXME: we may have to deal with multi-command sequences.
25242 ;;
25243 '$CC '*)
25244 # Test whether the compiler implicitly links with -lc since on some
25245 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25246 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025247 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25248echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025249 $rm conftest*
25250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25251
25252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25253 (eval $ac_compile) 2>&5
25254 ac_status=$?
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } 2>conftest.err; then
25257 soname=conftest
25258 lib=conftest
25259 libobjs=conftest.$ac_objext
25260 deplibs=
25261 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025262 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025263 compiler_flags=-v
25264 linker_flags=-v
25265 verstring=
25266 output_objdir=.
25267 libname=conftest
25268 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25269 allow_undefined_flag_GCJ=
25270 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25271 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25272 ac_status=$?
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }
25275 then
25276 archive_cmds_need_lc_GCJ=no
25277 else
25278 archive_cmds_need_lc_GCJ=yes
25279 fi
25280 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25281 else
25282 cat conftest.err 1>&5
25283 fi
25284 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025285 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25286echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025287 ;;
25288 esac
25289 fi
25290 ;;
25291esac
25292
Reid Spencera773bd52006-08-04 18:18:08 +000025293{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25294echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025295library_names_spec=
25296libname_spec='lib$name'
25297soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025298shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025299postinstall_cmds=
25300postuninstall_cmds=
25301finish_cmds=
25302finish_eval=
25303shlibpath_var=
25304shlibpath_overrides_runpath=unknown
25305version_type=none
25306dynamic_linker="$host_os ld.so"
25307sys_lib_dlsearch_path_spec="/lib /usr/lib"
25308if test "$GCC" = yes; then
25309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25311 # if the path contains ";" then we assume it to be the separator
25312 # otherwise default to the standard path separator (i.e. ":") - it is
25313 # assumed that no part of a normal pathname contains ";" but that should
25314 # okay in the real world where ";" in dirpaths is itself problematic.
25315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25316 else
25317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25318 fi
25319else
25320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25321fi
25322need_lib_prefix=unknown
25323hardcode_into_libs=no
25324
25325# when you set need_version to no, make sure it does not cause -set_version
25326# flags to be left without arguments
25327need_version=unknown
25328
25329case $host_os in
25330aix3*)
25331 version_type=linux
25332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25333 shlibpath_var=LIBPATH
25334
25335 # AIX 3 has no versioning support, so we append a major version to the name.
25336 soname_spec='${libname}${release}${shared_ext}$major'
25337 ;;
25338
25339aix4* | aix5*)
25340 version_type=linux
25341 need_lib_prefix=no
25342 need_version=no
25343 hardcode_into_libs=yes
25344 if test "$host_cpu" = ia64; then
25345 # AIX 5 supports IA64
25346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25347 shlibpath_var=LD_LIBRARY_PATH
25348 else
25349 # With GCC up to 2.95.x, collect2 would create an import file
25350 # for dependence libraries. The import file would start with
25351 # the line `#! .'. This would cause the generated library to
25352 # depend on `.', always an invalid library. This was fixed in
25353 # development snapshots of GCC prior to 3.0.
25354 case $host_os in
25355 aix4 | aix4.[01] | aix4.[01].*)
25356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25357 echo ' yes '
25358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25359 :
25360 else
25361 can_build_shared=no
25362 fi
25363 ;;
25364 esac
25365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25366 # soname into executable. Probably we can add versioning support to
25367 # collect2, so additional links can be useful in future.
25368 if test "$aix_use_runtimelinking" = yes; then
25369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25370 # instead of lib<name>.a to let people know that these are not
25371 # typical AIX shared libraries.
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25373 else
25374 # We preserve .a as extension for shared libraries through AIX4.2
25375 # and later when we are not doing run time linking.
25376 library_names_spec='${libname}${release}.a $libname.a'
25377 soname_spec='${libname}${release}${shared_ext}$major'
25378 fi
25379 shlibpath_var=LIBPATH
25380 fi
25381 ;;
25382
25383amigaos*)
25384 library_names_spec='$libname.ixlibrary $libname.a'
25385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025386 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 +000025387 ;;
25388
25389beos*)
25390 library_names_spec='${libname}${shared_ext}'
25391 dynamic_linker="$host_os ld.so"
25392 shlibpath_var=LIBRARY_PATH
25393 ;;
25394
Reid Spencer2706f8c2004-09-19 23:53:36 +000025395bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025396 version_type=linux
25397 need_version=no
25398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399 soname_spec='${libname}${release}${shared_ext}$major'
25400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25401 shlibpath_var=LD_LIBRARY_PATH
25402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25404 # the default ld.so.conf also contains /usr/contrib/lib and
25405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25406 # libtool to hard-code these into programs
25407 ;;
25408
25409cygwin* | mingw* | pw32*)
25410 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025411 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025412 need_version=no
25413 need_lib_prefix=no
25414
25415 case $GCC,$host_os in
25416 yes,cygwin* | yes,mingw* | yes,pw32*)
25417 library_names_spec='$libname.dll.a'
25418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025419 postinstall_cmds='base_file=`basename \${file}`~
25420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25421 dldir=$destdir/`dirname \$dlpath`~
25422 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025423 $install_prog $dir/$dlname \$dldir/$dlname~
25424 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25426 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025427 $rm \$dlpath'
25428 shlibpath_overrides_runpath=yes
25429
25430 case $host_os in
25431 cygwin*)
25432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25433 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 +000025434 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025435 ;;
25436 mingw*)
25437 # MinGW DLLs use traditional 'lib' prefix
25438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25440 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25441 # It is most probably a Windows format PATH printed by
25442 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25443 # path with ; separators, and with drive letters. We can handle the
25444 # drive letters (cygwin fileutils understands them), so leave them,
25445 # especially as we might pass files found there to a mingw objdump,
25446 # which wouldn't understand a cygwinified path. Ahh.
25447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25448 else
25449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25450 fi
25451 ;;
25452 pw32*)
25453 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025454 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 +000025455 ;;
25456 esac
25457 ;;
25458
25459 *)
25460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25461 ;;
25462 esac
25463 dynamic_linker='Win32 ld.exe'
25464 # FIXME: first we should search . and the directory the executable is in
25465 shlibpath_var=PATH
25466 ;;
25467
25468darwin* | rhapsody*)
25469 dynamic_linker="$host_os dyld"
25470 version_type=darwin
25471 need_lib_prefix=no
25472 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025474 soname_spec='${libname}${release}${major}$shared_ext'
25475 shlibpath_overrides_runpath=yes
25476 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025477 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025478 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025479 if test "$GCC" = yes; then
25480 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"`
25481 else
25482 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025483 fi
25484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25485 ;;
25486
25487dgux*)
25488 version_type=linux
25489 need_lib_prefix=no
25490 need_version=no
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 ;;
25495
25496freebsd1*)
25497 dynamic_linker=no
25498 ;;
25499
Reid Spencer2706f8c2004-09-19 23:53:36 +000025500kfreebsd*-gnu)
25501 version_type=linux
25502 need_lib_prefix=no
25503 need_version=no
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 shlibpath_overrides_runpath=no
25508 hardcode_into_libs=yes
25509 dynamic_linker='GNU ld.so'
25510 ;;
25511
Reid Spencera773bd52006-08-04 18:18:08 +000025512freebsd* | dragonfly*)
25513 # DragonFly does not have aout. When/if they implement a new
25514 # versioning mechanism, adjust this.
25515 if test -x /usr/bin/objformat; then
25516 objformat=`/usr/bin/objformat`
25517 else
25518 case $host_os in
25519 freebsd[123]*) objformat=aout ;;
25520 *) objformat=elf ;;
25521 esac
25522 fi
John Criswell47fdd832003-07-14 16:52:07 +000025523 version_type=freebsd-$objformat
25524 case $version_type in
25525 freebsd-elf*)
25526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25527 need_version=no
25528 need_lib_prefix=no
25529 ;;
25530 freebsd-*)
25531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25532 need_version=yes
25533 ;;
25534 esac
25535 shlibpath_var=LD_LIBRARY_PATH
25536 case $host_os in
25537 freebsd2*)
25538 shlibpath_overrides_runpath=yes
25539 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025540 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025541 shlibpath_overrides_runpath=yes
25542 hardcode_into_libs=yes
25543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025546 shlibpath_overrides_runpath=no
25547 hardcode_into_libs=yes
25548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025549 freebsd*) # from 4.6 on
25550 shlibpath_overrides_runpath=yes
25551 hardcode_into_libs=yes
25552 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025553 esac
25554 ;;
25555
25556gnu*)
25557 version_type=linux
25558 need_lib_prefix=no
25559 need_version=no
25560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25561 soname_spec='${libname}${release}${shared_ext}$major'
25562 shlibpath_var=LD_LIBRARY_PATH
25563 hardcode_into_libs=yes
25564 ;;
25565
25566hpux9* | hpux10* | hpux11*)
25567 # Give a soname corresponding to the major version so that dld.sl refuses to
25568 # link against other versions.
25569 version_type=sunos
25570 need_lib_prefix=no
25571 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025572 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025573 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025574 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025575 hardcode_into_libs=yes
25576 dynamic_linker="$host_os dld.so"
25577 shlibpath_var=LD_LIBRARY_PATH
25578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 if test "X$HPUX_IA64_MODE" = X32; then
25582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25583 else
25584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25585 fi
25586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25587 ;;
25588 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025589 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025590 hardcode_into_libs=yes
25591 dynamic_linker="$host_os dld.sl"
25592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25598 ;;
25599 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025600 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025601 dynamic_linker="$host_os dld.sl"
25602 shlibpath_var=SHLIB_PATH
25603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25605 soname_spec='${libname}${release}${shared_ext}$major'
25606 ;;
25607 esac
25608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25609 postinstall_cmds='chmod 555 $lib'
25610 ;;
25611
Reid Spencera773bd52006-08-04 18:18:08 +000025612interix3*)
25613 version_type=linux
25614 need_lib_prefix=no
25615 need_version=no
25616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25617 soname_spec='${libname}${release}${shared_ext}$major'
25618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=no
25621 hardcode_into_libs=yes
25622 ;;
25623
John Criswell47fdd832003-07-14 16:52:07 +000025624irix5* | irix6* | nonstopux*)
25625 case $host_os in
25626 nonstopux*) version_type=nonstopux ;;
25627 *)
25628 if test "$lt_cv_prog_gnu_ld" = yes; then
25629 version_type=linux
25630 else
25631 version_type=irix
25632 fi ;;
25633 esac
25634 need_lib_prefix=no
25635 need_version=no
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25638 case $host_os in
25639 irix5* | nonstopux*)
25640 libsuff= shlibsuff=
25641 ;;
25642 *)
25643 case $LD in # libtool.m4 will add one of these switches to LD
25644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25645 libsuff= shlibsuff= libmagic=32-bit;;
25646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25647 libsuff=32 shlibsuff=N32 libmagic=N32;;
25648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25649 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25650 *) libsuff= shlibsuff= libmagic=never-match;;
25651 esac
25652 ;;
25653 esac
25654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25655 shlibpath_overrides_runpath=no
25656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25658 hardcode_into_libs=yes
25659 ;;
25660
25661# No shared lib support for Linux oldld, aout, or coff.
25662linux*oldld* | linux*aout* | linux*coff*)
25663 dynamic_linker=no
25664 ;;
25665
25666# This must be Linux ELF.
25667linux*)
25668 version_type=linux
25669 need_lib_prefix=no
25670 need_version=no
25671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25672 soname_spec='${libname}${release}${shared_ext}$major'
25673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25674 shlibpath_var=LD_LIBRARY_PATH
25675 shlibpath_overrides_runpath=no
25676 # This implies no fast_install, which is unacceptable.
25677 # Some rework will be needed to allow for fast_install
25678 # before this can be enabled.
25679 hardcode_into_libs=yes
25680
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681 # Append ld.so.conf contents to the search path
25682 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025683 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 +000025684 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25685 fi
25686
John Criswell47fdd832003-07-14 16:52:07 +000025687 # We used to test for /lib/ld.so.1 and disable shared libraries on
25688 # powerpc, because MkLinux only supported shared libraries with the
25689 # GNU dynamic linker. Since this was broken with cross compilers,
25690 # most powerpc-linux boxes support dynamic linking these days and
25691 # people can always --disable-shared, the test was removed, and we
25692 # assume the GNU/Linux dynamic linker is in use.
25693 dynamic_linker='GNU/Linux ld.so'
25694 ;;
25695
Reid Spencer2706f8c2004-09-19 23:53:36 +000025696knetbsd*-gnu)
25697 version_type=linux
25698 need_lib_prefix=no
25699 need_version=no
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25701 soname_spec='${libname}${release}${shared_ext}$major'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 shlibpath_overrides_runpath=no
25704 hardcode_into_libs=yes
25705 dynamic_linker='GNU ld.so'
25706 ;;
25707
John Criswell47fdd832003-07-14 16:52:07 +000025708netbsd*)
25709 version_type=sunos
25710 need_lib_prefix=no
25711 need_version=no
25712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25715 dynamic_linker='NetBSD (a.out) ld.so'
25716 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025718 soname_spec='${libname}${release}${shared_ext}$major'
25719 dynamic_linker='NetBSD ld.elf_so'
25720 fi
25721 shlibpath_var=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath=yes
25723 hardcode_into_libs=yes
25724 ;;
25725
25726newsos6)
25727 version_type=linux
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25731 ;;
25732
Reid Spencer2706f8c2004-09-19 23:53:36 +000025733nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025734 version_type=linux
25735 need_lib_prefix=no
25736 need_version=no
25737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25738 soname_spec='${libname}${release}${shared_ext}$major'
25739 shlibpath_var=LD_LIBRARY_PATH
25740 shlibpath_overrides_runpath=yes
25741 ;;
25742
25743openbsd*)
25744 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025745 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025746 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25748 case $host_os in
25749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25750 *) need_version=no ;;
25751 esac
John Criswell47fdd832003-07-14 16:52:07 +000025752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25756 case $host_os in
25757 openbsd2.[89] | openbsd2.[89].*)
25758 shlibpath_overrides_runpath=no
25759 ;;
25760 *)
25761 shlibpath_overrides_runpath=yes
25762 ;;
25763 esac
25764 else
25765 shlibpath_overrides_runpath=yes
25766 fi
25767 ;;
25768
25769os2*)
25770 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025771 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025772 need_lib_prefix=no
25773 library_names_spec='$libname${shared_ext} $libname.a'
25774 dynamic_linker='OS/2 ld.exe'
25775 shlibpath_var=LIBPATH
25776 ;;
25777
25778osf3* | osf4* | osf5*)
25779 version_type=osf
25780 need_lib_prefix=no
25781 need_version=no
25782 soname_spec='${libname}${release}${shared_ext}$major'
25783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25784 shlibpath_var=LD_LIBRARY_PATH
25785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25787 ;;
25788
John Criswell47fdd832003-07-14 16:52:07 +000025789solaris*)
25790 version_type=linux
25791 need_lib_prefix=no
25792 need_version=no
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25794 soname_spec='${libname}${release}${shared_ext}$major'
25795 shlibpath_var=LD_LIBRARY_PATH
25796 shlibpath_overrides_runpath=yes
25797 hardcode_into_libs=yes
25798 # ldd complains unless libraries are executable
25799 postinstall_cmds='chmod +x $lib'
25800 ;;
25801
25802sunos4*)
25803 version_type=sunos
25804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25806 shlibpath_var=LD_LIBRARY_PATH
25807 shlibpath_overrides_runpath=yes
25808 if test "$with_gnu_ld" = yes; then
25809 need_lib_prefix=no
25810 fi
25811 need_version=yes
25812 ;;
25813
Reid Spencera773bd52006-08-04 18:18:08 +000025814sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025815 version_type=linux
25816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 shlibpath_var=LD_LIBRARY_PATH
25819 case $host_vendor in
25820 sni)
25821 shlibpath_overrides_runpath=no
25822 need_lib_prefix=no
25823 export_dynamic_flag_spec='${wl}-Blargedynsym'
25824 runpath_var=LD_RUN_PATH
25825 ;;
25826 siemens)
25827 need_lib_prefix=no
25828 ;;
25829 motorola)
25830 need_lib_prefix=no
25831 need_version=no
25832 shlibpath_overrides_runpath=no
25833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25834 ;;
25835 esac
25836 ;;
25837
25838sysv4*MP*)
25839 if test -d /usr/nec ;then
25840 version_type=linux
25841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25842 soname_spec='$libname${shared_ext}.$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25844 fi
25845 ;;
25846
Reid Spencera773bd52006-08-04 18:18:08 +000025847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25848 version_type=freebsd-elf
25849 need_lib_prefix=no
25850 need_version=no
25851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25852 soname_spec='${libname}${release}${shared_ext}$major'
25853 shlibpath_var=LD_LIBRARY_PATH
25854 hardcode_into_libs=yes
25855 if test "$with_gnu_ld" = yes; then
25856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25857 shlibpath_overrides_runpath=no
25858 else
25859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25860 shlibpath_overrides_runpath=yes
25861 case $host_os in
25862 sco3.2v5*)
25863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25864 ;;
25865 esac
25866 fi
25867 sys_lib_dlsearch_path_spec='/usr/lib'
25868 ;;
25869
John Criswell47fdd832003-07-14 16:52:07 +000025870uts4*)
25871 version_type=linux
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 shlibpath_var=LD_LIBRARY_PATH
25875 ;;
25876
25877*)
25878 dynamic_linker=no
25879 ;;
25880esac
Reid Spencera773bd52006-08-04 18:18:08 +000025881{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25882echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025883test "$dynamic_linker" = no && can_build_shared=no
25884
Reid Spencera773bd52006-08-04 18:18:08 +000025885variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25886if test "$GCC" = yes; then
25887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25888fi
25889
25890{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25891echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025892hardcode_action_GCJ=
25893if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25894 test -n "$runpath_var_GCJ" || \
25895 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25896
25897 # We can hardcode non-existant directories.
25898 if test "$hardcode_direct_GCJ" != no &&
25899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25900 # have to relink, otherwise we might link with an installed library
25901 # when we should be linking with a yet-to-be-installed one
25902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25903 test "$hardcode_minus_L_GCJ" != no; then
25904 # Linking always hardcodes the temporary library directory.
25905 hardcode_action_GCJ=relink
25906 else
25907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25908 hardcode_action_GCJ=immediate
25909 fi
25910else
25911 # We cannot hardcode anything, or else we can only hardcode existing
25912 # directories.
25913 hardcode_action_GCJ=unsupported
25914fi
Reid Spencera773bd52006-08-04 18:18:08 +000025915{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25916echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025917
25918if test "$hardcode_action_GCJ" = relink; then
25919 # Fast installation is not supported
25920 enable_fast_install=no
25921elif test "$shlibpath_overrides_runpath" = yes ||
25922 test "$enable_shared" = no; then
25923 # Fast installation is not necessary
25924 enable_fast_install=needless
25925fi
25926
John Criswell47fdd832003-07-14 16:52:07 +000025927
25928# The else clause should only fire when bootstrapping the
25929# libtool distribution, otherwise you forgot to ship ltmain.sh
25930# with your package, and you will get complaints that there are
25931# no rules to generate ltmain.sh.
25932if test -f "$ltmain"; then
25933 # See if we are running on zsh, and set the options which allow our commands through
25934 # without removal of \ escapes.
25935 if test -n "${ZSH_VERSION+set}" ; then
25936 setopt NO_GLOB_SUBST
25937 fi
25938 # Now quote all the things that may contain metacharacters while being
25939 # careful not to overquote the AC_SUBSTed values. We take copies of the
25940 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025941 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 +000025942 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25945 deplibs_check_method reload_flag reload_cmds need_locks \
25946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25947 lt_cv_sys_global_symbol_to_c_name_address \
25948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25949 old_postinstall_cmds old_postuninstall_cmds \
25950 compiler_GCJ \
25951 CC_GCJ \
25952 LD_GCJ \
25953 lt_prog_compiler_wl_GCJ \
25954 lt_prog_compiler_pic_GCJ \
25955 lt_prog_compiler_static_GCJ \
25956 lt_prog_compiler_no_builtin_flag_GCJ \
25957 export_dynamic_flag_spec_GCJ \
25958 thread_safe_flag_spec_GCJ \
25959 whole_archive_flag_spec_GCJ \
25960 enable_shared_with_static_runtimes_GCJ \
25961 old_archive_cmds_GCJ \
25962 old_archive_from_new_cmds_GCJ \
25963 predep_objects_GCJ \
25964 postdep_objects_GCJ \
25965 predeps_GCJ \
25966 postdeps_GCJ \
25967 compiler_lib_search_path_GCJ \
25968 archive_cmds_GCJ \
25969 archive_expsym_cmds_GCJ \
25970 postinstall_cmds_GCJ \
25971 postuninstall_cmds_GCJ \
25972 old_archive_from_expsyms_cmds_GCJ \
25973 allow_undefined_flag_GCJ \
25974 no_undefined_flag_GCJ \
25975 export_symbols_cmds_GCJ \
25976 hardcode_libdir_flag_spec_GCJ \
25977 hardcode_libdir_flag_spec_ld_GCJ \
25978 hardcode_libdir_separator_GCJ \
25979 hardcode_automatic_GCJ \
25980 module_cmds_GCJ \
25981 module_expsym_cmds_GCJ \
25982 lt_cv_prog_compiler_c_o_GCJ \
25983 exclude_expsyms_GCJ \
25984 include_expsyms_GCJ; do
25985
25986 case $var in
25987 old_archive_cmds_GCJ | \
25988 old_archive_from_new_cmds_GCJ | \
25989 archive_cmds_GCJ | \
25990 archive_expsym_cmds_GCJ | \
25991 module_cmds_GCJ | \
25992 module_expsym_cmds_GCJ | \
25993 old_archive_from_expsyms_cmds_GCJ | \
25994 export_symbols_cmds_GCJ | \
25995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25996 postinstall_cmds | postuninstall_cmds | \
25997 old_postinstall_cmds | old_postuninstall_cmds | \
25998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25999 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026000 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 +000026001 ;;
26002 *)
26003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26004 ;;
26005 esac
26006 done
26007
26008 case $lt_echo in
26009 *'\$0 --fallback-echo"')
26010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26011 ;;
26012 esac
26013
26014cfgfile="$ofile"
26015
26016 cat <<__EOF__ >> "$cfgfile"
26017# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26018
26019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26020
26021# Shell to use when invoking shell scripts.
26022SHELL=$lt_SHELL
26023
26024# Whether or not to build shared libraries.
26025build_libtool_libs=$enable_shared
26026
26027# Whether or not to build static libraries.
26028build_old_libs=$enable_static
26029
26030# Whether or not to add -lc for building shared libraries.
26031build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26032
26033# Whether or not to disallow shared libs when runtime libs are static
26034allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26035
26036# Whether or not to optimize for fast installation.
26037fast_install=$enable_fast_install
26038
26039# The host system.
26040host_alias=$host_alias
26041host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026042host_os=$host_os
26043
26044# The build system.
26045build_alias=$build_alias
26046build=$build
26047build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026048
26049# An echo program that does not interpret backslashes.
26050echo=$lt_echo
26051
26052# The archiver.
26053AR=$lt_AR
26054AR_FLAGS=$lt_AR_FLAGS
26055
26056# A C compiler.
26057LTCC=$lt_LTCC
26058
Reid Spencera773bd52006-08-04 18:18:08 +000026059# LTCC compiler flags.
26060LTCFLAGS=$lt_LTCFLAGS
26061
John Criswell47fdd832003-07-14 16:52:07 +000026062# A language-specific compiler.
26063CC=$lt_compiler_GCJ
26064
26065# Is the compiler the GNU C compiler?
26066with_gcc=$GCC_GCJ
26067
26068# An ERE matcher.
26069EGREP=$lt_EGREP
26070
26071# The linker used to build libraries.
26072LD=$lt_LD_GCJ
26073
26074# Whether we need hard or soft links.
26075LN_S=$lt_LN_S
26076
26077# A BSD-compatible nm program.
26078NM=$lt_NM
26079
26080# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026081STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026082
26083# Used to examine libraries when file_magic_cmd begins "file"
26084MAGIC_CMD=$MAGIC_CMD
26085
26086# Used on cygwin: DLL creation program.
26087DLLTOOL="$DLLTOOL"
26088
26089# Used on cygwin: object dumper.
26090OBJDUMP="$OBJDUMP"
26091
26092# Used on cygwin: assembler.
26093AS="$AS"
26094
26095# The name of the directory that contains temporary libtool files.
26096objdir=$objdir
26097
26098# How to create reloadable object files.
26099reload_flag=$lt_reload_flag
26100reload_cmds=$lt_reload_cmds
26101
26102# How to pass a linker flag through the compiler.
26103wl=$lt_lt_prog_compiler_wl_GCJ
26104
26105# Object file suffix (normally "o").
26106objext="$ac_objext"
26107
26108# Old archive suffix (normally "a").
26109libext="$libext"
26110
26111# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026112shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026113
26114# Executable file suffix (normally "").
26115exeext="$exeext"
26116
26117# Additional compiler flags for building library objects.
26118pic_flag=$lt_lt_prog_compiler_pic_GCJ
26119pic_mode=$pic_mode
26120
26121# What is the maximum length of a command?
26122max_cmd_len=$lt_cv_sys_max_cmd_len
26123
26124# Does compiler simultaneously support -c and -o options?
26125compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26126
Reid Spencera773bd52006-08-04 18:18:08 +000026127# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026128need_locks=$lt_need_locks
26129
26130# Do we need the lib prefix for modules?
26131need_lib_prefix=$need_lib_prefix
26132
26133# Do we need a version for libraries?
26134need_version=$need_version
26135
26136# Whether dlopen is supported.
26137dlopen_support=$enable_dlopen
26138
26139# Whether dlopen of programs is supported.
26140dlopen_self=$enable_dlopen_self
26141
26142# Whether dlopen of statically linked programs is supported.
26143dlopen_self_static=$enable_dlopen_self_static
26144
26145# Compiler flag to prevent dynamic linking.
26146link_static_flag=$lt_lt_prog_compiler_static_GCJ
26147
26148# Compiler flag to turn off builtin functions.
26149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26150
26151# Compiler flag to allow reflexive dlopens.
26152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26153
26154# Compiler flag to generate shared objects directly from archives.
26155whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26156
26157# Compiler flag to generate thread-safe objects.
26158thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26159
26160# Library versioning type.
26161version_type=$version_type
26162
26163# Format of library name prefix.
26164libname_spec=$lt_libname_spec
26165
26166# List of archive names. First name is the real one, the rest are links.
26167# The last name is the one that the linker finds with -lNAME.
26168library_names_spec=$lt_library_names_spec
26169
26170# The coded name of the library, if different from the real name.
26171soname_spec=$lt_soname_spec
26172
26173# Commands used to build and install an old-style archive.
26174RANLIB=$lt_RANLIB
26175old_archive_cmds=$lt_old_archive_cmds_GCJ
26176old_postinstall_cmds=$lt_old_postinstall_cmds
26177old_postuninstall_cmds=$lt_old_postuninstall_cmds
26178
26179# Create an old-style archive from a shared archive.
26180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26181
26182# Create a temporary old-style archive to link instead of a shared archive.
26183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26184
26185# Commands used to build and install a shared archive.
26186archive_cmds=$lt_archive_cmds_GCJ
26187archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26188postinstall_cmds=$lt_postinstall_cmds
26189postuninstall_cmds=$lt_postuninstall_cmds
26190
26191# Commands used to build a loadable module (assumed same as above if empty)
26192module_cmds=$lt_module_cmds_GCJ
26193module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26194
26195# Commands to strip libraries.
26196old_striplib=$lt_old_striplib
26197striplib=$lt_striplib
26198
26199# Dependencies to place before the objects being linked to create a
26200# shared library.
26201predep_objects=$lt_predep_objects_GCJ
26202
26203# Dependencies to place after the objects being linked to create a
26204# shared library.
26205postdep_objects=$lt_postdep_objects_GCJ
26206
26207# Dependencies to place before the objects being linked to create a
26208# shared library.
26209predeps=$lt_predeps_GCJ
26210
26211# Dependencies to place after the objects being linked to create a
26212# shared library.
26213postdeps=$lt_postdeps_GCJ
26214
26215# The library search path used internally by the compiler when linking
26216# a shared library.
26217compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26218
26219# Method to check whether dependent libraries are shared objects.
26220deplibs_check_method=$lt_deplibs_check_method
26221
26222# Command to use when deplibs_check_method == file_magic.
26223file_magic_cmd=$lt_file_magic_cmd
26224
26225# Flag that allows shared libraries with undefined symbols to be built.
26226allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26227
26228# Flag that forces no undefined symbols.
26229no_undefined_flag=$lt_no_undefined_flag_GCJ
26230
26231# Commands used to finish a libtool library installation in a directory.
26232finish_cmds=$lt_finish_cmds
26233
26234# Same as above, but a single script fragment to be evaled but not shown.
26235finish_eval=$lt_finish_eval
26236
26237# Take the output of nm and produce a listing of raw symbols and C names.
26238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26239
26240# Transform the output of nm in a proper C declaration
26241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26242
26243# Transform the output of nm in a C name address pair
26244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26245
26246# This is the shared library runtime path variable.
26247runpath_var=$runpath_var
26248
26249# This is the shared library path variable.
26250shlibpath_var=$shlibpath_var
26251
26252# Is shlibpath searched before the hard-coded library search path?
26253shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26254
26255# How to hardcode a shared library path into an executable.
26256hardcode_action=$hardcode_action_GCJ
26257
26258# Whether we should hardcode library paths into libraries.
26259hardcode_into_libs=$hardcode_into_libs
26260
26261# Flag to hardcode \$libdir into a binary during linking.
26262# This must work even if \$libdir does not exist.
26263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26264
26265# If ld is used when linking, flag to hardcode \$libdir into
26266# a binary during linking. This must work even if \$libdir does
26267# not exist.
26268hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26269
26270# Whether we need a single -rpath flag with a separated argument.
26271hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26272
26273# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26274# resulting binary.
26275hardcode_direct=$hardcode_direct_GCJ
26276
26277# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26278# resulting binary.
26279hardcode_minus_L=$hardcode_minus_L_GCJ
26280
26281# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26282# the resulting binary.
26283hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26284
26285# Set to yes if building a shared library automatically hardcodes DIR into the library
26286# and all subsequent libraries and executables linked against it.
26287hardcode_automatic=$hardcode_automatic_GCJ
26288
26289# Variables whose values should be saved in libtool wrapper scripts and
26290# restored at relink time.
26291variables_saved_for_relink="$variables_saved_for_relink"
26292
26293# Whether libtool must link a program against all its dependency libraries.
26294link_all_deplibs=$link_all_deplibs_GCJ
26295
26296# Compile-time system search path for libraries
26297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26298
26299# Run-time system search path for libraries
26300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26301
26302# Fix the shell variable \$srcfile for the compiler.
26303fix_srcfile_path="$fix_srcfile_path_GCJ"
26304
26305# Set to yes if exported symbols are required.
26306always_export_symbols=$always_export_symbols_GCJ
26307
26308# The commands to list exported symbols.
26309export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26310
26311# The commands to extract the exported symbol list from a shared archive.
26312extract_expsyms_cmds=$lt_extract_expsyms_cmds
26313
26314# Symbols that should not be listed in the preloaded symbols.
26315exclude_expsyms=$lt_exclude_expsyms_GCJ
26316
26317# Symbols that must always be exported.
26318include_expsyms=$lt_include_expsyms_GCJ
26319
26320# ### END LIBTOOL TAG CONFIG: $tagname
26321
26322__EOF__
26323
26324
26325else
26326 # If there is no Makefile yet, we rely on a make rule to execute
26327 # `config.status --recheck' to rerun these tests and create the
26328 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26330 if test -f "$ltmain_in"; then
26331 test -f Makefile && make "$ltmain"
26332 fi
John Criswell47fdd832003-07-14 16:52:07 +000026333fi
26334
26335
26336ac_ext=c
26337ac_cpp='$CPP $CPPFLAGS'
26338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26340ac_compiler_gnu=$ac_cv_c_compiler_gnu
26341
26342CC="$lt_save_CC"
26343
26344 else
26345 tagname=""
26346 fi
26347 ;;
26348
26349 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026350 ac_ext=c
26351ac_cpp='$CPP $CPPFLAGS'
26352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26354ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026355
26356
26357# Source file extension for RC test sources.
26358ac_ext=rc
26359
26360# Object file extension for compiled RC test sources.
26361objext=o
26362objext_RC=$objext
26363
26364# Code to be used in simple compile tests
26365lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26366
26367# Code to be used in simple link tests
26368lt_simple_link_test_code="$lt_simple_compile_test_code"
26369
26370# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26371
26372# If no C compiler was specified, use CC.
26373LTCC=${LTCC-"$CC"}
26374
Reid Spencera773bd52006-08-04 18:18:08 +000026375# If no C compiler flags were specified, use CFLAGS.
26376LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26377
John Criswell47fdd832003-07-14 16:52:07 +000026378# Allow CC to be a program name with arguments.
26379compiler=$CC
26380
26381
Reid Spencera773bd52006-08-04 18:18:08 +000026382# save warnings/boilerplate of simple test code
26383ac_outfile=conftest.$ac_objext
26384printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26385eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26386_lt_compiler_boilerplate=`cat conftest.err`
26387$rm conftest*
26388
26389ac_outfile=conftest.$ac_objext
26390printf "$lt_simple_link_test_code" >conftest.$ac_ext
26391eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26392_lt_linker_boilerplate=`cat conftest.err`
26393$rm conftest*
26394
26395
John Criswell47fdd832003-07-14 16:52:07 +000026396# Allow CC to be a program name with arguments.
26397lt_save_CC="$CC"
26398CC=${RC-"windres"}
26399compiler=$CC
26400compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026401for cc_temp in $compiler""; do
26402 case $cc_temp in
26403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26405 \-*) ;;
26406 *) break;;
26407 esac
26408done
26409cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26410
John Criswell47fdd832003-07-14 16:52:07 +000026411lt_cv_prog_compiler_c_o_RC=yes
26412
26413# The else clause should only fire when bootstrapping the
26414# libtool distribution, otherwise you forgot to ship ltmain.sh
26415# with your package, and you will get complaints that there are
26416# no rules to generate ltmain.sh.
26417if test -f "$ltmain"; then
26418 # See if we are running on zsh, and set the options which allow our commands through
26419 # without removal of \ escapes.
26420 if test -n "${ZSH_VERSION+set}" ; then
26421 setopt NO_GLOB_SUBST
26422 fi
26423 # Now quote all the things that may contain metacharacters while being
26424 # careful not to overquote the AC_SUBSTed values. We take copies of the
26425 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026426 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 +000026427 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26430 deplibs_check_method reload_flag reload_cmds need_locks \
26431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26432 lt_cv_sys_global_symbol_to_c_name_address \
26433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26434 old_postinstall_cmds old_postuninstall_cmds \
26435 compiler_RC \
26436 CC_RC \
26437 LD_RC \
26438 lt_prog_compiler_wl_RC \
26439 lt_prog_compiler_pic_RC \
26440 lt_prog_compiler_static_RC \
26441 lt_prog_compiler_no_builtin_flag_RC \
26442 export_dynamic_flag_spec_RC \
26443 thread_safe_flag_spec_RC \
26444 whole_archive_flag_spec_RC \
26445 enable_shared_with_static_runtimes_RC \
26446 old_archive_cmds_RC \
26447 old_archive_from_new_cmds_RC \
26448 predep_objects_RC \
26449 postdep_objects_RC \
26450 predeps_RC \
26451 postdeps_RC \
26452 compiler_lib_search_path_RC \
26453 archive_cmds_RC \
26454 archive_expsym_cmds_RC \
26455 postinstall_cmds_RC \
26456 postuninstall_cmds_RC \
26457 old_archive_from_expsyms_cmds_RC \
26458 allow_undefined_flag_RC \
26459 no_undefined_flag_RC \
26460 export_symbols_cmds_RC \
26461 hardcode_libdir_flag_spec_RC \
26462 hardcode_libdir_flag_spec_ld_RC \
26463 hardcode_libdir_separator_RC \
26464 hardcode_automatic_RC \
26465 module_cmds_RC \
26466 module_expsym_cmds_RC \
26467 lt_cv_prog_compiler_c_o_RC \
26468 exclude_expsyms_RC \
26469 include_expsyms_RC; do
26470
26471 case $var in
26472 old_archive_cmds_RC | \
26473 old_archive_from_new_cmds_RC | \
26474 archive_cmds_RC | \
26475 archive_expsym_cmds_RC | \
26476 module_cmds_RC | \
26477 module_expsym_cmds_RC | \
26478 old_archive_from_expsyms_cmds_RC | \
26479 export_symbols_cmds_RC | \
26480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26481 postinstall_cmds | postuninstall_cmds | \
26482 old_postinstall_cmds | old_postuninstall_cmds | \
26483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26484 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026485 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 +000026486 ;;
26487 *)
26488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26489 ;;
26490 esac
26491 done
26492
26493 case $lt_echo in
26494 *'\$0 --fallback-echo"')
26495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26496 ;;
26497 esac
26498
26499cfgfile="$ofile"
26500
26501 cat <<__EOF__ >> "$cfgfile"
26502# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26503
26504# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26505
26506# Shell to use when invoking shell scripts.
26507SHELL=$lt_SHELL
26508
26509# Whether or not to build shared libraries.
26510build_libtool_libs=$enable_shared
26511
26512# Whether or not to build static libraries.
26513build_old_libs=$enable_static
26514
26515# Whether or not to add -lc for building shared libraries.
26516build_libtool_need_lc=$archive_cmds_need_lc_RC
26517
26518# Whether or not to disallow shared libs when runtime libs are static
26519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26520
26521# Whether or not to optimize for fast installation.
26522fast_install=$enable_fast_install
26523
26524# The host system.
26525host_alias=$host_alias
26526host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026527host_os=$host_os
26528
26529# The build system.
26530build_alias=$build_alias
26531build=$build
26532build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026533
26534# An echo program that does not interpret backslashes.
26535echo=$lt_echo
26536
26537# The archiver.
26538AR=$lt_AR
26539AR_FLAGS=$lt_AR_FLAGS
26540
26541# A C compiler.
26542LTCC=$lt_LTCC
26543
Reid Spencera773bd52006-08-04 18:18:08 +000026544# LTCC compiler flags.
26545LTCFLAGS=$lt_LTCFLAGS
26546
John Criswell47fdd832003-07-14 16:52:07 +000026547# A language-specific compiler.
26548CC=$lt_compiler_RC
26549
26550# Is the compiler the GNU C compiler?
26551with_gcc=$GCC_RC
26552
26553# An ERE matcher.
26554EGREP=$lt_EGREP
26555
26556# The linker used to build libraries.
26557LD=$lt_LD_RC
26558
26559# Whether we need hard or soft links.
26560LN_S=$lt_LN_S
26561
26562# A BSD-compatible nm program.
26563NM=$lt_NM
26564
26565# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026566STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026567
26568# Used to examine libraries when file_magic_cmd begins "file"
26569MAGIC_CMD=$MAGIC_CMD
26570
26571# Used on cygwin: DLL creation program.
26572DLLTOOL="$DLLTOOL"
26573
26574# Used on cygwin: object dumper.
26575OBJDUMP="$OBJDUMP"
26576
26577# Used on cygwin: assembler.
26578AS="$AS"
26579
26580# The name of the directory that contains temporary libtool files.
26581objdir=$objdir
26582
26583# How to create reloadable object files.
26584reload_flag=$lt_reload_flag
26585reload_cmds=$lt_reload_cmds
26586
26587# How to pass a linker flag through the compiler.
26588wl=$lt_lt_prog_compiler_wl_RC
26589
26590# Object file suffix (normally "o").
26591objext="$ac_objext"
26592
26593# Old archive suffix (normally "a").
26594libext="$libext"
26595
26596# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026597shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026598
26599# Executable file suffix (normally "").
26600exeext="$exeext"
26601
26602# Additional compiler flags for building library objects.
26603pic_flag=$lt_lt_prog_compiler_pic_RC
26604pic_mode=$pic_mode
26605
26606# What is the maximum length of a command?
26607max_cmd_len=$lt_cv_sys_max_cmd_len
26608
26609# Does compiler simultaneously support -c and -o options?
26610compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26611
Reid Spencera773bd52006-08-04 18:18:08 +000026612# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026613need_locks=$lt_need_locks
26614
26615# Do we need the lib prefix for modules?
26616need_lib_prefix=$need_lib_prefix
26617
26618# Do we need a version for libraries?
26619need_version=$need_version
26620
26621# Whether dlopen is supported.
26622dlopen_support=$enable_dlopen
26623
26624# Whether dlopen of programs is supported.
26625dlopen_self=$enable_dlopen_self
26626
26627# Whether dlopen of statically linked programs is supported.
26628dlopen_self_static=$enable_dlopen_self_static
26629
26630# Compiler flag to prevent dynamic linking.
26631link_static_flag=$lt_lt_prog_compiler_static_RC
26632
26633# Compiler flag to turn off builtin functions.
26634no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26635
26636# Compiler flag to allow reflexive dlopens.
26637export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26638
26639# Compiler flag to generate shared objects directly from archives.
26640whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26641
26642# Compiler flag to generate thread-safe objects.
26643thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26644
26645# Library versioning type.
26646version_type=$version_type
26647
26648# Format of library name prefix.
26649libname_spec=$lt_libname_spec
26650
26651# List of archive names. First name is the real one, the rest are links.
26652# The last name is the one that the linker finds with -lNAME.
26653library_names_spec=$lt_library_names_spec
26654
26655# The coded name of the library, if different from the real name.
26656soname_spec=$lt_soname_spec
26657
26658# Commands used to build and install an old-style archive.
26659RANLIB=$lt_RANLIB
26660old_archive_cmds=$lt_old_archive_cmds_RC
26661old_postinstall_cmds=$lt_old_postinstall_cmds
26662old_postuninstall_cmds=$lt_old_postuninstall_cmds
26663
26664# Create an old-style archive from a shared archive.
26665old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26666
26667# Create a temporary old-style archive to link instead of a shared archive.
26668old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26669
26670# Commands used to build and install a shared archive.
26671archive_cmds=$lt_archive_cmds_RC
26672archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26673postinstall_cmds=$lt_postinstall_cmds
26674postuninstall_cmds=$lt_postuninstall_cmds
26675
26676# Commands used to build a loadable module (assumed same as above if empty)
26677module_cmds=$lt_module_cmds_RC
26678module_expsym_cmds=$lt_module_expsym_cmds_RC
26679
26680# Commands to strip libraries.
26681old_striplib=$lt_old_striplib
26682striplib=$lt_striplib
26683
26684# Dependencies to place before the objects being linked to create a
26685# shared library.
26686predep_objects=$lt_predep_objects_RC
26687
26688# Dependencies to place after the objects being linked to create a
26689# shared library.
26690postdep_objects=$lt_postdep_objects_RC
26691
26692# Dependencies to place before the objects being linked to create a
26693# shared library.
26694predeps=$lt_predeps_RC
26695
26696# Dependencies to place after the objects being linked to create a
26697# shared library.
26698postdeps=$lt_postdeps_RC
26699
26700# The library search path used internally by the compiler when linking
26701# a shared library.
26702compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26703
26704# Method to check whether dependent libraries are shared objects.
26705deplibs_check_method=$lt_deplibs_check_method
26706
26707# Command to use when deplibs_check_method == file_magic.
26708file_magic_cmd=$lt_file_magic_cmd
26709
26710# Flag that allows shared libraries with undefined symbols to be built.
26711allow_undefined_flag=$lt_allow_undefined_flag_RC
26712
26713# Flag that forces no undefined symbols.
26714no_undefined_flag=$lt_no_undefined_flag_RC
26715
26716# Commands used to finish a libtool library installation in a directory.
26717finish_cmds=$lt_finish_cmds
26718
26719# Same as above, but a single script fragment to be evaled but not shown.
26720finish_eval=$lt_finish_eval
26721
26722# Take the output of nm and produce a listing of raw symbols and C names.
26723global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26724
26725# Transform the output of nm in a proper C declaration
26726global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26727
26728# Transform the output of nm in a C name address pair
26729global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26730
26731# This is the shared library runtime path variable.
26732runpath_var=$runpath_var
26733
26734# This is the shared library path variable.
26735shlibpath_var=$shlibpath_var
26736
26737# Is shlibpath searched before the hard-coded library search path?
26738shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26739
26740# How to hardcode a shared library path into an executable.
26741hardcode_action=$hardcode_action_RC
26742
26743# Whether we should hardcode library paths into libraries.
26744hardcode_into_libs=$hardcode_into_libs
26745
26746# Flag to hardcode \$libdir into a binary during linking.
26747# This must work even if \$libdir does not exist.
26748hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26749
26750# If ld is used when linking, flag to hardcode \$libdir into
26751# a binary during linking. This must work even if \$libdir does
26752# not exist.
26753hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26754
26755# Whether we need a single -rpath flag with a separated argument.
26756hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26757
26758# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26759# resulting binary.
26760hardcode_direct=$hardcode_direct_RC
26761
26762# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26763# resulting binary.
26764hardcode_minus_L=$hardcode_minus_L_RC
26765
26766# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26767# the resulting binary.
26768hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26769
26770# Set to yes if building a shared library automatically hardcodes DIR into the library
26771# and all subsequent libraries and executables linked against it.
26772hardcode_automatic=$hardcode_automatic_RC
26773
26774# Variables whose values should be saved in libtool wrapper scripts and
26775# restored at relink time.
26776variables_saved_for_relink="$variables_saved_for_relink"
26777
26778# Whether libtool must link a program against all its dependency libraries.
26779link_all_deplibs=$link_all_deplibs_RC
26780
26781# Compile-time system search path for libraries
26782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26783
26784# Run-time system search path for libraries
26785sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26786
26787# Fix the shell variable \$srcfile for the compiler.
26788fix_srcfile_path="$fix_srcfile_path_RC"
26789
26790# Set to yes if exported symbols are required.
26791always_export_symbols=$always_export_symbols_RC
26792
26793# The commands to list exported symbols.
26794export_symbols_cmds=$lt_export_symbols_cmds_RC
26795
26796# The commands to extract the exported symbol list from a shared archive.
26797extract_expsyms_cmds=$lt_extract_expsyms_cmds
26798
26799# Symbols that should not be listed in the preloaded symbols.
26800exclude_expsyms=$lt_exclude_expsyms_RC
26801
26802# Symbols that must always be exported.
26803include_expsyms=$lt_include_expsyms_RC
26804
26805# ### END LIBTOOL TAG CONFIG: $tagname
26806
26807__EOF__
26808
26809
26810else
26811 # If there is no Makefile yet, we rely on a make rule to execute
26812 # `config.status --recheck' to rerun these tests and create the
26813 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26815 if test -f "$ltmain_in"; then
26816 test -f Makefile && make "$ltmain"
26817 fi
John Criswell47fdd832003-07-14 16:52:07 +000026818fi
26819
26820
26821ac_ext=c
26822ac_cpp='$CPP $CPPFLAGS'
26823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825ac_compiler_gnu=$ac_cv_c_compiler_gnu
26826
26827CC="$lt_save_CC"
26828
26829 ;;
26830
26831 *)
26832 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26833echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26834 { (exit 1); exit 1; }; }
26835 ;;
26836 esac
26837
26838 # Append the new tag name to the list of available tags.
26839 if test -n "$tagname" ; then
26840 available_tags="$available_tags $tagname"
26841 fi
26842 fi
26843 done
26844 IFS="$lt_save_ifs"
26845
26846 # Now substitute the updated list of available tags.
26847 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26848 mv "${ofile}T" "$ofile"
26849 chmod +x "$ofile"
26850 else
26851 rm -f "${ofile}T"
26852 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26853echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26854 { (exit 1); exit 1; }; }
26855 fi
26856fi
John Criswell7a73b802003-06-30 21:59:07 +000026857
26858
26859
26860# This can be used to rebuild libtool when needed
26861LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26862
26863# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026864LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026865
26866# Prevent multiple expansion
26867
26868
26869
John Criswell47fdd832003-07-14 16:52:07 +000026870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026887
Reid Spencer582a23c2004-12-29 07:07:57 +000026888if test "$lt_cv_dlopen_self" = "yes" ; then
26889
26890cat >>confdefs.h <<\_ACEOF
26891#define CAN_DLOPEN_SELF 1
26892_ACEOF
26893
26894fi
26895
Reid Spencer7931a782004-12-27 06:15:02 +000026896if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026897 LLVMGCC="llvm-gcc${EXEEXT}"
26898 LLVMGXX="llvm-g++${EXEEXT}"
26899 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26900set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026903if test "${ac_cv_path_LLVMGCC+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26905else
26906 case $LLVMGCC in
26907 [\\/]* | ?:[\\/]*)
26908 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26909 ;;
26910 *)
26911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26912for as_dir in $PATH
26913do
26914 IFS=$as_save_IFS
26915 test -z "$as_dir" && as_dir=.
26916 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026917 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 +000026918 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26920 break 2
26921 fi
26922done
26923done
Reid Spencera773bd52006-08-04 18:18:08 +000026924IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026925
Reid Spencer59473af2004-12-25 07:31:29 +000026926 ;;
26927esac
26928fi
26929LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026930if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026931 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26932echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026933else
Reid Spencera773bd52006-08-04 18:18:08 +000026934 { echo "$as_me:$LINENO: result: no" >&5
26935echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026936fi
26937
Reid Spencera773bd52006-08-04 18:18:08 +000026938
Reid Spencerc84492c2005-06-02 22:34:49 +000026939 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26940set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026943if test "${ac_cv_path_LLVMGXX+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26945else
26946 case $LLVMGXX in
26947 [\\/]* | ?:[\\/]*)
26948 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26949 ;;
26950 *)
26951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26952for as_dir in $PATH
26953do
26954 IFS=$as_save_IFS
26955 test -z "$as_dir" && as_dir=.
26956 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026957 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 +000026958 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26960 break 2
26961 fi
26962done
26963done
Reid Spencera773bd52006-08-04 18:18:08 +000026964IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026965
Reid Spencer59473af2004-12-25 07:31:29 +000026966 ;;
26967esac
26968fi
26969LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026970if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026971 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26972echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026973else
Reid Spencera773bd52006-08-04 18:18:08 +000026974 { echo "$as_me:$LINENO: result: no" >&5
26975echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026976fi
26977
Reid Spencera773bd52006-08-04 18:18:08 +000026978
Reid Spencer59473af2004-12-25 07:31:29 +000026979else
Devang Patel5d28b882007-12-04 22:54:47 +000026980 if test -z "$LLVMGCC"; then
26981 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26982 fi
26983 if test -z "$LLVMGXX"; then
26984 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26985 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026986 LLVMGCC=$LLVMGCC
26987
26988 LLVMGXX=$LLVMGXX
26989
26990fi
26991
Reid Spencera773bd52006-08-04 18:18:08 +000026992{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26993echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026994
Reid Spencer86901802004-12-08 23:07:27 +000026995ICC=no
26996IXX=no
26997case $CC in
26998 icc*|icpc*)
26999 ICC=yes
27000 IXX=yes
27001 ;;
27002 *)
27003 ;;
27004esac
27005
Duraid Madina937c60a2006-02-15 07:57:42 +000027006if test "$GCC" != "yes" && test "$ICC" != "yes"
27007then
27008 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27009echo "$as_me: error: gcc|icc required but not found" >&2;}
27010 { (exit 1); exit 1; }; }
27011fi
27012
27013if test "$GXX" != "yes" && test "$IXX" != "yes"
27014then
27015 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27016echo "$as_me: error: g++|icc required but not found" >&2;}
27017 { (exit 1); exit 1; }; }
27018fi
27019
Reid Spencer86901802004-12-08 23:07:27 +000027020if test "$GCC" = "yes"
27021then
Chris Lattner399c7c72008-02-05 19:43:53 +000027022 cat >conftest.$ac_ext <<_ACEOF
27023#if !defined(__GNUC__) || __GNUC__ < 3
27024#error Unsupported GCC version
27025#endif
27026
27027_ACEOF
27028rm -f conftest.$ac_objext
27029if { (ac_try="$ac_compile"
27030case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27033esac
27034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_compile") 2>conftest.er1
27036 ac_status=$?
27037 grep -v '^ *+' conftest.er1 >conftest.err
27038 rm -f conftest.er1
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } &&
27042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27052 { ac_try='test -s conftest.$ac_objext'
27053 { (case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27056esac
27057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_try") 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062 :
27063else
27064 echo "$as_me: failed program was:" >&5
27065sed 's/^/| /' conftest.$ac_ext >&5
27066
27067 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027068echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27069 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027070fi
27071
27072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027073fi
27074
27075if test -z "$llvm_cv_gnu_make_command"
27076then
27077 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27078echo "$as_me: error: GNU Make required but not found" >&2;}
27079 { (exit 1); exit 1; }; }
27080fi
27081
Reid Spencera773bd52006-08-04 18:18:08 +000027082{ echo "$as_me:$LINENO: result: ok" >&5
27083echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027084
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027085
John Criswell7a73b802003-06-30 21:59:07 +000027086
Reid Spencera773bd52006-08-04 18:18:08 +000027087{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27088echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027089if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091else
27092 ac_check_lib_save_LIBS=$LIBS
27093LIBS="-lelf $LIBS"
27094cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027095/* confdefs.h. */
27096_ACEOF
27097cat confdefs.h >>conftest.$ac_ext
27098cat >>conftest.$ac_ext <<_ACEOF
27099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027100
Reid Spencera773bd52006-08-04 18:18:08 +000027101/* Override any GCC internal prototype to avoid an error.
27102 Use char because int might match the return type of a GCC
27103 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027104#ifdef __cplusplus
27105extern "C"
27106#endif
John Criswell7a73b802003-06-30 21:59:07 +000027107char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027108int
27109main ()
27110{
Reid Spencera773bd52006-08-04 18:18:08 +000027111return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027112 ;
27113 return 0;
27114}
27115_ACEOF
27116rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027117if { (ac_try="$ac_link"
27118case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27121esac
27122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027125 grep -v '^ *+' conftest.er1 >conftest.err
27126 rm -f conftest.er1
27127 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027129 (exit $ac_status); } &&
27130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27140 { ac_try='test -s conftest$ac_exeext'
27141 { (case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27144esac
27145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_try") 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027150 ac_cv_lib_elf_elf_begin=yes
27151else
27152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027153sed 's/^/| /' conftest.$ac_ext >&5
27154
Reid Spencera773bd52006-08-04 18:18:08 +000027155 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027156fi
Reid Spencera773bd52006-08-04 18:18:08 +000027157
Tanya Lattnercf067672008-01-17 05:57:22 +000027158rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027159 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027160LIBS=$ac_check_lib_save_LIBS
27161fi
Reid Spencera773bd52006-08-04 18:18:08 +000027162{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27163echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027164if test $ac_cv_lib_elf_elf_begin = yes; then
27165 cat >>confdefs.h <<_ACEOF
27166#define HAVE_LIBELF 1
27167_ACEOF
27168
27169 LIBS="-lelf $LIBS"
27170
27171fi
27172
27173
Reid Spencera773bd52006-08-04 18:18:08 +000027174{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27175echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027176if test "${ac_cv_lib_m_sin+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27178else
27179 ac_check_lib_save_LIBS=$LIBS
27180LIBS="-lm $LIBS"
27181cat >conftest.$ac_ext <<_ACEOF
27182/* confdefs.h. */
27183_ACEOF
27184cat confdefs.h >>conftest.$ac_ext
27185cat >>conftest.$ac_ext <<_ACEOF
27186/* end confdefs.h. */
27187
Reid Spencera773bd52006-08-04 18:18:08 +000027188/* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027191#ifdef __cplusplus
27192extern "C"
27193#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027194char sin ();
27195int
27196main ()
27197{
Reid Spencera773bd52006-08-04 18:18:08 +000027198return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027199 ;
27200 return 0;
27201}
27202_ACEOF
27203rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027204if { (ac_try="$ac_link"
27205case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208esac
27209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027211 ac_status=$?
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027216 (exit $ac_status); } &&
27217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27227 { ac_try='test -s conftest$ac_exeext'
27228 { (case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231esac
27232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_try") 2>&5
27234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027237 ac_cv_lib_m_sin=yes
27238else
27239 echo "$as_me: failed program was:" >&5
27240sed 's/^/| /' conftest.$ac_ext >&5
27241
Reid Spencera773bd52006-08-04 18:18:08 +000027242 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027243fi
Reid Spencera773bd52006-08-04 18:18:08 +000027244
Tanya Lattnercf067672008-01-17 05:57:22 +000027245rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027246 conftest$ac_exeext conftest.$ac_ext
27247LIBS=$ac_check_lib_save_LIBS
27248fi
Reid Spencera773bd52006-08-04 18:18:08 +000027249{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27250echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027251if test $ac_cv_lib_m_sin = yes; then
27252 cat >>confdefs.h <<_ACEOF
27253#define HAVE_LIBM 1
27254_ACEOF
27255
27256 LIBS="-lm $LIBS"
27257
27258fi
27259
Jeff Cohen28783c32007-01-12 18:22:38 +000027260if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027261
Reid Spencera773bd52006-08-04 18:18:08 +000027262{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27263echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027264if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-limagehlp $LIBS"
27269cat >conftest.$ac_ext <<_ACEOF
27270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
27275
Reid Spencer48fdf912006-06-01 19:03:21 +000027276
Reid Spencer484fc8e2006-06-01 16:55:59 +000027277int
27278main ()
27279{
Reid Spencera773bd52006-08-04 18:18:08 +000027280return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027281 ;
27282 return 0;
27283}
27284_ACEOF
27285rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027286if { (ac_try="$ac_link"
27287case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27290esac
27291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027293 ac_status=$?
27294 grep -v '^ *+' conftest.er1 >conftest.err
27295 rm -f conftest.er1
27296 cat conftest.err >&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027298 (exit $ac_status); } &&
27299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27309 { ac_try='test -s conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27313esac
27314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027319 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
Reid Spencera773bd52006-08-04 18:18:08 +000027324 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027325fi
Reid Spencera773bd52006-08-04 18:18:08 +000027326
Tanya Lattnercf067672008-01-17 05:57:22 +000027327rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027328 conftest$ac_exeext conftest.$ac_ext
27329LIBS=$ac_check_lib_save_LIBS
27330fi
Reid Spencera773bd52006-08-04 18:18:08 +000027331{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27332echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027333if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027334 cat >>confdefs.h <<_ACEOF
27335#define HAVE_LIBIMAGEHLP 1
27336_ACEOF
27337
27338 LIBS="-limagehlp $LIBS"
27339
27340fi
27341
27342
Reid Spencera773bd52006-08-04 18:18:08 +000027343{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27344echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027345if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027346 echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348 ac_check_lib_save_LIBS=$LIBS
27349LIBS="-lpsapi $LIBS"
27350cat >conftest.$ac_ext <<_ACEOF
27351/* confdefs.h. */
27352_ACEOF
27353cat confdefs.h >>conftest.$ac_ext
27354cat >>conftest.$ac_ext <<_ACEOF
27355/* end confdefs.h. */
27356
Reid Spencer48fdf912006-06-01 19:03:21 +000027357
Reid Spencer484fc8e2006-06-01 16:55:59 +000027358int
27359main ()
27360{
Reid Spencera773bd52006-08-04 18:18:08 +000027361return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027362 ;
27363 return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027367if { (ac_try="$ac_link"
27368case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27371esac
27372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027374 ac_status=$?
27375 grep -v '^ *+' conftest.er1 >conftest.err
27376 rm -f conftest.er1
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027379 (exit $ac_status); } &&
27380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27390 { ac_try='test -s conftest$ac_exeext'
27391 { (case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394esac
27395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_try") 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027400 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
Reid Spencera773bd52006-08-04 18:18:08 +000027405 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027406fi
Reid Spencera773bd52006-08-04 18:18:08 +000027407
Tanya Lattnercf067672008-01-17 05:57:22 +000027408rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027409 conftest$ac_exeext conftest.$ac_ext
27410LIBS=$ac_check_lib_save_LIBS
27411fi
Reid Spencera773bd52006-08-04 18:18:08 +000027412{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27413echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027414if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027415 cat >>confdefs.h <<_ACEOF
27416#define HAVE_LIBPSAPI 1
27417_ACEOF
27418
27419 LIBS="-lpsapi $LIBS"
27420
27421fi
27422
27423fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027424
Reid Spencera773bd52006-08-04 18:18:08 +000027425{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27426echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027427if test "${ac_cv_search_dlopen+set}" = set; then
27428 echo $ECHO_N "(cached) $ECHO_C" >&6
27429else
27430 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027431cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027432/* confdefs.h. */
27433_ACEOF
27434cat confdefs.h >>conftest.$ac_ext
27435cat >>conftest.$ac_ext <<_ACEOF
27436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027437
Reid Spencera773bd52006-08-04 18:18:08 +000027438/* Override any GCC internal prototype to avoid an error.
27439 Use char because int might match the return type of a GCC
27440 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027441#ifdef __cplusplus
27442extern "C"
27443#endif
John Criswell7a73b802003-06-30 21:59:07 +000027444char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027445int
27446main ()
27447{
Reid Spencera773bd52006-08-04 18:18:08 +000027448return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027449 ;
27450 return 0;
27451}
27452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027453for ac_lib in '' dl; do
27454 if test -z "$ac_lib"; then
27455 ac_res="none required"
27456 else
27457 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027459 fi
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461if { (ac_try="$ac_link"
27462case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027469 grep -v '^ *+' conftest.er1 >conftest.err
27470 rm -f conftest.er1
27471 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027473 (exit $ac_status); } &&
27474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
27485 { (case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27488esac
27489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490 (eval "$ac_try") 2>&5
27491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027494 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027495else
27496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027497sed 's/^/| /' conftest.$ac_ext >&5
27498
Reid Spencera773bd52006-08-04 18:18:08 +000027499
John Criswell7a73b802003-06-30 21:59:07 +000027500fi
Reid Spencera773bd52006-08-04 18:18:08 +000027501
Tanya Lattnercf067672008-01-17 05:57:22 +000027502rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027503 conftest$ac_exeext
27504 if test "${ac_cv_search_dlopen+set}" = set; then
27505 break
John Criswell7a73b802003-06-30 21:59:07 +000027506fi
Reid Spencera773bd52006-08-04 18:18:08 +000027507done
27508if test "${ac_cv_search_dlopen+set}" = set; then
27509 :
27510else
27511 ac_cv_search_dlopen=no
27512fi
27513rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027514LIBS=$ac_func_search_save_LIBS
27515fi
Reid Spencera773bd52006-08-04 18:18:08 +000027516{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27517echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27518ac_res=$ac_cv_search_dlopen
27519if test "$ac_res" != no; then
27520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027521
27522cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027523#define HAVE_DLOPEN 1
27524_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027525
27526else
Brian Gaekec45be042003-10-07 06:01:34 +000027527 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27528echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027529fi
27530
27531
Reid Spencera773bd52006-08-04 18:18:08 +000027532{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27533echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027534if test "${ac_cv_search_mallinfo+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536else
27537 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027538cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027539/* confdefs.h. */
27540_ACEOF
27541cat confdefs.h >>conftest.$ac_ext
27542cat >>conftest.$ac_ext <<_ACEOF
27543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027544
Reid Spencera773bd52006-08-04 18:18:08 +000027545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027548#ifdef __cplusplus
27549extern "C"
27550#endif
John Criswell7a73b802003-06-30 21:59:07 +000027551char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027552int
27553main ()
27554{
Reid Spencera773bd52006-08-04 18:18:08 +000027555return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027556 ;
27557 return 0;
27558}
27559_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027560for ac_lib in '' malloc; do
27561 if test -z "$ac_lib"; then
27562 ac_res="none required"
27563 else
27564 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027566 fi
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568if { (ac_try="$ac_link"
27569case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27572esac
27573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027580 (exit $ac_status); } &&
27581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27591 { ac_try='test -s conftest$ac_exeext'
27592 { (case "(($ac_try" in
27593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27595esac
27596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_try") 2>&5
27598 ac_status=$?
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027601 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027602else
27603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027604sed 's/^/| /' conftest.$ac_ext >&5
27605
Reid Spencera773bd52006-08-04 18:18:08 +000027606
John Criswell7a73b802003-06-30 21:59:07 +000027607fi
Reid Spencera773bd52006-08-04 18:18:08 +000027608
Tanya Lattnercf067672008-01-17 05:57:22 +000027609rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027610 conftest$ac_exeext
27611 if test "${ac_cv_search_mallinfo+set}" = set; then
27612 break
John Criswell7a73b802003-06-30 21:59:07 +000027613fi
Reid Spencera773bd52006-08-04 18:18:08 +000027614done
27615if test "${ac_cv_search_mallinfo+set}" = set; then
27616 :
27617else
27618 ac_cv_search_mallinfo=no
27619fi
27620rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027621LIBS=$ac_func_search_save_LIBS
27622fi
Reid Spencera773bd52006-08-04 18:18:08 +000027623{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27624echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27625ac_res=$ac_cv_search_mallinfo
27626if test "$ac_res" != no; then
27627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027628
27629cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027630#define HAVE_MALLINFO 1
27631_ACEOF
27632
27633fi
27634
27635
Reid Spencer0a262ba2005-08-24 10:07:20 +000027636if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027637
Reid Spencera773bd52006-08-04 18:18:08 +000027638{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27639echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027640if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 ac_check_lib_save_LIBS=$LIBS
27644LIBS="-lpthread $LIBS"
27645cat >conftest.$ac_ext <<_ACEOF
27646/* confdefs.h. */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h. */
27651
Reid Spencera773bd52006-08-04 18:18:08 +000027652/* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027655#ifdef __cplusplus
27656extern "C"
27657#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027658char pthread_mutex_init ();
27659int
27660main ()
27661{
Reid Spencera773bd52006-08-04 18:18:08 +000027662return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027663 ;
27664 return 0;
27665}
27666_ACEOF
27667rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027668if { (ac_try="$ac_link"
27669case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672esac
27673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027675 ac_status=$?
27676 grep -v '^ *+' conftest.er1 >conftest.err
27677 rm -f conftest.er1
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027701 ac_cv_lib_pthread_pthread_mutex_init=yes
27702else
27703 echo "$as_me: failed program was:" >&5
27704sed 's/^/| /' conftest.$ac_ext >&5
27705
Reid Spencera773bd52006-08-04 18:18:08 +000027706 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027707fi
Reid Spencera773bd52006-08-04 18:18:08 +000027708
Tanya Lattnercf067672008-01-17 05:57:22 +000027709rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027710 conftest$ac_exeext conftest.$ac_ext
27711LIBS=$ac_check_lib_save_LIBS
27712fi
Reid Spencera773bd52006-08-04 18:18:08 +000027713{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27714echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027715if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27716 cat >>confdefs.h <<_ACEOF
27717#define HAVE_LIBPTHREAD 1
27718_ACEOF
27719
27720 LIBS="-lpthread $LIBS"
27721
27722fi
27723
Reid Spencera773bd52006-08-04 18:18:08 +000027724 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27725echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027726if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27728else
27729 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027730cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027731/* confdefs.h. */
27732_ACEOF
27733cat confdefs.h >>conftest.$ac_ext
27734cat >>conftest.$ac_ext <<_ACEOF
27735/* end confdefs.h. */
27736
Reid Spencera773bd52006-08-04 18:18:08 +000027737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027740#ifdef __cplusplus
27741extern "C"
27742#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027743char pthread_mutex_lock ();
27744int
27745main ()
27746{
Reid Spencera773bd52006-08-04 18:18:08 +000027747return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027748 ;
27749 return 0;
27750}
27751_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027752for ac_lib in '' pthread; do
27753 if test -z "$ac_lib"; then
27754 ac_res="none required"
27755 else
27756 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027758 fi
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760if { (ac_try="$ac_link"
27761case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027768 grep -v '^ *+' conftest.er1 >conftest.err
27769 rm -f conftest.er1
27770 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027772 (exit $ac_status); } &&
27773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027793 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
Reid Spencera773bd52006-08-04 18:18:08 +000027798
Brian Gaeke5f268f72003-12-05 19:29:01 +000027799fi
Reid Spencera773bd52006-08-04 18:18:08 +000027800
Tanya Lattnercf067672008-01-17 05:57:22 +000027801rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027802 conftest$ac_exeext
27803 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27804 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027805fi
Reid Spencera773bd52006-08-04 18:18:08 +000027806done
27807if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27808 :
27809else
27810 ac_cv_search_pthread_mutex_lock=no
27811fi
27812rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027813LIBS=$ac_func_search_save_LIBS
27814fi
Reid Spencera773bd52006-08-04 18:18:08 +000027815{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27816echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27817ac_res=$ac_cv_search_pthread_mutex_lock
27818if test "$ac_res" != no; then
27819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027820
John Criswell40468462004-09-24 21:19:06 +000027821cat >>confdefs.h <<\_ACEOF
27822#define HAVE_PTHREAD_MUTEX_LOCK 1
27823_ACEOF
27824
27825fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027826
Reid Spencer0a262ba2005-08-24 10:07:20 +000027827fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027828
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027829
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027830# Check whether --with-udis86 was given.
27831if test "${with_udis86+set}" = set; then
27832 withval=$with_udis86;
27833 USE_UDIS86=1
27834
27835 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027836 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027837 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27838 esac
27839
27840{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27841echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27842if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27843 echo $ECHO_N "(cached) $ECHO_C" >&6
27844else
27845 ac_check_lib_save_LIBS=$LIBS
27846LIBS="-ludis86 $LIBS"
27847cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
27853
27854/* Override any GCC internal prototype to avoid an error.
27855 Use char because int might match the return type of a GCC
27856 builtin and then its argument prototype would still apply. */
27857#ifdef __cplusplus
27858extern "C"
27859#endif
27860char ud_init ();
27861int
27862main ()
27863{
27864return ud_init ();
27865 ;
27866 return 0;
27867}
27868_ACEOF
27869rm -f conftest.$ac_objext conftest$ac_exeext
27870if { (ac_try="$ac_link"
27871case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27874esac
27875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_link") 2>conftest.er1
27877 ac_status=$?
27878 grep -v '^ *+' conftest.er1 >conftest.err
27879 rm -f conftest.er1
27880 cat conftest.err >&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027882 (exit $ac_status); } &&
27883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27893 { ac_try='test -s conftest$ac_exeext'
27894 { (case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27897esac
27898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_try") 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027903 ac_cv_lib_udis86_ud_init=yes
27904else
27905 echo "$as_me: failed program was:" >&5
27906sed 's/^/| /' conftest.$ac_ext >&5
27907
27908 ac_cv_lib_udis86_ud_init=no
27909fi
27910
Tanya Lattnercf067672008-01-17 05:57:22 +000027911rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027912 conftest$ac_exeext conftest.$ac_ext
27913LIBS=$ac_check_lib_save_LIBS
27914fi
27915{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27916echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27917if test $ac_cv_lib_udis86_ud_init = yes; then
27918 cat >>confdefs.h <<_ACEOF
27919#define HAVE_LIBUDIS86 1
27920_ACEOF
27921
27922 LIBS="-ludis86 $LIBS"
27923
27924else
27925
27926 echo "Error! You need to have libudis86 around."
27927 exit -1
27928
27929fi
27930
27931
27932else
27933 USE_UDIS86=0
27934
27935fi
27936
27937
27938cat >>confdefs.h <<_ACEOF
27939#define USE_UDIS86 $USE_UDIS86
27940_ACEOF
27941
27942
27943
Reid Spencer59473af2004-12-25 07:31:29 +000027944
27945
27946
27947
27948
27949ac_header_dirent=no
27950for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27951 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027952{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27953echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027955 echo $ECHO_N "(cached) $ECHO_C" >&6
27956else
27957 cat >conftest.$ac_ext <<_ACEOF
27958/* confdefs.h. */
27959_ACEOF
27960cat confdefs.h >>conftest.$ac_ext
27961cat >>conftest.$ac_ext <<_ACEOF
27962/* end confdefs.h. */
27963#include <sys/types.h>
27964#include <$ac_hdr>
27965
27966int
27967main ()
27968{
27969if ((DIR *) 0)
27970return 0;
27971 ;
27972 return 0;
27973}
27974_ACEOF
27975rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027976if { (ac_try="$ac_compile"
27977case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980esac
27981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027983 ac_status=$?
27984 grep -v '^ *+' conftest.er1 >conftest.err
27985 rm -f conftest.er1
27986 cat conftest.err >&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027988 (exit $ac_status); } &&
27989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
28000 { (case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28003esac
28004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_try") 2>&5
28006 ac_status=$?
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028009 eval "$as_ac_Header=yes"
28010else
28011 echo "$as_me: failed program was:" >&5
28012sed 's/^/| /' conftest.$ac_ext >&5
28013
Reid Spencera773bd52006-08-04 18:18:08 +000028014 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028015fi
Reid Spencera773bd52006-08-04 18:18:08 +000028016
28017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028018fi
Reid Spencera773bd52006-08-04 18:18:08 +000028019ac_res=`eval echo '${'$as_ac_Header'}'`
28020 { echo "$as_me:$LINENO: result: $ac_res" >&5
28021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028022if test `eval echo '${'$as_ac_Header'}'` = yes; then
28023 cat >>confdefs.h <<_ACEOF
28024#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28025_ACEOF
28026
28027ac_header_dirent=$ac_hdr; break
28028fi
28029
28030done
28031# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28032if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028033 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28034echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028035if test "${ac_cv_search_opendir+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28037else
28038 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028039cat >conftest.$ac_ext <<_ACEOF
28040/* confdefs.h. */
28041_ACEOF
28042cat confdefs.h >>conftest.$ac_ext
28043cat >>conftest.$ac_ext <<_ACEOF
28044/* end confdefs.h. */
28045
Reid Spencera773bd52006-08-04 18:18:08 +000028046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028049#ifdef __cplusplus
28050extern "C"
28051#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028052char opendir ();
28053int
28054main ()
28055{
Reid Spencera773bd52006-08-04 18:18:08 +000028056return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028057 ;
28058 return 0;
28059}
28060_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028061for ac_lib in '' dir; do
28062 if test -z "$ac_lib"; then
28063 ac_res="none required"
28064 else
28065 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028067 fi
28068 rm -f conftest.$ac_objext conftest$ac_exeext
28069if { (ac_try="$ac_link"
28070case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073esac
28074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028076 ac_status=$?
28077 grep -v '^ *+' conftest.er1 >conftest.err
28078 rm -f conftest.er1
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028081 (exit $ac_status); } &&
28082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28092 { ac_try='test -s conftest$ac_exeext'
28093 { (case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28096esac
28097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_try") 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028102 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028103else
28104 echo "$as_me: failed program was:" >&5
28105sed 's/^/| /' conftest.$ac_ext >&5
28106
Reid Spencera773bd52006-08-04 18:18:08 +000028107
Reid Spencer59473af2004-12-25 07:31:29 +000028108fi
Reid Spencera773bd52006-08-04 18:18:08 +000028109
Tanya Lattnercf067672008-01-17 05:57:22 +000028110rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028111 conftest$ac_exeext
28112 if test "${ac_cv_search_opendir+set}" = set; then
28113 break
Reid Spencer59473af2004-12-25 07:31:29 +000028114fi
Reid Spencera773bd52006-08-04 18:18:08 +000028115done
28116if test "${ac_cv_search_opendir+set}" = set; then
28117 :
28118else
28119 ac_cv_search_opendir=no
28120fi
28121rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028122LIBS=$ac_func_search_save_LIBS
28123fi
Reid Spencera773bd52006-08-04 18:18:08 +000028124{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28125echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28126ac_res=$ac_cv_search_opendir
28127if test "$ac_res" != no; then
28128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028129
28130fi
28131
28132else
Reid Spencera773bd52006-08-04 18:18:08 +000028133 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28134echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028135if test "${ac_cv_search_opendir+set}" = set; then
28136 echo $ECHO_N "(cached) $ECHO_C" >&6
28137else
28138 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028139cat >conftest.$ac_ext <<_ACEOF
28140/* confdefs.h. */
28141_ACEOF
28142cat confdefs.h >>conftest.$ac_ext
28143cat >>conftest.$ac_ext <<_ACEOF
28144/* end confdefs.h. */
28145
Reid Spencera773bd52006-08-04 18:18:08 +000028146/* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028149#ifdef __cplusplus
28150extern "C"
28151#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028152char opendir ();
28153int
28154main ()
28155{
Reid Spencera773bd52006-08-04 18:18:08 +000028156return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028157 ;
28158 return 0;
28159}
28160_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028161for ac_lib in '' x; do
28162 if test -z "$ac_lib"; then
28163 ac_res="none required"
28164 else
28165 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028167 fi
28168 rm -f conftest.$ac_objext conftest$ac_exeext
28169if { (ac_try="$ac_link"
28170case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28173esac
28174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028176 ac_status=$?
28177 grep -v '^ *+' conftest.er1 >conftest.err
28178 rm -f conftest.er1
28179 cat conftest.err >&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028181 (exit $ac_status); } &&
28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28192 { ac_try='test -s conftest$ac_exeext'
28193 { (case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28196esac
28197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198 (eval "$ac_try") 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028202 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028203else
28204 echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
Reid Spencera773bd52006-08-04 18:18:08 +000028207
Reid Spencer59473af2004-12-25 07:31:29 +000028208fi
Reid Spencera773bd52006-08-04 18:18:08 +000028209
Tanya Lattnercf067672008-01-17 05:57:22 +000028210rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028211 conftest$ac_exeext
28212 if test "${ac_cv_search_opendir+set}" = set; then
28213 break
Reid Spencer59473af2004-12-25 07:31:29 +000028214fi
Reid Spencera773bd52006-08-04 18:18:08 +000028215done
28216if test "${ac_cv_search_opendir+set}" = set; then
28217 :
28218else
28219 ac_cv_search_opendir=no
28220fi
28221rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028222LIBS=$ac_func_search_save_LIBS
28223fi
Reid Spencera773bd52006-08-04 18:18:08 +000028224{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28225echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28226ac_res=$ac_cv_search_opendir
28227if test "$ac_res" != no; then
28228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028229
28230fi
28231
28232fi
28233
Reid Spencera773bd52006-08-04 18:18:08 +000028234{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28235echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028236if test "${ac_cv_header_mmap_anon+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239 ac_ext=c
28240ac_cpp='$CPP $CPPFLAGS'
28241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243ac_compiler_gnu=$ac_cv_c_compiler_gnu
28244
28245 cat >conftest.$ac_ext <<_ACEOF
28246/* confdefs.h. */
28247_ACEOF
28248cat confdefs.h >>conftest.$ac_ext
28249cat >>conftest.$ac_ext <<_ACEOF
28250/* end confdefs.h. */
28251#include <sys/mman.h>
28252#include <unistd.h>
28253#include <fcntl.h>
28254int
28255main ()
28256{
28257mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28258 ;
28259 return 0;
28260}
28261_ACEOF
28262rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028263if { (ac_try="$ac_compile"
28264case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028270 ac_status=$?
28271 grep -v '^ *+' conftest.er1 >conftest.err
28272 rm -f conftest.er1
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028275 (exit $ac_status); } &&
28276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28286 { ac_try='test -s conftest.$ac_objext'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28290esac
28291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028296 ac_cv_header_mmap_anon=yes
28297else
28298 echo "$as_me: failed program was:" >&5
28299sed 's/^/| /' conftest.$ac_ext >&5
28300
Reid Spencera773bd52006-08-04 18:18:08 +000028301 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028302fi
Reid Spencera773bd52006-08-04 18:18:08 +000028303
28304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028305 ac_ext=c
28306ac_cpp='$CPP $CPPFLAGS'
28307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310
28311
28312fi
Reid Spencera773bd52006-08-04 18:18:08 +000028313{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28314echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028315if test "$ac_cv_header_mmap_anon" = yes; then
28316
28317cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028318#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028319_ACEOF
28320
28321fi
28322
Reid Spencera773bd52006-08-04 18:18:08 +000028323{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28324echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028325if test "${ac_cv_header_stat_broken+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h. */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h. */
28334#include <sys/types.h>
28335#include <sys/stat.h>
28336
Reid Spencera773bd52006-08-04 18:18:08 +000028337#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028338# if S_ISBLK (S_IFDIR)
28339You lose.
28340# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028341#endif
28342
Reid Spencera773bd52006-08-04 18:18:08 +000028343#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028344# if S_ISBLK (S_IFCHR)
28345You lose.
28346# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028347#endif
28348
Reid Spencera773bd52006-08-04 18:18:08 +000028349#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028350# if S_ISLNK (S_IFREG)
28351You lose.
28352# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028353#endif
28354
Reid Spencera773bd52006-08-04 18:18:08 +000028355#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028356# if S_ISSOCK (S_IFREG)
28357You lose.
28358# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028359#endif
28360
28361_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28363 $EGREP "You lose" >/dev/null 2>&1; then
28364 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028365else
Tanya Lattnercf067672008-01-17 05:57:22 +000028366 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028367fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028368rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028369
Reid Spencer59473af2004-12-25 07:31:29 +000028370fi
Reid Spencera773bd52006-08-04 18:18:08 +000028371{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28372echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028373if test $ac_cv_header_stat_broken = yes; then
28374
28375cat >>confdefs.h <<\_ACEOF
28376#define STAT_MACROS_BROKEN 1
28377_ACEOF
28378
28379fi
28380
Reid Spencera773bd52006-08-04 18:18:08 +000028381{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28382echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028383if test "${ac_cv_header_stdc+set}" = set; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28385else
28386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028387/* confdefs.h. */
28388_ACEOF
28389cat confdefs.h >>conftest.$ac_ext
28390cat >>conftest.$ac_ext <<_ACEOF
28391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028392#include <stdlib.h>
28393#include <stdarg.h>
28394#include <string.h>
28395#include <float.h>
28396
John Criswell0c38eaf2003-09-10 15:17:25 +000028397int
28398main ()
28399{
28400
28401 ;
28402 return 0;
28403}
John Criswell7a73b802003-06-30 21:59:07 +000028404_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028405rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028406if { (ac_try="$ac_compile"
28407case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028414 grep -v '^ *+' conftest.er1 >conftest.err
28415 rm -f conftest.er1
28416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028418 (exit $ac_status); } &&
28419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28429 { ac_try='test -s conftest.$ac_objext'
28430 { (case "(($ac_try" in
28431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432 *) ac_try_echo=$ac_try;;
28433esac
28434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435 (eval "$ac_try") 2>&5
28436 ac_status=$?
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028439 ac_cv_header_stdc=yes
28440else
28441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028442sed 's/^/| /' conftest.$ac_ext >&5
28443
Reid Spencera773bd52006-08-04 18:18:08 +000028444 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028445fi
Reid Spencera773bd52006-08-04 18:18:08 +000028446
28447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028448
28449if test $ac_cv_header_stdc = yes; then
28450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028457#include <string.h>
28458
28459_ACEOF
28460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028461 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028462 :
28463else
28464 ac_cv_header_stdc=no
28465fi
28466rm -f conftest*
28467
28468fi
28469
28470if test $ac_cv_header_stdc = yes; then
28471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028478#include <stdlib.h>
28479
28480_ACEOF
28481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028482 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028483 :
28484else
28485 ac_cv_header_stdc=no
28486fi
28487rm -f conftest*
28488
28489fi
28490
28491if test $ac_cv_header_stdc = yes; then
28492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28493 if test "$cross_compiling" = yes; then
28494 :
28495else
28496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028497/* confdefs.h. */
28498_ACEOF
28499cat confdefs.h >>conftest.$ac_ext
28500cat >>conftest.$ac_ext <<_ACEOF
28501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028502#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028503#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028504#if ((' ' & 0x0FF) == 0x020)
28505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28507#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028508# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028509 (('a' <= (c) && (c) <= 'i') \
28510 || ('j' <= (c) && (c) <= 'r') \
28511 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28513#endif
28514
28515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28516int
28517main ()
28518{
28519 int i;
28520 for (i = 0; i < 256; i++)
28521 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028522 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028523 return 2;
28524 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028525}
28526_ACEOF
28527rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028528if { (ac_try="$ac_link"
28529case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532esac
28533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028535 ac_status=$?
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028538 { (case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541esac
28542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028544 ac_status=$?
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28547 :
28548else
28549 echo "$as_me: program exited with status $ac_status" >&5
28550echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028551sed 's/^/| /' conftest.$ac_ext >&5
28552
John Criswell7a73b802003-06-30 21:59:07 +000028553( exit $ac_status )
28554ac_cv_header_stdc=no
28555fi
Reid Spencera773bd52006-08-04 18:18:08 +000028556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28557fi
28558
28559
John Criswell7a73b802003-06-30 21:59:07 +000028560fi
28561fi
Reid Spencera773bd52006-08-04 18:18:08 +000028562{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28563echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028564if test $ac_cv_header_stdc = yes; then
28565
28566cat >>confdefs.h <<\_ACEOF
28567#define STDC_HEADERS 1
28568_ACEOF
28569
28570fi
28571
Reid Spencera773bd52006-08-04 18:18:08 +000028572{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28573echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028574if test "${ac_cv_header_sys_wait_h+set}" = set; then
28575 echo $ECHO_N "(cached) $ECHO_C" >&6
28576else
28577 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028578/* confdefs.h. */
28579_ACEOF
28580cat confdefs.h >>conftest.$ac_ext
28581cat >>conftest.$ac_ext <<_ACEOF
28582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028583#include <sys/types.h>
28584#include <sys/wait.h>
28585#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028586# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028587#endif
28588#ifndef WIFEXITED
28589# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28590#endif
28591
John Criswell7a73b802003-06-30 21:59:07 +000028592int
28593main ()
28594{
28595 int s;
28596 wait (&s);
28597 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28598 ;
28599 return 0;
28600}
28601_ACEOF
28602rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028603if { (ac_try="$ac_compile"
28604case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28607esac
28608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028610 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028611 grep -v '^ *+' conftest.er1 >conftest.err
28612 rm -f conftest.er1
28613 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028615 (exit $ac_status); } &&
28616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28626 { ac_try='test -s conftest.$ac_objext'
28627 { (case "(($ac_try" in
28628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28629 *) ac_try_echo=$ac_try;;
28630esac
28631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28632 (eval "$ac_try") 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028636 ac_cv_header_sys_wait_h=yes
28637else
28638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028639sed 's/^/| /' conftest.$ac_ext >&5
28640
Reid Spencera773bd52006-08-04 18:18:08 +000028641 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028642fi
Reid Spencera773bd52006-08-04 18:18:08 +000028643
28644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028645fi
Reid Spencera773bd52006-08-04 18:18:08 +000028646{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28647echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028648if test $ac_cv_header_sys_wait_h = yes; then
28649
28650cat >>confdefs.h <<\_ACEOF
28651#define HAVE_SYS_WAIT_H 1
28652_ACEOF
28653
28654fi
28655
Reid Spencera773bd52006-08-04 18:18:08 +000028656{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28657echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028658if test "${ac_cv_header_time+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661 cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028667#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028668#include <sys/time.h>
28669#include <time.h>
28670
28671int
28672main ()
28673{
28674if ((struct tm *) 0)
28675return 0;
28676 ;
28677 return 0;
28678}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028679_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028680rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028681if { (ac_try="$ac_compile"
28682case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28685esac
28686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028688 ac_status=$?
28689 grep -v '^ *+' conftest.er1 >conftest.err
28690 rm -f conftest.er1
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028693 (exit $ac_status); } &&
28694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28704 { ac_try='test -s conftest.$ac_objext'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28708esac
28709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028714 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028715else
28716 echo "$as_me: failed program was:" >&5
28717sed 's/^/| /' conftest.$ac_ext >&5
28718
Reid Spencera773bd52006-08-04 18:18:08 +000028719 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028720fi
Reid Spencera773bd52006-08-04 18:18:08 +000028721
28722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028723fi
Reid Spencera773bd52006-08-04 18:18:08 +000028724{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28725echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028726if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028727
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028728cat >>confdefs.h <<\_ACEOF
28729#define TIME_WITH_SYS_TIME 1
28730_ACEOF
28731
28732fi
28733
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734
Reid Spencer59473af2004-12-25 07:31:29 +000028735
28736
28737
28738
28739
28740
28741for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28742do
28743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028748 echo $ECHO_N "(cached) $ECHO_C" >&6
28749fi
Reid Spencera773bd52006-08-04 18:18:08 +000028750ac_res=`eval echo '${'$as_ac_Header'}'`
28751 { echo "$as_me:$LINENO: result: $ac_res" >&5
28752echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028753else
28754 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028755{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028757cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028758/* confdefs.h. */
28759_ACEOF
28760cat confdefs.h >>conftest.$ac_ext
28761cat >>conftest.$ac_ext <<_ACEOF
28762/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028763$ac_includes_default
28764#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028765_ACEOF
28766rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028767if { (ac_try="$ac_compile"
28768case "(($ac_try" in
28769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 *) ac_try_echo=$ac_try;;
28771esac
28772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028774 ac_status=$?
28775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028779 (exit $ac_status); } &&
28780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28790 { ac_try='test -s conftest.$ac_objext'
28791 { (case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28794esac
28795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_try") 2>&5
28797 ac_status=$?
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028800 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028801else
28802 echo "$as_me: failed program was:" >&5
28803sed 's/^/| /' conftest.$ac_ext >&5
28804
Reid Spencera773bd52006-08-04 18:18:08 +000028805 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028806fi
Reid Spencera773bd52006-08-04 18:18:08 +000028807
28808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28810echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028811
Reid Spencer59473af2004-12-25 07:31:29 +000028812# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028813{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028815cat >conftest.$ac_ext <<_ACEOF
28816/* confdefs.h. */
28817_ACEOF
28818cat confdefs.h >>conftest.$ac_ext
28819cat >>conftest.$ac_ext <<_ACEOF
28820/* end confdefs.h. */
28821#include <$ac_header>
28822_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028823if { (ac_try="$ac_cpp conftest.$ac_ext"
28824case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28827esac
28828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028830 ac_status=$?
28831 grep -v '^ *+' conftest.er1 >conftest.err
28832 rm -f conftest.er1
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028835 (exit $ac_status); } >/dev/null; then
28836 if test -s conftest.err; then
28837 ac_cpp_err=$ac_c_preproc_warn_flag
28838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28839 else
28840 ac_cpp_err=
28841 fi
28842else
28843 ac_cpp_err=yes
28844fi
28845if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028846 ac_header_preproc=yes
28847else
28848 echo "$as_me: failed program was:" >&5
28849sed 's/^/| /' conftest.$ac_ext >&5
28850
28851 ac_header_preproc=no
28852fi
Reid Spencera773bd52006-08-04 18:18:08 +000028853
Reid Spencer59473af2004-12-25 07:31:29 +000028854rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028855{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28856echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028857
28858# So? What about this header?
28859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28860 yes:no: )
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28862echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28864echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28865 ac_header_preproc=yes
28866 ;;
28867 no:yes:* )
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28873echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28875echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28879echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028880 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028881## ----------------------------------- ##
28882## Report this to llvmbugs@cs.uiuc.edu ##
28883## ----------------------------------- ##
28884_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028885 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028886 ;;
28887esac
Reid Spencera773bd52006-08-04 18:18:08 +000028888{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028891 echo $ECHO_N "(cached) $ECHO_C" >&6
28892else
28893 eval "$as_ac_Header=\$ac_header_preproc"
28894fi
Reid Spencera773bd52006-08-04 18:18:08 +000028895ac_res=`eval echo '${'$as_ac_Header'}'`
28896 { echo "$as_me:$LINENO: result: $ac_res" >&5
28897echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028898
28899fi
Reid Spencer59473af2004-12-25 07:31:29 +000028900if test `eval echo '${'$as_ac_Header'}'` = yes; then
28901 cat >>confdefs.h <<_ACEOF
28902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028903_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028904
28905fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028906
Reid Spencer59473af2004-12-25 07:31:29 +000028907done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028909
28910
Reid Spencer59473af2004-12-25 07:31:29 +000028911
28912
28913
28914
Reid Spencercdb08a32006-06-05 16:11:07 +000028915for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028916do
28917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028922 echo $ECHO_N "(cached) $ECHO_C" >&6
28923fi
Reid Spencera773bd52006-08-04 18:18:08 +000028924ac_res=`eval echo '${'$as_ac_Header'}'`
28925 { echo "$as_me:$LINENO: result: $ac_res" >&5
28926echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028927else
28928 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028931cat >conftest.$ac_ext <<_ACEOF
28932/* confdefs.h. */
28933_ACEOF
28934cat confdefs.h >>conftest.$ac_ext
28935cat >>conftest.$ac_ext <<_ACEOF
28936/* end confdefs.h. */
28937$ac_includes_default
28938#include <$ac_header>
28939_ACEOF
28940rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028941if { (ac_try="$ac_compile"
28942case "(($ac_try" in
28943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944 *) ac_try_echo=$ac_try;;
28945esac
28946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028948 ac_status=$?
28949 grep -v '^ *+' conftest.er1 >conftest.err
28950 rm -f conftest.er1
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028953 (exit $ac_status); } &&
28954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28964 { ac_try='test -s conftest.$ac_objext'
28965 { (case "(($ac_try" in
28966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967 *) ac_try_echo=$ac_try;;
28968esac
28969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970 (eval "$ac_try") 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028974 ac_header_compiler=yes
28975else
28976 echo "$as_me: failed program was:" >&5
28977sed 's/^/| /' conftest.$ac_ext >&5
28978
Reid Spencera773bd52006-08-04 18:18:08 +000028979 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028980fi
Reid Spencera773bd52006-08-04 18:18:08 +000028981
28982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28983{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28984echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028985
28986# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028987{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028989cat >conftest.$ac_ext <<_ACEOF
28990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
28995#include <$ac_header>
28996_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028997if { (ac_try="$ac_cpp conftest.$ac_ext"
28998case "(($ac_try" in
28999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000 *) ac_try_echo=$ac_try;;
29001esac
29002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029004 ac_status=$?
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029009 (exit $ac_status); } >/dev/null; then
29010 if test -s conftest.err; then
29011 ac_cpp_err=$ac_c_preproc_warn_flag
29012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29013 else
29014 ac_cpp_err=
29015 fi
29016else
29017 ac_cpp_err=yes
29018fi
29019if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029020 ac_header_preproc=yes
29021else
29022 echo "$as_me: failed program was:" >&5
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
29025 ac_header_preproc=no
29026fi
Reid Spencera773bd52006-08-04 18:18:08 +000029027
Reid Spencer59473af2004-12-25 07:31:29 +000029028rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29030echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029031
29032# So? What about this header?
29033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29034 yes:no: )
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29039 ac_header_preproc=yes
29040 ;;
29041 no:yes:* )
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029054 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029055## ----------------------------------- ##
29056## Report this to llvmbugs@cs.uiuc.edu ##
29057## ----------------------------------- ##
29058_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029059 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029060 ;;
29061esac
Reid Spencera773bd52006-08-04 18:18:08 +000029062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029065 echo $ECHO_N "(cached) $ECHO_C" >&6
29066else
29067 eval "$as_ac_Header=\$ac_header_preproc"
29068fi
Reid Spencera773bd52006-08-04 18:18:08 +000029069ac_res=`eval echo '${'$as_ac_Header'}'`
29070 { echo "$as_me:$LINENO: result: $ac_res" >&5
29071echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029072
29073fi
29074if test `eval echo '${'$as_ac_Header'}'` = yes; then
29075 cat >>confdefs.h <<_ACEOF
29076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29077_ACEOF
29078
29079fi
29080
29081done
29082
29083
Reid Spencerbe3e4192007-08-17 05:45:26 +000029084for ac_header in windows.h
29085do
29086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092fi
29093ac_res=`eval echo '${'$as_ac_Header'}'`
29094 { echo "$as_me:$LINENO: result: $ac_res" >&5
29095echo "${ECHO_T}$ac_res" >&6; }
29096else
29097 # Is the header compilable?
29098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29100cat >conftest.$ac_ext <<_ACEOF
29101/* confdefs.h. */
29102_ACEOF
29103cat confdefs.h >>conftest.$ac_ext
29104cat >>conftest.$ac_ext <<_ACEOF
29105/* end confdefs.h. */
29106$ac_includes_default
29107#include <$ac_header>
29108_ACEOF
29109rm -f conftest.$ac_objext
29110if { (ac_try="$ac_compile"
29111case "(($ac_try" in
29112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113 *) ac_try_echo=$ac_try;;
29114esac
29115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116 (eval "$ac_compile") 2>conftest.er1
29117 ac_status=$?
29118 grep -v '^ *+' conftest.er1 >conftest.err
29119 rm -f conftest.er1
29120 cat conftest.err >&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029122 (exit $ac_status); } &&
29123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
29134 { (case "(($ac_try" in
29135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136 *) ac_try_echo=$ac_try;;
29137esac
29138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139 (eval "$ac_try") 2>&5
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029143 ac_header_compiler=yes
29144else
29145 echo "$as_me: failed program was:" >&5
29146sed 's/^/| /' conftest.$ac_ext >&5
29147
29148 ac_header_compiler=no
29149fi
29150
29151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29153echo "${ECHO_T}$ac_header_compiler" >&6; }
29154
29155# Is the header present?
29156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29158cat >conftest.$ac_ext <<_ACEOF
29159/* confdefs.h. */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h. */
29164#include <$ac_header>
29165_ACEOF
29166if { (ac_try="$ac_cpp conftest.$ac_ext"
29167case "(($ac_try" in
29168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169 *) ac_try_echo=$ac_try;;
29170esac
29171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29173 ac_status=$?
29174 grep -v '^ *+' conftest.er1 >conftest.err
29175 rm -f conftest.er1
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029178 (exit $ac_status); } >/dev/null; then
29179 if test -s conftest.err; then
29180 ac_cpp_err=$ac_c_preproc_warn_flag
29181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29182 else
29183 ac_cpp_err=
29184 fi
29185else
29186 ac_cpp_err=yes
29187fi
29188if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029189 ac_header_preproc=yes
29190else
29191 echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
29194 ac_header_preproc=no
29195fi
29196
29197rm -f conftest.err conftest.$ac_ext
29198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29199echo "${ECHO_T}$ac_header_preproc" >&6; }
29200
29201# So? What about this header?
29202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29203 yes:no: )
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29208 ac_header_preproc=yes
29209 ;;
29210 no:yes:* )
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29223 ( cat <<\_ASBOX
29224## ----------------------------------- ##
29225## Report this to llvmbugs@cs.uiuc.edu ##
29226## ----------------------------------- ##
29227_ASBOX
29228 ) | sed "s/^/$as_me: WARNING: /" >&2
29229 ;;
29230esac
29231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29234 echo $ECHO_N "(cached) $ECHO_C" >&6
29235else
29236 eval "$as_ac_Header=\$ac_header_preproc"
29237fi
29238ac_res=`eval echo '${'$as_ac_Header'}'`
29239 { echo "$as_me:$LINENO: result: $ac_res" >&5
29240echo "${ECHO_T}$ac_res" >&6; }
29241
29242fi
29243if test `eval echo '${'$as_ac_Header'}'` = yes; then
29244 cat >>confdefs.h <<_ACEOF
29245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29246_ACEOF
29247
29248fi
29249
29250done
Reid Spencer59473af2004-12-25 07:31:29 +000029251
29252
29253
29254
Reid Spencerbe3e4192007-08-17 05:45:26 +000029255
29256for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029257do
29258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029263 echo $ECHO_N "(cached) $ECHO_C" >&6
29264fi
Reid Spencera773bd52006-08-04 18:18:08 +000029265ac_res=`eval echo '${'$as_ac_Header'}'`
29266 { echo "$as_me:$LINENO: result: $ac_res" >&5
29267echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029268else
29269 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029270{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029272cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029273/* confdefs.h. */
29274_ACEOF
29275cat confdefs.h >>conftest.$ac_ext
29276cat >>conftest.$ac_ext <<_ACEOF
29277/* end confdefs.h. */
29278$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029279#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029280_ACEOF
29281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029282if { (ac_try="$ac_compile"
29283case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29286esac
29287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309esac
29310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029315 ac_header_compiler=yes
29316else
29317 echo "$as_me: failed program was:" >&5
29318sed 's/^/| /' conftest.$ac_ext >&5
29319
Reid Spencera773bd52006-08-04 18:18:08 +000029320 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029321fi
Reid Spencera773bd52006-08-04 18:18:08 +000029322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029326
29327# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029328{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029330cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029331/* confdefs.h. */
29332_ACEOF
29333cat confdefs.h >>conftest.$ac_ext
29334cat >>conftest.$ac_ext <<_ACEOF
29335/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029336#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029337_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029338if { (ac_try="$ac_cpp conftest.$ac_ext"
29339case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29342esac
29343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029345 ac_status=$?
29346 grep -v '^ *+' conftest.er1 >conftest.err
29347 rm -f conftest.er1
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029350 (exit $ac_status); } >/dev/null; then
29351 if test -s conftest.err; then
29352 ac_cpp_err=$ac_c_preproc_warn_flag
29353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29354 else
29355 ac_cpp_err=
29356 fi
29357else
29358 ac_cpp_err=yes
29359fi
29360if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029361 ac_header_preproc=yes
29362else
29363 echo "$as_me: failed program was:" >&5
29364sed 's/^/| /' conftest.$ac_ext >&5
29365
29366 ac_header_preproc=no
29367fi
Reid Spencera773bd52006-08-04 18:18:08 +000029368
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029369rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029370{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029372
29373# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29375 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029380 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029381 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029382 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029395 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029396## ----------------------------------- ##
29397## Report this to llvmbugs@cs.uiuc.edu ##
29398## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029399_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029400 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029401 ;;
29402esac
Reid Spencera773bd52006-08-04 18:18:08 +000029403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029406 echo $ECHO_N "(cached) $ECHO_C" >&6
29407else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029408 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029409fi
Reid Spencera773bd52006-08-04 18:18:08 +000029410ac_res=`eval echo '${'$as_ac_Header'}'`
29411 { echo "$as_me:$LINENO: result: $ac_res" >&5
29412echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029413
29414fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029415if test `eval echo '${'$as_ac_Header'}'` = yes; then
29416 cat >>confdefs.h <<_ACEOF
29417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029418_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029419
29420fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029422done
29423
John Criswell7ed43ad2004-07-19 16:12:29 +000029424
Reid Spencercdb08a32006-06-05 16:11:07 +000029425
Reid Spencera6d990a2006-09-14 06:17:21 +000029426
29427for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029428do
29429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435fi
Reid Spencera773bd52006-08-04 18:18:08 +000029436ac_res=`eval echo '${'$as_ac_Header'}'`
29437 { echo "$as_me:$LINENO: result: $ac_res" >&5
29438echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029439else
29440 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029441{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029443cat >conftest.$ac_ext <<_ACEOF
29444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
29449$ac_includes_default
29450#include <$ac_header>
29451_ACEOF
29452rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029453if { (ac_try="$ac_compile"
29454case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29457esac
29458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029460 ac_status=$?
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029465 (exit $ac_status); } &&
29466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29480esac
29481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029486 ac_header_compiler=yes
29487else
29488 echo "$as_me: failed program was:" >&5
29489sed 's/^/| /' conftest.$ac_ext >&5
29490
Reid Spencera773bd52006-08-04 18:18:08 +000029491 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029492fi
Reid Spencera773bd52006-08-04 18:18:08 +000029493
29494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29495{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29496echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029497
29498# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029499{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029501cat >conftest.$ac_ext <<_ACEOF
29502/* confdefs.h. */
29503_ACEOF
29504cat confdefs.h >>conftest.$ac_ext
29505cat >>conftest.$ac_ext <<_ACEOF
29506/* end confdefs.h. */
29507#include <$ac_header>
29508_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029509if { (ac_try="$ac_cpp conftest.$ac_ext"
29510case "(($ac_try" in
29511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512 *) ac_try_echo=$ac_try;;
29513esac
29514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029516 ac_status=$?
29517 grep -v '^ *+' conftest.er1 >conftest.err
29518 rm -f conftest.er1
29519 cat conftest.err >&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029521 (exit $ac_status); } >/dev/null; then
29522 if test -s conftest.err; then
29523 ac_cpp_err=$ac_c_preproc_warn_flag
29524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29525 else
29526 ac_cpp_err=
29527 fi
29528else
29529 ac_cpp_err=yes
29530fi
29531if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029532 ac_header_preproc=yes
29533else
29534 echo "$as_me: failed program was:" >&5
29535sed 's/^/| /' conftest.$ac_ext >&5
29536
29537 ac_header_preproc=no
29538fi
Reid Spencera773bd52006-08-04 18:18:08 +000029539
Chris Lattner0b142592005-11-14 06:57:34 +000029540rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29542echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029543
29544# So? What about this header?
29545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29546 yes:no: )
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29551 ac_header_preproc=yes
29552 ;;
29553 no:yes:* )
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029566 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029567## ----------------------------------- ##
29568## Report this to llvmbugs@cs.uiuc.edu ##
29569## ----------------------------------- ##
29570_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029571 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029572 ;;
29573esac
Reid Spencera773bd52006-08-04 18:18:08 +000029574{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029577 echo $ECHO_N "(cached) $ECHO_C" >&6
29578else
29579 eval "$as_ac_Header=\$ac_header_preproc"
29580fi
Reid Spencera773bd52006-08-04 18:18:08 +000029581ac_res=`eval echo '${'$as_ac_Header'}'`
29582 { echo "$as_me:$LINENO: result: $ac_res" >&5
29583echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029584
29585fi
29586if test `eval echo '${'$as_ac_Header'}'` = yes; then
29587 cat >>confdefs.h <<_ACEOF
29588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29589_ACEOF
29590
29591fi
29592
29593done
29594
Reid Spencer0a262ba2005-08-24 10:07:20 +000029595if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029596
29597for ac_header in pthread.h
29598do
29599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029604 echo $ECHO_N "(cached) $ECHO_C" >&6
29605fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029606ac_res=`eval echo '${'$as_ac_Header'}'`
29607 { echo "$as_me:$LINENO: result: $ac_res" >&5
29608echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029609else
29610 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029611{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029613cat >conftest.$ac_ext <<_ACEOF
29614/* confdefs.h. */
29615_ACEOF
29616cat confdefs.h >>conftest.$ac_ext
29617cat >>conftest.$ac_ext <<_ACEOF
29618/* end confdefs.h. */
29619$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029620#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029621_ACEOF
29622rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029623if { (ac_try="$ac_compile"
29624case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29627esac
29628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029630 ac_status=$?
29631 grep -v '^ *+' conftest.er1 >conftest.err
29632 rm -f conftest.er1
29633 cat conftest.err >&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029635 (exit $ac_status); } &&
29636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29646 { ac_try='test -s conftest.$ac_objext'
29647 { (case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29650esac
29651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_try") 2>&5
29653 ac_status=$?
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029656 ac_header_compiler=yes
29657else
29658 echo "$as_me: failed program was:" >&5
29659sed 's/^/| /' conftest.$ac_ext >&5
29660
Reid Spencera773bd52006-08-04 18:18:08 +000029661 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029662fi
Reid Spencera773bd52006-08-04 18:18:08 +000029663
29664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29666echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029667
29668# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029669{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029671cat >conftest.$ac_ext <<_ACEOF
29672/* confdefs.h. */
29673_ACEOF
29674cat confdefs.h >>conftest.$ac_ext
29675cat >>conftest.$ac_ext <<_ACEOF
29676/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029677#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029678_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029679if { (ac_try="$ac_cpp conftest.$ac_ext"
29680case "(($ac_try" in
29681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682 *) ac_try_echo=$ac_try;;
29683esac
29684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029686 ac_status=$?
29687 grep -v '^ *+' conftest.er1 >conftest.err
29688 rm -f conftest.er1
29689 cat conftest.err >&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029691 (exit $ac_status); } >/dev/null; then
29692 if test -s conftest.err; then
29693 ac_cpp_err=$ac_c_preproc_warn_flag
29694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29695 else
29696 ac_cpp_err=
29697 fi
29698else
29699 ac_cpp_err=yes
29700fi
29701if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029702 ac_header_preproc=yes
29703else
29704 echo "$as_me: failed program was:" >&5
29705sed 's/^/| /' conftest.$ac_ext >&5
29706
29707 ac_header_preproc=no
29708fi
Reid Spencera773bd52006-08-04 18:18:08 +000029709
Reid Spencer0a262ba2005-08-24 10:07:20 +000029710rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029711{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29712echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029713
29714# So? What about this header?
29715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29716 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029721 ac_header_preproc=yes
29722 ;;
29723 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029736 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029737## ----------------------------------- ##
29738## Report this to llvmbugs@cs.uiuc.edu ##
29739## ----------------------------------- ##
29740_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029741 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029742 ;;
29743esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029744{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029747 echo $ECHO_N "(cached) $ECHO_C" >&6
29748else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029749 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029750fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029751ac_res=`eval echo '${'$as_ac_Header'}'`
29752 { echo "$as_me:$LINENO: result: $ac_res" >&5
29753echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029754
29755fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029756if test `eval echo '${'$as_ac_Header'}'` = yes; then
29757 cat >>confdefs.h <<_ACEOF
29758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29759_ACEOF
29760 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029761
29762else
29763 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029764
29765fi
29766
Reid Spencerbe3e4192007-08-17 05:45:26 +000029767done
Reid Spencer1000b732006-12-01 00:37:14 +000029768
29769else
29770 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029771
29772fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029773
29774
Reid Spencerb2ed05262006-11-03 18:04:08 +000029775
29776 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29777echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29778if test "${ac_cv_huge_val_sanity+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29780else
29781
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029782 ac_ext=cpp
29783ac_cpp='$CXXCPP $CPPFLAGS'
29784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029787
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029788 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029789 if test "$cross_compiling" = yes; then
29790 ac_cv_huge_val_sanity=yes
29791else
29792 cat >conftest.$ac_ext <<_ACEOF
29793/* confdefs.h. */
29794_ACEOF
29795cat confdefs.h >>conftest.$ac_ext
29796cat >>conftest.$ac_ext <<_ACEOF
29797/* end confdefs.h. */
29798#include <math.h>
29799int
29800main ()
29801{
29802double x = HUGE_VAL; return x != x;
29803 ;
29804 return 0;
29805}
29806_ACEOF
29807rm -f conftest$ac_exeext
29808if { (ac_try="$ac_link"
29809case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29812esac
29813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_link") 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29821esac
29822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_try") 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 ac_cv_huge_val_sanity=yes
29828else
29829 echo "$as_me: program exited with status $ac_status" >&5
29830echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
29833( exit $ac_status )
29834ac_cv_huge_val_sanity=no
29835fi
29836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29837fi
29838
29839
29840 ac_ext=c
29841ac_cpp='$CPP $CPPFLAGS'
29842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844ac_compiler_gnu=$ac_cv_c_compiler_gnu
29845
29846
29847fi
29848{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29849echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29850 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29851
29852
Reid Spencera773bd52006-08-04 18:18:08 +000029853{ echo "$as_me:$LINENO: checking for pid_t" >&5
29854echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029855if test "${ac_cv_type_pid_t+set}" = set; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29857else
29858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029859/* confdefs.h. */
29860_ACEOF
29861cat confdefs.h >>conftest.$ac_ext
29862cat >>conftest.$ac_ext <<_ACEOF
29863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029864$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029865typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029866int
29867main ()
29868{
Reid Spencera773bd52006-08-04 18:18:08 +000029869if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029870 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029871if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029872 return 0;
29873 ;
29874 return 0;
29875}
29876_ACEOF
29877rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029878if { (ac_try="$ac_compile"
29879case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29882esac
29883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029886 grep -v '^ *+' conftest.er1 >conftest.err
29887 rm -f conftest.er1
29888 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029890 (exit $ac_status); } &&
29891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29901 { ac_try='test -s conftest.$ac_objext'
29902 { (case "(($ac_try" in
29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904 *) ac_try_echo=$ac_try;;
29905esac
29906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907 (eval "$ac_try") 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029911 ac_cv_type_pid_t=yes
29912else
29913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029914sed 's/^/| /' conftest.$ac_ext >&5
29915
Reid Spencera773bd52006-08-04 18:18:08 +000029916 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029917fi
Reid Spencera773bd52006-08-04 18:18:08 +000029918
29919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029920fi
Reid Spencera773bd52006-08-04 18:18:08 +000029921{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29922echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029923if test $ac_cv_type_pid_t = yes; then
29924 :
29925else
29926
29927cat >>confdefs.h <<_ACEOF
29928#define pid_t int
29929_ACEOF
29930
29931fi
29932
Reid Spencera773bd52006-08-04 18:18:08 +000029933{ echo "$as_me:$LINENO: checking for size_t" >&5
29934echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029935if test "${ac_cv_type_size_t+set}" = set; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29937else
29938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029939/* confdefs.h. */
29940_ACEOF
29941cat confdefs.h >>conftest.$ac_ext
29942cat >>conftest.$ac_ext <<_ACEOF
29943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029944$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029945typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029946int
29947main ()
29948{
Reid Spencera773bd52006-08-04 18:18:08 +000029949if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029950 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029951if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029952 return 0;
29953 ;
29954 return 0;
29955}
29956_ACEOF
29957rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029958if { (ac_try="$ac_compile"
29959case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29962esac
29963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029966 grep -v '^ *+' conftest.er1 >conftest.err
29967 rm -f conftest.er1
29968 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029970 (exit $ac_status); } &&
29971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
29982 { (case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29985esac
29986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_try") 2>&5
29988 ac_status=$?
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029991 ac_cv_type_size_t=yes
29992else
29993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029994sed 's/^/| /' conftest.$ac_ext >&5
29995
Reid Spencera773bd52006-08-04 18:18:08 +000029996 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029997fi
Reid Spencera773bd52006-08-04 18:18:08 +000029998
29999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030000fi
Reid Spencera773bd52006-08-04 18:18:08 +000030001{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30002echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030003if test $ac_cv_type_size_t = yes; then
30004 :
30005else
30006
30007cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030008#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030009_ACEOF
30010
30011fi
30012
Reid Spencera773bd52006-08-04 18:18:08 +000030013{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30014echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030015if test "${ac_cv_type_signal+set}" = set; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30017else
30018 cat >conftest.$ac_ext <<_ACEOF
30019/* confdefs.h. */
30020_ACEOF
30021cat confdefs.h >>conftest.$ac_ext
30022cat >>conftest.$ac_ext <<_ACEOF
30023/* end confdefs.h. */
30024#include <sys/types.h>
30025#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030026
30027int
30028main ()
30029{
Reid Spencera773bd52006-08-04 18:18:08 +000030030return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030031 ;
30032 return 0;
30033}
30034_ACEOF
30035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030036if { (ac_try="$ac_compile"
30037case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040esac
30041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030048 (exit $ac_status); } &&
30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30059 { ac_try='test -s conftest.$ac_objext'
30060 { (case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30063esac
30064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_try") 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030069 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030070else
30071 echo "$as_me: failed program was:" >&5
30072sed 's/^/| /' conftest.$ac_ext >&5
30073
Reid Spencera773bd52006-08-04 18:18:08 +000030074 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030075fi
Reid Spencera773bd52006-08-04 18:18:08 +000030076
30077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030078fi
Reid Spencera773bd52006-08-04 18:18:08 +000030079{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30080echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030081
30082cat >>confdefs.h <<_ACEOF
30083#define RETSIGTYPE $ac_cv_type_signal
30084_ACEOF
30085
30086
Reid Spencera773bd52006-08-04 18:18:08 +000030087{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30088echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030089if test "${ac_cv_struct_tm+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30091else
30092 cat >conftest.$ac_ext <<_ACEOF
30093/* confdefs.h. */
30094_ACEOF
30095cat confdefs.h >>conftest.$ac_ext
30096cat >>conftest.$ac_ext <<_ACEOF
30097/* end confdefs.h. */
30098#include <sys/types.h>
30099#include <time.h>
30100
30101int
30102main ()
30103{
Tanya Lattnercf067672008-01-17 05:57:22 +000030104struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030105 ;
30106 return 0;
30107}
30108_ACEOF
30109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030110if { (ac_try="$ac_compile"
30111case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030117 ac_status=$?
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030122 (exit $ac_status); } &&
30123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30133 { ac_try='test -s conftest.$ac_objext'
30134 { (case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_try") 2>&5
30140 ac_status=$?
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030143 ac_cv_struct_tm=time.h
30144else
30145 echo "$as_me: failed program was:" >&5
30146sed 's/^/| /' conftest.$ac_ext >&5
30147
Reid Spencera773bd52006-08-04 18:18:08 +000030148 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030149fi
Reid Spencera773bd52006-08-04 18:18:08 +000030150
30151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030152fi
Reid Spencera773bd52006-08-04 18:18:08 +000030153{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30154echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030155if test $ac_cv_struct_tm = sys/time.h; then
30156
30157cat >>confdefs.h <<\_ACEOF
30158#define TM_IN_SYS_TIME 1
30159_ACEOF
30160
30161fi
30162
Reid Spencera773bd52006-08-04 18:18:08 +000030163{ echo "$as_me:$LINENO: checking for int64_t" >&5
30164echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030165if test "${ac_cv_type_int64_t+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30167else
30168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030169/* confdefs.h. */
30170_ACEOF
30171cat confdefs.h >>conftest.$ac_ext
30172cat >>conftest.$ac_ext <<_ACEOF
30173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030174$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030175typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030176int
30177main ()
30178{
Reid Spencera773bd52006-08-04 18:18:08 +000030179if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030180 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030181if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030182 return 0;
30183 ;
30184 return 0;
30185}
30186_ACEOF
30187rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030188if { (ac_try="$ac_compile"
30189case "(($ac_try" in
30190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191 *) ac_try_echo=$ac_try;;
30192esac
30193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030195 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030196 grep -v '^ *+' conftest.er1 >conftest.err
30197 rm -f conftest.er1
30198 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030200 (exit $ac_status); } &&
30201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30211 { ac_try='test -s conftest.$ac_objext'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_try") 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030221 ac_cv_type_int64_t=yes
30222else
30223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030224sed 's/^/| /' conftest.$ac_ext >&5
30225
Reid Spencera773bd52006-08-04 18:18:08 +000030226 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030227fi
Reid Spencera773bd52006-08-04 18:18:08 +000030228
30229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030230fi
Reid Spencera773bd52006-08-04 18:18:08 +000030231{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30232echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030233if test $ac_cv_type_int64_t = yes; then
30234
30235cat >>confdefs.h <<_ACEOF
30236#define HAVE_INT64_T 1
30237_ACEOF
30238
30239
30240else
30241 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30242echo "$as_me: error: Type int64_t required but not found" >&2;}
30243 { (exit 1); exit 1; }; }
30244fi
30245
Reid Spencera773bd52006-08-04 18:18:08 +000030246{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30247echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030248if test "${ac_cv_type_uint64_t+set}" = set; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30250else
30251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030252/* confdefs.h. */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030257$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030258typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030259int
30260main ()
30261{
Reid Spencera773bd52006-08-04 18:18:08 +000030262if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030263 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030264if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030265 return 0;
30266 ;
30267 return 0;
30268}
30269_ACEOF
30270rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030271if { (ac_try="$ac_compile"
30272case "(($ac_try" in
30273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30275esac
30276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30277 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030278 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030279 grep -v '^ *+' conftest.er1 >conftest.err
30280 rm -f conftest.er1
30281 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030283 (exit $ac_status); } &&
30284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30294 { ac_try='test -s conftest.$ac_objext'
30295 { (case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30298esac
30299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300 (eval "$ac_try") 2>&5
30301 ac_status=$?
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030304 ac_cv_type_uint64_t=yes
30305else
30306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030307sed 's/^/| /' conftest.$ac_ext >&5
30308
Reid Spencera773bd52006-08-04 18:18:08 +000030309 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030310fi
Reid Spencera773bd52006-08-04 18:18:08 +000030311
30312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030313fi
Reid Spencera773bd52006-08-04 18:18:08 +000030314{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30315echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030316if test $ac_cv_type_uint64_t = yes; then
30317
30318cat >>confdefs.h <<_ACEOF
30319#define HAVE_UINT64_T 1
30320_ACEOF
30321
30322
30323else
Reid Spencera773bd52006-08-04 18:18:08 +000030324 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30325echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030326if test "${ac_cv_type_u_int64_t+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30328else
30329 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030330/* confdefs.h. */
30331_ACEOF
30332cat confdefs.h >>conftest.$ac_ext
30333cat >>conftest.$ac_ext <<_ACEOF
30334/* end confdefs.h. */
30335$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030336typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030337int
30338main ()
30339{
Reid Spencera773bd52006-08-04 18:18:08 +000030340if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030341 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030342if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030343 return 0;
30344 ;
30345 return 0;
30346}
30347_ACEOF
30348rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030349if { (ac_try="$ac_compile"
30350case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30353esac
30354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030357 grep -v '^ *+' conftest.er1 >conftest.err
30358 rm -f conftest.er1
30359 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030361 (exit $ac_status); } &&
30362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
30373 { (case "(($ac_try" in
30374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375 *) ac_try_echo=$ac_try;;
30376esac
30377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378 (eval "$ac_try") 2>&5
30379 ac_status=$?
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030382 ac_cv_type_u_int64_t=yes
30383else
30384 echo "$as_me: failed program was:" >&5
30385sed 's/^/| /' conftest.$ac_ext >&5
30386
Reid Spencera773bd52006-08-04 18:18:08 +000030387 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030388fi
Reid Spencera773bd52006-08-04 18:18:08 +000030389
30390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030391fi
Reid Spencera773bd52006-08-04 18:18:08 +000030392{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30393echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030394if test $ac_cv_type_u_int64_t = yes; then
30395
30396cat >>confdefs.h <<_ACEOF
30397#define HAVE_U_INT64_T 1
30398_ACEOF
30399
30400
Misha Brukmanceca9042004-09-02 23:02:30 +000030401else
30402 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30403echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30404 { (exit 1); exit 1; }; }
30405fi
30406
John Criswell679ff312004-09-02 18:44:44 +000030407fi
30408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030409
30410
30411
30412
30413
30414
30415
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030416
30417
Reid Spencerdf3be822006-01-23 08:15:53 +000030418for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030419do
30420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30434#define $ac_func innocuous_$ac_func
30435
30436/* System header to define __stub macros and hopefully few prototypes,
30437 which can conflict with char $ac_func (); below.
30438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30439 <limits.h> exists even on freestanding compilers. */
30440
30441#ifdef __STDC__
30442# include <limits.h>
30443#else
30444# include <assert.h>
30445#endif
30446
30447#undef $ac_func
30448
Reid Spencera773bd52006-08-04 18:18:08 +000030449/* Override any GCC internal prototype to avoid an error.
30450 Use char because int might match the return type of a GCC
30451 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030452#ifdef __cplusplus
30453extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455char $ac_func ();
30456/* The GNU C library defines this for functions which it implements
30457 to always fail with ENOSYS. Some functions are actually named
30458 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030459#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030460choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030461#endif
John Criswell7a73b802003-06-30 21:59:07 +000030462
John Criswell7a73b802003-06-30 21:59:07 +000030463int
30464main ()
30465{
Reid Spencera773bd52006-08-04 18:18:08 +000030466return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030467 ;
30468 return 0;
30469}
30470_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030472if { (ac_try="$ac_link"
30473case "(($ac_try" in
30474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475 *) ac_try_echo=$ac_try;;
30476esac
30477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030479 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030480 grep -v '^ *+' conftest.er1 >conftest.err
30481 rm -f conftest.er1
30482 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030484 (exit $ac_status); } &&
30485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30495 { ac_try='test -s conftest$ac_exeext'
30496 { (case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30499esac
30500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_try") 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030505 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030506else
30507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030508sed 's/^/| /' conftest.$ac_ext >&5
30509
Reid Spencera773bd52006-08-04 18:18:08 +000030510 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030511fi
Reid Spencera773bd52006-08-04 18:18:08 +000030512
Tanya Lattnercf067672008-01-17 05:57:22 +000030513rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030514 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030515fi
Reid Spencera773bd52006-08-04 18:18:08 +000030516ac_res=`eval echo '${'$as_ac_var'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519if test `eval echo '${'$as_ac_var'}'` = yes; then
30520 cat >>confdefs.h <<_ACEOF
30521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030522_ACEOF
30523
30524fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030525done
John Criswell7a73b802003-06-30 21:59:07 +000030526
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030527
30528
30529
Reid Spencer6af3d262004-12-15 04:01:48 +000030530
Reid Spencer96cf5872007-07-13 10:05:30 +000030531for ac_func in powf fmodf strtof round
30532do
30533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30538else
30539 cat >conftest.$ac_ext <<_ACEOF
30540/* confdefs.h. */
30541_ACEOF
30542cat confdefs.h >>conftest.$ac_ext
30543cat >>conftest.$ac_ext <<_ACEOF
30544/* end confdefs.h. */
30545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30547#define $ac_func innocuous_$ac_func
30548
30549/* System header to define __stub macros and hopefully few prototypes,
30550 which can conflict with char $ac_func (); below.
30551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30552 <limits.h> exists even on freestanding compilers. */
30553
30554#ifdef __STDC__
30555# include <limits.h>
30556#else
30557# include <assert.h>
30558#endif
30559
30560#undef $ac_func
30561
30562/* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30565#ifdef __cplusplus
30566extern "C"
30567#endif
30568char $ac_func ();
30569/* The GNU C library defines this for functions which it implements
30570 to always fail with ENOSYS. Some functions are actually named
30571 something starting with __ and the normal name is an alias. */
30572#if defined __stub_$ac_func || defined __stub___$ac_func
30573choke me
30574#endif
30575
30576int
30577main ()
30578{
30579return $ac_func ();
30580 ;
30581 return 0;
30582}
30583_ACEOF
30584rm -f conftest.$ac_objext conftest$ac_exeext
30585if { (ac_try="$ac_link"
30586case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589esac
30590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30608 { ac_try='test -s conftest$ac_exeext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30612esac
30613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030618 eval "$as_ac_var=yes"
30619else
30620 echo "$as_me: failed program was:" >&5
30621sed 's/^/| /' conftest.$ac_ext >&5
30622
30623 eval "$as_ac_var=no"
30624fi
30625
Tanya Lattnercf067672008-01-17 05:57:22 +000030626rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030627 conftest$ac_exeext conftest.$ac_ext
30628fi
30629ac_res=`eval echo '${'$as_ac_var'}'`
30630 { echo "$as_me:$LINENO: result: $ac_res" >&5
30631echo "${ECHO_T}$ac_res" >&6; }
30632if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635_ACEOF
30636
30637fi
30638done
30639
30640
30641
30642
30643
Reid Spencer6af3d262004-12-15 04:01:48 +000030644
Reid Spencerb90645c2007-02-16 19:17:20 +000030645for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30646do
30647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30651 echo $ECHO_N "(cached) $ECHO_C" >&6
30652else
30653 cat >conftest.$ac_ext <<_ACEOF
30654/* confdefs.h. */
30655_ACEOF
30656cat confdefs.h >>conftest.$ac_ext
30657cat >>conftest.$ac_ext <<_ACEOF
30658/* end confdefs.h. */
30659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30661#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030662
Reid Spencerb90645c2007-02-16 19:17:20 +000030663/* System header to define __stub macros and hopefully few prototypes,
30664 which can conflict with char $ac_func (); below.
30665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30666 <limits.h> exists even on freestanding compilers. */
30667
30668#ifdef __STDC__
30669# include <limits.h>
30670#else
30671# include <assert.h>
30672#endif
30673
30674#undef $ac_func
30675
30676/* Override any GCC internal prototype to avoid an error.
30677 Use char because int might match the return type of a GCC
30678 builtin and then its argument prototype would still apply. */
30679#ifdef __cplusplus
30680extern "C"
30681#endif
30682char $ac_func ();
30683/* The GNU C library defines this for functions which it implements
30684 to always fail with ENOSYS. Some functions are actually named
30685 something starting with __ and the normal name is an alias. */
30686#if defined __stub_$ac_func || defined __stub___$ac_func
30687choke me
30688#endif
30689
30690int
30691main ()
30692{
30693return $ac_func ();
30694 ;
30695 return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext conftest$ac_exeext
30699if { (ac_try="$ac_link"
30700case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703esac
30704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_link") 2>conftest.er1
30706 ac_status=$?
30707 grep -v '^ *+' conftest.er1 >conftest.err
30708 rm -f conftest.er1
30709 cat conftest.err >&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030711 (exit $ac_status); } &&
30712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30722 { ac_try='test -s conftest$ac_exeext'
30723 { (case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30726esac
30727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_try") 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030732 eval "$as_ac_var=yes"
30733else
30734 echo "$as_me: failed program was:" >&5
30735sed 's/^/| /' conftest.$ac_ext >&5
30736
30737 eval "$as_ac_var=no"
30738fi
30739
Tanya Lattnercf067672008-01-17 05:57:22 +000030740rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030741 conftest$ac_exeext conftest.$ac_ext
30742fi
30743ac_res=`eval echo '${'$as_ac_var'}'`
30744 { echo "$as_me:$LINENO: result: $ac_res" >&5
30745echo "${ECHO_T}$ac_res" >&6; }
30746if test `eval echo '${'$as_ac_var'}'` = yes; then
30747 cat >>confdefs.h <<_ACEOF
30748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30749_ACEOF
30750
30751fi
30752done
30753
30754
30755
30756
30757for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030758do
30759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030763 echo $ECHO_N "(cached) $ECHO_C" >&6
30764else
30765 cat >conftest.$ac_ext <<_ACEOF
30766/* confdefs.h. */
30767_ACEOF
30768cat confdefs.h >>conftest.$ac_ext
30769cat >>conftest.$ac_ext <<_ACEOF
30770/* end confdefs.h. */
30771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30773#define $ac_func innocuous_$ac_func
30774
30775/* System header to define __stub macros and hopefully few prototypes,
30776 which can conflict with char $ac_func (); below.
30777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30778 <limits.h> exists even on freestanding compilers. */
30779
30780#ifdef __STDC__
30781# include <limits.h>
30782#else
30783# include <assert.h>
30784#endif
30785
30786#undef $ac_func
30787
Reid Spencera773bd52006-08-04 18:18:08 +000030788/* Override any GCC internal prototype to avoid an error.
30789 Use char because int might match the return type of a GCC
30790 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030791#ifdef __cplusplus
30792extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030793#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030794char $ac_func ();
30795/* The GNU C library defines this for functions which it implements
30796 to always fail with ENOSYS. Some functions are actually named
30797 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030798#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030799choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030800#endif
30801
30802int
30803main ()
30804{
Reid Spencera773bd52006-08-04 18:18:08 +000030805return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030806 ;
30807 return 0;
30808}
30809_ACEOF
30810rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030811if { (ac_try="$ac_link"
30812case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30815esac
30816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030818 ac_status=$?
30819 grep -v '^ *+' conftest.er1 >conftest.err
30820 rm -f conftest.er1
30821 cat conftest.err >&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030823 (exit $ac_status); } &&
30824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30834 { ac_try='test -s conftest$ac_exeext'
30835 { (case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30838esac
30839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_try") 2>&5
30841 ac_status=$?
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030844 eval "$as_ac_var=yes"
30845else
30846 echo "$as_me: failed program was:" >&5
30847sed 's/^/| /' conftest.$ac_ext >&5
30848
Reid Spencera773bd52006-08-04 18:18:08 +000030849 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030850fi
Reid Spencera773bd52006-08-04 18:18:08 +000030851
Tanya Lattnercf067672008-01-17 05:57:22 +000030852rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030853 conftest$ac_exeext conftest.$ac_ext
30854fi
Reid Spencera773bd52006-08-04 18:18:08 +000030855ac_res=`eval echo '${'$as_ac_var'}'`
30856 { echo "$as_me:$LINENO: result: $ac_res" >&5
30857echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030858if test `eval echo '${'$as_ac_var'}'` = yes; then
30859 cat >>confdefs.h <<_ACEOF
30860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30861_ACEOF
30862
30863fi
30864done
30865
30866
30867
30868
30869
30870
30871
30872
30873for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030874do
30875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030879 echo $ECHO_N "(cached) $ECHO_C" >&6
30880else
30881 cat >conftest.$ac_ext <<_ACEOF
30882/* confdefs.h. */
30883_ACEOF
30884cat confdefs.h >>conftest.$ac_ext
30885cat >>conftest.$ac_ext <<_ACEOF
30886/* end confdefs.h. */
30887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30889#define $ac_func innocuous_$ac_func
30890
30891/* System header to define __stub macros and hopefully few prototypes,
30892 which can conflict with char $ac_func (); below.
30893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30894 <limits.h> exists even on freestanding compilers. */
30895
30896#ifdef __STDC__
30897# include <limits.h>
30898#else
30899# include <assert.h>
30900#endif
30901
30902#undef $ac_func
30903
Reid Spencera773bd52006-08-04 18:18:08 +000030904/* Override any GCC internal prototype to avoid an error.
30905 Use char because int might match the return type of a GCC
30906 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030907#ifdef __cplusplus
30908extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030909#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030910char $ac_func ();
30911/* The GNU C library defines this for functions which it implements
30912 to always fail with ENOSYS. Some functions are actually named
30913 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030914#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030915choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030916#endif
30917
30918int
30919main ()
30920{
Reid Spencera773bd52006-08-04 18:18:08 +000030921return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030922 ;
30923 return 0;
30924}
30925_ACEOF
30926rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030927if { (ac_try="$ac_link"
30928case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30931esac
30932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030934 ac_status=$?
30935 grep -v '^ *+' conftest.er1 >conftest.err
30936 rm -f conftest.er1
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30950 { ac_try='test -s conftest$ac_exeext'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030960 eval "$as_ac_var=yes"
30961else
30962 echo "$as_me: failed program was:" >&5
30963sed 's/^/| /' conftest.$ac_ext >&5
30964
Reid Spencera773bd52006-08-04 18:18:08 +000030965 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030966fi
Reid Spencera773bd52006-08-04 18:18:08 +000030967
Tanya Lattnercf067672008-01-17 05:57:22 +000030968rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030969 conftest$ac_exeext conftest.$ac_ext
30970fi
Reid Spencera773bd52006-08-04 18:18:08 +000030971ac_res=`eval echo '${'$as_ac_var'}'`
30972 { echo "$as_me:$LINENO: result: $ac_res" >&5
30973echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030974if test `eval echo '${'$as_ac_var'}'` = yes; then
30975 cat >>confdefs.h <<_ACEOF
30976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30977_ACEOF
30978
30979fi
30980done
30981
30982
Reid Spencerba46ca32004-12-31 05:49:15 +000030983
30984
Chris Lattner0b142592005-11-14 06:57:34 +000030985
Chris Lattner511f11d2005-11-14 07:25:50 +000030986for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030987do
30988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030992 echo $ECHO_N "(cached) $ECHO_C" >&6
30993else
30994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030995/* confdefs.h. */
30996_ACEOF
30997cat confdefs.h >>conftest.$ac_ext
30998cat >>conftest.$ac_ext <<_ACEOF
30999/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31002#define $ac_func innocuous_$ac_func
31003
31004/* System header to define __stub macros and hopefully few prototypes,
31005 which can conflict with char $ac_func (); below.
31006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31007 <limits.h> exists even on freestanding compilers. */
31008
31009#ifdef __STDC__
31010# include <limits.h>
31011#else
31012# include <assert.h>
31013#endif
31014
31015#undef $ac_func
31016
Reid Spencera773bd52006-08-04 18:18:08 +000031017/* Override any GCC internal prototype to avoid an error.
31018 Use char because int might match the return type of a GCC
31019 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031020#ifdef __cplusplus
31021extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023char $ac_func ();
31024/* The GNU C library defines this for functions which it implements
31025 to always fail with ENOSYS. Some functions are actually named
31026 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031027#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031028choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031029#endif
John Criswell7a73b802003-06-30 21:59:07 +000031030
John Criswell7a73b802003-06-30 21:59:07 +000031031int
31032main ()
31033{
Reid Spencera773bd52006-08-04 18:18:08 +000031034return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031035 ;
31036 return 0;
31037}
31038_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031040if { (ac_try="$ac_link"
31041case "(($ac_try" in
31042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043 *) ac_try_echo=$ac_try;;
31044esac
31045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031048 grep -v '^ *+' conftest.er1 >conftest.err
31049 rm -f conftest.er1
31050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031052 (exit $ac_status); } &&
31053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31063 { ac_try='test -s conftest$ac_exeext'
31064 { (case "(($ac_try" in
31065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31066 *) ac_try_echo=$ac_try;;
31067esac
31068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31069 (eval "$ac_try") 2>&5
31070 ac_status=$?
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031073 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031074else
31075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031076sed 's/^/| /' conftest.$ac_ext >&5
31077
Reid Spencera773bd52006-08-04 18:18:08 +000031078 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031079fi
Reid Spencera773bd52006-08-04 18:18:08 +000031080
Tanya Lattnercf067672008-01-17 05:57:22 +000031081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031082 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031083fi
Reid Spencera773bd52006-08-04 18:18:08 +000031084ac_res=`eval echo '${'$as_ac_var'}'`
31085 { echo "$as_me:$LINENO: result: $ac_res" >&5
31086echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031087if test `eval echo '${'$as_ac_var'}'` = yes; then
31088 cat >>confdefs.h <<_ACEOF
31089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031090_ACEOF
31091
31092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031093done
John Criswell7a73b802003-06-30 21:59:07 +000031094
Reid Spencercdb08a32006-06-05 16:11:07 +000031095
31096
31097
31098
Reid Spencerafa22e22006-12-10 23:29:19 +000031099for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031100do
31101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031105 echo $ECHO_N "(cached) $ECHO_C" >&6
31106else
31107 cat >conftest.$ac_ext <<_ACEOF
31108/* confdefs.h. */
31109_ACEOF
31110cat confdefs.h >>conftest.$ac_ext
31111cat >>conftest.$ac_ext <<_ACEOF
31112/* end confdefs.h. */
31113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31115#define $ac_func innocuous_$ac_func
31116
31117/* System header to define __stub macros and hopefully few prototypes,
31118 which can conflict with char $ac_func (); below.
31119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31120 <limits.h> exists even on freestanding compilers. */
31121
31122#ifdef __STDC__
31123# include <limits.h>
31124#else
31125# include <assert.h>
31126#endif
31127
31128#undef $ac_func
31129
Reid Spencera773bd52006-08-04 18:18:08 +000031130/* Override any GCC internal prototype to avoid an error.
31131 Use char because int might match the return type of a GCC
31132 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031133#ifdef __cplusplus
31134extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031135#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031136char $ac_func ();
31137/* The GNU C library defines this for functions which it implements
31138 to always fail with ENOSYS. Some functions are actually named
31139 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031140#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031141choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031142#endif
31143
31144int
31145main ()
31146{
Reid Spencera773bd52006-08-04 18:18:08 +000031147return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031148 ;
31149 return 0;
31150}
31151_ACEOF
31152rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031153if { (ac_try="$ac_link"
31154case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31157esac
31158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031160 ac_status=$?
31161 grep -v '^ *+' conftest.er1 >conftest.err
31162 rm -f conftest.er1
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031165 (exit $ac_status); } &&
31166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31176 { ac_try='test -s conftest$ac_exeext'
31177 { (case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31180esac
31181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_try") 2>&5
31183 ac_status=$?
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031186 eval "$as_ac_var=yes"
31187else
31188 echo "$as_me: failed program was:" >&5
31189sed 's/^/| /' conftest.$ac_ext >&5
31190
Reid Spencera773bd52006-08-04 18:18:08 +000031191 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031192fi
Reid Spencera773bd52006-08-04 18:18:08 +000031193
Tanya Lattnercf067672008-01-17 05:57:22 +000031194rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031195 conftest$ac_exeext conftest.$ac_ext
31196fi
Reid Spencera773bd52006-08-04 18:18:08 +000031197ac_res=`eval echo '${'$as_ac_var'}'`
31198 { echo "$as_me:$LINENO: result: $ac_res" >&5
31199echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031200if test `eval echo '${'$as_ac_var'}'` = yes; then
31201 cat >>confdefs.h <<_ACEOF
31202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31203_ACEOF
31204
31205fi
31206done
31207
Reid Spencera773bd52006-08-04 18:18:08 +000031208{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31209echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031210if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031211 echo $ECHO_N "(cached) $ECHO_C" >&6
31212else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031213 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031214ac_cpp='$CPP $CPPFLAGS'
31215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31217ac_compiler_gnu=$ac_cv_c_compiler_gnu
31218
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031219 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031220 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031221else
31222 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031223
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031224 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031225_ACEOF
31226cat confdefs.h >>conftest.$ac_ext
31227cat >>conftest.$ac_ext <<_ACEOF
31228/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031229
John Criswella0137d32003-10-13 16:22:01 +000031230#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031231#include <stdlib.h>
31232
John Criswella0137d32003-10-13 16:22:01 +000031233int
31234main ()
31235{
31236
Reid Spencer2706f8c2004-09-19 23:53:36 +000031237volatile double A, B;
31238char Buffer[100];
31239A = 1;
31240A /= 10.0;
31241sprintf(Buffer, "%a", A);
31242B = atof(Buffer);
31243if (A != B)
31244 return (1);
31245if (A != 0x1.999999999999ap-4)
31246 return (1);
31247return (0);
John Criswella0137d32003-10-13 16:22:01 +000031248 ;
31249 return 0;
31250}
31251_ACEOF
31252rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031253if { (ac_try="$ac_link"
31254case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31257esac
31258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031263 { (case "(($ac_try" in
31264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265 *) ac_try_echo=$ac_try;;
31266esac
31267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31268 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031269 ac_status=$?
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031272 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031273else
31274 echo "$as_me: program exited with status $ac_status" >&5
31275echo "$as_me: failed program was:" >&5
31276sed 's/^/| /' conftest.$ac_ext >&5
31277
31278( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031279llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031280fi
Reid Spencera773bd52006-08-04 18:18:08 +000031281rm -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 +000031282fi
Reid Spencera773bd52006-08-04 18:18:08 +000031283
31284
Reid Spencer2706f8c2004-09-19 23:53:36 +000031285 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031286ac_cpp='$CPP $CPPFLAGS'
31287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31289ac_compiler_gnu=$ac_cv_c_compiler_gnu
31290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031291fi
Reid Spencera773bd52006-08-04 18:18:08 +000031292{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31293echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031294 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031295
31296cat >>confdefs.h <<\_ACEOF
31297#define HAVE_PRINTF_A 1
31298_ACEOF
31299
Reid Spencer2706f8c2004-09-19 23:53:36 +000031300 fi
John Criswella0137d32003-10-13 16:22:01 +000031301
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031302# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31303# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031304{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31305echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031307 echo $ECHO_N "(cached) $ECHO_C" >&6
31308else
John Criswell0021c312004-02-13 21:57:29 +000031309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031310/* confdefs.h. */
31311_ACEOF
31312cat confdefs.h >>conftest.$ac_ext
31313cat >>conftest.$ac_ext <<_ACEOF
31314/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031316int
31317main ()
31318{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031319char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031320 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031321 ;
31322 return 0;
31323}
31324_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031325rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031326if { (ac_try="$ac_link"
31327case "(($ac_try" in
31328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329 *) ac_try_echo=$ac_try;;
31330esac
31331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031334 grep -v '^ *+' conftest.er1 >conftest.err
31335 rm -f conftest.er1
31336 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031338 (exit $ac_status); } &&
31339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31349 { ac_try='test -s conftest$ac_exeext'
31350 { (case "(($ac_try" in
31351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352 *) ac_try_echo=$ac_try;;
31353esac
31354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355 (eval "$ac_try") 2>&5
31356 ac_status=$?
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031359 ac_cv_working_alloca_h=yes
31360else
31361 echo "$as_me: failed program was:" >&5
31362sed 's/^/| /' conftest.$ac_ext >&5
31363
Reid Spencera773bd52006-08-04 18:18:08 +000031364 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031365fi
Reid Spencera773bd52006-08-04 18:18:08 +000031366
Tanya Lattnercf067672008-01-17 05:57:22 +000031367rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031368 conftest$ac_exeext conftest.$ac_ext
31369fi
Reid Spencera773bd52006-08-04 18:18:08 +000031370{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31371echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031372if test $ac_cv_working_alloca_h = yes; then
31373
31374cat >>confdefs.h <<\_ACEOF
31375#define HAVE_ALLOCA_H 1
31376_ACEOF
31377
31378fi
31379
Reid Spencera773bd52006-08-04 18:18:08 +000031380{ echo "$as_me:$LINENO: checking for alloca" >&5
31381echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382if test "${ac_cv_func_alloca_works+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385 cat >conftest.$ac_ext <<_ACEOF
31386/* confdefs.h. */
31387_ACEOF
31388cat confdefs.h >>conftest.$ac_ext
31389cat >>conftest.$ac_ext <<_ACEOF
31390/* end confdefs.h. */
31391#ifdef __GNUC__
31392# define alloca __builtin_alloca
31393#else
31394# ifdef _MSC_VER
31395# include <malloc.h>
31396# define alloca _alloca
31397# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031398# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399# include <alloca.h>
31400# else
31401# ifdef _AIX
31402 #pragma alloca
31403# else
31404# ifndef alloca /* predefined by HP cc +Olibcalls */
31405char *alloca ();
31406# endif
31407# endif
31408# endif
31409# endif
31410#endif
31411
31412int
31413main ()
31414{
31415char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031416 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031417 ;
31418 return 0;
31419}
31420_ACEOF
31421rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031422if { (ac_try="$ac_link"
31423case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426esac
31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031429 ac_status=$?
31430 grep -v '^ *+' conftest.er1 >conftest.err
31431 rm -f conftest.er1
31432 cat conftest.err >&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031434 (exit $ac_status); } &&
31435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31445 { ac_try='test -s conftest$ac_exeext'
31446 { (case "(($ac_try" in
31447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448 *) ac_try_echo=$ac_try;;
31449esac
31450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451 (eval "$ac_try") 2>&5
31452 ac_status=$?
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031455 ac_cv_func_alloca_works=yes
31456else
31457 echo "$as_me: failed program was:" >&5
31458sed 's/^/| /' conftest.$ac_ext >&5
31459
Reid Spencera773bd52006-08-04 18:18:08 +000031460 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031461fi
Reid Spencera773bd52006-08-04 18:18:08 +000031462
Tanya Lattnercf067672008-01-17 05:57:22 +000031463rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031464 conftest$ac_exeext conftest.$ac_ext
31465fi
Reid Spencera773bd52006-08-04 18:18:08 +000031466{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31467echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031468
31469if test $ac_cv_func_alloca_works = yes; then
31470
31471cat >>confdefs.h <<\_ACEOF
31472#define HAVE_ALLOCA 1
31473_ACEOF
31474
31475else
31476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31477# that cause trouble. Some versions do not even contain alloca or
31478# contain a buggy version. If you still want to use their alloca,
31479# use ar to extract alloca.o from them instead of compiling alloca.c.
31480
Reid Spencera773bd52006-08-04 18:18:08 +000031481ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031482
31483cat >>confdefs.h <<\_ACEOF
31484#define C_ALLOCA 1
31485_ACEOF
31486
31487
Reid Spencera773bd52006-08-04 18:18:08 +000031488{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31489echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490if test "${ac_cv_os_cray+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493 cat >conftest.$ac_ext <<_ACEOF
31494/* confdefs.h. */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031499#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031500webecray
31501#else
31502wenotbecray
31503#endif
31504
31505_ACEOF
31506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31507 $EGREP "webecray" >/dev/null 2>&1; then
31508 ac_cv_os_cray=yes
31509else
31510 ac_cv_os_cray=no
31511fi
31512rm -f conftest*
31513
31514fi
Reid Spencera773bd52006-08-04 18:18:08 +000031515{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31516echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031517if test $ac_cv_os_cray = yes; then
31518 for ac_func in _getb67 GETB67 getb67; do
31519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031523 echo $ECHO_N "(cached) $ECHO_C" >&6
31524else
31525 cat >conftest.$ac_ext <<_ACEOF
31526/* confdefs.h. */
31527_ACEOF
31528cat confdefs.h >>conftest.$ac_ext
31529cat >>conftest.$ac_ext <<_ACEOF
31530/* end confdefs.h. */
31531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31533#define $ac_func innocuous_$ac_func
31534
31535/* System header to define __stub macros and hopefully few prototypes,
31536 which can conflict with char $ac_func (); below.
31537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31538 <limits.h> exists even on freestanding compilers. */
31539
31540#ifdef __STDC__
31541# include <limits.h>
31542#else
31543# include <assert.h>
31544#endif
31545
31546#undef $ac_func
31547
Reid Spencera773bd52006-08-04 18:18:08 +000031548/* Override any GCC internal prototype to avoid an error.
31549 Use char because int might match the return type of a GCC
31550 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031551#ifdef __cplusplus
31552extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031553#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031554char $ac_func ();
31555/* The GNU C library defines this for functions which it implements
31556 to always fail with ENOSYS. Some functions are actually named
31557 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031558#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031559choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031560#endif
31561
31562int
31563main ()
31564{
Reid Spencera773bd52006-08-04 18:18:08 +000031565return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031566 ;
31567 return 0;
31568}
31569_ACEOF
31570rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031571if { (ac_try="$ac_link"
31572case "(($ac_try" in
31573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574 *) ac_try_echo=$ac_try;;
31575esac
31576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31577 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031578 ac_status=$?
31579 grep -v '^ *+' conftest.er1 >conftest.err
31580 rm -f conftest.er1
31581 cat conftest.err >&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031583 (exit $ac_status); } &&
31584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31594 { ac_try='test -s conftest$ac_exeext'
31595 { (case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31598esac
31599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_try") 2>&5
31601 ac_status=$?
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031604 eval "$as_ac_var=yes"
31605else
31606 echo "$as_me: failed program was:" >&5
31607sed 's/^/| /' conftest.$ac_ext >&5
31608
Reid Spencera773bd52006-08-04 18:18:08 +000031609 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031610fi
Reid Spencera773bd52006-08-04 18:18:08 +000031611
Tanya Lattnercf067672008-01-17 05:57:22 +000031612rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031613 conftest$ac_exeext conftest.$ac_ext
31614fi
Reid Spencera773bd52006-08-04 18:18:08 +000031615ac_res=`eval echo '${'$as_ac_var'}'`
31616 { echo "$as_me:$LINENO: result: $ac_res" >&5
31617echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618if test `eval echo '${'$as_ac_var'}'` = yes; then
31619
31620cat >>confdefs.h <<_ACEOF
31621#define CRAY_STACKSEG_END $ac_func
31622_ACEOF
31623
31624 break
31625fi
31626
31627 done
31628fi
31629
Reid Spencera773bd52006-08-04 18:18:08 +000031630{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31631echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031632if test "${ac_cv_c_stack_direction+set}" = set; then
31633 echo $ECHO_N "(cached) $ECHO_C" >&6
31634else
31635 if test "$cross_compiling" = yes; then
31636 ac_cv_c_stack_direction=0
31637else
31638 cat >conftest.$ac_ext <<_ACEOF
31639/* confdefs.h. */
31640_ACEOF
31641cat confdefs.h >>conftest.$ac_ext
31642cat >>conftest.$ac_ext <<_ACEOF
31643/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031644$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031645int
31646find_stack_direction ()
31647{
31648 static char *addr = 0;
31649 auto char dummy;
31650 if (addr == 0)
31651 {
31652 addr = &dummy;
31653 return find_stack_direction ();
31654 }
John Criswell0021c312004-02-13 21:57:29 +000031655 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031656 return (&dummy > addr) ? 1 : -1;
31657}
John Criswell0021c312004-02-13 21:57:29 +000031658
John Criswell0021c312004-02-13 21:57:29 +000031659int
31660main ()
31661{
Reid Spencera773bd52006-08-04 18:18:08 +000031662 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031663}
31664_ACEOF
31665rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031666if { (ac_try="$ac_link"
31667case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31670esac
31671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031673 ac_status=$?
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31679esac
31680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031682 ac_status=$?
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031686else
31687 echo "$as_me: program exited with status $ac_status" >&5
31688echo "$as_me: failed program was:" >&5
31689sed 's/^/| /' conftest.$ac_ext >&5
31690
31691( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031693fi
Reid Spencera773bd52006-08-04 18:18:08 +000031694rm -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 +000031695fi
Reid Spencera773bd52006-08-04 18:18:08 +000031696
31697
John Criswell0021c312004-02-13 21:57:29 +000031698fi
Reid Spencera773bd52006-08-04 18:18:08 +000031699{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31700echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701
31702cat >>confdefs.h <<_ACEOF
31703#define STACK_DIRECTION $ac_cv_c_stack_direction
31704_ACEOF
31705
31706
John Criswell0021c312004-02-13 21:57:29 +000031707fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708
31709
Reid Spencera773bd52006-08-04 18:18:08 +000031710{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31711echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031712if test "${ac_cv_func_rand48+set}" = set; then
31713 echo $ECHO_N "(cached) $ECHO_C" >&6
31714else
Reid Spencera773bd52006-08-04 18:18:08 +000031715 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031716ac_cpp='$CXXCPP $CPPFLAGS'
31717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31720
31721 cat >conftest.$ac_ext <<_ACEOF
31722/* confdefs.h. */
31723_ACEOF
31724cat confdefs.h >>conftest.$ac_ext
31725cat >>conftest.$ac_ext <<_ACEOF
31726/* end confdefs.h. */
31727#include <stdlib.h>
31728int
31729main ()
31730{
31731srand48(0);lrand48();drand48();
31732 ;
31733 return 0;
31734}
31735_ACEOF
31736rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031737if { (ac_try="$ac_compile"
31738case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31741esac
31742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031744 ac_status=$?
31745 grep -v '^ *+' conftest.er1 >conftest.err
31746 rm -f conftest.er1
31747 cat conftest.err >&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031749 (exit $ac_status); } &&
31750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31760 { ac_try='test -s conftest.$ac_objext'
31761 { (case "(($ac_try" in
31762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31763 *) ac_try_echo=$ac_try;;
31764esac
31765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31766 (eval "$ac_try") 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770 ac_cv_func_rand48=yes
31771else
31772 echo "$as_me: failed program was:" >&5
31773sed 's/^/| /' conftest.$ac_ext >&5
31774
Reid Spencera773bd52006-08-04 18:18:08 +000031775 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031776fi
Reid Spencera773bd52006-08-04 18:18:08 +000031777
31778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779 ac_ext=c
31780ac_cpp='$CPP $CPPFLAGS'
31781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31783ac_compiler_gnu=$ac_cv_c_compiler_gnu
31784
31785fi
Reid Spencera773bd52006-08-04 18:18:08 +000031786{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31787echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031788
31789if test "$ac_cv_func_rand48" = "yes" ; then
31790
31791cat >>confdefs.h <<\_ACEOF
31792#define HAVE_RAND48 1
31793_ACEOF
31794
31795fi
John Criswell0021c312004-02-13 21:57:29 +000031796
31797
Reid Spencera773bd52006-08-04 18:18:08 +000031798{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31799echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031800if test "${ac_cv_cxx_namespaces+set}" = set; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31802else
Reid Spencera773bd52006-08-04 18:18:08 +000031803 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031804ac_cpp='$CXXCPP $CPPFLAGS'
31805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31808
31809 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031810/* confdefs.h. */
31811_ACEOF
31812cat confdefs.h >>conftest.$ac_ext
31813cat >>conftest.$ac_ext <<_ACEOF
31814/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031815namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031816int
31817main ()
31818{
31819using namespace Outer::Inner; return i;
31820 ;
31821 return 0;
31822}
31823_ACEOF
31824rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031825if { (ac_try="$ac_compile"
31826case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31829esac
31830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31848 { ac_try='test -s conftest.$ac_objext'
31849 { (case "(($ac_try" in
31850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851 *) ac_try_echo=$ac_try;;
31852esac
31853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
31855 ac_status=$?
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031858 ac_cv_cxx_namespaces=yes
31859else
31860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031861sed 's/^/| /' conftest.$ac_ext >&5
31862
Reid Spencera773bd52006-08-04 18:18:08 +000031863 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031864fi
Reid Spencera773bd52006-08-04 18:18:08 +000031865
31866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031867 ac_ext=c
31868ac_cpp='$CPP $CPPFLAGS'
31869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871ac_compiler_gnu=$ac_cv_c_compiler_gnu
31872
31873
31874fi
Reid Spencera773bd52006-08-04 18:18:08 +000031875{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31876echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031877if test "$ac_cv_cxx_namespaces" = yes; then
31878
31879cat >>confdefs.h <<\_ACEOF
31880#define HAVE_NAMESPACES
31881_ACEOF
31882
31883fi
31884
Reid Spencera773bd52006-08-04 18:18:08 +000031885{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31886echo $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 +000031887if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
31890
Reid Spencera773bd52006-08-04 18:18:08 +000031891 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031892ac_cpp='$CXXCPP $CPPFLAGS'
31893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31896
31897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031898/* confdefs.h. */
31899_ACEOF
31900cat confdefs.h >>conftest.$ac_ext
31901cat >>conftest.$ac_ext <<_ACEOF
31902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031903#include <ext/hash_map>
31904#ifdef HAVE_NAMESPACES
31905using namespace std;
31906#endif
John Criswell7a73b802003-06-30 21:59:07 +000031907int
31908main ()
31909{
Brian Gaeke90583492003-11-10 03:06:28 +000031910hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031911 ;
31912 return 0;
31913}
31914_ACEOF
31915rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031916if { (ac_try="$ac_compile"
31917case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31920esac
31921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031928 (exit $ac_status); } &&
31929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31939 { ac_try='test -s conftest.$ac_objext'
31940 { (case "(($ac_try" in
31941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942 *) ac_try_echo=$ac_try;;
31943esac
31944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945 (eval "$ac_try") 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031949 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031950else
31951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031952sed 's/^/| /' conftest.$ac_ext >&5
31953
Reid Spencera773bd52006-08-04 18:18:08 +000031954 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031955fi
Reid Spencera773bd52006-08-04 18:18:08 +000031956
31957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031958 ac_ext=c
31959ac_cpp='$CPP $CPPFLAGS'
31960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31962ac_compiler_gnu=$ac_cv_c_compiler_gnu
31963
John Criswell7a73b802003-06-30 21:59:07 +000031964fi
Reid Spencera773bd52006-08-04 18:18:08 +000031965{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31966echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031967 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31968 then
John Criswell9f011862004-09-24 18:28:00 +000031969
31970cat >>confdefs.h <<\_ACEOF
31971#define HAVE_STD_EXT_HASH_MAP 1
31972_ACEOF
31973
31974 else
31975
31976cat >>confdefs.h <<\_ACEOF
31977#define HAVE_STD_EXT_HASH_MAP 0
31978_ACEOF
31979
Brian Gaeke90583492003-11-10 03:06:28 +000031980 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031981
Reid Spencera773bd52006-08-04 18:18:08 +000031982 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31983echo $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 +000031984if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31986else
31987
Reid Spencera773bd52006-08-04 18:18:08 +000031988 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031989ac_cpp='$CXXCPP $CPPFLAGS'
31990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31993
31994 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031995/* confdefs.h. */
31996_ACEOF
31997cat confdefs.h >>conftest.$ac_ext
31998cat >>conftest.$ac_ext <<_ACEOF
31999/* end confdefs.h. */
32000#include <ext/hash_map>
32001#ifdef HAVE_NAMESPACES
32002using namespace __gnu_cxx;
32003#endif
32004int
32005main ()
32006{
32007hash_map<int,int> t;
32008 ;
32009 return 0;
32010}
32011_ACEOF
32012rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032013if { (ac_try="$ac_compile"
32014case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017esac
32018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032025 (exit $ac_status); } &&
32026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32036 { ac_try='test -s conftest.$ac_objext'
32037 { (case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32040esac
32041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_try") 2>&5
32043 ac_status=$?
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032046 ac_cv_cxx_have_gnu_ext_hash_map=yes
32047else
32048 echo "$as_me: failed program was:" >&5
32049sed 's/^/| /' conftest.$ac_ext >&5
32050
Reid Spencera773bd52006-08-04 18:18:08 +000032051 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032052fi
Reid Spencera773bd52006-08-04 18:18:08 +000032053
32054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032055 ac_ext=c
32056ac_cpp='$CPP $CPPFLAGS'
32057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32059ac_compiler_gnu=$ac_cv_c_compiler_gnu
32060
32061fi
Reid Spencera773bd52006-08-04 18:18:08 +000032062{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32063echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032064 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32065 then
John Criswell9f011862004-09-24 18:28:00 +000032066
32067cat >>confdefs.h <<\_ACEOF
32068#define HAVE_GNU_EXT_HASH_MAP 1
32069_ACEOF
32070
32071 else
32072
32073cat >>confdefs.h <<\_ACEOF
32074#define HAVE_GNU_EXT_HASH_MAP 0
32075_ACEOF
32076
Brian Gaeke90583492003-11-10 03:06:28 +000032077 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032078
Reid Spencera773bd52006-08-04 18:18:08 +000032079 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32080echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032081if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32083else
John Criswell7a73b802003-06-30 21:59:07 +000032084
Reid Spencera773bd52006-08-04 18:18:08 +000032085 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032086ac_cpp='$CXXCPP $CPPFLAGS'
32087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32090
32091 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032092/* confdefs.h. */
32093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h. */
32097#include <hash_map>
32098int
32099main ()
32100{
32101hash_map<int,int> t;
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032107if { (ac_try="$ac_compile"
32108case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32111esac
32112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032119 (exit $ac_status); } &&
32120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32130 { ac_try='test -s conftest.$ac_objext'
32131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32134esac
32135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032140 ac_cv_cxx_have_global_hash_map=yes
32141else
32142 echo "$as_me: failed program was:" >&5
32143sed 's/^/| /' conftest.$ac_ext >&5
32144
Reid Spencera773bd52006-08-04 18:18:08 +000032145 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032146fi
Reid Spencera773bd52006-08-04 18:18:08 +000032147
32148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032149 ac_ext=c
32150ac_cpp='$CPP $CPPFLAGS'
32151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153ac_compiler_gnu=$ac_cv_c_compiler_gnu
32154
32155fi
Reid Spencera773bd52006-08-04 18:18:08 +000032156{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32157echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032158 if test "$ac_cv_cxx_have_global_hash_map" = yes
32159 then
John Criswell9f011862004-09-24 18:28:00 +000032160
32161cat >>confdefs.h <<\_ACEOF
32162#define HAVE_GLOBAL_HASH_MAP 1
32163_ACEOF
32164
32165 else
32166
32167cat >>confdefs.h <<\_ACEOF
32168#define HAVE_GLOBAL_HASH_MAP 0
32169_ACEOF
32170
Brian Gaeke90583492003-11-10 03:06:28 +000032171 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032172
Reid Spencera773bd52006-08-04 18:18:08 +000032173{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32174echo $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 +000032175if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178
Reid Spencera773bd52006-08-04 18:18:08 +000032179 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032180ac_cpp='$CXXCPP $CPPFLAGS'
32181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32184
32185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032186/* confdefs.h. */
32187_ACEOF
32188cat confdefs.h >>conftest.$ac_ext
32189cat >>conftest.$ac_ext <<_ACEOF
32190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032191#include <ext/hash_set>
32192#ifdef HAVE_NAMESPACES
32193using namespace std;
32194#endif
John Criswell7a73b802003-06-30 21:59:07 +000032195int
32196main ()
32197{
Brian Gaeke90583492003-11-10 03:06:28 +000032198hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032199 ;
32200 return 0;
32201}
32202_ACEOF
32203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032204if { (ac_try="$ac_compile"
32205case "(($ac_try" in
32206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207 *) ac_try_echo=$ac_try;;
32208esac
32209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32210 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032212 grep -v '^ *+' conftest.er1 >conftest.err
32213 rm -f conftest.er1
32214 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032216 (exit $ac_status); } &&
32217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32227 { ac_try='test -s conftest.$ac_objext'
32228 { (case "(($ac_try" in
32229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32230 *) ac_try_echo=$ac_try;;
32231esac
32232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32233 (eval "$ac_try") 2>&5
32234 ac_status=$?
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032237 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032238else
32239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032240sed 's/^/| /' conftest.$ac_ext >&5
32241
Reid Spencera773bd52006-08-04 18:18:08 +000032242 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032243fi
Reid Spencera773bd52006-08-04 18:18:08 +000032244
32245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032246 ac_ext=c
32247ac_cpp='$CPP $CPPFLAGS'
32248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32250ac_compiler_gnu=$ac_cv_c_compiler_gnu
32251
32252fi
Reid Spencera773bd52006-08-04 18:18:08 +000032253{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32254echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032255 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32256 then
John Criswell9f011862004-09-24 18:28:00 +000032257
32258cat >>confdefs.h <<\_ACEOF
32259#define HAVE_STD_EXT_HASH_SET 1
32260_ACEOF
32261
32262 else
32263
32264cat >>confdefs.h <<\_ACEOF
32265#define HAVE_STD_EXT_HASH_SET 0
32266_ACEOF
32267
Brian Gaeke90583492003-11-10 03:06:28 +000032268 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032269
Reid Spencera773bd52006-08-04 18:18:08 +000032270 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32271echo $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 +000032272if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32273 echo $ECHO_N "(cached) $ECHO_C" >&6
32274else
32275
Reid Spencera773bd52006-08-04 18:18:08 +000032276 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032277ac_cpp='$CXXCPP $CPPFLAGS'
32278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32281
John Criswell7a73b802003-06-30 21:59:07 +000032282 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032283/* confdefs.h. */
32284_ACEOF
32285cat confdefs.h >>conftest.$ac_ext
32286cat >>conftest.$ac_ext <<_ACEOF
32287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032288#include <ext/hash_set>
32289#ifdef HAVE_NAMESPACES
32290using namespace __gnu_cxx;
32291#endif
John Criswell7a73b802003-06-30 21:59:07 +000032292int
32293main ()
32294{
Brian Gaeke90583492003-11-10 03:06:28 +000032295hash_set<int> t;
32296 ;
32297 return 0;
32298}
32299_ACEOF
32300rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032301if { (ac_try="$ac_compile"
32302case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32305esac
32306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032309 grep -v '^ *+' conftest.er1 >conftest.err
32310 rm -f conftest.er1
32311 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032313 (exit $ac_status); } &&
32314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32324 { ac_try='test -s conftest.$ac_objext'
32325 { (case "(($ac_try" in
32326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327 *) ac_try_echo=$ac_try;;
32328esac
32329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330 (eval "$ac_try") 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032334 ac_cv_cxx_have_gnu_ext_hash_set=yes
32335else
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
Reid Spencera773bd52006-08-04 18:18:08 +000032339 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032340fi
Reid Spencera773bd52006-08-04 18:18:08 +000032341
32342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032343 ac_ext=c
32344ac_cpp='$CPP $CPPFLAGS'
32345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32347ac_compiler_gnu=$ac_cv_c_compiler_gnu
32348
32349fi
Reid Spencera773bd52006-08-04 18:18:08 +000032350{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32351echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032352 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32353 then
John Criswell9f011862004-09-24 18:28:00 +000032354
32355cat >>confdefs.h <<\_ACEOF
32356#define HAVE_GNU_EXT_HASH_SET 1
32357_ACEOF
32358
32359 else
32360
32361cat >>confdefs.h <<\_ACEOF
32362#define HAVE_GNU_EXT_HASH_SET 0
32363_ACEOF
32364
Brian Gaeke90583492003-11-10 03:06:28 +000032365 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032366
Reid Spencera773bd52006-08-04 18:18:08 +000032367 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32368echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032369if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32371else
32372
Reid Spencera773bd52006-08-04 18:18:08 +000032373 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032374ac_cpp='$CXXCPP $CPPFLAGS'
32375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32378
32379 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032380/* confdefs.h. */
32381_ACEOF
32382cat confdefs.h >>conftest.$ac_ext
32383cat >>conftest.$ac_ext <<_ACEOF
32384/* end confdefs.h. */
32385#include <hash_set>
32386int
32387main ()
32388{
John Criswell7a73b802003-06-30 21:59:07 +000032389hash_set<int> t; return 0;
32390 ;
32391 return 0;
32392}
32393_ACEOF
32394rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032395if { (ac_try="$ac_compile"
32396case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32399esac
32400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032403 grep -v '^ *+' conftest.er1 >conftest.err
32404 rm -f conftest.er1
32405 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032407 (exit $ac_status); } &&
32408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32418 { ac_try='test -s conftest.$ac_objext'
32419 { (case "(($ac_try" in
32420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32421 *) ac_try_echo=$ac_try;;
32422esac
32423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32424 (eval "$ac_try") 2>&5
32425 ac_status=$?
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032428 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032429else
32430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032431sed 's/^/| /' conftest.$ac_ext >&5
32432
Reid Spencera773bd52006-08-04 18:18:08 +000032433 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032434fi
Reid Spencera773bd52006-08-04 18:18:08 +000032435
32436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032437 ac_ext=c
32438ac_cpp='$CPP $CPPFLAGS'
32439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441ac_compiler_gnu=$ac_cv_c_compiler_gnu
32442
John Criswell7a73b802003-06-30 21:59:07 +000032443fi
Reid Spencera773bd52006-08-04 18:18:08 +000032444{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32445echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032446 if test "$ac_cv_cxx_have_global_hash_set" = yes
32447 then
John Criswell9f011862004-09-24 18:28:00 +000032448
32449cat >>confdefs.h <<\_ACEOF
32450#define HAVE_GLOBAL_HASH_SET 1
32451_ACEOF
32452
32453 else
32454
32455cat >>confdefs.h <<\_ACEOF
32456#define HAVE_GLOBAL_HASH_SET 0
32457_ACEOF
32458
Brian Gaeke90583492003-11-10 03:06:28 +000032459 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032460
Reid Spencera773bd52006-08-04 18:18:08 +000032461{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32462echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032463if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32464 echo $ECHO_N "(cached) $ECHO_C" >&6
32465else
32466
Reid Spencera773bd52006-08-04 18:18:08 +000032467 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032468ac_cpp='$CXXCPP $CPPFLAGS'
32469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32472
32473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032479#include <iterator>
32480#ifdef HAVE_NAMESPACES
32481using namespace std;
32482#endif
John Criswell7a73b802003-06-30 21:59:07 +000032483int
32484main ()
32485{
32486iterator<int,int,int> t; return 0;
32487 ;
32488 return 0;
32489}
32490_ACEOF
32491rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032492if { (ac_try="$ac_compile"
32493case "(($ac_try" in
32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32496esac
32497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32498 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032500 grep -v '^ *+' conftest.er1 >conftest.err
32501 rm -f conftest.er1
32502 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032504 (exit $ac_status); } &&
32505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32515 { ac_try='test -s conftest.$ac_objext'
32516 { (case "(($ac_try" in
32517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 *) ac_try_echo=$ac_try;;
32519esac
32520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32521 (eval "$ac_try") 2>&5
32522 ac_status=$?
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032525 ac_cv_cxx_have_std_iterator=yes
32526else
32527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032528sed 's/^/| /' conftest.$ac_ext >&5
32529
Reid Spencera773bd52006-08-04 18:18:08 +000032530 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032531fi
Reid Spencera773bd52006-08-04 18:18:08 +000032532
32533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032534 ac_ext=c
32535ac_cpp='$CPP $CPPFLAGS'
32536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32538ac_compiler_gnu=$ac_cv_c_compiler_gnu
32539
32540
32541fi
Reid Spencera773bd52006-08-04 18:18:08 +000032542{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32543echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032544if test "$ac_cv_cxx_have_std_iterator" = yes
32545then
John Criswell40468462004-09-24 21:19:06 +000032546
32547cat >>confdefs.h <<\_ACEOF
32548#define HAVE_STD_ITERATOR 1
32549_ACEOF
32550
32551else
32552
32553cat >>confdefs.h <<\_ACEOF
32554#define HAVE_STD_ITERATOR 0
32555_ACEOF
32556
John Criswell7a73b802003-06-30 21:59:07 +000032557fi
32558
Reid Spencera773bd52006-08-04 18:18:08 +000032559{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32560echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032561if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32563else
32564
Reid Spencera773bd52006-08-04 18:18:08 +000032565 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032566ac_cpp='$CXXCPP $CPPFLAGS'
32567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32570
32571 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032572/* confdefs.h. */
32573_ACEOF
32574cat confdefs.h >>conftest.$ac_ext
32575cat >>conftest.$ac_ext <<_ACEOF
32576/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032577#include <iterator>
32578#ifdef HAVE_NAMESPACES
32579using namespace std;
32580#endif
John Criswell7a73b802003-06-30 21:59:07 +000032581int
32582main ()
32583{
John Criswellc78022e2003-07-29 19:11:58 +000032584bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032585 ;
32586 return 0;
32587}
32588_ACEOF
32589rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032590if { (ac_try="$ac_compile"
32591case "(($ac_try" in
32592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593 *) ac_try_echo=$ac_try;;
32594esac
32595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032597 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032598 grep -v '^ *+' conftest.er1 >conftest.err
32599 rm -f conftest.er1
32600 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032602 (exit $ac_status); } &&
32603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32613 { ac_try='test -s conftest.$ac_objext'
32614 { (case "(($ac_try" in
32615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616 *) ac_try_echo=$ac_try;;
32617esac
32618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619 (eval "$ac_try") 2>&5
32620 ac_status=$?
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032623 ac_cv_cxx_have_bi_iterator=yes
32624else
32625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032626sed 's/^/| /' conftest.$ac_ext >&5
32627
Reid Spencera773bd52006-08-04 18:18:08 +000032628 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032629fi
Reid Spencera773bd52006-08-04 18:18:08 +000032630
32631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032632 ac_ext=c
32633ac_cpp='$CPP $CPPFLAGS'
32634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32636ac_compiler_gnu=$ac_cv_c_compiler_gnu
32637
32638
32639fi
Reid Spencera773bd52006-08-04 18:18:08 +000032640{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32641echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032642if test "$ac_cv_cxx_have_bi_iterator" = yes
32643then
John Criswell40468462004-09-24 21:19:06 +000032644
32645cat >>confdefs.h <<\_ACEOF
32646#define HAVE_BI_ITERATOR 1
32647_ACEOF
32648
32649else
32650
32651cat >>confdefs.h <<\_ACEOF
32652#define HAVE_BI_ITERATOR 0
32653_ACEOF
32654
John Criswell7a73b802003-06-30 21:59:07 +000032655fi
32656
Reid Spencera773bd52006-08-04 18:18:08 +000032657{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32658echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032659if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32661else
32662
Reid Spencera773bd52006-08-04 18:18:08 +000032663 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032664ac_cpp='$CXXCPP $CPPFLAGS'
32665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32668
32669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032670/* confdefs.h. */
32671_ACEOF
32672cat confdefs.h >>conftest.$ac_ext
32673cat >>conftest.$ac_ext <<_ACEOF
32674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032675#include <iterator>
32676#ifdef HAVE_NAMESPACES
32677using namespace std;
32678#endif
John Criswell7a73b802003-06-30 21:59:07 +000032679int
32680main ()
32681{
John Criswellc78022e2003-07-29 19:11:58 +000032682forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032683 ;
32684 return 0;
32685}
32686_ACEOF
32687rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032688if { (ac_try="$ac_compile"
32689case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32692esac
32693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032696 grep -v '^ *+' conftest.er1 >conftest.err
32697 rm -f conftest.er1
32698 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032700 (exit $ac_status); } &&
32701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32711 { ac_try='test -s conftest.$ac_objext'
32712 { (case "(($ac_try" in
32713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714 *) ac_try_echo=$ac_try;;
32715esac
32716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717 (eval "$ac_try") 2>&5
32718 ac_status=$?
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032721 ac_cv_cxx_have_fwd_iterator=yes
32722else
32723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032724sed 's/^/| /' conftest.$ac_ext >&5
32725
Reid Spencera773bd52006-08-04 18:18:08 +000032726 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728
32729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032730 ac_ext=c
32731ac_cpp='$CPP $CPPFLAGS'
32732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32734ac_compiler_gnu=$ac_cv_c_compiler_gnu
32735
32736
32737fi
Reid Spencera773bd52006-08-04 18:18:08 +000032738{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32739echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032740if test "$ac_cv_cxx_have_fwd_iterator" = yes
32741then
John Criswell40468462004-09-24 21:19:06 +000032742
32743cat >>confdefs.h <<\_ACEOF
32744#define HAVE_FWD_ITERATOR 1
32745_ACEOF
32746
32747else
32748
32749cat >>confdefs.h <<\_ACEOF
32750#define HAVE_FWD_ITERATOR 0
32751_ACEOF
32752
John Criswell7a73b802003-06-30 21:59:07 +000032753fi
32754
32755
Reid Spencera773bd52006-08-04 18:18:08 +000032756{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32757echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032758if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
32760else
Reid Spencera773bd52006-08-04 18:18:08 +000032761 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032762ac_cpp='$CXXCPP $CPPFLAGS'
32763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32766
Reid Spencerabec8f92004-10-27 23:03:44 +000032767 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032768/* confdefs.h. */
32769_ACEOF
32770cat confdefs.h >>conftest.$ac_ext
32771cat >>conftest.$ac_ext <<_ACEOF
32772/* end confdefs.h. */
32773#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032774int
32775main ()
32776{
32777float f; isnan(f);
32778 ;
32779 return 0;
32780}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032781_ACEOF
32782rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032783if { (ac_try="$ac_compile"
32784case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32787esac
32788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032791 grep -v '^ *+' conftest.er1 >conftest.err
32792 rm -f conftest.er1
32793 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032795 (exit $ac_status); } &&
32796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32806 { ac_try='test -s conftest.$ac_objext'
32807 { (case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32810esac
32811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_try") 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032816 ac_cv_func_isnan_in_math_h=yes
32817else
32818 echo "$as_me: failed program was:" >&5
32819sed 's/^/| /' conftest.$ac_ext >&5
32820
Reid Spencera773bd52006-08-04 18:18:08 +000032821 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032822fi
Reid Spencera773bd52006-08-04 18:18:08 +000032823
32824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032825 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032826ac_cpp='$CPP $CPPFLAGS'
32827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829ac_compiler_gnu=$ac_cv_c_compiler_gnu
32830
32831fi
Reid Spencera773bd52006-08-04 18:18:08 +000032832{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32833echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032834
32835
32836if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032837
32838cat >>confdefs.h <<\_ACEOF
32839#define HAVE_ISNAN_IN_MATH_H 1
32840_ACEOF
32841
Reid Spencerabec8f92004-10-27 23:03:44 +000032842fi
32843
Reid Spencera773bd52006-08-04 18:18:08 +000032844{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32845echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032846if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32847 echo $ECHO_N "(cached) $ECHO_C" >&6
32848else
Reid Spencera773bd52006-08-04 18:18:08 +000032849 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032850ac_cpp='$CXXCPP $CPPFLAGS'
32851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32854
Reid Spencerabec8f92004-10-27 23:03:44 +000032855 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032856/* confdefs.h. */
32857_ACEOF
32858cat confdefs.h >>conftest.$ac_ext
32859cat >>conftest.$ac_ext <<_ACEOF
32860/* end confdefs.h. */
32861#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032862int
32863main ()
32864{
32865float f; isnan(f);
32866 ;
32867 return 0;
32868}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032869_ACEOF
32870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032871if { (ac_try="$ac_compile"
32872case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875esac
32876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32894 { ac_try='test -s conftest.$ac_objext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898esac
32899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032904 ac_cv_func_isnan_in_cmath=yes
32905else
32906 echo "$as_me: failed program was:" >&5
32907sed 's/^/| /' conftest.$ac_ext >&5
32908
Reid Spencera773bd52006-08-04 18:18:08 +000032909 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032910fi
Reid Spencera773bd52006-08-04 18:18:08 +000032911
32912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032913 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032914ac_cpp='$CPP $CPPFLAGS'
32915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917ac_compiler_gnu=$ac_cv_c_compiler_gnu
32918
32919fi
Reid Spencera773bd52006-08-04 18:18:08 +000032920{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32921echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032922
32923if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032924
32925cat >>confdefs.h <<\_ACEOF
32926#define HAVE_ISNAN_IN_CMATH 1
32927_ACEOF
32928
Reid Spencerabec8f92004-10-27 23:03:44 +000032929fi
32930
Reid Spencera773bd52006-08-04 18:18:08 +000032931{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32932echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032933if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32934 echo $ECHO_N "(cached) $ECHO_C" >&6
32935else
Reid Spencera773bd52006-08-04 18:18:08 +000032936 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032937ac_cpp='$CXXCPP $CPPFLAGS'
32938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32941
Reid Spencerabec8f92004-10-27 23:03:44 +000032942 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032943/* confdefs.h. */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h. */
32948#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032949int
32950main ()
32951{
32952float f; std::isnan(f);
32953 ;
32954 return 0;
32955}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032956_ACEOF
32957rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032958if { (ac_try="$ac_compile"
32959case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32962esac
32963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032966 grep -v '^ *+' conftest.er1 >conftest.err
32967 rm -f conftest.er1
32968 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032970 (exit $ac_status); } &&
32971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32981 { ac_try='test -s conftest.$ac_objext'
32982 { (case "(($ac_try" in
32983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984 *) ac_try_echo=$ac_try;;
32985esac
32986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987 (eval "$ac_try") 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032991 ac_cv_func_std_isnan_in_cmath=yes
32992else
32993 echo "$as_me: failed program was:" >&5
32994sed 's/^/| /' conftest.$ac_ext >&5
32995
Reid Spencera773bd52006-08-04 18:18:08 +000032996 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032997fi
Reid Spencera773bd52006-08-04 18:18:08 +000032998
32999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033000 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033001ac_cpp='$CPP $CPPFLAGS'
33002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004ac_compiler_gnu=$ac_cv_c_compiler_gnu
33005
33006fi
Reid Spencera773bd52006-08-04 18:18:08 +000033007{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33008echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033009
33010if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033011
33012cat >>confdefs.h <<\_ACEOF
33013#define HAVE_STD_ISNAN_IN_CMATH 1
33014_ACEOF
33015
Reid Spencerabec8f92004-10-27 23:03:44 +000033016fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033017
33018
Reid Spencera773bd52006-08-04 18:18:08 +000033019{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33020echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033021if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33023else
Reid Spencera773bd52006-08-04 18:18:08 +000033024 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033025ac_cpp='$CXXCPP $CPPFLAGS'
33026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33029
Reid Spencerabec8f92004-10-27 23:03:44 +000033030 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033031/* confdefs.h. */
33032_ACEOF
33033cat confdefs.h >>conftest.$ac_ext
33034cat >>conftest.$ac_ext <<_ACEOF
33035/* end confdefs.h. */
33036#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033037int
33038main ()
33039{
33040float f; isinf(f);
33041 ;
33042 return 0;
33043}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033044_ACEOF
33045rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033046if { (ac_try="$ac_compile"
33047case "(($ac_try" in
33048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049 *) ac_try_echo=$ac_try;;
33050esac
33051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033054 grep -v '^ *+' conftest.er1 >conftest.err
33055 rm -f conftest.er1
33056 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033058 (exit $ac_status); } &&
33059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33069 { ac_try='test -s conftest.$ac_objext'
33070 { (case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_try") 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033079 ac_cv_func_isinf_in_math_h=yes
33080else
33081 echo "$as_me: failed program was:" >&5
33082sed 's/^/| /' conftest.$ac_ext >&5
33083
Reid Spencera773bd52006-08-04 18:18:08 +000033084 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033085fi
Reid Spencera773bd52006-08-04 18:18:08 +000033086
33087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033088 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033089ac_cpp='$CPP $CPPFLAGS'
33090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092ac_compiler_gnu=$ac_cv_c_compiler_gnu
33093
33094fi
Reid Spencera773bd52006-08-04 18:18:08 +000033095{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33096echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033097
33098if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033099
33100cat >>confdefs.h <<\_ACEOF
33101#define HAVE_ISINF_IN_MATH_H 1
33102_ACEOF
33103
Reid Spencerabec8f92004-10-27 23:03:44 +000033104fi
33105
Reid Spencera773bd52006-08-04 18:18:08 +000033106{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33107echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033108if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33110else
Reid Spencera773bd52006-08-04 18:18:08 +000033111 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033112ac_cpp='$CXXCPP $CPPFLAGS'
33113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33116
Reid Spencerabec8f92004-10-27 23:03:44 +000033117 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033118/* confdefs.h. */
33119_ACEOF
33120cat confdefs.h >>conftest.$ac_ext
33121cat >>conftest.$ac_ext <<_ACEOF
33122/* end confdefs.h. */
33123#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033124int
33125main ()
33126{
33127float f; isinf(f);
33128 ;
33129 return 0;
33130}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033131_ACEOF
33132rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033133if { (ac_try="$ac_compile"
33134case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33137esac
33138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033141 grep -v '^ *+' conftest.er1 >conftest.err
33142 rm -f conftest.er1
33143 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033145 (exit $ac_status); } &&
33146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33156 { ac_try='test -s conftest.$ac_objext'
33157 { (case "(($ac_try" in
33158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159 *) ac_try_echo=$ac_try;;
33160esac
33161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162 (eval "$ac_try") 2>&5
33163 ac_status=$?
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033166 ac_cv_func_isinf_in_cmath=yes
33167else
33168 echo "$as_me: failed program was:" >&5
33169sed 's/^/| /' conftest.$ac_ext >&5
33170
Reid Spencera773bd52006-08-04 18:18:08 +000033171 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033172fi
Reid Spencera773bd52006-08-04 18:18:08 +000033173
33174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033175 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033176ac_cpp='$CPP $CPPFLAGS'
33177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179ac_compiler_gnu=$ac_cv_c_compiler_gnu
33180
33181fi
Reid Spencera773bd52006-08-04 18:18:08 +000033182{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33183echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033184
33185if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033186
33187cat >>confdefs.h <<\_ACEOF
33188#define HAVE_ISINF_IN_CMATH 1
33189_ACEOF
33190
Reid Spencerabec8f92004-10-27 23:03:44 +000033191fi
33192
Reid Spencera773bd52006-08-04 18:18:08 +000033193{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33194echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033195if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33196 echo $ECHO_N "(cached) $ECHO_C" >&6
33197else
Reid Spencera773bd52006-08-04 18:18:08 +000033198 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033199ac_cpp='$CXXCPP $CPPFLAGS'
33200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33203
Reid Spencerabec8f92004-10-27 23:03:44 +000033204 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033205/* confdefs.h. */
33206_ACEOF
33207cat confdefs.h >>conftest.$ac_ext
33208cat >>conftest.$ac_ext <<_ACEOF
33209/* end confdefs.h. */
33210#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033211int
33212main ()
33213{
33214float f; std::isinf(f)}
33215 ;
33216 return 0;
33217}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033218_ACEOF
33219rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033220if { (ac_try="$ac_compile"
33221case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33224esac
33225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033228 grep -v '^ *+' conftest.er1 >conftest.err
33229 rm -f conftest.er1
33230 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033232 (exit $ac_status); } &&
33233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33243 { ac_try='test -s conftest.$ac_objext'
33244 { (case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33247esac
33248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_try") 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033253 ac_cv_func_std_isinf_in_cmath=yes
33254else
33255 echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
Reid Spencera773bd52006-08-04 18:18:08 +000033258 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033259fi
Reid Spencera773bd52006-08-04 18:18:08 +000033260
33261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033262 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033263ac_cpp='$CPP $CPPFLAGS'
33264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266ac_compiler_gnu=$ac_cv_c_compiler_gnu
33267
33268fi
Reid Spencera773bd52006-08-04 18:18:08 +000033269{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33270echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033271
33272if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033273
33274cat >>confdefs.h <<\_ACEOF
33275#define HAVE_STD_ISINF_IN_CMATH 1
33276_ACEOF
33277
Reid Spencerabec8f92004-10-27 23:03:44 +000033278fi
33279
Reid Spencera773bd52006-08-04 18:18:08 +000033280{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33281echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033282if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33283 echo $ECHO_N "(cached) $ECHO_C" >&6
33284else
Reid Spencera773bd52006-08-04 18:18:08 +000033285 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033286ac_cpp='$CXXCPP $CPPFLAGS'
33287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33290
Reid Spencerabec8f92004-10-27 23:03:44 +000033291 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033292/* confdefs.h. */
33293_ACEOF
33294cat confdefs.h >>conftest.$ac_ext
33295cat >>conftest.$ac_ext <<_ACEOF
33296/* end confdefs.h. */
33297#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033298int
33299main ()
33300{
33301float f; finite(f);
33302 ;
33303 return 0;
33304}
Brian Gaeked59a6472004-07-21 03:33:58 +000033305_ACEOF
33306rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033307if { (ac_try="$ac_compile"
33308case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33311esac
33312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33330 { ac_try='test -s conftest.$ac_objext'
33331 { (case "(($ac_try" in
33332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33333 *) ac_try_echo=$ac_try;;
33334esac
33335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33336 (eval "$ac_try") 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033340 ac_cv_func_finite_in_ieeefp_h=yes
33341else
33342 echo "$as_me: failed program was:" >&5
33343sed 's/^/| /' conftest.$ac_ext >&5
33344
Reid Spencera773bd52006-08-04 18:18:08 +000033345 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033346fi
Reid Spencera773bd52006-08-04 18:18:08 +000033347
33348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033349 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033350ac_cpp='$CPP $CPPFLAGS'
33351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353ac_compiler_gnu=$ac_cv_c_compiler_gnu
33354
33355fi
Reid Spencera773bd52006-08-04 18:18:08 +000033356{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33357echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033358
Brian Gaeke6802b552004-10-28 05:06:45 +000033359if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033360
33361cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033362#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033363_ACEOF
33364
Reid Spencerabec8f92004-10-27 23:03:44 +000033365fi
33366
33367
33368
Reid Spencer30fe5262007-01-20 07:48:49 +000033369if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033370
33371
33372for ac_header in stdlib.h unistd.h
33373do
33374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033379 echo $ECHO_N "(cached) $ECHO_C" >&6
33380fi
Reid Spencera773bd52006-08-04 18:18:08 +000033381ac_res=`eval echo '${'$as_ac_Header'}'`
33382 { echo "$as_me:$LINENO: result: $ac_res" >&5
33383echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033384else
33385 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033389/* confdefs.h. */
33390_ACEOF
33391cat confdefs.h >>conftest.$ac_ext
33392cat >>conftest.$ac_ext <<_ACEOF
33393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033394$ac_includes_default
33395#include <$ac_header>
33396_ACEOF
33397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033398if { (ac_try="$ac_compile"
33399case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33402esac
33403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033406 grep -v '^ *+' conftest.er1 >conftest.err
33407 rm -f conftest.er1
33408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033410 (exit $ac_status); } &&
33411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33421 { ac_try='test -s conftest.$ac_objext'
33422 { (case "(($ac_try" in
33423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424 *) ac_try_echo=$ac_try;;
33425esac
33426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33427 (eval "$ac_try") 2>&5
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033431 ac_header_compiler=yes
33432else
33433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033434sed 's/^/| /' conftest.$ac_ext >&5
33435
Reid Spencera773bd52006-08-04 18:18:08 +000033436 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033437fi
Reid Spencera773bd52006-08-04 18:18:08 +000033438
33439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33440{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33441echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033442
33443# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033444{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033446cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033447/* confdefs.h. */
33448_ACEOF
33449cat confdefs.h >>conftest.$ac_ext
33450cat >>conftest.$ac_ext <<_ACEOF
33451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033452#include <$ac_header>
33453_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033454if { (ac_try="$ac_cpp conftest.$ac_ext"
33455case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033461 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033462 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033463 rm -f conftest.er1
33464 cat conftest.err >&5
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033466 (exit $ac_status); } >/dev/null; then
33467 if test -s conftest.err; then
33468 ac_cpp_err=$ac_c_preproc_warn_flag
33469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33470 else
33471 ac_cpp_err=
33472 fi
33473else
33474 ac_cpp_err=yes
33475fi
33476if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033477 ac_header_preproc=yes
33478else
33479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033480sed 's/^/| /' conftest.$ac_ext >&5
33481
John Criswell7a73b802003-06-30 21:59:07 +000033482 ac_header_preproc=no
33483fi
Reid Spencera773bd52006-08-04 18:18:08 +000033484
John Criswell7a73b802003-06-30 21:59:07 +000033485rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33487echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033488
33489# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33491 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33496 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033497 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033498 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033511 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033512## ----------------------------------- ##
33513## Report this to llvmbugs@cs.uiuc.edu ##
33514## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033515_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033516 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033517 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033518esac
Reid Spencera773bd52006-08-04 18:18:08 +000033519{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033522 echo $ECHO_N "(cached) $ECHO_C" >&6
33523else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033524 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033525fi
Reid Spencera773bd52006-08-04 18:18:08 +000033526ac_res=`eval echo '${'$as_ac_Header'}'`
33527 { echo "$as_me:$LINENO: result: $ac_res" >&5
33528echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033529
33530fi
33531if test `eval echo '${'$as_ac_Header'}'` = yes; then
33532 cat >>confdefs.h <<_ACEOF
33533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33534_ACEOF
33535
33536fi
33537
33538done
33539
33540
33541for ac_func in getpagesize
33542do
33543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033550/* confdefs.h. */
33551_ACEOF
33552cat confdefs.h >>conftest.$ac_ext
33553cat >>conftest.$ac_ext <<_ACEOF
33554/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557#define $ac_func innocuous_$ac_func
33558
John Criswell7a73b802003-06-30 21:59:07 +000033559/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033560 which can conflict with char $ac_func (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033563
John Criswell0c38eaf2003-09-10 15:17:25 +000033564#ifdef __STDC__
33565# include <limits.h>
33566#else
33567# include <assert.h>
33568#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033569
33570#undef $ac_func
33571
Reid Spencera773bd52006-08-04 18:18:08 +000033572/* Override any GCC internal prototype to avoid an error.
33573 Use char because int might match the return type of a GCC
33574 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033575#ifdef __cplusplus
33576extern "C"
33577#endif
John Criswell7a73b802003-06-30 21:59:07 +000033578char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033579/* The GNU C library defines this for functions which it implements
33580 to always fail with ENOSYS. Some functions are actually named
33581 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033582#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033583choke me
John Criswell7a73b802003-06-30 21:59:07 +000033584#endif
33585
John Criswell0c38eaf2003-09-10 15:17:25 +000033586int
33587main ()
33588{
Reid Spencera773bd52006-08-04 18:18:08 +000033589return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033590 ;
33591 return 0;
33592}
33593_ACEOF
33594rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033595if { (ac_try="$ac_link"
33596case "(($ac_try" in
33597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33598 *) ac_try_echo=$ac_try;;
33599esac
33600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33601 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033603 grep -v '^ *+' conftest.er1 >conftest.err
33604 rm -f conftest.er1
33605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33618 { ac_try='test -s conftest$ac_exeext'
33619 { (case "(($ac_try" in
33620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621 *) ac_try_echo=$ac_try;;
33622esac
33623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624 (eval "$ac_try") 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033628 eval "$as_ac_var=yes"
33629else
33630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033631sed 's/^/| /' conftest.$ac_ext >&5
33632
Reid Spencera773bd52006-08-04 18:18:08 +000033633 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033634fi
Reid Spencera773bd52006-08-04 18:18:08 +000033635
Tanya Lattnercf067672008-01-17 05:57:22 +000033636rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033637 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033638fi
Reid Spencera773bd52006-08-04 18:18:08 +000033639ac_res=`eval echo '${'$as_ac_var'}'`
33640 { echo "$as_me:$LINENO: result: $ac_res" >&5
33641echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033642if test `eval echo '${'$as_ac_var'}'` = yes; then
33643 cat >>confdefs.h <<_ACEOF
33644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33645_ACEOF
33646
33647fi
33648done
33649
Reid Spencera773bd52006-08-04 18:18:08 +000033650{ echo "$as_me:$LINENO: checking for working mmap" >&5
33651echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033652if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33653 echo $ECHO_N "(cached) $ECHO_C" >&6
33654else
33655 if test "$cross_compiling" = yes; then
33656 ac_cv_func_mmap_fixed_mapped=no
33657else
33658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033659/* confdefs.h. */
33660_ACEOF
33661cat confdefs.h >>conftest.$ac_ext
33662cat >>conftest.$ac_ext <<_ACEOF
33663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033664$ac_includes_default
33665/* malloc might have been renamed as rpl_malloc. */
33666#undef malloc
33667
33668/* Thanks to Mike Haertel and Jim Avera for this test.
33669 Here is a matrix of mmap possibilities:
33670 mmap private not fixed
33671 mmap private fixed at somewhere currently unmapped
33672 mmap private fixed at somewhere already mapped
33673 mmap shared not fixed
33674 mmap shared fixed at somewhere currently unmapped
33675 mmap shared fixed at somewhere already mapped
33676 For private mappings, we should verify that changes cannot be read()
33677 back from the file, nor mmap's back from the file at a different
33678 address. (There have been systems where private was not correctly
33679 implemented like the infamous i386 svr4.0, and systems where the
33680 VM page cache was not coherent with the file system buffer cache
33681 like early versions of FreeBSD and possibly contemporary NetBSD.)
33682 For shared mappings, we should conversely verify that changes get
33683 propagated back to all the places they're supposed to be.
33684
33685 Grep wants private fixed already mapped.
33686 The main things grep needs to know about mmap are:
33687 * does it exist and is it safe to write into the mmap'd area
33688 * how to use it (BSD variants) */
33689
33690#include <fcntl.h>
33691#include <sys/mman.h>
33692
Tanya Lattnercf067672008-01-17 05:57:22 +000033693#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033694char *malloc ();
33695#endif
33696
33697/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033698#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033699/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033700# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033701# define HAVE_SYS_PARAM_H 1
33702# endif
33703
33704# ifdef _SC_PAGESIZE
33705# define getpagesize() sysconf(_SC_PAGESIZE)
33706# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033707# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033708# include <sys/param.h>
33709# ifdef EXEC_PAGESIZE
33710# define getpagesize() EXEC_PAGESIZE
33711# else /* no EXEC_PAGESIZE */
33712# ifdef NBPG
33713# define getpagesize() NBPG * CLSIZE
33714# ifndef CLSIZE
33715# define CLSIZE 1
33716# endif /* no CLSIZE */
33717# else /* no NBPG */
33718# ifdef NBPC
33719# define getpagesize() NBPC
33720# else /* no NBPC */
33721# ifdef PAGESIZE
33722# define getpagesize() PAGESIZE
33723# endif /* PAGESIZE */
33724# endif /* no NBPC */
33725# endif /* no NBPG */
33726# endif /* no EXEC_PAGESIZE */
33727# else /* no HAVE_SYS_PARAM_H */
33728# define getpagesize() 8192 /* punt totally */
33729# endif /* no HAVE_SYS_PARAM_H */
33730# endif /* no _SC_PAGESIZE */
33731
33732#endif /* no HAVE_GETPAGESIZE */
33733
33734int
33735main ()
33736{
33737 char *data, *data2, *data3;
33738 int i, pagesize;
33739 int fd;
33740
33741 pagesize = getpagesize ();
33742
33743 /* First, make a file with some known garbage in it. */
33744 data = (char *) malloc (pagesize);
33745 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033747 for (i = 0; i < pagesize; ++i)
33748 *(data + i) = rand ();
33749 umask (0);
33750 fd = creat ("conftest.mmap", 0600);
33751 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033752 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033753 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033754 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033755 close (fd);
33756
33757 /* Next, try to mmap the file at a fixed address which already has
33758 something else allocated at it. If we can, also make sure that
33759 we see the same garbage. */
33760 fd = open ("conftest.mmap", O_RDWR);
33761 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033762 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033763 data2 = (char *) malloc (2 * pagesize);
33764 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033765 return 1;
33766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033769 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033770 for (i = 0; i < pagesize; ++i)
33771 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033772 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033773
33774 /* Finally, make sure that changes to the mapped area do not
33775 percolate back to the file as seen by read(). (This is a bug on
33776 some variants of i386 svr4.0.) */
33777 for (i = 0; i < pagesize; ++i)
33778 *(data2 + i) = *(data2 + i) + 1;
33779 data3 = (char *) malloc (pagesize);
33780 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033781 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033782 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033783 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033784 for (i = 0; i < pagesize; ++i)
33785 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033786 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033787 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033788 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033789}
33790_ACEOF
33791rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033792if { (ac_try="$ac_link"
33793case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33796esac
33797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033802 { (case "(($ac_try" in
33803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33804 *) ac_try_echo=$ac_try;;
33805esac
33806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33807 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033808 ac_status=$?
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; }; then
33811 ac_cv_func_mmap_fixed_mapped=yes
33812else
33813 echo "$as_me: program exited with status $ac_status" >&5
33814echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033815sed 's/^/| /' conftest.$ac_ext >&5
33816
John Criswell7a73b802003-06-30 21:59:07 +000033817( exit $ac_status )
33818ac_cv_func_mmap_fixed_mapped=no
33819fi
Reid Spencera773bd52006-08-04 18:18:08 +000033820rm -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 +000033821fi
Reid Spencera773bd52006-08-04 18:18:08 +000033822
33823
John Criswell7a73b802003-06-30 21:59:07 +000033824fi
Reid Spencera773bd52006-08-04 18:18:08 +000033825{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33826echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033827if test $ac_cv_func_mmap_fixed_mapped = yes; then
33828
33829cat >>confdefs.h <<\_ACEOF
33830#define HAVE_MMAP 1
33831_ACEOF
33832
33833fi
33834rm -f conftest.mmap
33835
Reid Spencer30fe5262007-01-20 07:48:49 +000033836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033837echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033838if test "${ac_cv_func_mmap_file+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33840else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033841 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033842ac_cpp='$CPP $CPPFLAGS'
33843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845ac_compiler_gnu=$ac_cv_c_compiler_gnu
33846
33847 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033848 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033849else
33850 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033851
Reid Spencer777ce172004-09-20 04:09:56 +000033852 /* confdefs.h. */
33853_ACEOF
33854cat confdefs.h >>conftest.$ac_ext
33855cat >>conftest.$ac_ext <<_ACEOF
33856/* end confdefs.h. */
33857
John Criswell7a73b802003-06-30 21:59:07 +000033858#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033859#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033860#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033861
33862int
33863main ()
33864{
John Criswell7a73b802003-06-30 21:59:07 +000033865
33866 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033867 fd = creat ("foo",0777);
33868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33869 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033870 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033871 ;
33872 return 0;
33873}
John Criswell7a73b802003-06-30 21:59:07 +000033874_ACEOF
33875rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033876if { (ac_try="$ac_link"
33877case "(($ac_try" in
33878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879 *) ac_try_echo=$ac_try;;
33880esac
33881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033886 { (case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33889esac
33890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033892 ac_status=$?
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_func_mmap_file=yes
33896else
33897 echo "$as_me: program exited with status $ac_status" >&5
33898echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033899sed 's/^/| /' conftest.$ac_ext >&5
33900
John Criswell7a73b802003-06-30 21:59:07 +000033901( exit $ac_status )
33902ac_cv_func_mmap_file=no
33903fi
Reid Spencera773bd52006-08-04 18:18:08 +000033904rm -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 +000033905fi
Reid Spencera773bd52006-08-04 18:18:08 +000033906
33907
John Criswell7a73b802003-06-30 21:59:07 +000033908 ac_ext=c
33909ac_cpp='$CPP $CPPFLAGS'
33910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912ac_compiler_gnu=$ac_cv_c_compiler_gnu
33913
33914
33915fi
Reid Spencera773bd52006-08-04 18:18:08 +000033916{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33917echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033918if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033919
33920cat >>confdefs.h <<\_ACEOF
33921#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033922_ACEOF
33923
33924 MMAP_FILE=yes
33925
33926fi
33927
Reid Spencer30fe5262007-01-20 07:48:49 +000033928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033929echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033930if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33932else
Reid Spencer582a23c2004-12-29 07:07:57 +000033933 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033934 ac_cv_need_dev_zero_for_mmap=yes
33935 else
33936 ac_cv_need_dev_zero_for_mmap=no
33937 fi
33938
33939fi
Reid Spencera773bd52006-08-04 18:18:08 +000033940{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33941echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033942if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33943
33944cat >>confdefs.h <<\_ACEOF
33945#define NEED_DEV_ZERO_FOR_MMAP 1
33946_ACEOF
33947
33948fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033949
Reid Spencer30fe5262007-01-20 07:48:49 +000033950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33951 then
33952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033953echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033954 fi
33955 if test "$ac_cv_func_mmap_file" = "no"
33956 then
33957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033958echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033959 fi
John Criswellb13092b2003-07-22 21:00:24 +000033960fi
John Criswell7a73b802003-06-30 21:59:07 +000033961
33962
Reid Spencer9372f152007-07-30 20:13:24 +000033963
33964for ac_func in __dso_handle
33965do
33966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33971else
33972 cat >conftest.$ac_ext <<_ACEOF
33973/* confdefs.h. */
33974_ACEOF
33975cat confdefs.h >>conftest.$ac_ext
33976cat >>conftest.$ac_ext <<_ACEOF
33977/* end confdefs.h. */
33978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33980#define $ac_func innocuous_$ac_func
33981
33982/* System header to define __stub macros and hopefully few prototypes,
33983 which can conflict with char $ac_func (); below.
33984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33985 <limits.h> exists even on freestanding compilers. */
33986
33987#ifdef __STDC__
33988# include <limits.h>
33989#else
33990# include <assert.h>
33991#endif
33992
33993#undef $ac_func
33994
33995/* Override any GCC internal prototype to avoid an error.
33996 Use char because int might match the return type of a GCC
33997 builtin and then its argument prototype would still apply. */
33998#ifdef __cplusplus
33999extern "C"
34000#endif
34001char $ac_func ();
34002/* The GNU C library defines this for functions which it implements
34003 to always fail with ENOSYS. Some functions are actually named
34004 something starting with __ and the normal name is an alias. */
34005#if defined __stub_$ac_func || defined __stub___$ac_func
34006choke me
34007#endif
34008
34009int
34010main ()
34011{
34012return $ac_func ();
34013 ;
34014 return 0;
34015}
34016_ACEOF
34017rm -f conftest.$ac_objext conftest$ac_exeext
34018if { (ac_try="$ac_link"
34019case "(($ac_try" in
34020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021 *) ac_try_echo=$ac_try;;
34022esac
34023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024 (eval "$ac_link") 2>conftest.er1
34025 ac_status=$?
34026 grep -v '^ *+' conftest.er1 >conftest.err
34027 rm -f conftest.er1
34028 cat conftest.err >&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034030 (exit $ac_status); } &&
34031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
34041 { ac_try='test -s conftest$ac_exeext'
34042 { (case "(($ac_try" in
34043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044 *) ac_try_echo=$ac_try;;
34045esac
34046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_try") 2>&5
34048 ac_status=$?
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034051 eval "$as_ac_var=yes"
34052else
34053 echo "$as_me: failed program was:" >&5
34054sed 's/^/| /' conftest.$ac_ext >&5
34055
34056 eval "$as_ac_var=no"
34057fi
34058
Tanya Lattnercf067672008-01-17 05:57:22 +000034059rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034060 conftest$ac_exeext conftest.$ac_ext
34061fi
34062ac_res=`eval echo '${'$as_ac_var'}'`
34063 { echo "$as_me:$LINENO: result: $ac_res" >&5
34064echo "${ECHO_T}$ac_res" >&6; }
34065if test `eval echo '${'$as_ac_var'}'` = yes; then
34066 cat >>confdefs.h <<_ACEOF
34067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34068_ACEOF
34069
34070fi
34071done
34072
34073
Reid Spencera773bd52006-08-04 18:18:08 +000034074{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34075echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034076if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34077 echo $ECHO_N "(cached) $ECHO_C" >&6
34078else
34079 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034080if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034081 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034082 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34083 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034084 if test $? -eq 0 ; then
34085 llvm_cv_llvmgcc_sanity="yes"
34086 fi
34087 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034088fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034089fi
Reid Spencera773bd52006-08-04 18:18:08 +000034090{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34091echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034092
34093if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034094 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34095echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034096 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034097 LLVMCC1=$llvmcc1path
34098
Reid Spencer502935f2004-12-22 05:56:56 +000034099 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034100 LLVMCC1PLUS=$llvmcc1pluspath
34101
Reid Spencer502935f2004-12-22 05:56:56 +000034102 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34103 LLVMGCCDIR=$llvmgccdir
34104
Reid Spencer282d8c12006-12-21 22:55:41 +000034105 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34106 LLVMGCCLIBEXEC=$llvmgcclibexec
34107
Reid Spencerb5d75b82006-05-09 00:31:01 +000034108 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034109 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34110 LLVMGCC_VERSION=$llvmgccversion
34111
34112 LLVMGCC_MAJVERS=$llvmgccmajvers
34113
Reid Spencer0d238182007-04-21 21:28:52 +000034114 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34115 LLVMGCC_LANGS=$llvmgcclangs
34116
34117 { echo "$as_me:$LINENO: result: ok" >&5
34118echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034119fi
34120
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034121SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034122
34123
Reid Spencere9de0912004-08-20 09:03:57 +000034124# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034125# information into substitutions that will end up in Makefile.config.in
34126# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034127if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034128 prefix="/usr/local"
34129fi
Reid Spencere9de0912004-08-20 09:03:57 +000034130eval LLVM_PREFIX="${prefix}";
34131eval LLVM_BINDIR="${prefix}/bin";
34132eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034133eval LLVM_DATADIR="${prefix}/share/llvm";
34134eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34135eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034136eval LLVM_INCLUDEDIR="${prefix}/include";
34137eval LLVM_INFODIR="${prefix}/info";
34138eval LLVM_MANDIR="${prefix}/man";
34139LLVM_CONFIGTIME=`date`
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034151# Place the various directores into the config.h file as #defines so that we
34152# can know about the installation paths within LLVM.
34153
Reid Spencere9de0912004-08-20 09:03:57 +000034154cat >>confdefs.h <<_ACEOF
34155#define LLVM_PREFIX "$LLVM_PREFIX"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
34160#define LLVM_BINDIR "$LLVM_BINDIR"
34161_ACEOF
34162
34163
34164cat >>confdefs.h <<_ACEOF
34165#define LLVM_LIBDIR "$LLVM_LIBDIR"
34166_ACEOF
34167
34168
34169cat >>confdefs.h <<_ACEOF
34170#define LLVM_DATADIR "$LLVM_DATADIR"
34171_ACEOF
34172
34173
34174cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034175#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034176_ACEOF
34177
34178
34179cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034180#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034181_ACEOF
34182
34183
34184cat >>confdefs.h <<_ACEOF
34185#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34186_ACEOF
34187
34188
34189cat >>confdefs.h <<_ACEOF
34190#define LLVM_INFODIR "$LLVM_INFODIR"
34191_ACEOF
34192
34193
34194cat >>confdefs.h <<_ACEOF
34195#define LLVM_MANDIR "$LLVM_MANDIR"
34196_ACEOF
34197
34198
34199cat >>confdefs.h <<_ACEOF
34200#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34201_ACEOF
34202
34203
Eric Christopher790e11c2007-12-01 00:34:39 +000034204cat >>confdefs.h <<_ACEOF
34205#define LLVM_HOSTTRIPLE "$host"
34206_ACEOF
34207
34208
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034209# Determine which bindings to build.
34210if test "$BINDINGS_TO_BUILD" = auto ; then
34211 BINDINGS_TO_BUILD=""
34212 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34213 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34214 fi
34215fi
34216BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34217
34218
34219# This isn't really configurey, but it avoids having to repeat the list in
34220# other files.
34221ALL_BINDINGS=ocaml
34222
34223
Gordon Henriksenf0915682007-10-02 16:42:22 +000034224# Do any work necessary to ensure that bindings have what they need.
34225binding_prereqs_failed=0
34226for a_binding in $BINDINGS_TO_BUILD ; do
34227 case "$a_binding" in
34228 ocaml)
34229 if test "x$OCAMLC" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34231echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34232 binding_prereqs_failed=1
34233 fi
34234 if test "x$OCAMLDEP" = x ; then
34235 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34236echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34237 binding_prereqs_failed=1
34238 fi
34239 if test "x$OCAMLOPT" = x ; then
34240 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34241echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34242 fi
34243 if test "x$with_ocaml_libdir" != xauto ; then
34244 OCAML_LIBDIR=$with_ocaml_libdir
34245
34246 else
34247 ocaml_stdlib="`"$OCAMLC" -where`"
34248 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34249 then
34250 # ocaml stdlib is beneath our prefix; use stdlib
34251 OCAML_LIBDIR=$ocaml_stdlib
34252
34253 else
34254 # ocaml stdlib is outside our prefix; use libdir/ocaml
34255 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34256
34257 fi
34258 fi
34259 ;;
34260 esac
34261done
34262if test "$binding_prereqs_failed" = 1 ; then
34263 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34264echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34265 { (exit 1); exit 1; }; }
34266fi
34267
34268
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034269
Reid Spencera773bd52006-08-04 18:18:08 +000034270ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034271
Reid Spencera773bd52006-08-04 18:18:08 +000034272ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034273
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034274ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034275
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034276ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034277
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034278ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034279
34280
Reid Spencera773bd52006-08-04 18:18:08 +000034281ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034282
34283
Reid Spencerea949cf2006-08-16 00:45:38 +000034284ac_config_files="$ac_config_files llvm.spec"
34285
34286
Reid Spencera773bd52006-08-04 18:18:08 +000034287ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034288
34289
Reid Spencera773bd52006-08-04 18:18:08 +000034290ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034291
34292
Reid Spencera773bd52006-08-04 18:18:08 +000034293ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034294
Reid Spencera773bd52006-08-04 18:18:08 +000034295ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034296
34297
Reid Spencera773bd52006-08-04 18:18:08 +000034298ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034299
34300
Reid Spencera773bd52006-08-04 18:18:08 +000034301ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034302
34303
Reid Spencera773bd52006-08-04 18:18:08 +000034304ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034305
34306
Reid Spencer8b2e1412006-11-17 03:32:33 +000034307ac_config_commands="$ac_config_commands runtime/Makefile"
34308
34309
Reid Spencera773bd52006-08-04 18:18:08 +000034310ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034311
34312
Reid Spencera773bd52006-08-04 18:18:08 +000034313ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034314
34315
Reid Spencera773bd52006-08-04 18:18:08 +000034316ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034317
34318
Reid Spencera773bd52006-08-04 18:18:08 +000034319ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034320
34321
Reid Spencera773bd52006-08-04 18:18:08 +000034322ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034323
34324
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034325ac_config_commands="$ac_config_commands bindings/Makefile"
34326
34327
34328ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34329
34330
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034331
John Criswell7a73b802003-06-30 21:59:07 +000034332cat >confcache <<\_ACEOF
34333# This file is a shell script that caches the results of configure
34334# tests run on this system so they can be shared between configure
34335# scripts and configure runs, see configure's option --config-cache.
34336# It is not useful on other systems. If it contains results you don't
34337# want to keep, you may remove or edit it.
34338#
34339# config.status only pays attention to the cache file if you give it
34340# the --recheck option to rerun configure.
34341#
John Criswell0c38eaf2003-09-10 15:17:25 +000034342# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034343# loading this file, other *unset* `ac_cv_foo' will be assigned the
34344# following values.
34345
34346_ACEOF
34347
34348# The following way of writing the cache mishandles newlines in values,
34349# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034350# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034351# Ultrix sh set writes to stderr and can't be redirected directly,
34352# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034353(
34354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34355 eval ac_val=\$$ac_var
34356 case $ac_val in #(
34357 *${as_nl}*)
34358 case $ac_var in #(
34359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34360echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34361 esac
34362 case $ac_var in #(
34363 _ | IFS | as_nl) ;; #(
34364 *) $as_unset $ac_var ;;
34365 esac ;;
34366 esac
34367 done
34368
John Criswell7a73b802003-06-30 21:59:07 +000034369 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34371 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034372 # `set' does not quote correctly, so add quotes (double-quote
34373 # substitution turns \\\\ into \\, and sed turns \\ into \).
34374 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034375 "s/'/'\\\\''/g;
34376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034377 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034378 *)
34379 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034382 esac |
34383 sort
34384) |
John Criswell7a73b802003-06-30 21:59:07 +000034385 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034386 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034387 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034388 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34390 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34392 :end' >>confcache
34393if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34394 if test -w "$cache_file"; then
34395 test "x$cache_file" != "x/dev/null" &&
34396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34397echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034398 cat confcache >$cache_file
34399 else
Reid Spencera773bd52006-08-04 18:18:08 +000034400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34401echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034402 fi
34403fi
34404rm -f confcache
34405
34406test "x$prefix" = xNONE && prefix=$ac_default_prefix
34407# Let make expand exec_prefix.
34408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34409
John Criswell7a73b802003-06-30 21:59:07 +000034410DEFS=-DHAVE_CONFIG_H
34411
John Criswell0c38eaf2003-09-10 15:17:25 +000034412ac_libobjs=
34413ac_ltlibobjs=
34414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34415 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34417 ac_i=`echo "$ac_i" | sed "$ac_script"`
34418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34419 # will be set to the directory where LIBOBJS objects are built.
34420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034422done
34423LIBOBJS=$ac_libobjs
34424
34425LTLIBOBJS=$ac_ltlibobjs
34426
34427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034428if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34429 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34430Usually this means the macro was only invoked conditionally." >&5
34431echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34432Usually this means the macro was only invoked conditionally." >&2;}
34433 { (exit 1); exit 1; }; }
34434fi
34435if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34436 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34437Usually this means the macro was only invoked conditionally." >&5
34438echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34439Usually this means the macro was only invoked conditionally." >&2;}
34440 { (exit 1); exit 1; }; }
34441fi
John Criswell7a73b802003-06-30 21:59:07 +000034442
34443: ${CONFIG_STATUS=./config.status}
34444ac_clean_files_save=$ac_clean_files
34445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34446{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34447echo "$as_me: creating $CONFIG_STATUS" >&6;}
34448cat >$CONFIG_STATUS <<_ACEOF
34449#! $SHELL
34450# Generated by $as_me.
34451# Run this file to recreate the current configuration.
34452# Compiler output produced by configure, useful for debugging
34453# configure, is in config.log if it exists.
34454
34455debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034456ac_cs_recheck=false
34457ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034458SHELL=\${CONFIG_SHELL-$SHELL}
34459_ACEOF
34460
34461cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034462## --------------------- ##
34463## M4sh Initialization. ##
34464## --------------------- ##
34465
Tanya Lattnercf067672008-01-17 05:57:22 +000034466# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34468 emulate sh
34469 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34471 # is contrary to our usage. Disable this feature.
34472 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034473 setopt NO_GLOB_SUBST
34474else
Tanya Lattnercf067672008-01-17 05:57:22 +000034475 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034476fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034477BIN_SH=xpg4; export BIN_SH # for Tru64
34478DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034479
John Criswell7a73b802003-06-30 21:59:07 +000034480
Reid Spencera773bd52006-08-04 18:18:08 +000034481# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034482# Avoid depending upon Character Ranges.
34483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34486as_cr_digits='0123456789'
34487as_cr_alnum=$as_cr_Letters$as_cr_digits
34488
34489# The user is always right.
34490if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034491 echo "#! /bin/sh" >conf$$.sh
34492 echo "exit 0" >>conf$$.sh
34493 chmod +x conf$$.sh
34494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034495 PATH_SEPARATOR=';'
34496 else
34497 PATH_SEPARATOR=:
34498 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034499 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034500fi
34501
Reid Spencera773bd52006-08-04 18:18:08 +000034502# Support unset when possible.
34503if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34504 as_unset=unset
34505else
34506 as_unset=false
34507fi
John Criswell7a73b802003-06-30 21:59:07 +000034508
Reid Spencera773bd52006-08-04 18:18:08 +000034509
34510# IFS
34511# We need space, tab and new line, in precisely that order. Quoting is
34512# there to prevent editors from complaining about space-tab.
34513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34514# splitting by setting IFS to empty value.)
34515as_nl='
34516'
34517IFS=" "" $as_nl"
34518
34519# Find who we are. Look in the path if we contain no directory separator.
34520case $0 in
34521 *[\\/]* ) as_myself=$0 ;;
34522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034523for as_dir in $PATH
34524do
34525 IFS=$as_save_IFS
34526 test -z "$as_dir" && as_dir=.
34527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34528done
Reid Spencera773bd52006-08-04 18:18:08 +000034529IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034530
Reid Spencera773bd52006-08-04 18:18:08 +000034531 ;;
34532esac
34533# We did not find ourselves, most probably we were run as `sh COMMAND'
34534# in which case we are not to be found in the path.
34535if test "x$as_myself" = x; then
34536 as_myself=$0
34537fi
34538if test ! -f "$as_myself"; then
34539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34540 { (exit 1); exit 1; }
34541fi
34542
34543# Work around bugs in pre-3.0 UWIN ksh.
34544for as_var in ENV MAIL MAILPATH
34545do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34546done
34547PS1='$ '
34548PS2='> '
34549PS4='+ '
34550
34551# NLS nuisances.
34552for as_var in \
34553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34555 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034556do
Reid Spencera773bd52006-08-04 18:18:08 +000034557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34558 eval $as_var=C; export $as_var
34559 else
34560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34561 fi
34562done
34563
34564# Required to use basename.
34565if expr a : '\(a\)' >/dev/null 2>&1 &&
34566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34567 as_expr=expr
34568else
34569 as_expr=false
34570fi
34571
34572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34573 as_basename=basename
34574else
34575 as_basename=false
34576fi
34577
34578
34579# Name of the executable.
34580as_me=`$as_basename -- "$0" ||
34581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34582 X"$0" : 'X\(//\)$' \| \
34583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34584echo X/"$0" |
34585 sed '/^.*\/\([^/][^/]*\)\/*$/{
34586 s//\1/
34587 q
34588 }
34589 /^X\/\(\/\/\)$/{
34590 s//\1/
34591 q
34592 }
34593 /^X\/\(\/\).*/{
34594 s//\1/
34595 q
34596 }
34597 s/.*/./; q'`
34598
34599# CDPATH.
34600$as_unset CDPATH
34601
34602
34603
John Criswell7a73b802003-06-30 21:59:07 +000034604 as_lineno_1=$LINENO
34605 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034606 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034608
34609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34610 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034611 # line-number line after each line using $LINENO; the second 'sed'
34612 # does the real work. The second script uses 'N' to pair each
34613 # line-number line with the line containing $LINENO, and appends
34614 # trailing '-' during substitution so that $LINENO is not a special
34615 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034617 # scripts with optimization help from Paolo Bonzini. Blame Lee
34618 # E. McMahon (1931-1989) for sed's syntax. :-)
34619 sed -n '
34620 p
34621 /[$]LINENO/=
34622 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034623 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034624 s/[$]LINENO.*/&-/
34625 t lineno
34626 b
34627 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034628 N
Reid Spencera773bd52006-08-04 18:18:08 +000034629 :loop
34630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034631 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034632 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034633 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034634 chmod +x "$as_me.lineno" ||
34635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034636 { (exit 1); exit 1; }; }
34637
34638 # Don't try to exec as it changes $[0], causing all sort of problems
34639 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034640 # original and so on. Autoconf is especially sensitive to this).
34641 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034642 # Exit status is that of the last command.
34643 exit
34644}
34645
34646
Reid Spencera773bd52006-08-04 18:18:08 +000034647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34648 as_dirname=dirname
34649else
34650 as_dirname=false
34651fi
34652
34653ECHO_C= ECHO_N= ECHO_T=
34654case `echo -n x` in
34655-n*)
34656 case `echo 'x\c'` in
34657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34658 *) ECHO_C='\c';;
34659 esac;;
34660*)
34661 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034662esac
34663
Reid Spencera773bd52006-08-04 18:18:08 +000034664if expr a : '\(a\)' >/dev/null 2>&1 &&
34665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034666 as_expr=expr
34667else
34668 as_expr=false
34669fi
34670
34671rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034672if test -d conf$$.dir; then
34673 rm -f conf$$.dir/conf$$.file
34674else
34675 rm -f conf$$.dir
34676 mkdir conf$$.dir
34677fi
John Criswell7a73b802003-06-30 21:59:07 +000034678echo >conf$$.file
34679if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034680 as_ln_s='ln -s'
34681 # ... but there are two gotchas:
34682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34684 # In both cases, we have to default to `cp -p'.
34685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034686 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034687elif ln conf$$.file conf$$ 2>/dev/null; then
34688 as_ln_s=ln
34689else
34690 as_ln_s='cp -p'
34691fi
Reid Spencera773bd52006-08-04 18:18:08 +000034692rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34693rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034694
John Criswell0c38eaf2003-09-10 15:17:25 +000034695if mkdir -p . 2>/dev/null; then
34696 as_mkdir_p=:
34697else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034698 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034699 as_mkdir_p=false
34700fi
34701
Tanya Lattnercf067672008-01-17 05:57:22 +000034702# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34703# systems may use methods other than mode bits to determine executability.
34704cat >conf$$.file <<_ASEOF
34705#! /bin/sh
34706exit 0
34707_ASEOF
34708chmod +x conf$$.file
34709if test -x conf$$.file >/dev/null 2>&1; then
34710 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034711else
Tanya Lattnercf067672008-01-17 05:57:22 +000034712 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034713fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034714rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034715
34716# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034718
34719# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034721
34722
John Criswell7a73b802003-06-30 21:59:07 +000034723exec 6>&1
34724
Reid Spencera773bd52006-08-04 18:18:08 +000034725# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034726# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034727# values after options handling.
34728ac_log="
Tanya Lattner49ff6612008-05-10 04:20:38 +000034729This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034730generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034731
34732 CONFIG_FILES = $CONFIG_FILES
34733 CONFIG_HEADERS = $CONFIG_HEADERS
34734 CONFIG_LINKS = $CONFIG_LINKS
34735 CONFIG_COMMANDS = $CONFIG_COMMANDS
34736 $ $0 $@
34737
Reid Spencera773bd52006-08-04 18:18:08 +000034738on `(hostname || uname -n) 2>/dev/null | sed 1q`
34739"
34740
John Criswell7a73b802003-06-30 21:59:07 +000034741_ACEOF
34742
Reid Spencera773bd52006-08-04 18:18:08 +000034743cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034744# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034745config_files="$ac_config_files"
34746config_headers="$ac_config_headers"
34747config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034748
Reid Spencera773bd52006-08-04 18:18:08 +000034749_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034750
34751cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034752ac_cs_usage="\
34753\`$as_me' instantiates files from templates according to the
34754current configuration.
34755
34756Usage: $0 [OPTIONS] [FILE]...
34757
34758 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034759 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034760 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034761 -d, --debug don't remove temporary files
34762 --recheck update $as_me by reconfiguring in the same conditions
34763 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034764 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034765 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034766 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034767
34768Configuration files:
34769$config_files
34770
34771Configuration headers:
34772$config_headers
34773
John Criswellc764fbc2003-09-06 15:17:13 +000034774Configuration commands:
34775$config_commands
34776
John Criswell7a73b802003-06-30 21:59:07 +000034777Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034778
Reid Spencera773bd52006-08-04 18:18:08 +000034779_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034780cat >>$CONFIG_STATUS <<_ACEOF
34781ac_cs_version="\\
Tanya Lattner49ff6612008-05-10 04:20:38 +000034782llvm config.status 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +000034783configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034785
Reid Spencera773bd52006-08-04 18:18:08 +000034786Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034787This config.status script is free software; the Free Software Foundation
34788gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034789
34790ac_pwd='$ac_pwd'
34791srcdir='$srcdir'
34792INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034793_ACEOF
34794
34795cat >>$CONFIG_STATUS <<\_ACEOF
34796# If no file are specified by the user, then we need to provide default
34797# value. By we need to know if files were specified by the user.
34798ac_need_defaults=:
34799while test $# != 0
34800do
34801 case $1 in
34802 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034805 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034807 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034808 ac_option=$1
34809 ac_optarg=$2
34810 ac_shift=shift
34811 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034812 esac
34813
John Criswell0c38eaf2003-09-10 15:17:25 +000034814 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034815 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34817 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34819 echo "$ac_cs_version"; exit ;;
34820 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034821 debug=: ;;
34822 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034823 $ac_shift
34824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034825 ac_need_defaults=false;;
34826 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034827 $ac_shift
34828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034829 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034830 --he | --h)
34831 # Conflict between --help and --header
34832 { echo "$as_me: error: ambiguous option: $1
34833Try \`$0 --help' for more information." >&2
34834 { (exit 1); exit 1; }; };;
34835 --help | --hel | -h )
34836 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34839 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034840
34841 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034842 -*) { echo "$as_me: error: unrecognized option: $1
34843Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034844 { (exit 1); exit 1; }; } ;;
34845
Reid Spencera773bd52006-08-04 18:18:08 +000034846 *) ac_config_targets="$ac_config_targets $1"
34847 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034848
34849 esac
34850 shift
34851done
34852
John Criswell0c38eaf2003-09-10 15:17:25 +000034853ac_configure_extra_args=
34854
34855if $ac_cs_silent; then
34856 exec 6>/dev/null
34857 ac_configure_extra_args="$ac_configure_extra_args --silent"
34858fi
34859
34860_ACEOF
34861cat >>$CONFIG_STATUS <<_ACEOF
34862if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34864 CONFIG_SHELL=$SHELL
34865 export CONFIG_SHELL
34866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034867fi
34868
John Criswell7a73b802003-06-30 21:59:07 +000034869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034870cat >>$CONFIG_STATUS <<\_ACEOF
34871exec 5>>config.log
34872{
34873 echo
34874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34875## Running $as_me. ##
34876_ASBOX
34877 echo "$ac_log"
34878} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034879
Reid Spencera773bd52006-08-04 18:18:08 +000034880_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034881cat >>$CONFIG_STATUS <<_ACEOF
34882#
Reid Spencera773bd52006-08-04 18:18:08 +000034883# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034884#
Reid Spencerc0682832005-02-24 19:05:19 +000034885llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034886
34887_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034888
John Criswell7a73b802003-06-30 21:59:07 +000034889cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034890
34891# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034892for ac_config_target in $ac_config_targets
34893do
Reid Spencera773bd52006-08-04 18:18:08 +000034894 case $ac_config_target in
34895 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34896 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034897 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34898 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34899 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034900 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034901 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034902 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34903 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34904 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34905 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34906 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34907 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34908 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034909 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034910 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34911 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34912 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34913 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34914 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034915 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34916 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034917
John Criswell7a73b802003-06-30 21:59:07 +000034918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34919echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34920 { (exit 1); exit 1; }; };;
34921 esac
34922done
34923
Reid Spencera773bd52006-08-04 18:18:08 +000034924
John Criswell7a73b802003-06-30 21:59:07 +000034925# If the user did not use the arguments to specify the items to instantiate,
34926# then the envvar interface is used. Set only those that are not.
34927# We use the long form for the default assignment because of an extremely
34928# bizarre bug on SunOS 4.1.3.
34929if $ac_need_defaults; then
34930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034933fi
34934
John Criswell0c38eaf2003-09-10 15:17:25 +000034935# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034936# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034937# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034938# Hook for its removal unless debugging.
34939# Note that there is a small window in which the directory will not be cleaned:
34940# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034941$debug ||
34942{
Reid Spencera773bd52006-08-04 18:18:08 +000034943 tmp=
34944 trap 'exit_status=$?
34945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34946' 0
John Criswell7a73b802003-06-30 21:59:07 +000034947 trap '{ (exit 1); exit 1; }' 1 2 13 15
34948}
John Criswell7a73b802003-06-30 21:59:07 +000034949# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034950
John Criswell7a73b802003-06-30 21:59:07 +000034951{
Reid Spencera773bd52006-08-04 18:18:08 +000034952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034953 test -n "$tmp" && test -d "$tmp"
34954} ||
34955{
Reid Spencera773bd52006-08-04 18:18:08 +000034956 tmp=./conf$$-$RANDOM
34957 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034958} ||
34959{
John Criswell0c38eaf2003-09-10 15:17:25 +000034960 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034961 { (exit 1); exit 1; }
34962}
34963
John Criswell7a73b802003-06-30 21:59:07 +000034964#
Reid Spencera773bd52006-08-04 18:18:08 +000034965# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034966#
34967
34968# No need to generate the scripts if there are no CONFIG_FILES.
34969# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034970if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034971
34972_ACEOF
34973
Reid Spencera773bd52006-08-04 18:18:08 +000034974
34975
34976ac_delim='%!_!# '
34977for ac_last_try in false false false false false :; do
34978 cat >conf$$subs.sed <<_ACEOF
34979SHELL!$SHELL$ac_delim
34980PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34981PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34982PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34983PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34984PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34985PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34986exec_prefix!$exec_prefix$ac_delim
34987prefix!$prefix$ac_delim
34988program_transform_name!$program_transform_name$ac_delim
34989bindir!$bindir$ac_delim
34990sbindir!$sbindir$ac_delim
34991libexecdir!$libexecdir$ac_delim
34992datarootdir!$datarootdir$ac_delim
34993datadir!$datadir$ac_delim
34994sysconfdir!$sysconfdir$ac_delim
34995sharedstatedir!$sharedstatedir$ac_delim
34996localstatedir!$localstatedir$ac_delim
34997includedir!$includedir$ac_delim
34998oldincludedir!$oldincludedir$ac_delim
34999docdir!$docdir$ac_delim
35000infodir!$infodir$ac_delim
35001htmldir!$htmldir$ac_delim
35002dvidir!$dvidir$ac_delim
35003pdfdir!$pdfdir$ac_delim
35004psdir!$psdir$ac_delim
35005libdir!$libdir$ac_delim
35006localedir!$localedir$ac_delim
35007mandir!$mandir$ac_delim
35008DEFS!$DEFS$ac_delim
35009ECHO_C!$ECHO_C$ac_delim
35010ECHO_N!$ECHO_N$ac_delim
35011ECHO_T!$ECHO_T$ac_delim
35012LIBS!$LIBS$ac_delim
35013build_alias!$build_alias$ac_delim
35014host_alias!$host_alias$ac_delim
35015target_alias!$target_alias$ac_delim
35016LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35017subdirs!$subdirs$ac_delim
35018build!$build$ac_delim
35019build_cpu!$build_cpu$ac_delim
35020build_vendor!$build_vendor$ac_delim
35021build_os!$build_os$ac_delim
35022host!$host$ac_delim
35023host_cpu!$host_cpu$ac_delim
35024host_vendor!$host_vendor$ac_delim
35025host_os!$host_os$ac_delim
35026target!$target$ac_delim
35027target_cpu!$target_cpu$ac_delim
35028target_vendor!$target_vendor$ac_delim
35029target_os!$target_os$ac_delim
35030OS!$OS$ac_delim
35031LINKALL!$LINKALL$ac_delim
35032NOLINKALL!$NOLINKALL$ac_delim
35033LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35034LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35035ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035036ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035037CC!$CC$ac_delim
35038CFLAGS!$CFLAGS$ac_delim
35039LDFLAGS!$LDFLAGS$ac_delim
35040CPPFLAGS!$CPPFLAGS$ac_delim
35041ac_ct_CC!$ac_ct_CC$ac_delim
35042EXEEXT!$EXEEXT$ac_delim
35043OBJEXT!$OBJEXT$ac_delim
35044CPP!$CPP$ac_delim
35045GREP!$GREP$ac_delim
35046EGREP!$EGREP$ac_delim
35047LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35048BUILD_CC!$BUILD_CC$ac_delim
35049BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35050CVSBUILD!$CVSBUILD$ac_delim
35051ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35052DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035053ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35054EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035055DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035056JIT!$JIT$ac_delim
35057TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35058ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35059ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035060ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035061TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035062ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035063EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35064CXX!$CXX$ac_delim
35065CXXFLAGS!$CXXFLAGS$ac_delim
35066ac_ct_CXX!$ac_ct_CXX$ac_delim
35067LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035068LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035069LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035070FLEX!$FLEX$ac_delim
35071YACC!$YACC$ac_delim
35072YFLAGS!$YFLAGS$ac_delim
35073BISON!$BISON$ac_delim
35074NM!$NM$ac_delim
35075ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035076_ACEOF
35077
35078 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35079 break
35080 elif $ac_last_try; then
35081 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35082echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35083 { (exit 1); exit 1; }; }
35084 else
35085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035086 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035087done
35088
35089ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35090if test -n "$ac_eof"; then
35091 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35092 ac_eof=`expr $ac_eof + 1`
35093fi
35094
35095cat >>$CONFIG_STATUS <<_ACEOF
35096cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35098_ACEOF
35099sed '
35100s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35101s/^/s,@/; s/!/@,|#_!!_#|/
35102:n
35103t n
35104s/'"$ac_delim"'$/,g/; t
35105s/$/\\/; p
35106N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35107' >>$CONFIG_STATUS <conf$$subs.sed
35108rm -f conf$$subs.sed
35109cat >>$CONFIG_STATUS <<_ACEOF
35110CEOF$ac_eof
35111_ACEOF
35112
35113
35114ac_delim='%!_!# '
35115for ac_last_try in false false false false false :; do
35116 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035117LN_S!$LN_S$ac_delim
35118CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035119CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035120DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035121FIND!$FIND$ac_delim
35122MKDIR!$MKDIR$ac_delim
35123MV!$MV$ac_delim
35124RANLIB!$RANLIB$ac_delim
35125RM!$RM$ac_delim
35126SED!$SED$ac_delim
35127TAR!$TAR$ac_delim
35128BINPWD!$BINPWD$ac_delim
35129GRAPHVIZ!$GRAPHVIZ$ac_delim
35130DOT!$DOT$ac_delim
35131GV!$GV$ac_delim
35132DOTTY!$DOTTY$ac_delim
35133PERL!$PERL$ac_delim
35134HAVE_PERL!$HAVE_PERL$ac_delim
35135INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35136INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35137INSTALL_DATA!$INSTALL_DATA$ac_delim
35138BZIP2!$BZIP2$ac_delim
35139DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035140GROFF!$GROFF$ac_delim
35141GZIP!$GZIP$ac_delim
35142POD2HTML!$POD2HTML$ac_delim
35143POD2MAN!$POD2MAN$ac_delim
35144RUNTEST!$RUNTEST$ac_delim
35145TCLSH!$TCLSH$ac_delim
35146ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035147OCAMLC!$OCAMLC$ac_delim
35148OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035149OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035150OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035151INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35152INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35153CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35154CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35155LIBADD_DL!$LIBADD_DL$ac_delim
35156ECHO!$ECHO$ac_delim
35157AR!$AR$ac_delim
35158STRIP!$STRIP$ac_delim
35159CXXCPP!$CXXCPP$ac_delim
35160F77!$F77$ac_delim
35161FFLAGS!$FFLAGS$ac_delim
35162ac_ct_F77!$ac_ct_F77$ac_delim
35163LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035164LLVMGCC!$LLVMGCC$ac_delim
35165LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035166USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035167HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035168HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035169ALLOCA!$ALLOCA$ac_delim
35170MMAP_FILE!$MMAP_FILE$ac_delim
35171LLVMCC1!$LLVMCC1$ac_delim
35172LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35173LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035174LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035175LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35176LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035177LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035178SHLIBEXT!$SHLIBEXT$ac_delim
35179LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35180LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35181LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35182LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35183LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35184LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35185LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35186LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35187LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35188LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035189BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35190ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035191OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035192LIBOBJS!$LIBOBJS$ac_delim
35193LTLIBOBJS!$LTLIBOBJS$ac_delim
35194_ACEOF
35195
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035196 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000035197 break
35198 elif $ac_last_try; then
35199 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35200echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35201 { (exit 1); exit 1; }; }
35202 else
35203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35204 fi
35205done
35206
35207ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35208if test -n "$ac_eof"; then
35209 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35210 ac_eof=`expr $ac_eof + 1`
35211fi
35212
35213cat >>$CONFIG_STATUS <<_ACEOF
35214cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35216_ACEOF
35217sed '
35218s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35219s/^/s,@/; s/!/@,|#_!!_#|/
35220:n
35221t n
35222s/'"$ac_delim"'$/,g/; t
35223s/$/\\/; p
35224N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35225' >>$CONFIG_STATUS <conf$$subs.sed
35226rm -f conf$$subs.sed
35227cat >>$CONFIG_STATUS <<_ACEOF
35228:end
35229s/|#_!!_#|//g
35230CEOF$ac_eof
35231_ACEOF
35232
35233
35234# VPATH may cause trouble with some makes, so we remove $(srcdir),
35235# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35236# trailing colons and then remove the whole line if VPATH becomes empty
35237# (actually we leave an empty line to preserve line numbers).
35238if test "x$srcdir" = x.; then
35239 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35240s/:*\$(srcdir):*/:/
35241s/:*\${srcdir}:*/:/
35242s/:*@srcdir@:*/:/
35243s/^\([^=]*=[ ]*\):*/\1/
35244s/:*$//
35245s/^[^=]*=[ ]*$//
35246}'
35247fi
35248
35249cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035250fi # test -n "$CONFIG_FILES"
35251
Reid Spencera773bd52006-08-04 18:18:08 +000035252
35253for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35254do
35255 case $ac_tag in
35256 :[FHLC]) ac_mode=$ac_tag; continue;;
35257 esac
35258 case $ac_mode$ac_tag in
35259 :[FHL]*:*);;
35260 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35261echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35262 { (exit 1); exit 1; }; };;
35263 :[FH]-) ac_tag=-:-;;
35264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35265 esac
35266 ac_save_IFS=$IFS
35267 IFS=:
35268 set x $ac_tag
35269 IFS=$ac_save_IFS
35270 shift
35271 ac_file=$1
35272 shift
35273
35274 case $ac_mode in
35275 :L) ac_source=$1;;
35276 :[FH])
35277 ac_file_inputs=
35278 for ac_f
35279 do
35280 case $ac_f in
35281 -) ac_f="$tmp/stdin";;
35282 *) # Look for the file first in the build tree, then in the source tree
35283 # (if the path is not absolute). The absolute path cannot be DOS-style,
35284 # because $ac_f cannot contain `:'.
35285 test -f "$ac_f" ||
35286 case $ac_f in
35287 [\\/$]*) false;;
35288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35289 esac ||
35290 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35291echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35292 { (exit 1); exit 1; }; };;
35293 esac
35294 ac_file_inputs="$ac_file_inputs $ac_f"
35295 done
35296
35297 # Let's still pretend it is `configure' which instantiates (i.e., don't
35298 # use $as_me), people would be surprised to read:
35299 # /* config.h. Generated by config.status. */
35300 configure_input="Generated from "`IFS=:
35301 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35302 if test x"$ac_file" != x-; then
35303 configure_input="$ac_file. $configure_input"
35304 { echo "$as_me:$LINENO: creating $ac_file" >&5
35305echo "$as_me: creating $ac_file" >&6;}
35306 fi
35307
35308 case $ac_tag in
35309 *:-:* | *:-) cat >"$tmp/stdin";;
35310 esac
35311 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035312 esac
35313
Reid Spencera773bd52006-08-04 18:18:08 +000035314 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035316 X"$ac_file" : 'X\(//\)[^/]' \| \
35317 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035319echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35321 s//\1/
35322 q
35323 }
35324 /^X\(\/\/\)[^/].*/{
35325 s//\1/
35326 q
35327 }
35328 /^X\(\/\/\)$/{
35329 s//\1/
35330 q
35331 }
35332 /^X\(\/\).*/{
35333 s//\1/
35334 q
35335 }
35336 s/.*/./; q'`
35337 { as_dir="$ac_dir"
35338 case $as_dir in #(
35339 -*) as_dir=./$as_dir;;
35340 esac
35341 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035342 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035343 while :; do
35344 case $as_dir in #(
35345 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35346 *) as_qdir=$as_dir;;
35347 esac
35348 as_dirs="'$as_qdir' $as_dirs"
35349 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035351 X"$as_dir" : 'X\(//\)[^/]' \| \
35352 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035354echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35356 s//\1/
35357 q
35358 }
35359 /^X\(\/\/\)[^/].*/{
35360 s//\1/
35361 q
35362 }
35363 /^X\(\/\/\)$/{
35364 s//\1/
35365 q
35366 }
35367 /^X\(\/\).*/{
35368 s//\1/
35369 q
35370 }
35371 s/.*/./; q'`
35372 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035373 done
Reid Spencera773bd52006-08-04 18:18:08 +000035374 test -z "$as_dirs" || eval "mkdir $as_dirs"
35375 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35376echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035377 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035378 ac_builddir=.
35379
Reid Spencera773bd52006-08-04 18:18:08 +000035380case "$ac_dir" in
35381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35382*)
John Criswell7a73b802003-06-30 21:59:07 +000035383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035384 # A ".." for each directory in $ac_dir_suffix.
35385 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35386 case $ac_top_builddir_sub in
35387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35389 esac ;;
35390esac
35391ac_abs_top_builddir=$ac_pwd
35392ac_abs_builddir=$ac_pwd$ac_dir_suffix
35393# for backward compatibility:
35394ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035395
35396case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035397 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035398 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035399 ac_top_srcdir=$ac_top_builddir_sub
35400 ac_abs_top_srcdir=$ac_pwd ;;
35401 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035402 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035403 ac_top_srcdir=$srcdir
35404 ac_abs_top_srcdir=$srcdir ;;
35405 *) # Relative name.
35406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35407 ac_top_srcdir=$ac_top_build_prefix$srcdir
35408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035409esac
Reid Spencera773bd52006-08-04 18:18:08 +000035410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035411
John Criswell7a73b802003-06-30 21:59:07 +000035412
Reid Spencera773bd52006-08-04 18:18:08 +000035413 case $ac_mode in
35414 :F)
35415 #
35416 # CONFIG_FILE
35417 #
John Criswell7a73b802003-06-30 21:59:07 +000035418
35419 case $INSTALL in
35420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035421 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035422 esac
John Criswell7a73b802003-06-30 21:59:07 +000035423_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035424
35425cat >>$CONFIG_STATUS <<\_ACEOF
35426# If the template does not know about datarootdir, expand it.
35427# FIXME: This hack should be removed a few years after 2.60.
35428ac_datarootdir_hack=; ac_datarootdir_seen=
35429
35430case `sed -n '/datarootdir/ {
35431 p
35432 q
35433}
35434/@datadir@/p
35435/@docdir@/p
35436/@infodir@/p
35437/@localedir@/p
35438/@mandir@/p
35439' $ac_file_inputs` in
35440*datarootdir*) ac_datarootdir_seen=yes;;
35441*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35442 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35443echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35444_ACEOF
35445cat >>$CONFIG_STATUS <<_ACEOF
35446 ac_datarootdir_hack='
35447 s&@datadir@&$datadir&g
35448 s&@docdir@&$docdir&g
35449 s&@infodir@&$infodir&g
35450 s&@localedir@&$localedir&g
35451 s&@mandir@&$mandir&g
35452 s&\\\${datarootdir}&$datarootdir&g' ;;
35453esac
35454_ACEOF
35455
35456# Neutralize VPATH when `$srcdir' = `.'.
35457# Shell code in configure.ac might set extrasub.
35458# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035459cat >>$CONFIG_STATUS <<_ACEOF
35460 sed "$ac_vpsub
35461$extrasub
35462_ACEOF
35463cat >>$CONFIG_STATUS <<\_ACEOF
35464:t
35465/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035466s&@configure_input@&$configure_input&;t t
35467s&@top_builddir@&$ac_top_builddir_sub&;t t
35468s&@srcdir@&$ac_srcdir&;t t
35469s&@abs_srcdir@&$ac_abs_srcdir&;t t
35470s&@top_srcdir@&$ac_top_srcdir&;t t
35471s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35472s&@builddir@&$ac_builddir&;t t
35473s&@abs_builddir@&$ac_abs_builddir&;t t
35474s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35475s&@INSTALL@&$ac_INSTALL&;t t
35476$ac_datarootdir_hack
35477" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035478
Reid Spencera773bd52006-08-04 18:18:08 +000035479test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35480 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35481 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35482 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35483which seems to be undefined. Please make sure it is defined." >&5
35484echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35485which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035486
Reid Spencera773bd52006-08-04 18:18:08 +000035487 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035488 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035489 -) cat "$tmp/out"; rm -f "$tmp/out";;
35490 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035491 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035492 ;;
35493 :H)
35494 #
35495 # CONFIG_HEADER
35496 #
John Criswell7a73b802003-06-30 21:59:07 +000035497_ACEOF
35498
Reid Spencera773bd52006-08-04 18:18:08 +000035499# Transform confdefs.h into a sed script `conftest.defines', that
35500# substitutes the proper values into config.h.in to produce config.h.
35501rm -f conftest.defines conftest.tail
35502# First, append a space to every undef/define line, to ease matching.
35503echo 's/$/ /' >conftest.defines
35504# Then, protect against being on the right side of a sed subst, or in
35505# an unquoted here document, in config.status. If some macros were
35506# called several times there might be several #defines for the same
35507# symbol, which is useless. But do not sort them, since the last
35508# AC_DEFINE must be honored.
35509ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35510# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35511# NAME is the cpp macro being defined, VALUE is the value it is being given.
35512# PARAMS is the parameter list in the macro definition--in most cases, it's
35513# just an empty string.
35514ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35515ac_dB='\\)[ (].*,\\1define\\2'
35516ac_dC=' '
35517ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035518
Reid Spencera773bd52006-08-04 18:18:08 +000035519uniq confdefs.h |
35520 sed -n '
35521 t rset
35522 :rset
35523 s/^[ ]*#[ ]*define[ ][ ]*//
35524 t ok
35525 d
35526 :ok
35527 s/[\\&,]/\\&/g
35528 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35529 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35530 ' >>conftest.defines
35531
35532# Remove the space that was appended to ease matching.
35533# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035534# example, in the case of _POSIX_SOURCE, which is predefined and required
35535# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035536# (The regexp can be short, since the line contains either #define or #undef.)
35537echo 's/ $//
35538s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035539
Reid Spencera773bd52006-08-04 18:18:08 +000035540# Break up conftest.defines:
35541ac_max_sed_lines=50
35542
35543# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35544# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35545# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35546# et cetera.
35547ac_in='$ac_file_inputs'
35548ac_out='"$tmp/out1"'
35549ac_nxt='"$tmp/out2"'
35550
35551while :
John Criswell7a73b802003-06-30 21:59:07 +000035552do
Reid Spencera773bd52006-08-04 18:18:08 +000035553 # Write a here document:
35554 cat >>$CONFIG_STATUS <<_ACEOF
35555 # First, check the format of the line:
35556 cat >"\$tmp/defines.sed" <<\\CEOF
35557/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35558/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35559b
35560:def
35561_ACEOF
35562 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035563 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035564 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35565 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35566 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35567 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035568 rm -f conftest.defines
35569 mv conftest.tail conftest.defines
35570done
Reid Spencera773bd52006-08-04 18:18:08 +000035571rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035572
Reid Spencera773bd52006-08-04 18:18:08 +000035573echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035574cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035575 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035576 echo "/* $configure_input */" >"$tmp/config.h"
35577 cat "$ac_result" >>"$tmp/config.h"
35578 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035579 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35580echo "$as_me: $ac_file is unchanged" >&6;}
35581 else
John Criswell7a73b802003-06-30 21:59:07 +000035582 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035583 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035584 fi
35585 else
Reid Spencera773bd52006-08-04 18:18:08 +000035586 echo "/* $configure_input */"
35587 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035588 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035589 rm -f "$tmp/out12"
35590 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035591
Reid Spencera773bd52006-08-04 18:18:08 +000035592 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35593echo "$as_me: executing $ac_file commands" >&6;}
35594 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035595 esac
John Criswell7a73b802003-06-30 21:59:07 +000035596
Reid Spencera773bd52006-08-04 18:18:08 +000035597
35598 case $ac_file$ac_mode in
35599 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35601 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35603 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35605 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035607 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035609 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35611 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35613 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35615 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35617 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035619 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35621 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035623
35624 esac
35625done # for ac_tag
35626
John Criswell7a73b802003-06-30 21:59:07 +000035627
35628{ (exit 0); exit 0; }
35629_ACEOF
35630chmod +x $CONFIG_STATUS
35631ac_clean_files=$ac_clean_files_save
35632
35633
35634# configure is writing to config.log, and then calls config.status.
35635# config.status does its own redirection, appending to config.log.
35636# Unfortunately, on DOS this fails, as config.log is still kept open
35637# by configure, so config.status won't be able to write to it; its
35638# output is simply discarded. So we exec the FD to /dev/null,
35639# effectively closing config.log, so it can be properly (re)opened and
35640# appended to by config.status. When coming back to configure, we
35641# need to make the FD available again.
35642if test "$no_create" != yes; then
35643 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035644 ac_config_status_args=
35645 test "$silent" = yes &&
35646 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035647 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035649 exec 5>>config.log
35650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35651 # would make configure fail if this is the last instruction.
35652 $ac_cs_success || { (exit 1); exit 1; }
35653fi
35654
John Criswell12399a12003-09-30 15:55:44 +000035655#
35656# CONFIG_SUBDIRS section.
35657#
35658if test "$no_recursion" != yes; then
35659
35660 # Remove --cache-file and --srcdir arguments so they do not pile up.
35661 ac_sub_configure_args=
35662 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035663 eval "set x $ac_configure_args"
35664 shift
35665 for ac_arg
35666 do
John Criswell12399a12003-09-30 15:55:44 +000035667 if test -n "$ac_prev"; then
35668 ac_prev=
35669 continue
35670 fi
35671 case $ac_arg in
35672 -cache-file | --cache-file | --cache-fil | --cache-fi \
35673 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35674 ac_prev=cache_file ;;
35675 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35676 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35677 | --c=*)
35678 ;;
35679 --config-cache | -C)
35680 ;;
35681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35682 ac_prev=srcdir ;;
35683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35684 ;;
35685 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35686 ac_prev=prefix ;;
35687 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035689 *)
35690 case $ac_arg in
35691 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35692 esac
35693 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035694 esac
35695 done
35696
35697 # Always prepend --prefix to ensure using the same prefix
35698 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035699 ac_arg="--prefix=$prefix"
35700 case $ac_arg in
35701 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35702 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035703 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035704
35705 ac_popdir=`pwd`
35706 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35707
35708 # Do not complain, so a configure script can configure whichever
35709 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035710 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035711
Reid Spencera773bd52006-08-04 18:18:08 +000035712 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35713 echo "$as_me:$LINENO: $ac_msg" >&5
35714 echo "$ac_msg" >&6
35715 { as_dir="$ac_dir"
35716 case $as_dir in #(
35717 -*) as_dir=./$as_dir;;
35718 esac
35719 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035720 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035721 while :; do
35722 case $as_dir in #(
35723 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35724 *) as_qdir=$as_dir;;
35725 esac
35726 as_dirs="'$as_qdir' $as_dirs"
35727 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035729 X"$as_dir" : 'X\(//\)[^/]' \| \
35730 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035732echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35734 s//\1/
35735 q
35736 }
35737 /^X\(\/\/\)[^/].*/{
35738 s//\1/
35739 q
35740 }
35741 /^X\(\/\/\)$/{
35742 s//\1/
35743 q
35744 }
35745 /^X\(\/\).*/{
35746 s//\1/
35747 q
35748 }
35749 s/.*/./; q'`
35750 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035751 done
Reid Spencera773bd52006-08-04 18:18:08 +000035752 test -z "$as_dirs" || eval "mkdir $as_dirs"
35753 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35754echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035755 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035756 ac_builddir=.
35757
Reid Spencera773bd52006-08-04 18:18:08 +000035758case "$ac_dir" in
35759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35760*)
John Criswell12399a12003-09-30 15:55:44 +000035761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035762 # A ".." for each directory in $ac_dir_suffix.
35763 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35764 case $ac_top_builddir_sub in
35765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35767 esac ;;
35768esac
35769ac_abs_top_builddir=$ac_pwd
35770ac_abs_builddir=$ac_pwd$ac_dir_suffix
35771# for backward compatibility:
35772ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035773
35774case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035775 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035776 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035777 ac_top_srcdir=$ac_top_builddir_sub
35778 ac_abs_top_srcdir=$ac_pwd ;;
35779 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035780 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035781 ac_top_srcdir=$srcdir
35782 ac_abs_top_srcdir=$srcdir ;;
35783 *) # Relative name.
35784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35785 ac_top_srcdir=$ac_top_build_prefix$srcdir
35786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035787esac
Reid Spencera773bd52006-08-04 18:18:08 +000035788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035789
35790
Reid Spencera773bd52006-08-04 18:18:08 +000035791 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035792
35793 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035794 if test -f "$ac_srcdir/configure.gnu"; then
35795 ac_sub_configure=$ac_srcdir/configure.gnu
35796 elif test -f "$ac_srcdir/configure"; then
35797 ac_sub_configure=$ac_srcdir/configure
35798 elif test -f "$ac_srcdir/configure.in"; then
35799 # This should be Cygnus configure.
35800 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035801 else
35802 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35803echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35804 ac_sub_configure=
35805 fi
35806
35807 # The recursion is here.
35808 if test -n "$ac_sub_configure"; then
35809 # Make the cache file name correct relative to the subdirectory.
35810 case $cache_file in
35811 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035812 *) # Relative name.
35813 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035814 esac
35815
Reid Spencera773bd52006-08-04 18:18:08 +000035816 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35817echo "$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 +000035818 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035819 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35820 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035821 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035822echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35823 { (exit 1); exit 1; }; }
35824 fi
35825
Reid Spencera773bd52006-08-04 18:18:08 +000035826 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035827 done
35828fi
35829