blob: 333f89505173ac5bd414f1bd6ab929c75a869889 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner01d3e382006-11-14 00:59:52 +00003# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if 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
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=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
Reid Spencera773bd52006-08-04 18:18:08 +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
240# Be Bourne compatible
241if 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
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if 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
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
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
Reid Spencera773bd52006-08-04 18:18:08 +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"
528else
529 as_executable_p=:
530fi
531rm -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 Lattner01d3e382006-11-14 00:59:52 +0000718PACKAGE_VERSION='2.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
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>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# 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
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000833DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000838ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000839TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000840ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000900USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000901HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000902HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000903ALLOCA
904MMAP_FILE
905LLVMCC1
906LLVMCC1PLUS
907LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000908LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000909LLVMGCC_VERSION
910LLVMGCC_MAJVERS
911SHLIBEXT
912LLVM_PREFIX
913LLVM_BINDIR
914LLVM_LIBDIR
915LLVM_DATADIR
916LLVM_DOCSDIR
917LLVM_ETCDIR
918LLVM_INCLUDEDIR
919LLVM_INFODIR
920LLVM_MANDIR
921LLVM_CONFIGTIME
922LIBOBJS
923LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000924ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931CPPFLAGS
932CPP
933CXX
934CXXFLAGS
935CCC
936YACC
937YFLAGS
938CXXCPP
939F77
940FFLAGS'
941ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000942projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000943projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000944projects/llvm-test
945projects/llvm-reopt
946projects/llvm-gcc
947projects/llvm-java
948projects/llvm-tv
949projects/llvm-poolalloc
950projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955# The variables have the same names as the options, with
956# dashes changed to underlines.
957cache_file=/dev/null
958exec_prefix=NONE
959no_create=
960no_recursion=
961prefix=NONE
962program_prefix=NONE
963program_suffix=NONE
964program_transform_name=s,x,x,
965silent=
966site=
967srcdir=
968verbose=
969x_includes=NONE
970x_libraries=NONE
971
972# Installation directory options.
973# These are left unexpanded so users can "make install exec_prefix=/foo"
974# and all the variables that are supposed to be based on exec_prefix
975# by default will actually change.
976# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000977# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000978bindir='${exec_prefix}/bin'
979sbindir='${exec_prefix}/sbin'
980libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000981datarootdir='${prefix}/share'
982datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000983sysconfdir='${prefix}/etc'
984sharedstatedir='${prefix}/com'
985localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000986includedir='${prefix}/include'
987oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989infodir='${datarootdir}/info'
990htmldir='${docdir}'
991dvidir='${docdir}'
992pdfdir='${docdir}'
993psdir='${docdir}'
994libdir='${exec_prefix}/lib'
995localedir='${datarootdir}/locale'
996mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000997
998ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000999ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001000for ac_option
1001do
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001004 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001005 ac_prev=
1006 continue
1007 fi
1008
Reid Spencera773bd52006-08-04 18:18:08 +00001009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
John Criswell7a73b802003-06-30 21:59:07 +00001013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
Reid Spencera773bd52006-08-04 18:18:08 +00001016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1024
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001041 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001043 datadir=$ac_optarg ;;
1044
Reid Spencera773bd52006-08-04 18:18:08 +00001045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
John Criswell7a73b802003-06-30 21:59:07 +00001052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001059 eval enable_$ac_feature=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001070
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001078 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
Reid Spencera773bd52006-08-04 18:18:08 +00001105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
John Criswell7a73b802003-06-30 21:59:07 +00001111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
Reid Spencera773bd52006-08-04 18:18:08 +00001135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
John Criswell7a73b802003-06-30 21:59:07 +00001140 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001141 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
Reid Spencera773bd52006-08-04 18:18:08 +00001209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
John Criswell7a73b802003-06-30 21:59:07 +00001219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001275 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001276
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001315 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1333fi
1334
Reid Spencera773bd52006-08-04 18:18:08 +00001335# Be sure to have absolute directory names.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001340do
Reid Spencera773bd52006-08-04 18:18:08 +00001341 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001342 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001345 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001348done
1349
1350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
1356
1357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
1367
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
1372
1373
Reid Spencera773bd52006-08-04 18:18:08 +00001374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1382
1383
John Criswell7a73b802003-06-30 21:59:07 +00001384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001389$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001393echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001411 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001412 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001421 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001422fi
Reid Spencera773bd52006-08-04 18:18:08 +00001423ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424ac_abs_confdir=`(
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001426 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
John Criswell7a73b802003-06-30 21:59:07 +00001444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001452\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
John Criswell7a73b802003-06-30 21:59:07 +00001472Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001476 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001505_ACEOF
1506
1507 cat <<\_ACEOF
1508
1509System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513_ACEOF
1514fi
1515
1516if test -n "$ac_init_help"; then
1517 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001518 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001519 esac
1520 cat <<\_ACEOF
1521
1522Optional Features:
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001526 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001527 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001528 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001529 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001530 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001531 --enable-pic Build LLVM with Position Independent Code (default
1532 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001533 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001534 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001535 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1536 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001537 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001538 --enable-shared[=PKGS] build shared libraries
1539 [default=enable_shared_default]
1540 --enable-static[=PKGS] build static libraries
1541 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001542 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001543 optimize for fast installation
1544 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001545 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001550 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1551 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001552 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001553 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-pic try to use only PIC/non-PIC objects [default=use
1556 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001558 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 CC C compiler command
1562 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001567 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001570 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1571 the first program found out of: `bison -y', `byacc', `yacc'.
1572 YFLAGS The list of arguments that will be passed by default to $YACC.
1573 This script will default YFLAGS to the empty string to avoid a
1574 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001575 CXXCPP C++ preprocessor
1576 F77 Fortran 77 compiler command
1577 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
1582Report bugs to <llvmbugs@cs.uiuc.edu>.
1583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001584ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001590 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001591 ac_builddir=.
1592
Reid Spencera773bd52006-08-04 18:18:08 +00001593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
John Criswell7a73b802003-06-30 21:59:07 +00001596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001608
1609case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001610 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001622esac
Reid Spencera773bd52006-08-04 18:18:08 +00001623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001624
Reid Spencera773bd52006-08-04 18:18:08 +00001625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001633 else
1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001637 done
1638fi
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001641if $ac_init_version; then
1642 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001643llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001644generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001645
Reid Spencera773bd52006-08-04 18:18:08 +00001646Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001650
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001651Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001652_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001653 exit
John Criswell7a73b802003-06-30 21:59:07 +00001654fi
Reid Spencera773bd52006-08-04 18:18:08 +00001655cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001656This file contains any messages produced by compilers while
1657running configure, to aid debugging if configure makes a mistake.
1658
Tanya Lattner01d3e382006-11-14 00:59:52 +00001659It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001660generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001661
1662 $ $0 $@
1663
1664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001665exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001666{
1667cat <<_ASUNAME
1668## --------- ##
1669## Platform. ##
1670## --------- ##
1671
1672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676uname -v = `(uname -v) 2>/dev/null || echo unknown`
1677
1678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1680
1681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688
1689_ASUNAME
1690
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 echo "PATH: $as_dir"
1697done
Reid Spencera773bd52006-08-04 18:18:08 +00001698IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001699
1700} >&5
1701
1702cat >&5 <<_ACEOF
1703
1704
1705## ----------- ##
1706## Core tests. ##
1707## ----------- ##
1708
1709_ACEOF
1710
1711
1712# Keep a trace of the command line.
1713# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001714# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001715# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001716# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001717ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001718ac_configure_args0=
1719ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001720ac_must_keep_next=false
1721for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001722do
John Criswell0c38eaf2003-09-10 15:17:25 +00001723 for ac_arg
1724 do
1725 case $ac_arg in
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1729 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001730 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 esac
1733 case $ac_pass in
1734 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1735 2)
1736 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001738 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001740 case $ac_arg in
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 esac
1748 ;;
1749 -* ) ac_must_keep_next=true ;;
1750 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001752 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001753 ;;
1754 esac
1755 done
John Criswell7a73b802003-06-30 21:59:07 +00001756done
John Criswell0c38eaf2003-09-10 15:17:25 +00001757$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758$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 +00001759
1760# When interrupted or exit'd, cleanup temporary files, and complete
1761# config.log. We remove comments because anyway the quotes in there
1762# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001763# WARNING: Use '\'' to represent an apostrophe within the trap.
1764# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001765trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1767 {
1768 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770 cat <<\_ASBOX
1771## ---------------- ##
1772## Cache variables. ##
1773## ---------------- ##
1774_ASBOX
1775 echo
1776 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001777(
1778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in #(
1781 *${as_nl}*)
1782 case $ac_var in #(
1783 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 esac
1786 case $ac_var in #(
1787 _ | IFS | as_nl) ;; #(
1788 *) $as_unset $ac_var ;;
1789 esac ;;
1790 esac
1791 done
John Criswell7a73b802003-06-30 21:59:07 +00001792 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001795 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001796 "s/'\''/'\''\\\\'\'''\''/g;
1797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001799 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001802 esac |
1803 sort
1804)
John Criswell7a73b802003-06-30 21:59:07 +00001805 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001806
1807 cat <<\_ASBOX
1808## ----------------- ##
1809## Output variables. ##
1810## ----------------- ##
1811_ASBOX
1812 echo
1813 for ac_var in $ac_subst_vars
1814 do
Reid Spencera773bd52006-08-04 18:18:08 +00001815 eval ac_val=\$$ac_var
1816 case $ac_val in
1817 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 esac
1819 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 done | sort
1821 echo
1822
1823 if test -n "$ac_subst_files"; then
1824 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001825## ------------------- ##
1826## File substitutions. ##
1827## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001828_ASBOX
1829 echo
1830 for ac_var in $ac_subst_files
1831 do
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001837 done | sort
1838 echo
1839 fi
1840
John Criswell7a73b802003-06-30 21:59:07 +00001841 if test -s confdefs.h; then
1842 cat <<\_ASBOX
1843## ----------- ##
1844## confdefs.h. ##
1845## ----------- ##
1846_ASBOX
1847 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001848 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001849 echo
1850 fi
1851 test "$ac_signal" != 0 &&
1852 echo "$as_me: caught signal $ac_signal"
1853 echo "$as_me: exit $exit_status"
1854 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001857 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001858' 0
John Criswell7a73b802003-06-30 21:59:07 +00001859for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861done
1862ac_signal=0
1863
1864# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001865rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001866
1867# Predefined preprocessor variables.
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_NAME "$PACKAGE_NAME"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_STRING "$PACKAGE_STRING"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891_ACEOF
1892
1893
1894# Let the site file select an alternate cache file if it wants to.
1895# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001896if test -n "$CONFIG_SITE"; then
1897 set x "$CONFIG_SITE"
1898elif test "x$prefix" != xNONE; then
1899 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1900else
1901 set x "$ac_default_prefix/share/config.site" \
1902 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001903fi
Reid Spencera773bd52006-08-04 18:18:08 +00001904shift
1905for ac_site_file
1906do
John Criswell7a73b802003-06-30 21:59:07 +00001907 if test -r "$ac_site_file"; then
1908 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1911 . "$ac_site_file"
1912 fi
1913done
1914
1915if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920echo "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001924 esac
1925 fi
1926else
1927 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928echo "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1930fi
1931
1932# Check that the precious variables saved in the cache have kept the same
1933# value.
1934ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001940 case $ac_old_set,$ac_new_set in
1941 set,)
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,set)
1946 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,);;
1950 *)
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001953echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001955echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001956 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001957echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001959 fi;;
1960 esac
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1963 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001964 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001965 *) ac_arg=$ac_var=$ac_new_val ;;
1966 esac
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 esac
1971 fi
1972done
1973if $ac_cache_corrupted; then
1974 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
1979fi
1980
Reid Spencera773bd52006-08-04 18:18:08 +00001981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
John Criswell7a73b802003-06-30 21:59:07 +00002005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002013LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014
2015
2016
2017
2018
2019
2020
John Criswell7a73b802003-06-30 21:59:07 +00002021ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002022for ac_dir in autoconf "$srcdir"/autoconf; do
2023 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2026 break
Reid Spencera773bd52006-08-04 18:18:08 +00002027 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2030 break
Reid Spencera773bd52006-08-04 18:18:08 +00002031 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 break
2035 fi
2036done
2037if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2039echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002040 { (exit 1); exit 1; }; }
2041fi
Reid Spencera773bd52006-08-04 18:18:08 +00002042
2043# These three variables are undocumented and unsupported,
2044# and are intended to be withdrawn in a future Autoconf release.
2045# They can cause serious problems if a builder's source tree is in a directory
2046# whose full name contains unusual characters.
2047ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050
John Criswell7a73b802003-06-30 21:59:07 +00002051
John Criswell392aaa32003-07-22 19:18:09 +00002052
Reid Spencer2706f8c2004-09-19 23:53:36 +00002053if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2055 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002056echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2057 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 fi
John Criswell93e1c722003-09-15 17:04:06 +00002059fi
2060
John Criswell33a911a2003-11-25 20:36:46 +00002061for i in `ls ${srcdir}/projects`
2062do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 if test -d ${srcdir}/projects/${i} ; then
2064 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002065 CVS) ;;
2066 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002068 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002069 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002070 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002072 llvm-test) subdirs="$subdirs projects/llvm-test"
2073 ;;
2074 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002076 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002078 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002079 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002085 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002087 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2088echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002089 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 esac
John Criswell33a911a2003-11-25 20:36:46 +00002091 fi
2092done
John Criswell559a6c12003-09-30 16:31:48 +00002093
John Criswell7a73b802003-06-30 21:59:07 +00002094
2095# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002096$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002099 { (exit 1); exit 1; }; }
2100
Reid Spencera773bd52006-08-04 18:18:08 +00002101{ echo "$as_me:$LINENO: checking build system type" >&5
2102echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002103if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
Reid Spencera773bd52006-08-04 18:18:08 +00002106 ac_build_alias=$build_alias
2107test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002116 { (exit 1); exit 1; }; }
2117
2118fi
Reid Spencera773bd52006-08-04 18:18:08 +00002119{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120echo "${ECHO_T}$ac_cv_build" >&6; }
2121case $ac_cv_build in
2122*-*-*) ;;
2123*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2126esac
John Criswell7a73b802003-06-30 21:59:07 +00002127build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_build
2130shift
2131build_cpu=$1
2132build_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136build_os=$*
2137IFS=$ac_save_IFS
2138case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: checking host system type" >&5
2142echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002143if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
Reid Spencera773bd52006-08-04 18:18:08 +00002146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2148else
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002153fi
John Criswell7a73b802003-06-30 21:59:07 +00002154
2155fi
Reid Spencera773bd52006-08-04 18:18:08 +00002156{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157echo "${ECHO_T}$ac_cv_host" >&6; }
2158case $ac_cv_host in
2159*-*-*) ;;
2160*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2163esac
John Criswell7a73b802003-06-30 21:59:07 +00002164host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002165ac_save_IFS=$IFS; IFS='-'
2166set x $ac_cv_host
2167shift
2168host_cpu=$1
2169host_vendor=$2
2170shift; shift
2171# Remember, the first character of IFS is used to create $*,
2172# except with old shells:
2173host_os=$*
2174IFS=$ac_save_IFS
2175case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: checking target system type" >&5
2179echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002180if test "${ac_cv_target+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
Reid Spencera773bd52006-08-04 18:18:08 +00002183 if test "x$target_alias" = x; then
2184 ac_cv_target=$ac_cv_host
2185else
2186 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002190fi
John Criswell7a73b802003-06-30 21:59:07 +00002191
2192fi
Reid Spencera773bd52006-08-04 18:18:08 +00002193{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194echo "${ECHO_T}$ac_cv_target" >&6; }
2195case $ac_cv_target in
2196*-*-*) ;;
2197*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198echo "$as_me: error: invalid value of canonical target" >&2;}
2199 { (exit 1); exit 1; }; };;
2200esac
John Criswell7a73b802003-06-30 21:59:07 +00002201target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002202ac_save_IFS=$IFS; IFS='-'
2203set x $ac_cv_target
2204shift
2205target_cpu=$1
2206target_vendor=$2
2207shift; shift
2208# Remember, the first character of IFS is used to create $*,
2209# except with old shells:
2210target_os=$*
2211IFS=$ac_save_IFS
2212case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214
2215# The aliases save the names the user supplied, while $host etc.
2216# will get canonicalized.
2217test -n "$target_alias" &&
2218 test "$program_prefix$program_suffix$program_transform_name" = \
2219 NONENONEs,x,x, &&
2220 program_prefix=${target_alias}-
2221
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2223echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002224if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002227 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 llvm_cv_os_type="AIX"
2232 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002233 *-*-irix*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="IRIX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="Cygwin"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,-all_load"
2245 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Darwin"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="FreeBSD"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002253 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002256 llvm_cv_os_type="OpenBSD"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002258 *-*-netbsd*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="NetBSD"
2262 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002263 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002266 llvm_cv_os_type="HP-UX"
2267 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Interix"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Linux"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,-z,allextract"
2280 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="SunOS"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Win32"
2287 llvm_cv_platform_type="Win32" ;;
2288 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="MingW"
2292 llvm_cv_platform_type="Win32" ;;
2293 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option=""
2295 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Unknown"
2297 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002298esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299fi
Reid Spencera773bd52006-08-04 18:18:08 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002306 { (exit 1); exit 1; }; }
2307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
2311
Reid Spencera773bd52006-08-04 18:18:08 +00002312LINKALL=$llvm_cv_link_all_option
2313
2314NOLINKALL=$llvm_cv_no_link_all_option
2315
2316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317case $llvm_cv_platform_type in
2318 Unix)
2319
2320cat >>confdefs.h <<\_ACEOF
2321#define LLVM_ON_UNIX 1
2322_ACEOF
2323
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002324 LLVM_ON_UNIX=1
2325
2326 LLVM_ON_WIN32=0
2327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 ;;
2329 Win32)
2330
2331cat >>confdefs.h <<\_ACEOF
2332#define LLVM_ON_WIN32 1
2333_ACEOF
2334
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002335 LLVM_ON_UNIX=0
2336
2337 LLVM_ON_WIN32=1
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 ;;
2340esac
2341
Reid Spencera773bd52006-08-04 18:18:08 +00002342{ echo "$as_me:$LINENO: checking target architecture" >&5
2343echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344if test "${llvm_cv_target_arch+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002348 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002349 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002350 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2351 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002352 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002353 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002354 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002355esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356fi
Reid Spencera773bd52006-08-04 18:18:08 +00002357{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2358echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360if test "$llvm_cv_target_arch" = "Unknown" ; then
2361 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2362echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2363fi
John Criswell76595452003-07-01 22:07:39 +00002364
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002366
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002367
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368ac_ext=c
2369ac_cpp='$CPP $CPPFLAGS'
2370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002373if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2375set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378if test "${ac_cv_prog_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002390 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 +00002391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395done
2396done
Reid Spencera773bd52006-08-04 18:18:08 +00002397IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398
2399fi
2400fi
2401CC=$ac_cv_prog_CC
2402if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002403 { echo "$as_me:$LINENO: result: $CC" >&5
2404echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405else
Reid Spencera773bd52006-08-04 18:18:08 +00002406 { echo "$as_me:$LINENO: result: no" >&5
2407echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408fi
2409
Reid Spencera773bd52006-08-04 18:18:08 +00002410
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
2412if test -z "$ac_cv_prog_CC"; then
2413 ac_ct_CC=$CC
2414 # Extract the first word of "gcc", so it can be a program name with args.
2415set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 if test -n "$ac_ct_CC"; then
2422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002430 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 +00002431 ac_cv_prog_ac_ct_CC="gcc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435done
2436done
Reid Spencera773bd52006-08-04 18:18:08 +00002437IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438
2439fi
2440fi
2441ac_ct_CC=$ac_cv_prog_ac_ct_CC
2442if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002443 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2444echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445else
Reid Spencera773bd52006-08-04 18:18:08 +00002446 { echo "$as_me:$LINENO: result: no" >&5
2447echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448fi
2449
Reid Spencera773bd52006-08-04 18:18:08 +00002450 if test "x$ac_ct_CC" = x; then
2451 CC=""
2452 else
2453 case $cross_compiling:$ac_tool_warned in
2454yes:)
2455{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2456whose name does not start with the host triplet. If you think this
2457configuration is useful to you, please write to autoconf@gnu.org." >&5
2458echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2459whose name does not start with the host triplet. If you think this
2460configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2461ac_tool_warned=yes ;;
2462esac
2463 CC=$ac_ct_CC
2464 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465else
2466 CC="$ac_cv_prog_CC"
2467fi
2468
2469if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002470 if test -n "$ac_tool_prefix"; then
2471 # 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 +00002472set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002487 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 +00002488 ac_cv_prog_CC="${ac_tool_prefix}cc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492done
2493done
Reid Spencera773bd52006-08-04 18:18:08 +00002494IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002500 { echo "$as_me:$LINENO: result: $CC" >&5
2501echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502else
Reid Spencera773bd52006-08-04 18:18:08 +00002503 { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505fi
2506
Reid Spencera773bd52006-08-04 18:18:08 +00002507
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509fi
2510if test -z "$CC"; then
2511 # Extract the first word of "cc", so it can be a program name with args.
2512set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520else
2521 ac_prog_rejected=no
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002528 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 +00002529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2530 ac_prog_rejected=yes
2531 continue
2532 fi
2533 ac_cv_prog_CC="cc"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538done
Reid Spencera773bd52006-08-04 18:18:08 +00002539IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540
2541if test $ac_prog_rejected = yes; then
2542 # We found a bogon in the path, so make sure we never use it.
2543 set dummy $ac_cv_prog_CC
2544 shift
2545 if test $# != 0; then
2546 # We chose a different compiler from the bogus one.
2547 # However, it has the same basename, so the bogon will be chosen
2548 # first if we set CC to just the basename; use the full file name.
2549 shift
2550 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2551 fi
2552fi
2553fi
2554fi
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002557 { echo "$as_me:$LINENO: result: $CC" >&5
2558echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559else
Reid Spencera773bd52006-08-04 18:18:08 +00002560 { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562fi
2563
Reid Spencera773bd52006-08-04 18:18:08 +00002564
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565fi
2566if test -z "$CC"; then
2567 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002568 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002569 do
2570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002586 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 +00002587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592done
Reid Spencera773bd52006-08-04 18:18:08 +00002593IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002594
2595fi
2596fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002599 { echo "$as_me:$LINENO: result: $CC" >&5
2600echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002601else
Reid Spencera773bd52006-08-04 18:18:08 +00002602 { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002604fi
2605
Reid Spencera773bd52006-08-04 18:18:08 +00002606
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002608 done
2609fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test -z "$CC"; then
2611 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002612 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002613do
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621 if test -n "$ac_ct_CC"; then
2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002630 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 +00002631 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635done
2636done
Reid Spencera773bd52006-08-04 18:18:08 +00002637IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002638
2639fi
2640fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2644echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002645else
Reid Spencera773bd52006-08-04 18:18:08 +00002646 { echo "$as_me:$LINENO: result: no" >&5
2647echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002648fi
2649
Reid Spencera773bd52006-08-04 18:18:08 +00002650
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002652done
John Criswell7a73b802003-06-30 21:59:07 +00002653
Reid Spencera773bd52006-08-04 18:18:08 +00002654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658yes:)
2659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660whose name does not start with the host triplet. If you think this
2661configuration is useful to you, please write to autoconf@gnu.org." >&5
2662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2663whose name does not start with the host triplet. If you think this
2664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667 CC=$ac_ct_CC
2668 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669fi
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
2672
2673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2675See \`config.log' for more details." >&5
2676echo "$as_me: error: no acceptable C compiler found in \$PATH
2677See \`config.log' for more details." >&2;}
2678 { (exit 1); exit 1; }; }
2679
John Criswell7a73b802003-06-30 21:59:07 +00002680# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002681echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002682ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002683{ (ac_try="$ac_compiler --version >&5"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002693{ (ac_try="$ac_compiler -v >&5"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002703{ (ac_try="$ac_compiler -V >&5"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713
2714cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002720
John Criswell7a73b802003-06-30 21:59:07 +00002721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002730ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002731# Try to create an executable without -o first, disregard a.out.
2732# It will help us diagnose broken compilers, and finding out an intuition
2733# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002734{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2735echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002736ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002737#
2738# List of possible output files, starting from the most likely.
2739# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2740# only as a last resort. b.out is created by i960 compilers.
2741ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2742#
2743# The IRIX 6 linker writes into existing files which may not be
2744# executable, retaining their permissions. Remove them first so a
2745# subsequent execution test works.
2746ac_rmfiles=
2747for ac_file in $ac_files
2748do
2749 case $ac_file in
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2751 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2752 esac
2753done
2754rm -f $ac_rmfiles
2755
2756if { (ac_try="$ac_link_default"
2757case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2768# in a Makefile. We should not override ac_cv_exeext if it was cached,
2769# so that the user can short-circuit this test for compilers unknown to
2770# Autoconf.
2771for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002772do
2773 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002774 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002776 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002777 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002778 # We found the default executable, but exeext='' is most
2779 # certainly right.
2780 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002781 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002782 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2783 then :; else
2784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 fi
2786 # We set ac_cv_exeext here because the later test for it is not
2787 # safe: cross compilers may not add the suffix if given an `-o'
2788 # argument, so we may need to know it at that point already.
2789 # Even if this section looks crufty: it has the advantage of
2790 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002791 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002792 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002794 esac
2795done
Reid Spencera773bd52006-08-04 18:18:08 +00002796test "$ac_cv_exeext" = no && ac_cv_exeext=
2797
John Criswell7a73b802003-06-30 21:59:07 +00002798else
2799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002800sed 's/^/| /' conftest.$ac_ext >&5
2801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002802{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002803See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002804echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002805See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002806 { (exit 77); exit 77; }; }
2807fi
2808
2809ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002810{ echo "$as_me:$LINENO: result: $ac_file" >&5
2811echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002812
Reid Spencera773bd52006-08-04 18:18:08 +00002813# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002814# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002815{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2816echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002817# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2818# If not cross compiling, check that we can run a simple program.
2819if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002821 { (case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 cross_compiling=no
2831 else
2832 if test "$cross_compiling" = maybe; then
2833 cross_compiling=yes
2834 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002835 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002836If you meant to cross compile, use \`--host'.
2837See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002838echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002839If you meant to cross compile, use \`--host'.
2840See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002841 { (exit 1); exit 1; }; }
2842 fi
2843 fi
2844fi
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ echo "$as_me:$LINENO: result: yes" >&5
2846echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847
John Criswell0c38eaf2003-09-10 15:17:25 +00002848rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002849ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002850# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002851# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002852{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2853echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2854{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2855echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002856
Reid Spencera773bd52006-08-04 18:18:08 +00002857{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2858echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2859if { (ac_try="$ac_link"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871# work properly (i.e., refer to `conftest.exe'), while it won't with
2872# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002873for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002875 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002878 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002879 * ) break;;
2880 esac
2881done
2882else
John Criswell0c38eaf2003-09-10 15:17:25 +00002883 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2884See \`config.log' for more details." >&5
2885echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002887 { (exit 1); exit 1; }; }
2888fi
2889
2890rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002891{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002893
2894rm -f conftest.$ac_ext
2895EXEEXT=$ac_cv_exeext
2896ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002897{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002899if test "${ac_cv_objext+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002903/* confdefs.h. */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002908
John Criswell7a73b802003-06-30 21:59:07 +00002909int
2910main ()
2911{
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002918if { (ac_try="$ac_compile"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002930 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2933 break;;
2934 esac
2935done
2936else
2937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2941See \`config.log' for more details." >&5
2942echo "$as_me: error: cannot compute suffix of object files: cannot compile
2943See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002944 { (exit 1); exit 1; }; }
2945fi
2946
2947rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948fi
Reid Spencera773bd52006-08-04 18:18:08 +00002949{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2950echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002951OBJEXT=$ac_cv_objext
2952ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002953{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2954echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002955if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002964
John Criswell7a73b802003-06-30 21:59:07 +00002965int
2966main ()
2967{
2968#ifndef __GNUC__
2969 choke me
2970#endif
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002977if { (ac_try="$ac_compile"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2991 { (case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 ac_compiler_gnu=yes
3011else
3012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003013sed 's/^/| /' conftest.$ac_ext >&5
3014
Reid Spencera773bd52006-08-04 18:18:08 +00003015 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003016fi
Reid Spencera773bd52006-08-04 18:18:08 +00003017
3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003019ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003020
3021fi
Reid Spencera773bd52006-08-04 18:18:08 +00003022{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3023echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003024GCC=`test $ac_compiler_gnu = yes && echo yes`
3025ac_test_CFLAGS=${CFLAGS+set}
3026ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003027{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003029if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
Reid Spencera773bd52006-08-04 18:18:08 +00003032 ac_save_c_werror_flag=$ac_c_werror_flag
3033 ac_c_werror_flag=yes
3034 ac_cv_prog_cc_g=no
3035 CFLAGS="-g"
3036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003042
John Criswell7a73b802003-06-30 21:59:07 +00003043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003052if { (ac_try="$ac_compile"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003085 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003086else
3087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003088sed 's/^/| /' conftest.$ac_ext >&5
3089
Reid Spencera773bd52006-08-04 18:18:08 +00003090 CFLAGS=""
3091 cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
3097
3098int
3099main ()
3100{
3101
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext
3107if { (ac_try="$ac_compile"
3108case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 :
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 ac_c_werror_flag=$ac_save_c_werror_flag
3146 CFLAGS="-g"
3147 cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h. */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h. */
3153
3154int
3155main ()
3156{
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_prog_cc_g=yes
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201
John Criswell7a73b802003-06-30 21:59:07 +00003202fi
Reid Spencera773bd52006-08-04 18:18:08 +00003203
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003205fi
Reid Spencera773bd52006-08-04 18:18:08 +00003206
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208fi
3209
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3212fi
3213{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3214echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215if test "$ac_test_CFLAGS" = set; then
3216 CFLAGS=$ac_save_CFLAGS
3217elif test $ac_cv_prog_cc_g = yes; then
3218 if test "$GCC" = yes; then
3219 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003220 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003222 fi
3223else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224 if test "$GCC" = yes; then
3225 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003226 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003228 fi
3229fi
Reid Spencera773bd52006-08-04 18:18:08 +00003230{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3231echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3232if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
Reid Spencera773bd52006-08-04 18:18:08 +00003235 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003236ac_save_CC=$CC
3237cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#include <stdarg.h>
3244#include <stdio.h>
3245#include <sys/types.h>
3246#include <sys/stat.h>
3247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3248struct buf { int x; };
3249FILE * (*rcsopen) (struct buf *, struct stat *, int);
3250static char *e (p, i)
3251 char **p;
3252 int i;
3253{
3254 return p[i];
3255}
3256static char *f (char * (*g) (char **, int), char **p, ...)
3257{
3258 char *s;
3259 va_list v;
3260 va_start (v,p);
3261 s = g (p, va_arg (v,int));
3262 va_end (v);
3263 return s;
3264}
3265
3266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3267 function prototypes and stuff, but not '\xHH' hex character constants.
3268 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003269 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3271 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003272 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3274
Reid Spencera773bd52006-08-04 18:18:08 +00003275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3276 inside strings and character constants. */
3277#define FOO(x) 'x'
3278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3279
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280int test (int i, double x);
3281struct s1 {int (*f) (int a);};
3282struct s2 {int (*f) (double a);};
3283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3284int argc;
3285char **argv;
3286int
3287main ()
3288{
3289return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3290 ;
3291 return 0;
3292}
3293_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296do
3297 CC="$ac_save_CC $ac_arg"
3298 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3313 { (case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003332 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
Reid Spencera773bd52006-08-04 18:18:08 +00003337
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338fi
Reid Spencera773bd52006-08-04 18:18:08 +00003339
3340rm -f core conftest.err conftest.$ac_objext
3341 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342done
Reid Spencera773bd52006-08-04 18:18:08 +00003343rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344CC=$ac_save_CC
3345
3346fi
Reid Spencera773bd52006-08-04 18:18:08 +00003347# AC_CACHE_VAL
3348case "x$ac_cv_prog_cc_c89" in
3349 x)
3350 { echo "$as_me:$LINENO: result: none needed" >&5
3351echo "${ECHO_T}none needed" >&6; } ;;
3352 xno)
3353 { echo "$as_me:$LINENO: result: unsupported" >&5
3354echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003356 CC="$CC $ac_cv_prog_cc_c89"
3357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3358echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359esac
3360
John Criswell0c38eaf2003-09-10 15:17:25 +00003361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367
3368
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003374{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376# On Suns, sometimes $CPP names a directory.
3377if test -n "$CPP" && test -d "$CPP"; then
3378 CPP=
3379fi
3380if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
3384 # Double quotes because CPP needs to be expanded
3385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3386 do
3387 ac_preproc_ok=false
3388for ac_c_preproc_warn_flag in '' yes
3389do
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402#ifdef __STDC__
3403# include <limits.h>
3404#else
3405# include <assert.h>
3406#endif
3407 Syntax error
3408_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 else
3426 ac_cpp_err=
3427 fi
3428else
3429 ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
3432 :
3433else
3434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 # Broken: fails on valid input.
3438continue
3439fi
Reid Spencera773bd52006-08-04 18:18:08 +00003440
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441rm -f conftest.err conftest.$ac_ext
3442
Reid Spencera773bd52006-08-04 18:18:08 +00003443 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h. */
3451#include <ac_nonexistent.h>
3452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003453if { (ac_try="$ac_cpp conftest.$ac_ext"
3454case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457esac
3458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } >/dev/null; then
3466 if test -s conftest.err; then
3467 ac_cpp_err=$ac_c_preproc_warn_flag
3468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469 else
3470 ac_cpp_err=
3471 fi
3472else
3473 ac_cpp_err=yes
3474fi
3475if test -z "$ac_cpp_err"; then
3476 # Broken: success on invalid input.
3477continue
3478else
3479 echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 # Passes both tests.
3483ac_preproc_ok=:
3484break
3485fi
Reid Spencera773bd52006-08-04 18:18:08 +00003486
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487rm -f conftest.err conftest.$ac_ext
3488
3489done
3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491rm -f conftest.err conftest.$ac_ext
3492if $ac_preproc_ok; then
3493 break
3494fi
3495
3496 done
3497 ac_cv_prog_CPP=$CPP
3498
3499fi
3500 CPP=$ac_cv_prog_CPP
3501else
3502 ac_cv_prog_CPP=$CPP
3503fi
Reid Spencera773bd52006-08-04 18:18:08 +00003504{ echo "$as_me:$LINENO: result: $CPP" >&5
3505echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506ac_preproc_ok=false
3507for ac_c_preproc_warn_flag in '' yes
3508do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521#ifdef __STDC__
3522# include <limits.h>
3523#else
3524# include <assert.h>
3525#endif
3526 Syntax error
3527_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003528if { (ac_try="$ac_cpp conftest.$ac_ext"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev/null; then
3541 if test -s conftest.err; then
3542 ac_cpp_err=$ac_c_preproc_warn_flag
3543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3544 else
3545 ac_cpp_err=
3546 fi
3547else
3548 ac_cpp_err=yes
3549fi
3550if test -z "$ac_cpp_err"; then
3551 :
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 # Broken: fails on valid input.
3557continue
3558fi
Reid Spencera773bd52006-08-04 18:18:08 +00003559
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560rm -f conftest.err conftest.$ac_ext
3561
Reid Spencera773bd52006-08-04 18:18:08 +00003562 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563 # can be detected and how.
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570#include <ac_nonexistent.h>
3571_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003572if { (ac_try="$ac_cpp conftest.$ac_ext"
3573case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576esac
3577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null; then
3585 if test -s conftest.err; then
3586 ac_cpp_err=$ac_c_preproc_warn_flag
3587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3588 else
3589 ac_cpp_err=
3590 fi
3591else
3592 ac_cpp_err=yes
3593fi
3594if test -z "$ac_cpp_err"; then
3595 # Broken: success on invalid input.
3596continue
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 # Passes both tests.
3602ac_preproc_ok=:
3603break
3604fi
Reid Spencera773bd52006-08-04 18:18:08 +00003605
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003606rm -f conftest.err conftest.$ac_ext
3607
3608done
3609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3610rm -f conftest.err conftest.$ac_ext
3611if $ac_preproc_ok; then
3612 :
3613else
3614 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3615See \`config.log' for more details." >&5
3616echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3617See \`config.log' for more details." >&2;}
3618 { (exit 1); exit 1; }; }
3619fi
3620
John Criswell7a73b802003-06-30 21:59:07 +00003621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626
John Criswell7a73b802003-06-30 21:59:07 +00003627
Reid Spencera773bd52006-08-04 18:18:08 +00003628{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3629echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630if test "${ac_cv_path_GREP+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
Reid Spencera773bd52006-08-04 18:18:08 +00003633 # Extract the first word of "grep ggrep" to use in msg output
3634if test -z "$GREP"; then
3635set dummy grep ggrep; ac_prog_name=$2
3636if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
Reid Spencera773bd52006-08-04 18:18:08 +00003639 ac_path_GREP_found=false
3640# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003646 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003647 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3649 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3650 # Check for GNU ac_path_GREP and select it if it is found.
3651 # Check for GNU $ac_path_GREP
3652case `"$ac_path_GREP" --version 2>&1` in
3653*GNU*)
3654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3655*)
3656 ac_count=0
3657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3658 while :
3659 do
3660 cat "conftest.in" "conftest.in" >"conftest.tmp"
3661 mv "conftest.tmp" "conftest.in"
3662 cp "conftest.in" "conftest.nl"
3663 echo 'GREP' >> "conftest.nl"
3664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666 ac_count=`expr $ac_count + 1`
3667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3668 # Best one so far, save it but keep looking for a better one
3669 ac_cv_path_GREP="$ac_path_GREP"
3670 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3674 done
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676esac
3677
3678
3679 $ac_path_GREP_found && break 3
3680 done
3681done
3682
3683done
3684IFS=$as_save_IFS
3685
3686
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003687fi
Reid Spencera773bd52006-08-04 18:18:08 +00003688
3689GREP="$ac_cv_path_GREP"
3690if test -z "$GREP"; then
3691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3692echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3693 { (exit 1); exit 1; }; }
3694fi
3695
3696else
3697 ac_cv_path_GREP=$GREP
3698fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003699
John Criswell7a73b802003-06-30 21:59:07 +00003700
Reid Spencera773bd52006-08-04 18:18:08 +00003701fi
3702{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3703echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3704 GREP="$ac_cv_path_GREP"
3705
3706
3707{ echo "$as_me:$LINENO: checking for egrep" >&5
3708echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3709if test "${ac_cv_path_EGREP+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3713 then ac_cv_path_EGREP="$GREP -E"
3714 else
3715 # Extract the first word of "egrep" to use in msg output
3716if test -z "$EGREP"; then
3717set dummy egrep; ac_prog_name=$2
3718if test "${ac_cv_path_EGREP+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 ac_path_EGREP_found=false
3722# Loop through the user's path and test for each of PROGNAME-LIST
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_prog in egrep; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3731 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3732 # Check for GNU ac_path_EGREP and select it if it is found.
3733 # Check for GNU $ac_path_EGREP
3734case `"$ac_path_EGREP" --version 2>&1` in
3735*GNU*)
3736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3737*)
3738 ac_count=0
3739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3740 while :
3741 do
3742 cat "conftest.in" "conftest.in" >"conftest.tmp"
3743 mv "conftest.tmp" "conftest.in"
3744 cp "conftest.in" "conftest.nl"
3745 echo 'EGREP' >> "conftest.nl"
3746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748 ac_count=`expr $ac_count + 1`
3749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3750 # Best one so far, save it but keep looking for a better one
3751 ac_cv_path_EGREP="$ac_path_EGREP"
3752 ac_path_EGREP_max=$ac_count
3753 fi
3754 # 10*(2^10) chars as input seems more than enough
3755 test $ac_count -gt 10 && break
3756 done
3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758esac
3759
3760
3761 $ac_path_EGREP_found && break 3
3762 done
3763done
3764
3765done
3766IFS=$as_save_IFS
3767
3768
3769fi
3770
3771EGREP="$ac_cv_path_EGREP"
3772if test -z "$EGREP"; then
3773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3775 { (exit 1); exit 1; }; }
3776fi
3777
3778else
3779 ac_cv_path_EGREP=$EGREP
3780fi
3781
3782
3783 fi
3784fi
3785{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3786echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3787 EGREP="$ac_cv_path_EGREP"
3788
3789
3790{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003792if test "${ac_cv_header_stdc+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003801#include <stdlib.h>
3802#include <stdarg.h>
3803#include <string.h>
3804#include <float.h>
3805
John Criswell0c38eaf2003-09-10 15:17:25 +00003806int
3807main ()
3808{
3809
3810 ;
3811 return 0;
3812}
John Criswell7a73b802003-06-30 21:59:07 +00003813_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003814rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003815if { (ac_try="$ac_compile"
3816case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819esac
3820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003822 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003827 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3829 { (case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832esac
3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003839 { (case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003848 ac_cv_header_stdc=yes
3849else
3850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003851sed 's/^/| /' conftest.$ac_ext >&5
3852
Reid Spencera773bd52006-08-04 18:18:08 +00003853 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003854fi
Reid Spencera773bd52006-08-04 18:18:08 +00003855
3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003857
3858if test $ac_cv_header_stdc = yes; then
3859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3860 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003866#include <string.h>
3867
3868_ACEOF
3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003870 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003871 :
3872else
3873 ac_cv_header_stdc=no
3874fi
3875rm -f conftest*
3876
3877fi
3878
3879if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003887#include <stdlib.h>
3888
3889_ACEOF
3890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003891 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003892 :
3893else
3894 ac_cv_header_stdc=no
3895fi
3896rm -f conftest*
3897
3898fi
3899
3900if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then
3903 :
3904else
3905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003911#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003912#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003913#if ((' ' & 0x0FF) == 0x020)
3914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003917# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003918 (('a' <= (c) && (c) <= 'i') \
3919 || ('j' <= (c) && (c) <= 'r') \
3920 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922#endif
3923
3924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925int
3926main ()
3927{
3928 int i;
3929 for (i = 0; i < 256; i++)
3930 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003931 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003932 return 2;
3933 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003934}
3935_ACEOF
3936rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003937if { (ac_try="$ac_link"
3938case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003947 { (case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 :
3957else
3958 echo "$as_me: program exited with status $ac_status" >&5
3959echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003960sed 's/^/| /' conftest.$ac_ext >&5
3961
John Criswell7a73b802003-06-30 21:59:07 +00003962( exit $ac_status )
3963ac_cv_header_stdc=no
3964fi
Reid Spencera773bd52006-08-04 18:18:08 +00003965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966fi
3967
3968
John Criswell7a73b802003-06-30 21:59:07 +00003969fi
3970fi
Reid Spencera773bd52006-08-04 18:18:08 +00003971{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3972echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003973if test $ac_cv_header_stdc = yes; then
3974
3975cat >>confdefs.h <<\_ACEOF
3976#define STDC_HEADERS 1
3977_ACEOF
3978
3979fi
3980
Reid Spencera773bd52006-08-04 18:18:08 +00003981# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3992 inttypes.h stdint.h unistd.h
3993do
3994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000 cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006$ac_includes_default
4007
4008#include <$ac_header>
4009_ACEOF
4010rm -f conftest.$ac_objext
4011if { (ac_try="$ac_compile"
4012case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4025 { (case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_try") 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 eval "$as_ac_Header=yes"
4045else
4046 echo "$as_me: failed program was:" >&5
4047sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 eval "$as_ac_Header=no"
4050fi
4051
4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053fi
4054ac_res=`eval echo '${'$as_ac_Header'}'`
4055 { echo "$as_me:$LINENO: result: $ac_res" >&5
4056echo "${ECHO_T}$ac_res" >&6; }
4057if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058 cat >>confdefs.h <<_ACEOF
4059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060_ACEOF
4061
4062fi
4063
4064done
4065
4066
4067{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4068echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4069if test "${ac_cv_c_bigendian+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 # See if sys/param.h defines the BYTE_ORDER macro.
4073cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079#include <sys/types.h>
4080#include <sys/param.h>
4081
4082int
4083main ()
4084{
4085#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4086 bogus endian macros
4087#endif
4088
4089 ;
4090 return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext
4094if { (ac_try="$ac_compile"
4095case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compile") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4108 { (case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_try") 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 # It does; now see whether it defined to BIG_ENDIAN or not.
4128cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134#include <sys/types.h>
4135#include <sys/param.h>
4136
4137int
4138main ()
4139{
4140#if BYTE_ORDER != BIG_ENDIAN
4141 not big endian
4142#endif
4143
4144 ;
4145 return 0;
4146}
4147_ACEOF
4148rm -f conftest.$ac_objext
4149if { (ac_try="$ac_compile"
4150case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_c_bigendian=yes
4183else
4184 echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 ac_cv_c_bigendian=no
4188fi
4189
4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191else
4192 echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 # It does not; compile a test program.
4196if test "$cross_compiling" = yes; then
4197 # try to guess the endianness by grepping values into an object file
4198 ac_cv_c_bigendian=unknown
4199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
4205short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4206short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4207void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4208short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4209short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4210void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4211int
4212main ()
4213{
4214 _ascii (); _ebcdic ();
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (ac_try="$ac_compile"
4221case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4254 ac_cv_c_bigendian=yes
4255fi
4256if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4257 if test "$ac_cv_c_bigendian" = unknown; then
4258 ac_cv_c_bigendian=no
4259 else
4260 # finding both strings is unlikely to happen, but who knows?
4261 ac_cv_c_bigendian=unknown
4262 fi
4263fi
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268
4269fi
4270
4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272else
4273 cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h. */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h. */
4279$ac_includes_default
4280int
4281main ()
4282{
4283
4284 /* Are we little or big endian? From Harbison&Steele. */
4285 union
4286 {
4287 long int l;
4288 char c[sizeof (long int)];
4289 } u;
4290 u.l = 1;
4291 return u.c[sizeof (long int) - 1] == 1;
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297rm -f conftest$ac_exeext
4298if { (ac_try="$ac_link"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_link") 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_c_bigendian=no
4318else
4319 echo "$as_me: program exited with status $ac_status" >&5
4320echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323( exit $ac_status )
4324ac_cv_c_bigendian=yes
4325fi
4326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327fi
4328
4329
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4335echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4336case $ac_cv_c_bigendian in
4337 yes)
4338 ENDIAN=big
4339 ;;
4340 no)
4341 ENDIAN=little
4342 ;;
4343 *)
4344 { { echo "$as_me:$LINENO: error: unknown endianness
4345presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4346echo "$as_me: error: unknown endianness
4347presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4348 { (exit 1); exit 1; }; } ;;
4349esac
4350
4351
4352if test "$cross_compiling" = yes; then
4353 LLVM_CROSS_COMPILING=1
4354
4355
4356{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4357echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4358if test "${ac_cv_build_exeext+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4362 ac_cv_build_exeext=.exe
4363else
4364 ac_build_prefix=${build_alias}-
4365
4366 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4367set dummy ${ac_build_prefix}gcc; ac_word=$2
4368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373 if test -n "$BUILD_CC"; then
4374 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388done
4389IFS=$as_save_IFS
4390
4391fi
4392fi
4393BUILD_CC=$ac_cv_prog_BUILD_CC
4394if test -n "$BUILD_CC"; then
4395 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4396echo "${ECHO_T}$BUILD_CC" >&6; }
4397else
4398 { echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6; }
4400fi
4401
4402
4403 if test -z "$BUILD_CC"; then
4404 # Extract the first word of "gcc", so it can be a program name with args.
4405set dummy gcc; ac_word=$2
4406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 if test -n "$BUILD_CC"; then
4412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_BUILD_CC="gcc"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431BUILD_CC=$ac_cv_prog_BUILD_CC
4432if test -n "$BUILD_CC"; then
4433 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434echo "${ECHO_T}$BUILD_CC" >&6; }
4435else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441 if test -z "$BUILD_CC"; then
4442 # Extract the first word of "cc", so it can be a program name with args.
4443set dummy cc; ac_word=$2
4444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 if test -n "$BUILD_CC"; then
4450 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451else
4452 ac_prog_rejected=no
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461 ac_prog_rejected=yes
4462 continue
4463 fi
4464 ac_cv_prog_BUILD_CC="cc"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470IFS=$as_save_IFS
4471
4472if test $ac_prog_rejected = yes; then
4473 # We found a bogon in the path, so make sure we never use it.
4474 set dummy $ac_cv_prog_BUILD_CC
4475 shift
4476 if test $# != 0; then
4477 # We chose a different compiler from the bogus one.
4478 # However, it has the same basename, so the bogon will be chosen
4479 # first if we set BUILD_CC to just the basename; use the full file name.
4480 shift
4481 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4482 fi
4483fi
4484fi
4485fi
4486BUILD_CC=$ac_cv_prog_BUILD_CC
4487if test -n "$BUILD_CC"; then
4488 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489echo "${ECHO_T}$BUILD_CC" >&6; }
4490else
4491 { echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6; }
4493fi
4494
4495
4496 fi
4497 fi
4498 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4499echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4500 { (exit 1); exit 1; }; }
4501 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4502 rm -f conftest*
4503 echo 'int main () { return 0; }' > conftest.$ac_ext
4504 ac_cv_build_exeext=
4505 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4506 (eval $ac_build_link) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; then
4510 for file in conftest.*; do
4511 case $file in
4512 *.c | *.o | *.obj) ;;
4513 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4514 esac
4515 done
4516 else
4517 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4518echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4519 { (exit 1); exit 1; }; }
4520 fi
4521 rm -f conftest*
4522 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4523fi
4524fi
4525
4526BUILD_EXEEXT=""
4527test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4528{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4529echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4530ac_build_exeext=$BUILD_EXEEXT
4531
4532else
4533 LLVM_CROSS_COMPILING=0
4534
4535fi
4536
4537if test -d "CVS" -o -d "${srcdir}/CVS"; then
4538 cvsbuild="yes"
4539 optimize="no"
4540 CVSBUILD=CVSBUILD=1
4541
4542else
4543 cvsbuild="no"
4544 optimize="yes"
4545fi
4546
4547
4548# Check whether --enable-optimized was given.
4549if test "${enable_optimized+set}" = set; then
4550 enableval=$enable_optimized;
4551else
4552 enableval=$optimize
4553fi
4554
4555if test ${enableval} = "no" ; then
4556 ENABLE_OPTIMIZED=
4557
4558else
4559 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4560
4561fi
4562
4563# Check whether --enable-assertions was given.
4564if test "${enable_assertions+set}" = set; then
4565 enableval=$enable_assertions;
4566else
4567 enableval="yes"
4568fi
4569
4570if test ${enableval} = "yes" ; then
4571 DISABLE_ASSERTIONS=
4572
4573else
4574 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4575
4576fi
4577
Reid Spencer8b2e1412006-11-17 03:32:33 +00004578# Check whether --enable-debug-runtime was given.
4579if test "${enable_debug_runtime+set}" = set; then
4580 enableval=$enable_debug_runtime;
4581else
4582 enableval=no
4583fi
4584
4585if test ${enableval} = "no" ; then
4586 DEBUG_RUNTIME=
4587
4588else
4589 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4590
4591fi
4592
Reid Spencera773bd52006-08-04 18:18:08 +00004593# Check whether --enable-jit was given.
4594if test "${enable_jit+set}" = set; then
4595 enableval=$enable_jit;
4596else
4597 enableval=default
4598fi
4599
4600if test ${enableval} = "no"
4601then
4602 JIT=
4603
4604else
4605 case "$llvm_cv_target_arch" in
4606 x86) TARGET_HAS_JIT=1
4607 ;;
4608 Sparc) TARGET_HAS_JIT=1
4609 ;;
4610 PowerPC) TARGET_HAS_JIT=1
4611 ;;
4612 x86_64) TARGET_HAS_JIT=0
4613 ;;
4614 Alpha) TARGET_HAS_JIT=1
4615 ;;
4616 IA64) TARGET_HAS_JIT=0
4617 ;;
4618 *) TARGET_HAS_JIT=0
4619 ;;
4620 esac
4621fi
4622
4623# Check whether --enable-doxygen was given.
4624if test "${enable_doxygen+set}" = set; then
4625 enableval=$enable_doxygen;
4626else
4627 enableval=default
4628fi
4629
4630case "$enableval" in
4631 yes) ENABLE_DOXYGEN=1
4632 ;;
4633 no) ENABLE_DOXYGEN=0
4634 ;;
4635 default) ENABLE_DOXYGEN=0
4636 ;;
4637 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4638echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4639 { (exit 1); exit 1; }; } ;;
4640esac
4641
4642# Check whether --enable-threads was given.
4643if test "${enable_threads+set}" = set; then
4644 enableval=$enable_threads;
4645else
Reid Spencer65c5d752006-11-05 17:08:18 +00004646 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004647fi
4648
4649case "$enableval" in
4650 yes) ENABLE_THREADS=1
4651 ;;
4652 no) ENABLE_THREADS=0
4653 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004654 default) ENABLE_THREADS=1
4655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004656 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4657echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4658 { (exit 1); exit 1; }; } ;;
4659esac
4660
4661cat >>confdefs.h <<_ACEOF
4662#define ENABLE_THREADS $ENABLE_THREADS
4663_ACEOF
4664
4665
Reid Spencer89b0d992006-12-16 22:07:52 +00004666# Check whether --enable-pic was given.
4667if test "${enable_pic+set}" = set; then
4668 enableval=$enable_pic;
4669else
4670 enableval=default
4671fi
4672
4673case "$enableval" in
4674 yes) ENABLE_PIC=1
4675 ;;
4676 no) ENABLE_PIC=0
4677 ;;
4678 default) ENABLE_PIC=0
4679 ;;
4680 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4681echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4683esac
4684
4685cat >>confdefs.h <<_ACEOF
4686#define ENABLE_PIC $ENABLE_PIC
4687_ACEOF
4688
4689
Reid Spencera773bd52006-08-04 18:18:08 +00004690TARGETS_TO_BUILD=""
4691# Check whether --enable-targets was given.
4692if test "${enable_targets+set}" = set; then
4693 enableval=$enable_targets;
4694else
4695 enableval=all
4696fi
4697
4698case "$enableval" in
4699 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4700 host-only)
4701 case "$llvm_cv_target_arch" in
4702 x86) TARGETS_TO_BUILD="X86" ;;
4703 x86_64) TARGETS_TO_BUILD="X86" ;;
4704 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4705 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4706 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4707 IA64) TARGETS_TO_BUILD="IA64" ;;
4708 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4709echo "$as_me: error: Can not set target to build" >&2;}
4710 { (exit 1); exit 1; }; } ;;
4711 esac
4712 ;;
4713 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4714 case "$a_target" in
4715 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4716 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4717 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4718 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4719 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4720 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4721 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4722echo "$as_me: error: Unrecognized target $a_target" >&2;}
4723 { (exit 1); exit 1; }; } ;;
4724 esac
4725 done
4726 ;;
4727esac
4728TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4729TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4730
4731
Reid Spencer65c5d752006-11-05 17:08:18 +00004732# Check whether --enable-cbe-printf-a was given.
4733if test "${enable_cbe_printf_a+set}" = set; then
4734 enableval=$enable_cbe_printf_a;
4735else
4736 enableval=default
4737fi
4738
4739case "$enableval" in
4740 yes) ENABLE_CBE_PRINTF_A=1
4741 ;;
4742 no) ENABLE_CBE_PRINTF_A=0
4743 ;;
4744 default) ENABLE_CBE_PRINTF_A=1
4745 ;;
4746 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4747echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4748 { (exit 1); exit 1; }; } ;;
4749esac
4750
4751cat >>confdefs.h <<_ACEOF
4752#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4753_ACEOF
4754
4755
Reid Spencera773bd52006-08-04 18:18:08 +00004756
4757# Check whether --with-llvmgccdir was given.
4758if test "${with_llvmgccdir+set}" = set; then
4759 withval=$with_llvmgccdir;
4760else
4761 withval=default
4762fi
4763
4764case "$withval" in
4765 default) WITH_LLVMGCCDIR=default ;;
4766 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4767 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4768echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4770esac
4771
4772
4773# Check whether --with-extra-options was given.
4774if test "${with_extra_options+set}" = set; then
4775 withval=$with_extra_options;
4776else
4777 withval=default
4778fi
4779
4780case "$withval" in
4781 default) EXTRA_OPTIONS= ;;
4782 *) EXTRA_OPTIONS=$withval ;;
4783esac
4784EXTRA_OPTIONS=$EXTRA_OPTIONS
4785
4786
4787
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4794echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4795# On Suns, sometimes $CPP names a directory.
4796if test -n "$CPP" && test -d "$CPP"; then
4797 CPP=
4798fi
4799if test -z "$CPP"; then
4800 if test "${ac_cv_prog_CPP+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 # Double quotes because CPP needs to be expanded
4804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805 do
4806 ac_preproc_ok=false
4807for ac_c_preproc_warn_flag in '' yes
4808do
4809 # Use a header file that comes with gcc, so configuring glibc
4810 # with a fresh cross-compiler works.
4811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812 # <limits.h> exists even on freestanding compilers.
4813 # On the NeXT, cc -E runs the code through the compiler's parser,
4814 # not just through cpp. "Syntax error" is here to catch this case.
4815 cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h. */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h. */
4821#ifdef __STDC__
4822# include <limits.h>
4823#else
4824# include <assert.h>
4825#endif
4826 Syntax error
4827_ACEOF
4828if { (ac_try="$ac_cpp conftest.$ac_ext"
4829case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832esac
4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null; then
4841 if test -s conftest.err; then
4842 ac_cpp_err=$ac_c_preproc_warn_flag
4843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4844 else
4845 ac_cpp_err=
4846 fi
4847else
4848 ac_cpp_err=yes
4849fi
4850if test -z "$ac_cpp_err"; then
4851 :
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 # Broken: fails on valid input.
4857continue
4858fi
4859
4860rm -f conftest.err conftest.$ac_ext
4861
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#include <ac_nonexistent.h>
4871_ACEOF
4872if { (ac_try="$ac_cpp conftest.$ac_ext"
4873case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876esac
4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null; then
4885 if test -s conftest.err; then
4886 ac_cpp_err=$ac_c_preproc_warn_flag
4887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4888 else
4889 ac_cpp_err=
4890 fi
4891else
4892 ac_cpp_err=yes
4893fi
4894if test -z "$ac_cpp_err"; then
4895 # Broken: success on invalid input.
4896continue
4897else
4898 echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 # Passes both tests.
4902ac_preproc_ok=:
4903break
4904fi
4905
4906rm -f conftest.err conftest.$ac_ext
4907
4908done
4909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910rm -f conftest.err conftest.$ac_ext
4911if $ac_preproc_ok; then
4912 break
4913fi
4914
4915 done
4916 ac_cv_prog_CPP=$CPP
4917
4918fi
4919 CPP=$ac_cv_prog_CPP
4920else
4921 ac_cv_prog_CPP=$CPP
4922fi
4923{ echo "$as_me:$LINENO: result: $CPP" >&5
4924echo "${ECHO_T}$CPP" >&6; }
4925ac_preproc_ok=false
4926for ac_c_preproc_warn_flag in '' yes
4927do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#ifdef __STDC__
4941# include <limits.h>
4942#else
4943# include <assert.h>
4944#endif
4945 Syntax error
4946_ACEOF
4947if { (ac_try="$ac_cpp conftest.$ac_ext"
4948case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
4952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null; then
4960 if test -s conftest.err; then
4961 ac_cpp_err=$ac_c_preproc_warn_flag
4962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4963 else
4964 ac_cpp_err=
4965 fi
4966else
4967 ac_cpp_err=yes
4968fi
4969if test -z "$ac_cpp_err"; then
4970 :
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Broken: fails on valid input.
4976continue
4977fi
4978
4979rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (ac_try="$ac_cpp conftest.$ac_ext"
4992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null; then
5004 if test -s conftest.err; then
5005 ac_cpp_err=$ac_c_preproc_warn_flag
5006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5007 else
5008 ac_cpp_err=
5009 fi
5010else
5011 ac_cpp_err=yes
5012fi
5013if test -z "$ac_cpp_err"; then
5014 # Broken: success on invalid input.
5015continue
5016else
5017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 # Passes both tests.
5021ac_preproc_ok=:
5022break
5023fi
5024
5025rm -f conftest.err conftest.$ac_ext
5026
5027done
5028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029rm -f conftest.err conftest.$ac_ext
5030if $ac_preproc_ok; then
5031 :
5032else
5033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5034See \`config.log' for more details." >&5
5035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5036See \`config.log' for more details." >&2;}
5037 { (exit 1); exit 1; }; }
5038fi
5039
5040ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051if test -n "$ac_tool_prefix"; then
5052 for ac_prog in gcc
5053 do
5054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5058if test "${ac_cv_prog_CC+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 if test -n "$CC"; then
5062 ac_cv_prog_CC="$CC" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081CC=$ac_cv_prog_CC
5082if test -n "$CC"; then
5083 { echo "$as_me:$LINENO: result: $CC" >&5
5084echo "${ECHO_T}$CC" >&6; }
5085else
5086 { echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6; }
5088fi
5089
5090
5091 test -n "$CC" && break
5092 done
5093fi
5094if test -z "$CC"; then
5095 ac_ct_CC=$CC
5096 for ac_prog in gcc
5097do
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099set dummy $ac_prog; ac_word=$2
5100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ac_ct_CC="$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
5121IFS=$as_save_IFS
5122
5123fi
5124fi
5125ac_ct_CC=$ac_cv_prog_ac_ct_CC
5126if test -n "$ac_ct_CC"; then
5127 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5128echo "${ECHO_T}$ac_ct_CC" >&6; }
5129else
5130 { echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6; }
5132fi
5133
5134
5135 test -n "$ac_ct_CC" && break
5136done
5137
5138 if test "x$ac_ct_CC" = x; then
5139 CC=""
5140 else
5141 case $cross_compiling:$ac_tool_warned in
5142yes:)
5143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5144whose name does not start with the host triplet. If you think this
5145configuration is useful to you, please write to autoconf@gnu.org." >&5
5146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5147whose name does not start with the host triplet. If you think this
5148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151 CC=$ac_ct_CC
5152 fi
5153fi
5154
5155
5156test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5157See \`config.log' for more details." >&5
5158echo "$as_me: error: no acceptable C compiler found in \$PATH
5159See \`config.log' for more details." >&2;}
5160 { (exit 1); exit 1; }; }
5161
5162# Provide some information about the compiler.
5163echo "$as_me:$LINENO: checking for C compiler version" >&5
5164ac_compiler=`set X $ac_compile; echo $2`
5165{ (ac_try="$ac_compiler --version >&5"
5166case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169esac
5170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compiler --version >&5") 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }
5175{ (ac_try="$ac_compiler -v >&5"
5176case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179esac
5180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compiler -v >&5") 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }
5185{ (ac_try="$ac_compiler -V >&5"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compiler -V >&5") 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }
5195
5196{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5197echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5198if test "${ac_cv_c_compiler_gnu+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207
5208int
5209main ()
5210{
5211#ifndef __GNUC__
5212 choke me
5213#endif
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (ac_try="$ac_compile"
5221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_compile") 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5234 { (case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237esac
5238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_try") 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_try") 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_compiler_gnu=yes
5254else
5255 echo "$as_me: failed program was:" >&5
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 ac_compiler_gnu=no
5259fi
5260
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262ac_cv_c_compiler_gnu=$ac_compiler_gnu
5263
5264fi
5265{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5267GCC=`test $ac_compiler_gnu = yes && echo yes`
5268ac_test_CFLAGS=${CFLAGS+set}
5269ac_save_CFLAGS=$CFLAGS
5270{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5271echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5272if test "${ac_cv_prog_cc_g+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 ac_save_c_werror_flag=$ac_c_werror_flag
5276 ac_c_werror_flag=yes
5277 ac_cv_prog_cc_g=no
5278 CFLAGS="-g"
5279 cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285
5286int
5287main ()
5288{
5289
5290 ;
5291 return 0;
5292}
5293_ACEOF
5294rm -f conftest.$ac_objext
5295if { (ac_try="$ac_compile"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compile") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5309 { (case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_try") 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 ac_cv_prog_cc_g=yes
5329else
5330 echo "$as_me: failed program was:" >&5
5331sed 's/^/| /' conftest.$ac_ext >&5
5332
5333 CFLAGS=""
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340
5341int
5342main ()
5343{
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (ac_try="$ac_compile"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compile") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 :
5384else
5385 echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5389 CFLAGS="-g"
5390 cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396
5397int
5398main ()
5399{
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405rm -f conftest.$ac_objext
5406if { (ac_try="$ac_compile"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5420 { (case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423esac
5424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_try") 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; } &&
5429 { ac_try='test -s conftest.$ac_objext'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_prog_cc_g=yes
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444
5445fi
5446
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448fi
5449
5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451fi
5452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_c_werror_flag=$ac_save_c_werror_flag
5455fi
5456{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5457echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5458if test "$ac_test_CFLAGS" = set; then
5459 CFLAGS=$ac_save_CFLAGS
5460elif test $ac_cv_prog_cc_g = yes; then
5461 if test "$GCC" = yes; then
5462 CFLAGS="-g -O2"
5463 else
5464 CFLAGS="-g"
5465 fi
5466else
5467 if test "$GCC" = yes; then
5468 CFLAGS="-O2"
5469 else
5470 CFLAGS=
5471 fi
5472fi
5473{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5474echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5475if test "${ac_cv_prog_cc_c89+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 ac_cv_prog_cc_c89=no
5479ac_save_CC=$CC
5480cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
5486#include <stdarg.h>
5487#include <stdio.h>
5488#include <sys/types.h>
5489#include <sys/stat.h>
5490/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5491struct buf { int x; };
5492FILE * (*rcsopen) (struct buf *, struct stat *, int);
5493static char *e (p, i)
5494 char **p;
5495 int i;
5496{
5497 return p[i];
5498}
5499static char *f (char * (*g) (char **, int), char **p, ...)
5500{
5501 char *s;
5502 va_list v;
5503 va_start (v,p);
5504 s = g (p, va_arg (v,int));
5505 va_end (v);
5506 return s;
5507}
5508
5509/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5510 function prototypes and stuff, but not '\xHH' hex character constants.
5511 These don't provoke an error unfortunately, instead are silently treated
5512 as 'x'. The following induces an error, until -std is added to get
5513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5514 array size at least. It's necessary to write '\x00'==0 to get something
5515 that's true only with -std. */
5516int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5517
5518/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5519 inside strings and character constants. */
5520#define FOO(x) 'x'
5521int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5522
5523int test (int i, double x);
5524struct s1 {int (*f) (int a);};
5525struct s2 {int (*f) (double a);};
5526int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5527int argc;
5528char **argv;
5529int
5530main ()
5531{
5532return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5533 ;
5534 return 0;
5535}
5536_ACEOF
5537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5538 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5539do
5540 CC="$ac_save_CC $ac_arg"
5541 rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_try") 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_prog_cc_c89=$ac_arg
5576else
5577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext
5584 test "x$ac_cv_prog_cc_c89" != "xno" && break
5585done
5586rm -f conftest.$ac_ext
5587CC=$ac_save_CC
5588
5589fi
5590# AC_CACHE_VAL
5591case "x$ac_cv_prog_cc_c89" in
5592 x)
5593 { echo "$as_me:$LINENO: result: none needed" >&5
5594echo "${ECHO_T}none needed" >&6; } ;;
5595 xno)
5596 { echo "$as_me:$LINENO: result: unsupported" >&5
5597echo "${ECHO_T}unsupported" >&6; } ;;
5598 *)
5599 CC="$CC $ac_cv_prog_cc_c89"
5600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5601echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5602esac
5603
5604
5605ac_ext=c
5606ac_cpp='$CPP $CPPFLAGS'
5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610
5611ac_ext=cpp
5612ac_cpp='$CXXCPP $CPPFLAGS'
5613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616if test -z "$CXX"; then
5617 if test -n "$CCC"; then
5618 CXX=$CCC
5619 else
5620 if test -n "$ac_tool_prefix"; then
5621 for ac_prog in g++
5622 do
5623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5627if test "${ac_cv_prog_CXX+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630 if test -n "$CXX"; then
5631 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650CXX=$ac_cv_prog_CXX
5651if test -n "$CXX"; then
5652 { echo "$as_me:$LINENO: result: $CXX" >&5
5653echo "${ECHO_T}$CXX" >&6; }
5654else
5655 { echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6; }
5657fi
5658
5659
5660 test -n "$CXX" && break
5661 done
5662fi
5663if test -z "$CXX"; then
5664 ac_ct_CXX=$CXX
5665 for ac_prog in g++
5666do
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668set dummy $ac_prog; ac_word=$2
5669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 if test -n "$ac_ct_CXX"; then
5675 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_ac_ct_CXX="$ac_prog"
5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5695if test -n "$ac_ct_CXX"; then
5696 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5697echo "${ECHO_T}$ac_ct_CXX" >&6; }
5698else
5699 { echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6; }
5701fi
5702
5703
5704 test -n "$ac_ct_CXX" && break
5705done
5706
5707 if test "x$ac_ct_CXX" = x; then
5708 CXX="g++"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5713whose name does not start with the host triplet. If you think this
5714configuration is useful to you, please write to autoconf@gnu.org." >&5
5715echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5716whose name does not start with the host triplet. If you think this
5717configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5718ac_tool_warned=yes ;;
5719esac
5720 CXX=$ac_ct_CXX
5721 fi
5722fi
5723
5724 fi
5725fi
5726# Provide some information about the compiler.
5727echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5728ac_compiler=`set X $ac_compile; echo $2`
5729{ (ac_try="$ac_compiler --version >&5"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739{ (ac_try="$ac_compiler -v >&5"
5740case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743esac
5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749{ (ac_try="$ac_compiler -V >&5"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
5759
5760{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5761echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5762if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765 cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h. */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h. */
5771
5772int
5773main ()
5774{
5775#ifndef __GNUC__
5776 choke me
5777#endif
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (ac_try="$ac_compile"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5798 { (case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_compiler_gnu=yes
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_compiler_gnu=no
5823fi
5824
5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5827
5828fi
5829{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5830echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5831GXX=`test $ac_compiler_gnu = yes && echo yes`
5832ac_test_CXXFLAGS=${CXXFLAGS+set}
5833ac_save_CXXFLAGS=$CXXFLAGS
5834{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5835echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5836if test "${ac_cv_prog_cxx_g+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5840 ac_cxx_werror_flag=yes
5841 ac_cv_prog_cxx_g=no
5842 CXXFLAGS="-g"
5843 cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
5849
5850int
5851main ()
5852{
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (ac_try="$ac_compile"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_prog_cxx_g=yes
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 CXXFLAGS=""
5898 cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
5904
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913rm -f conftest.$ac_objext
5914if { (ac_try="$ac_compile"
5915case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 :
5948else
5949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5953 CXXFLAGS="-g"
5954 cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h. */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h. */
5960
5961int
5962main ()
5963{
5964
5965 ;
5966 return 0;
5967}
5968_ACEOF
5969rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_prog_cxx_g=yes
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009fi
6010
6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012fi
6013
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6019fi
6020{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6021echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6022if test "$ac_test_CXXFLAGS" = set; then
6023 CXXFLAGS=$ac_save_CXXFLAGS
6024elif test $ac_cv_prog_cxx_g = yes; then
6025 if test "$GXX" = yes; then
6026 CXXFLAGS="-g -O2"
6027 else
6028 CXXFLAGS="-g"
6029 fi
6030else
6031 if test "$GXX" = yes; then
6032 CXXFLAGS="-O2"
6033 else
6034 CXXFLAGS=
6035 fi
6036fi
6037ac_ext=c
6038ac_cpp='$CPP $CPPFLAGS'
6039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042
6043{ echo "$as_me:$LINENO: checking " >&5
6044echo $ECHO_N "checking ... $ECHO_C" >&6; }
6045if test "${ac_cv_has_flex+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048 for ac_prog in flex lex
6049do
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051set dummy $ac_prog; ac_word=$2
6052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054if test "${ac_cv_prog_LEX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057 if test -n "$LEX"; then
6058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_LEX="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077LEX=$ac_cv_prog_LEX
6078if test -n "$LEX"; then
6079 { echo "$as_me:$LINENO: result: $LEX" >&5
6080echo "${ECHO_T}$LEX" >&6; }
6081else
6082 { echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6; }
6084fi
6085
6086
6087 test -n "$LEX" && break
6088done
6089test -n "$LEX" || LEX=":"
6090
6091if test -z "$LEXLIB"
6092then
6093 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6094echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6095if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 ac_check_lib_save_LIBS=$LIBS
6099LIBS="-lfl $LIBS"
6100cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106
6107/* Override any GCC internal prototype to avoid an error.
6108 Use char because int might match the return type of a GCC
6109 builtin and then its argument prototype would still apply. */
6110#ifdef __cplusplus
6111extern "C"
6112#endif
6113char yywrap ();
6114int
6115main ()
6116{
6117return yywrap ();
6118 ;
6119 return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext conftest$ac_exeext
6123if { (ac_try="$ac_link"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_link") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6137 { (case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_try") 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_try") 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_lib_fl_yywrap=yes
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_lib_fl_yywrap=no
6162fi
6163
6164rm -f core conftest.err conftest.$ac_objext \
6165 conftest$ac_exeext conftest.$ac_ext
6166LIBS=$ac_check_lib_save_LIBS
6167fi
6168{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6169echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6170if test $ac_cv_lib_fl_yywrap = yes; then
6171 LEXLIB="-lfl"
6172else
6173 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6174echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6175if test "${ac_cv_lib_l_yywrap+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 ac_check_lib_save_LIBS=$LIBS
6179LIBS="-ll $LIBS"
6180cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h. */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h. */
6186
6187/* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6190#ifdef __cplusplus
6191extern "C"
6192#endif
6193char yywrap ();
6194int
6195main ()
6196{
6197return yywrap ();
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext conftest$ac_exeext
6203if { (ac_try="$ac_link"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_link") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217 { (case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_try") 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230esac
6231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_try") 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_lib_l_yywrap=yes
6237else
6238 echo "$as_me: failed program was:" >&5
6239sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 ac_cv_lib_l_yywrap=no
6242fi
6243
6244rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246LIBS=$ac_check_lib_save_LIBS
6247fi
6248{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6249echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6250if test $ac_cv_lib_l_yywrap = yes; then
6251 LEXLIB="-ll"
6252fi
6253
6254fi
6255
6256fi
6257
6258if test "x$LEX" != "x:"; then
6259 { echo "$as_me:$LINENO: checking lex output file root" >&5
6260echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6261if test "${ac_cv_prog_lex_root+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264 # The minimal lex program is just a single line: %%. But some broken lexes
6265# (Solaris, I think it was) want two %% lines, so accommodate them.
6266cat >conftest.l <<_ACEOF
6267%%
6268%%
6269_ACEOF
6270{ (ac_try="$LEX conftest.l"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$LEX conftest.l") 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }
6280if test -f lex.yy.c; then
6281 ac_cv_prog_lex_root=lex.yy
6282elif test -f lexyy.c; then
6283 ac_cv_prog_lex_root=lexyy
6284else
6285 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6286echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6287 { (exit 1); exit 1; }; }
6288fi
6289fi
6290{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6291echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6292rm -f conftest.l
6293LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6294
6295{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6296echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6297if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300 # POSIX says lex can declare yytext either as a pointer or an array; the
6301# default is implementation-dependent. Figure out which it is, since
6302# not all implementations provide the %pointer and %array declarations.
6303ac_cv_prog_lex_yytext_pointer=no
6304echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6305ac_save_LIBS=$LIBS
6306LIBS="$LIBS $LEXLIB"
6307cat >conftest.$ac_ext <<_ACEOF
6308`cat $LEX_OUTPUT_ROOT.c`
6309_ACEOF
6310rm -f conftest.$ac_objext conftest$ac_exeext
6311if { (ac_try="$ac_link"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_link") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6325 { (case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
6329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_try") 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_prog_lex_yytext_pointer=yes
6345else
6346 echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349
6350fi
6351
6352rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354LIBS=$ac_save_LIBS
6355rm -f "${LEX_OUTPUT_ROOT}.c"
6356
6357fi
6358{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6359echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6360if test $ac_cv_prog_lex_yytext_pointer = yes; then
6361
6362cat >>confdefs.h <<\_ACEOF
6363#define YYTEXT_POINTER 1
6364_ACEOF
6365
6366fi
6367
6368fi
6369
6370fi
6371{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6372echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6373if test "$LEX" != "flex"; then
6374 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6375echo "$as_me: error: flex not found but required" >&2;}
6376 { (exit 1); exit 1; }; }
6377else
6378 FLEX=flex
6379
6380fi
6381
6382{ echo "$as_me:$LINENO: checking " >&5
6383echo $ECHO_N "checking ... $ECHO_C" >&6; }
6384if test "${llvm_cv_has_bison+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 for ac_prog in 'bison -y' byacc
6388do
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390set dummy $ac_prog; ac_word=$2
6391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393if test "${ac_cv_prog_YACC+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396 if test -n "$YACC"; then
6397 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_YACC="$ac_prog"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416YACC=$ac_cv_prog_YACC
6417if test -n "$YACC"; then
6418 { echo "$as_me:$LINENO: result: $YACC" >&5
6419echo "${ECHO_T}$YACC" >&6; }
6420else
6421 { echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6; }
6423fi
6424
6425
6426 test -n "$YACC" && break
6427done
6428test -n "$YACC" || YACC="yacc"
6429
6430fi
6431{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6432echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6433if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006434
6435 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6436echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006437else
6438 BISON=bison
6439
6440fi
6441
6442{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6443echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6444if test "${lt_cv_path_NM+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446else
6447 if test -n "$NM"; then
6448 # Let the user override the test.
6449 lt_cv_path_NM="$NM"
6450else
6451 lt_nm_to_check="${ac_tool_prefix}nm"
6452 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6453 lt_nm_to_check="$lt_nm_to_check nm"
6454 fi
6455 for lt_tmp_nm in $lt_nm_to_check; do
6456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6457 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6458 IFS="$lt_save_ifs"
6459 test -z "$ac_dir" && ac_dir=.
6460 tmp_nm="$ac_dir/$lt_tmp_nm"
6461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6462 # Check to see if the nm accepts a BSD-compat flag.
6463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6464 # nm: unknown option "B" ignored
6465 # Tru64's nm complains that /dev/null is an invalid object file
6466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6467 */dev/null* | *'Invalid file or object type'*)
6468 lt_cv_path_NM="$tmp_nm -B"
6469 break
6470 ;;
6471 *)
6472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6473 */dev/null*)
6474 lt_cv_path_NM="$tmp_nm -p"
6475 break
6476 ;;
6477 *)
6478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6479 continue # so that we can try to find one that supports BSD flags
6480 ;;
6481 esac
6482 ;;
6483 esac
6484 fi
6485 done
6486 IFS="$lt_save_ifs"
6487 done
6488 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6489fi
6490fi
6491{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6492echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6493NM="$lt_cv_path_NM"
6494
6495
6496
6497{ echo "$as_me:$LINENO: checking for GNU make" >&5
6498echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6499if test "${llvm_cv_gnu_make_command+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502 llvm_cv_gnu_make_command=''
6503 for a in "$MAKE" make gmake gnumake ; do
6504 if test -z "$a" ; then continue ; fi ;
6505 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6506 then
6507 llvm_cv_gnu_make_command=$a ;
6508 break;
6509 fi
6510 done
6511fi
6512{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6513echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6514 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6515 ifGNUmake='' ;
6516 else
6517 ifGNUmake='#' ;
6518 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6519echo "${ECHO_T}\"Not found\"" >&6; };
6520 fi
6521
6522
6523{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6525LN_S=$as_ln_s
6526if test "$LN_S" = "ln -s"; then
6527 { echo "$as_me:$LINENO: result: yes" >&5
6528echo "${ECHO_T}yes" >&6; }
6529else
6530 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6531echo "${ECHO_T}no, using $LN_S" >&6; }
6532fi
6533
6534# Extract the first word of "cmp", so it can be a program name with args.
6535set dummy cmp; ac_word=$2
6536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538if test "${ac_cv_path_CMP+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541 case $CMP in
6542 [\\/]* | ?:[\\/]*)
6543 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558done
6559IFS=$as_save_IFS
6560
6561 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6562 ;;
6563esac
6564fi
6565CMP=$ac_cv_path_CMP
6566if test -n "$CMP"; then
6567 { echo "$as_me:$LINENO: result: $CMP" >&5
6568echo "${ECHO_T}$CMP" >&6; }
6569else
6570 { echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6; }
6572fi
6573
6574
6575# Extract the first word of "cp", so it can be a program name with args.
6576set dummy cp; ac_word=$2
6577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579if test "${ac_cv_path_CP+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 case $CP in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599done
6600IFS=$as_save_IFS
6601
6602 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6603 ;;
6604esac
6605fi
6606CP=$ac_cv_path_CP
6607if test -n "$CP"; then
6608 { echo "$as_me:$LINENO: result: $CP" >&5
6609echo "${ECHO_T}$CP" >&6; }
6610else
6611 { echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6; }
6613fi
6614
6615
6616# Extract the first word of "date", so it can be a program name with args.
6617set dummy date; ac_word=$2
6618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620if test "${ac_cv_path_DATE+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623 case $DATE in
6624 [\\/]* | ?:[\\/]*)
6625 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6626 ;;
6627 *)
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640done
6641IFS=$as_save_IFS
6642
6643 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6644 ;;
6645esac
6646fi
6647DATE=$ac_cv_path_DATE
6648if test -n "$DATE"; then
6649 { echo "$as_me:$LINENO: result: $DATE" >&5
6650echo "${ECHO_T}$DATE" >&6; }
6651else
6652 { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
6654fi
6655
6656
6657# Extract the first word of "find", so it can be a program name with args.
6658set dummy find; ac_word=$2
6659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661if test "${ac_cv_path_FIND+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664 case $FIND in
6665 [\\/]* | ?:[\\/]*)
6666 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6667 ;;
6668 *)
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680done
6681done
6682IFS=$as_save_IFS
6683
6684 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6685 ;;
6686esac
6687fi
6688FIND=$ac_cv_path_FIND
6689if test -n "$FIND"; then
6690 { echo "$as_me:$LINENO: result: $FIND" >&5
6691echo "${ECHO_T}$FIND" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697
6698# Extract the first word of "grep", so it can be a program name with args.
6699set dummy grep; ac_word=$2
6700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702if test "${ac_cv_path_GREP+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705 case $GREP in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722done
6723IFS=$as_save_IFS
6724
6725 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6726 ;;
6727esac
6728fi
6729GREP=$ac_cv_path_GREP
6730if test -n "$GREP"; then
6731 { echo "$as_me:$LINENO: result: $GREP" >&5
6732echo "${ECHO_T}$GREP" >&6; }
6733else
6734 { echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6; }
6736fi
6737
6738
6739# Extract the first word of "mkdir", so it can be a program name with args.
6740set dummy mkdir; ac_word=$2
6741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743if test "${ac_cv_path_MKDIR+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746 case $MKDIR in
6747 [\\/]* | ?:[\\/]*)
6748 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6749 ;;
6750 *)
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763done
6764IFS=$as_save_IFS
6765
6766 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6767 ;;
6768esac
6769fi
6770MKDIR=$ac_cv_path_MKDIR
6771if test -n "$MKDIR"; then
6772 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6773echo "${ECHO_T}$MKDIR" >&6; }
6774else
6775 { echo "$as_me:$LINENO: result: no" >&5
6776echo "${ECHO_T}no" >&6; }
6777fi
6778
6779
6780# Extract the first word of "mv", so it can be a program name with args.
6781set dummy mv; ac_word=$2
6782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784if test "${ac_cv_path_MV+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787 case $MV in
6788 [\\/]* | ?:[\\/]*)
6789 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6790 ;;
6791 *)
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803done
6804done
6805IFS=$as_save_IFS
6806
6807 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6808 ;;
6809esac
6810fi
6811MV=$ac_cv_path_MV
6812if test -n "$MV"; then
6813 { echo "$as_me:$LINENO: result: $MV" >&5
6814echo "${ECHO_T}$MV" >&6; }
6815else
6816 { echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6; }
6818fi
6819
6820
6821if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_prog_RANLIB+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 if test -n "$RANLIB"; then
6830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849RANLIB=$ac_cv_prog_RANLIB
6850if test -n "$RANLIB"; then
6851 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6852echo "${ECHO_T}$RANLIB" >&6; }
6853else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_RANLIB"; then
6861 ac_ct_RANLIB=$RANLIB
6862 # Extract the first word of "ranlib", so it can be a program name with args.
6863set dummy ranlib; ac_word=$2
6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 if test -n "$ac_ct_RANLIB"; then
6870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_RANLIB="ranlib"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6890if test -n "$ac_ct_RANLIB"; then
6891 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6892echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6893else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
6896fi
6897
6898 if test "x$ac_ct_RANLIB" = x; then
6899 RANLIB=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6904whose name does not start with the host triplet. If you think this
6905configuration is useful to you, please write to autoconf@gnu.org." >&5
6906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6907whose name does not start with the host triplet. If you think this
6908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6909ac_tool_warned=yes ;;
6910esac
6911 RANLIB=$ac_ct_RANLIB
6912 fi
6913else
6914 RANLIB="$ac_cv_prog_RANLIB"
6915fi
6916
6917# Extract the first word of "rm", so it can be a program name with args.
6918set dummy rm; 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_RM+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 case $RM in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_RM="$RM" # 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
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_RM="$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_RM" && ac_cv_path_RM="rm"
6945 ;;
6946esac
6947fi
6948RM=$ac_cv_path_RM
6949if test -n "$RM"; then
6950 { echo "$as_me:$LINENO: result: $RM" >&5
6951echo "${ECHO_T}$RM" >&6; }
6952else
6953 { echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6; }
6955fi
6956
6957
6958# Extract the first word of "sed", so it can be a program name with args.
6959set dummy sed; ac_word=$2
6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962if test "${ac_cv_path_SED+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 case $SED in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6968 ;;
6969 *)
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6986 ;;
6987esac
6988fi
6989SED=$ac_cv_path_SED
6990if test -n "$SED"; then
6991 { echo "$as_me:$LINENO: result: $SED" >&5
6992echo "${ECHO_T}$SED" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999# Extract the first word of "tar", so it can be a program name with args.
7000set dummy tar; 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_path_TAR+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 case $TAR in
7007 [\\/]* | ?:[\\/]*)
7008 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7009 ;;
7010 *)
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022done
7023done
7024IFS=$as_save_IFS
7025
7026 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7027 ;;
7028esac
7029fi
7030TAR=$ac_cv_path_TAR
7031if test -n "$TAR"; then
7032 { echo "$as_me:$LINENO: result: $TAR" >&5
7033echo "${ECHO_T}$TAR" >&6; }
7034else
7035 { echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6; }
7037fi
7038
7039
7040# Extract the first word of "pwd", so it can be a program name with args.
7041set dummy pwd; ac_word=$2
7042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044if test "${ac_cv_path_BINPWD+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 case $BINPWD in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7050 ;;
7051 *)
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063done
7064done
7065IFS=$as_save_IFS
7066
7067 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7068 ;;
7069esac
7070fi
7071BINPWD=$ac_cv_path_BINPWD
7072if test -n "$BINPWD"; then
7073 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7074echo "${ECHO_T}$BINPWD" >&6; }
7075else
7076 { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
7078fi
7079
7080
7081
7082# Extract the first word of "Graphviz", so it can be a program name with args.
7083set dummy Graphviz; ac_word=$2
7084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 case $GRAPHVIZ in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7110 ;;
7111esac
7112fi
7113GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7114if test -n "$GRAPHVIZ"; then
7115 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7116echo "${ECHO_T}$GRAPHVIZ" >&6; }
7117else
7118 { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123if test "$GRAPHVIZ" != "echo Graphviz" ; then
7124
7125cat >>confdefs.h <<\_ACEOF
7126#define HAVE_GRAPHVIZ 1
7127_ACEOF
7128
Jeff Cohen28783c32007-01-12 18:22:38 +00007129 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007130 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7131 fi
7132
7133cat >>confdefs.h <<_ACEOF
7134#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7135_ACEOF
7136
7137fi
7138# Extract the first word of "dot", so it can be a program name with args.
7139set dummy dot; ac_word=$2
7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_path_DOT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 case $DOT in
7146 [\\/]* | ?:[\\/]*)
7147 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7148 ;;
7149 *)
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163IFS=$as_save_IFS
7164
7165 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7166 ;;
7167esac
7168fi
7169DOT=$ac_cv_path_DOT
7170if test -n "$DOT"; then
7171 { echo "$as_me:$LINENO: result: $DOT" >&5
7172echo "${ECHO_T}$DOT" >&6; }
7173else
7174 { echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6; }
7176fi
7177
7178
7179if test "$DOT" != "echo dot" ; then
7180
7181cat >>confdefs.h <<\_ACEOF
7182#define HAVE_DOT 1
7183_ACEOF
7184
Jeff Cohen28783c32007-01-12 18:22:38 +00007185 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007186 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7187 fi
7188
7189cat >>confdefs.h <<_ACEOF
7190#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7191_ACEOF
7192
7193fi
7194for ac_prog in gv gsview32
7195do
7196 # Extract the first word of "$ac_prog", so it can be a program name with args.
7197set dummy $ac_prog; ac_word=$2
7198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200if test "${ac_cv_path_GV+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202else
7203 case $GV in
7204 [\\/]* | ?:[\\/]*)
7205 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7206 ;;
7207 *)
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7215 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221IFS=$as_save_IFS
7222
7223 ;;
7224esac
7225fi
7226GV=$ac_cv_path_GV
7227if test -n "$GV"; then
7228 { echo "$as_me:$LINENO: result: $GV" >&5
7229echo "${ECHO_T}$GV" >&6; }
7230else
7231 { echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6; }
7233fi
7234
7235
7236 test -n "$GV" && break
7237done
7238test -n "$GV" || GV="echo gv"
7239
7240if test "$GV" != "echo gv" ; then
7241
7242cat >>confdefs.h <<\_ACEOF
7243#define HAVE_GV 1
7244_ACEOF
7245
Jeff Cohen28783c32007-01-12 18:22:38 +00007246 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007247 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7248 fi
7249
7250cat >>confdefs.h <<_ACEOF
7251#define LLVM_PATH_GV "$GV${EXEEXT}"
7252_ACEOF
7253
7254fi
7255# Extract the first word of "dotty", so it can be a program name with args.
7256set dummy dotty; ac_word=$2
7257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259if test "${ac_cv_path_DOTTY+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 case $DOTTY in
7263 [\\/]* | ?:[\\/]*)
7264 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7265 ;;
7266 *)
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280IFS=$as_save_IFS
7281
7282 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7283 ;;
7284esac
7285fi
7286DOTTY=$ac_cv_path_DOTTY
7287if test -n "$DOTTY"; then
7288 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7289echo "${ECHO_T}$DOTTY" >&6; }
7290else
7291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
7293fi
7294
7295
7296if test "$DOTTY" != "echo dotty" ; then
7297
7298cat >>confdefs.h <<\_ACEOF
7299#define HAVE_DOTTY 1
7300_ACEOF
7301
Jeff Cohen28783c32007-01-12 18:22:38 +00007302 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007303 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7304 fi
7305
7306cat >>confdefs.h <<_ACEOF
7307#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7308_ACEOF
7309
7310fi
7311
7312
7313# Extract the first word of "perl", so it can be a program name with args.
7314set dummy perl; ac_word=$2
7315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317if test "${ac_cv_path_PERL+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 case $PERL in
7321 [\\/]* | ?:[\\/]*)
7322 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338IFS=$as_save_IFS
7339
7340 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7341 ;;
7342esac
7343fi
7344PERL=$ac_cv_path_PERL
7345if test -n "$PERL"; then
7346 { echo "$as_me:$LINENO: result: $PERL" >&5
7347echo "${ECHO_T}$PERL" >&6; }
7348else
7349 { echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6; }
7351fi
7352
7353
7354if test "$PERL" != "none"; then
7355 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7356echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7357 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7358 { echo "$as_me:$LINENO: result: yes" >&5
7359echo "${ECHO_T}yes" >&6; }
7360 else
7361 PERL=none
7362 { echo "$as_me:$LINENO: result: not found" >&5
7363echo "${ECHO_T}not found" >&6; }
7364 fi
7365fi
7366
7367
7368if test x"$PERL" = xnone; then
7369 HAVE_PERL=0
7370
7371else
7372 HAVE_PERL=1
7373
7374fi
7375
7376# Find a good install program. We prefer a C program (faster),
7377# so one script is as good as another. But avoid the broken or
7378# incompatible versions:
7379# SysV /etc/install, /usr/sbin/install
7380# SunOS /usr/etc/install
7381# IRIX /sbin/install
7382# AIX /bin/install
7383# AmigaOS /C/install, which installs bootblocks on floppy discs
7384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7387# OS/2's system install, which has a completely different semantic
7388# ./install, which can be erroneously created by make from ./install.sh.
7389{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7390echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7391if test -z "$INSTALL"; then
7392if test "${ac_cv_path_install+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 # Account for people who put trailing slashes in PATH elements.
7401case $as_dir/ in
7402 ./ | .// | /cC/* | \
7403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7404 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7405 /usr/ucb/* ) ;;
7406 *)
7407 # OSF1 and SCO ODT 3.0 have their own names for install.
7408 # Don't use installbsd from OSF since it installs stuff as root
7409 # by default.
7410 for ac_prog in ginstall scoinst install; do
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7413 if test $ac_prog = install &&
7414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7415 # AIX install. It has an incompatible calling convention.
7416 :
7417 elif test $ac_prog = install &&
7418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7419 # program-specific install script used by HP pwplus--don't use.
7420 :
7421 else
7422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7423 break 3
7424 fi
7425 fi
7426 done
7427 done
7428 ;;
7429esac
7430done
7431IFS=$as_save_IFS
7432
7433
7434fi
7435 if test "${ac_cv_path_install+set}" = set; then
7436 INSTALL=$ac_cv_path_install
7437 else
7438 # As a last resort, use the slow shell script. Don't cache a
7439 # value for INSTALL within a source directory, because that will
7440 # break other packages using the cache if that directory is
7441 # removed, or if the value is a relative name.
7442 INSTALL=$ac_install_sh
7443 fi
7444fi
7445{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7446echo "${ECHO_T}$INSTALL" >&6; }
7447
7448# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7449# It thinks the first close brace ends the variable substitution.
7450test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7451
7452test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7453
7454test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7455
7456
7457# Extract the first word of "bzip2", so it can be a program name with args.
7458set dummy bzip2; ac_word=$2
7459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_BZIP2+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464 case $BZIP2 in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481done
7482IFS=$as_save_IFS
7483
7484 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7485 ;;
7486esac
7487fi
7488BZIP2=$ac_cv_path_BZIP2
7489if test -n "$BZIP2"; then
7490 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7491echo "${ECHO_T}$BZIP2" >&6; }
7492else
7493 { echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6; }
7495fi
7496
7497
7498# Extract the first word of "doxygen", so it can be a program name with args.
7499set dummy doxygen; ac_word=$2
7500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502if test "${ac_cv_path_DOXYGEN+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 case $DOXYGEN in
7506 [\\/]* | ?:[\\/]*)
7507 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7508 ;;
7509 *)
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522done
7523IFS=$as_save_IFS
7524
7525 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7526 ;;
7527esac
7528fi
7529DOXYGEN=$ac_cv_path_DOXYGEN
7530if test -n "$DOXYGEN"; then
7531 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7532echo "${ECHO_T}$DOXYGEN" >&6; }
7533else
7534 { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
7536fi
7537
7538
Reid Spencera773bd52006-08-04 18:18:08 +00007539# Extract the first word of "groff", so it can be a program name with args.
7540set dummy groff; ac_word=$2
7541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543if test "${ac_cv_path_GROFF+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 case $GROFF in
7547 [\\/]* | ?:[\\/]*)
7548 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7549 ;;
7550 *)
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563done
7564IFS=$as_save_IFS
7565
7566 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7567 ;;
7568esac
7569fi
7570GROFF=$ac_cv_path_GROFF
7571if test -n "$GROFF"; then
7572 { echo "$as_me:$LINENO: result: $GROFF" >&5
7573echo "${ECHO_T}$GROFF" >&6; }
7574else
7575 { echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6; }
7577fi
7578
7579
7580# Extract the first word of "gzip", so it can be a program name with args.
7581set dummy gzip; ac_word=$2
7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_GZIP+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 case $GZIP in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605IFS=$as_save_IFS
7606
7607 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7608 ;;
7609esac
7610fi
7611GZIP=$ac_cv_path_GZIP
7612if test -n "$GZIP"; then
7613 { echo "$as_me:$LINENO: result: $GZIP" >&5
7614echo "${ECHO_T}$GZIP" >&6; }
7615else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
7618fi
7619
7620
7621# Extract the first word of "pod2html", so it can be a program name with args.
7622set dummy pod2html; ac_word=$2
7623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625if test "${ac_cv_path_POD2HTML+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 case $POD2HTML in
7629 [\\/]* | ?:[\\/]*)
7630 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7631 ;;
7632 *)
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645done
7646IFS=$as_save_IFS
7647
7648 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7649 ;;
7650esac
7651fi
7652POD2HTML=$ac_cv_path_POD2HTML
7653if test -n "$POD2HTML"; then
7654 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7655echo "${ECHO_T}$POD2HTML" >&6; }
7656else
7657 { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662# Extract the first word of "pod2man", so it can be a program name with args.
7663set dummy pod2man; ac_word=$2
7664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666if test "${ac_cv_path_POD2MAN+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669 case $POD2MAN in
7670 [\\/]* | ?:[\\/]*)
7671 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7672 ;;
7673 *)
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685done
7686done
7687IFS=$as_save_IFS
7688
7689 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7690 ;;
7691esac
7692fi
7693POD2MAN=$ac_cv_path_POD2MAN
7694if test -n "$POD2MAN"; then
7695 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7696echo "${ECHO_T}$POD2MAN" >&6; }
7697else
7698 { echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6; }
7700fi
7701
7702
7703# Extract the first word of "runtest", so it can be a program name with args.
7704set dummy runtest; ac_word=$2
7705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707if test "${ac_cv_path_RUNTEST+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710 case $RUNTEST in
7711 [\\/]* | ?:[\\/]*)
7712 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7713 ;;
7714 *)
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727done
7728IFS=$as_save_IFS
7729
7730 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7731 ;;
7732esac
7733fi
7734RUNTEST=$ac_cv_path_RUNTEST
7735if test -n "$RUNTEST"; then
7736 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7737echo "${ECHO_T}$RUNTEST" >&6; }
7738else
7739 { echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6; }
7741fi
7742
7743
7744
7745no_itcl=true
7746{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7747echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7748
7749# Check whether --with-tclinclude was given.
7750if test "${with_tclinclude+set}" = set; then
7751 withval=$with_tclinclude; with_tclinclude=${withval}
7752else
7753 with_tclinclude=''
7754fi
7755
7756if test "${ac_cv_path_tclsh+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759
7760if test x"${with_tclinclude}" != x ; then
7761 if test -f ${with_tclinclude}/tclsh ; then
7762 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7763 elif test -f ${with_tclinclude}/src/tclsh ; then
7764 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7765 else
7766 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7767echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7768 { (exit 1); exit 1; }; }
7769 fi
7770fi
7771
7772if test x"${ac_cv_path_tclsh}" = x ; then
7773 { echo "$as_me:$LINENO: result: none" >&5
7774echo "${ECHO_T}none" >&6; }
7775 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
7776do
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778set dummy $ac_prog; ac_word=$2
7779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7781if test "${ac_cv_path_TCLSH+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 case $TCLSH in
7785 [\\/]* | ?:[\\/]*)
7786 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7787 ;;
7788 *)
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800done
7801done
7802IFS=$as_save_IFS
7803
7804 ;;
7805esac
7806fi
7807TCLSH=$ac_cv_path_TCLSH
7808if test -n "$TCLSH"; then
7809 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7810echo "${ECHO_T}$TCLSH" >&6; }
7811else
7812 { echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6; }
7814fi
7815
7816
7817 test -n "$TCLSH" && break
7818done
7819
7820 if test x"${TCLSH}" = x ; then
7821 ac_cv_path_tclsh='';
7822 else
7823 ac_cv_path_tclsh="${TCLSH}";
7824 fi
7825else
7826 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7827echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7828 TCLSH="${ac_cv_path_tclsh}"
7829
7830fi
7831
7832fi
7833
7834# Extract the first word of "zip", so it can be a program name with args.
7835set dummy zip; ac_word=$2
7836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838if test "${ac_cv_path_ZIP+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841 case $ZIP in
7842 [\\/]* | ?:[\\/]*)
7843 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7844 ;;
7845 *)
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857done
7858done
7859IFS=$as_save_IFS
7860
7861 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7862 ;;
7863esac
7864fi
7865ZIP=$ac_cv_path_ZIP
7866if test -n "$ZIP"; then
7867 { echo "$as_me:$LINENO: result: $ZIP" >&5
7868echo "${ECHO_T}$ZIP" >&6; }
7869else
7870 { echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6; }
7872fi
7873
7874
7875
7876{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7877echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7878if test "${llvm_cv_link_use_r+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 ac_ext=c
7882ac_cpp='$CPP $CPPFLAGS'
7883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886
7887 oldcflags="$CFLAGS"
7888 CFLAGS="$CFLAGS -Wl,-R."
7889 cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895
7896int
7897main ()
7898{
7899int main() { return 0; }
7900 ;
7901 return 0;
7902}
7903_ACEOF
7904rm -f conftest.$ac_objext conftest$ac_exeext
7905if { (ac_try="$ac_link"
7906case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_link") 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922esac
7923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_try") 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 llvm_cv_link_use_r=yes
7939else
7940 echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 llvm_cv_link_use_r=no
7944fi
7945
7946rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 CFLAGS="$oldcflags"
7949 ac_ext=c
7950ac_cpp='$CPP $CPPFLAGS'
7951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7953ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954
7955
7956fi
7957{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7958echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7959if test "$llvm_cv_link_use_r" = yes ; then
7960
7961cat >>confdefs.h <<\_ACEOF
7962#define HAVE_LINK_R 1
7963_ACEOF
7964
7965 fi
7966
7967
7968
7969
7970{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7971echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7972if test "${ac_cv_c_const+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981
7982int
7983main ()
7984{
7985/* FIXME: Include the comments suggested by Paul. */
7986#ifndef __cplusplus
7987 /* Ultrix mips cc rejects this. */
7988 typedef int charset[2];
7989 const charset x;
7990 /* SunOS 4.1.1 cc rejects this. */
7991 char const *const *ccp;
7992 char **p;
7993 /* NEC SVR4.0.2 mips cc rejects this. */
7994 struct point {int x, y;};
7995 static struct point const zero = {0,0};
7996 /* AIX XL C 1.02.0.0 rejects this.
7997 It does not let you subtract one const X* pointer from another in
7998 an arm of an if-expression whose if-part is not a constant
7999 expression */
8000 const char *g = "string";
8001 ccp = &g + (g ? g-g : 0);
8002 /* HPUX 7.0 cc rejects these. */
8003 ++ccp;
8004 p = (char**) ccp;
8005 ccp = (char const *const *) p;
8006 { /* SCO 3.2v4 cc rejects this. */
8007 char *t;
8008 char const *s = 0 ? (char *) 0 : (char const *) 0;
8009
8010 *t++ = 0;
8011 if (s) return 0;
8012 }
8013 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8014 int x[] = {25, 17};
8015 const int *foo = &x[0];
8016 ++foo;
8017 }
8018 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8019 typedef const int *iptr;
8020 iptr p = 0;
8021 ++p;
8022 }
8023 { /* AIX XL C 1.02.0.0 rejects this saying
8024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8025 struct s { int j; const int *ap[3]; };
8026 struct s *b; b->j = 5;
8027 }
8028 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8029 const int foo = 10;
8030 if (!foo) return 0;
8031 }
8032 return !x[0] && !zero.x;
8033#endif
8034
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039rm -f conftest.$ac_objext
8040if { (ac_try="$ac_compile"
8041case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054 { (case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_try") 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_cv_c_const=yes
8074else
8075 echo "$as_me: failed program was:" >&5
8076sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ac_cv_c_const=no
8079fi
8080
8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082fi
8083{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8084echo "${ECHO_T}$ac_cv_c_const" >&6; }
8085if test $ac_cv_c_const = no; then
8086
8087cat >>confdefs.h <<\_ACEOF
8088#define const
8089_ACEOF
8090
8091fi
8092
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008093
8094
8095
8096
8097
8098ac_header_dirent=no
8099for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8100 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008101{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8102echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112#include <sys/types.h>
8113#include <$ac_hdr>
8114
8115int
8116main ()
8117{
8118if ((DIR *) 0)
8119return 0;
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008125if { (ac_try="$ac_compile"
8126case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; } &&
8148 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008149 { (case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 eval "$as_ac_Header=yes"
8159else
8160 echo "$as_me: failed program was:" >&5
8161sed 's/^/| /' conftest.$ac_ext >&5
8162
Reid Spencera773bd52006-08-04 18:18:08 +00008163 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164fi
Reid Spencera773bd52006-08-04 18:18:08 +00008165
8166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008167fi
Reid Spencera773bd52006-08-04 18:18:08 +00008168ac_res=`eval echo '${'$as_ac_Header'}'`
8169 { echo "$as_me:$LINENO: result: $ac_res" >&5
8170echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008171if test `eval echo '${'$as_ac_Header'}'` = yes; then
8172 cat >>confdefs.h <<_ACEOF
8173#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8174_ACEOF
8175
8176ac_header_dirent=$ac_hdr; break
8177fi
8178
8179done
8180# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8181if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008184if test "${ac_cv_search_opendir+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008188cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194
Reid Spencera773bd52006-08-04 18:18:08 +00008195/* Override any GCC internal prototype to avoid an error.
8196 Use char because int might match the return type of a GCC
8197 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008198#ifdef __cplusplus
8199extern "C"
8200#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008201char opendir ();
8202int
8203main ()
8204{
Reid Spencera773bd52006-08-04 18:18:08 +00008205return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008206 ;
8207 return 0;
8208}
8209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008210for ac_lib in '' dir; do
8211 if test -z "$ac_lib"; then
8212 ac_res="none required"
8213 else
8214 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008216 fi
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (ac_try="$ac_link"
8219case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008251 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008256
8257fi
8258
Reid Spencera773bd52006-08-04 18:18:08 +00008259rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext
8261 if test "${ac_cv_search_opendir+set}" = set; then
8262 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008263fi
John Criswell7a73b802003-06-30 21:59:07 +00008264done
Reid Spencera773bd52006-08-04 18:18:08 +00008265if test "${ac_cv_search_opendir+set}" = set; then
8266 :
8267else
8268 ac_cv_search_opendir=no
8269fi
8270rm conftest.$ac_ext
8271LIBS=$ac_func_search_save_LIBS
8272fi
8273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8274echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8275ac_res=$ac_cv_search_opendir
8276if test "$ac_res" != no; then
8277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008278
Reid Spencera773bd52006-08-04 18:18:08 +00008279fi
8280
8281else
8282 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8283echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8284if test "${ac_cv_search_opendir+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287 ac_func_search_save_LIBS=$LIBS
8288cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
8294
8295/* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8298#ifdef __cplusplus
8299extern "C"
8300#endif
8301char opendir ();
8302int
8303main ()
8304{
8305return opendir ();
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310for ac_lib in '' x; do
8311 if test -z "$ac_lib"; then
8312 ac_res="none required"
8313 else
8314 ac_res=-l$ac_lib
8315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8316 fi
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (ac_try="$ac_link"
8319case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
8323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_link") 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332 { (case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335esac
8336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_try") 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345esac
8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_search_opendir=$ac_res
8352else
8353 echo "$as_me: failed program was:" >&5
8354sed 's/^/| /' conftest.$ac_ext >&5
8355
8356
8357fi
8358
8359rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext
8361 if test "${ac_cv_search_opendir+set}" = set; then
8362 break
8363fi
8364done
8365if test "${ac_cv_search_opendir+set}" = set; then
8366 :
8367else
8368 ac_cv_search_opendir=no
8369fi
8370rm conftest.$ac_ext
8371LIBS=$ac_func_search_save_LIBS
8372fi
8373{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8374echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8375ac_res=$ac_cv_search_opendir
8376if test "$ac_res" != no; then
8377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8378
8379fi
8380
8381fi
John Criswell7a73b802003-06-30 21:59:07 +00008382
8383
8384for ac_header in dlfcn.h
8385do
8386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008391 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008392fi
Reid Spencera773bd52006-08-04 18:18:08 +00008393ac_res=`eval echo '${'$as_ac_Header'}'`
8394 { echo "$as_me:$LINENO: result: $ac_res" >&5
8395echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008396else
Brian Gaeke0a621332004-09-08 20:38:05 +00008397 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008398{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008400cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008401/* confdefs.h. */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008406$ac_includes_default
8407#include <$ac_header>
8408_ACEOF
8409rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008410if { (ac_try="$ac_compile"
8411case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008443 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008444else
8445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008446sed 's/^/| /' conftest.$ac_ext >&5
8447
Reid Spencera773bd52006-08-04 18:18:08 +00008448 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008449fi
Reid Spencera773bd52006-08-04 18:18:08 +00008450
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8453echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008454
8455# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008456{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008458cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008459/* confdefs.h. */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h. */
8464#include <$ac_header>
8465_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008466if { (ac_try="$ac_cpp conftest.$ac_ext"
8467case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470esac
8471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev/null; then
8479 if test -s conftest.err; then
8480 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008482 else
8483 ac_cpp_err=
8484 fi
8485else
8486 ac_cpp_err=yes
8487fi
8488if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_header_preproc=no
8495fi
Reid Spencera773bd52006-08-04 18:18:08 +00008496
Brian Gaeke0a621332004-09-08 20:38:05 +00008497rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8499echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008500
8501# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8503 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8508 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008509 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008510 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008523 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008524## ----------------------------------- ##
8525## Report this to llvmbugs@cs.uiuc.edu ##
8526## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008527_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008528 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008529 ;;
8530esac
Reid Spencera773bd52006-08-04 18:18:08 +00008531{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008536 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008537fi
Reid Spencera773bd52006-08-04 18:18:08 +00008538ac_res=`eval echo '${'$as_ac_Header'}'`
8539 { echo "$as_me:$LINENO: result: $ac_res" >&5
8540echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008541
8542fi
John Criswell7a73b802003-06-30 21:59:07 +00008543if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546_ACEOF
8547
8548fi
8549
8550done
8551
Reid Spencera773bd52006-08-04 18:18:08 +00008552# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008553if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008554 enableval=$enable_ltdl_install;
8555fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008556
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008557
8558
8559
8560if test x"${enable_ltdl_install-no}" != xno; then
8561 INSTALL_LTDL_TRUE=
8562 INSTALL_LTDL_FALSE='#'
8563else
8564 INSTALL_LTDL_TRUE='#'
8565 INSTALL_LTDL_FALSE=
8566fi
8567
8568
8569
8570if test x"${enable_ltdl_convenience-no}" != xno; then
8571 CONVENIENCE_LTDL_TRUE=
8572 CONVENIENCE_LTDL_FALSE='#'
8573else
8574 CONVENIENCE_LTDL_TRUE='#'
8575 CONVENIENCE_LTDL_FALSE=
8576fi
8577
8578
Reid Spencera773bd52006-08-04 18:18:08 +00008579{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8580echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008581library_names_spec=
8582libname_spec='lib$name'
8583soname_spec=
8584shrext_cmds=".so"
8585postinstall_cmds=
8586postuninstall_cmds=
8587finish_cmds=
8588finish_eval=
8589shlibpath_var=
8590shlibpath_overrides_runpath=unknown
8591version_type=none
8592dynamic_linker="$host_os ld.so"
8593sys_lib_dlsearch_path_spec="/lib /usr/lib"
8594if test "$GCC" = yes; then
8595 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8596 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8597 # if the path contains ";" then we assume it to be the separator
8598 # otherwise default to the standard path separator (i.e. ":") - it is
8599 # assumed that no part of a normal pathname contains ";" but that should
8600 # okay in the real world where ";" in dirpaths is itself problematic.
8601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8602 else
8603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8604 fi
8605else
8606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8607fi
8608need_lib_prefix=unknown
8609hardcode_into_libs=no
8610
8611# when you set need_version to no, make sure it does not cause -set_version
8612# flags to be left without arguments
8613need_version=unknown
8614
8615case $host_os in
8616aix3*)
8617 version_type=linux
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8619 shlibpath_var=LIBPATH
8620
8621 # AIX 3 has no versioning support, so we append a major version to the name.
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 ;;
8624
8625aix4* | aix5*)
8626 version_type=linux
8627 need_lib_prefix=no
8628 need_version=no
8629 hardcode_into_libs=yes
8630 if test "$host_cpu" = ia64; then
8631 # AIX 5 supports IA64
8632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 else
8635 # With GCC up to 2.95.x, collect2 would create an import file
8636 # for dependence libraries. The import file would start with
8637 # the line `#! .'. This would cause the generated library to
8638 # depend on `.', always an invalid library. This was fixed in
8639 # development snapshots of GCC prior to 3.0.
8640 case $host_os in
8641 aix4 | aix4.[01] | aix4.[01].*)
8642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8643 echo ' yes '
8644 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8645 :
8646 else
8647 can_build_shared=no
8648 fi
8649 ;;
8650 esac
8651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8652 # soname into executable. Probably we can add versioning support to
8653 # collect2, so additional links can be useful in future.
8654 if test "$aix_use_runtimelinking" = yes; then
8655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8656 # instead of lib<name>.a to let people know that these are not
8657 # typical AIX shared libraries.
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659 else
8660 # We preserve .a as extension for shared libraries through AIX4.2
8661 # and later when we are not doing run time linking.
8662 library_names_spec='${libname}${release}.a $libname.a'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 fi
8665 shlibpath_var=LIBPATH
8666 fi
8667 ;;
8668
8669amigaos*)
8670 library_names_spec='$libname.ixlibrary $libname.a'
8671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8672 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'
8673 ;;
8674
8675beos*)
8676 library_names_spec='${libname}${shared_ext}'
8677 dynamic_linker="$host_os ld.so"
8678 shlibpath_var=LIBRARY_PATH
8679 ;;
8680
8681bsdi[45]*)
8682 version_type=linux
8683 need_version=no
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8689 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8690 # the default ld.so.conf also contains /usr/contrib/lib and
8691 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8692 # libtool to hard-code these into programs
8693 ;;
8694
8695cygwin* | mingw* | pw32*)
8696 version_type=windows
8697 shrext_cmds=".dll"
8698 need_version=no
8699 need_lib_prefix=no
8700
8701 case $GCC,$host_os in
8702 yes,cygwin* | yes,mingw* | yes,pw32*)
8703 library_names_spec='$libname.dll.a'
8704 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8705 postinstall_cmds='base_file=`basename \${file}`~
8706 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8707 dldir=$destdir/`dirname \$dlpath`~
8708 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008709 $install_prog $dir/$dlname \$dldir/$dlname~
8710 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8712 dlpath=$dir/\$dldll~
8713 $rm \$dlpath'
8714 shlibpath_overrides_runpath=yes
8715
8716 case $host_os in
8717 cygwin*)
8718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8721 ;;
8722 mingw*)
8723 # MinGW DLLs use traditional 'lib' prefix
8724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8727 # It is most probably a Windows format PATH printed by
8728 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8729 # path with ; separators, and with drive letters. We can handle the
8730 # drive letters (cygwin fileutils understands them), so leave them,
8731 # especially as we might pass files found there to a mingw objdump,
8732 # which wouldn't understand a cygwinified path. Ahh.
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8734 else
8735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8736 fi
8737 ;;
8738 pw32*)
8739 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008740 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 +00008741 ;;
8742 esac
8743 ;;
8744
8745 *)
8746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8747 ;;
8748 esac
8749 dynamic_linker='Win32 ld.exe'
8750 # FIXME: first we should search . and the directory the executable is in
8751 shlibpath_var=PATH
8752 ;;
8753
8754darwin* | rhapsody*)
8755 dynamic_linker="$host_os dyld"
8756 version_type=darwin
8757 need_lib_prefix=no
8758 need_version=no
8759 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8760 soname_spec='${libname}${release}${major}$shared_ext'
8761 shlibpath_overrides_runpath=yes
8762 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8765 if test "$GCC" = yes; then
8766 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"`
8767 else
8768 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8769 fi
8770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8771 ;;
8772
8773dgux*)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8780 ;;
8781
8782freebsd1*)
8783 dynamic_linker=no
8784 ;;
8785
8786kfreebsd*-gnu)
8787 version_type=linux
8788 need_lib_prefix=no
8789 need_version=no
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LD_LIBRARY_PATH
8793 shlibpath_overrides_runpath=no
8794 hardcode_into_libs=yes
8795 dynamic_linker='GNU ld.so'
8796 ;;
8797
Reid Spencera773bd52006-08-04 18:18:08 +00008798freebsd* | dragonfly*)
8799 # DragonFly does not have aout. When/if they implement a new
8800 # versioning mechanism, adjust this.
8801 if test -x /usr/bin/objformat; then
8802 objformat=`/usr/bin/objformat`
8803 else
8804 case $host_os in
8805 freebsd[123]*) objformat=aout ;;
8806 *) objformat=elf ;;
8807 esac
8808 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008809 version_type=freebsd-$objformat
8810 case $version_type in
8811 freebsd-elf*)
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 need_version=no
8814 need_lib_prefix=no
8815 ;;
8816 freebsd-*)
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8818 need_version=yes
8819 ;;
8820 esac
8821 shlibpath_var=LD_LIBRARY_PATH
8822 case $host_os in
8823 freebsd2*)
8824 shlibpath_overrides_runpath=yes
8825 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008826 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008835 freebsd*) # from 4.6 on
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008839 esac
8840 ;;
8841
8842gnu*)
8843 version_type=linux
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 hardcode_into_libs=yes
8850 ;;
8851
8852hpux9* | hpux10* | hpux11*)
8853 # Give a soname corresponding to the major version so that dld.sl refuses to
8854 # link against other versions.
8855 version_type=sunos
8856 need_lib_prefix=no
8857 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008858 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008859 ia64*)
8860 shrext_cmds='.so'
8861 hardcode_into_libs=yes
8862 dynamic_linker="$host_os dld.so"
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 if test "X$HPUX_IA64_MODE" = X32; then
8868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8869 else
8870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8871 fi
8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873 ;;
8874 hppa*64*)
8875 shrext_cmds='.sl'
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8884 ;;
8885 *)
8886 shrext_cmds='.sl'
8887 dynamic_linker="$host_os dld.sl"
8888 shlibpath_var=SHLIB_PATH
8889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 ;;
8893 esac
8894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8895 postinstall_cmds='chmod 555 $lib'
8896 ;;
8897
Reid Spencera773bd52006-08-04 18:18:08 +00008898interix3*)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 hardcode_into_libs=yes
8908 ;;
8909
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008910irix5* | irix6* | nonstopux*)
8911 case $host_os in
8912 nonstopux*) version_type=nonstopux ;;
8913 *)
8914 if test "$lt_cv_prog_gnu_ld" = yes; then
8915 version_type=linux
8916 else
8917 version_type=irix
8918 fi ;;
8919 esac
8920 need_lib_prefix=no
8921 need_version=no
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8924 case $host_os in
8925 irix5* | nonstopux*)
8926 libsuff= shlibsuff=
8927 ;;
8928 *)
8929 case $LD in # libtool.m4 will add one of these switches to LD
8930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8931 libsuff= shlibsuff= libmagic=32-bit;;
8932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8933 libsuff=32 shlibsuff=N32 libmagic=N32;;
8934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8936 *) libsuff= shlibsuff= libmagic=never-match;;
8937 esac
8938 ;;
8939 esac
8940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8941 shlibpath_overrides_runpath=no
8942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8944 hardcode_into_libs=yes
8945 ;;
8946
8947# No shared lib support for Linux oldld, aout, or coff.
8948linux*oldld* | linux*aout* | linux*coff*)
8949 dynamic_linker=no
8950 ;;
8951
8952# This must be Linux ELF.
8953linux*)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
8962 # This implies no fast_install, which is unacceptable.
8963 # Some rework will be needed to allow for fast_install
8964 # before this can be enabled.
8965 hardcode_into_libs=yes
8966
8967 # Append ld.so.conf contents to the search path
8968 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008969 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 +00008970 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8971 fi
8972
8973 # We used to test for /lib/ld.so.1 and disable shared libraries on
8974 # powerpc, because MkLinux only supported shared libraries with the
8975 # GNU dynamic linker. Since this was broken with cross compilers,
8976 # most powerpc-linux boxes support dynamic linking these days and
8977 # people can always --disable-shared, the test was removed, and we
8978 # assume the GNU/Linux dynamic linker is in use.
8979 dynamic_linker='GNU/Linux ld.so'
8980 ;;
8981
8982knetbsd*-gnu)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8991 dynamic_linker='GNU ld.so'
8992 ;;
8993
8994netbsd*)
8995 version_type=sunos
8996 need_lib_prefix=no
8997 need_version=no
8998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9001 dynamic_linker='NetBSD (a.out) ld.so'
9002 else
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 dynamic_linker='NetBSD ld.elf_so'
9006 fi
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 ;;
9011
9012newsos6)
9013 version_type=linux
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 ;;
9018
9019nto-qnx*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=yes
9027 ;;
9028
9029openbsd*)
9030 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009031 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009032 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9034 case $host_os in
9035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9036 *) need_version=no ;;
9037 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9042 case $host_os in
9043 openbsd2.[89] | openbsd2.[89].*)
9044 shlibpath_overrides_runpath=no
9045 ;;
9046 *)
9047 shlibpath_overrides_runpath=yes
9048 ;;
9049 esac
9050 else
9051 shlibpath_overrides_runpath=yes
9052 fi
9053 ;;
9054
9055os2*)
9056 libname_spec='$name'
9057 shrext_cmds=".dll"
9058 need_lib_prefix=no
9059 library_names_spec='$libname${shared_ext} $libname.a'
9060 dynamic_linker='OS/2 ld.exe'
9061 shlibpath_var=LIBPATH
9062 ;;
9063
9064osf3* | osf4* | osf5*)
9065 version_type=osf
9066 need_lib_prefix=no
9067 need_version=no
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9073 ;;
9074
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009075solaris*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9084 # ldd complains unless libraries are executable
9085 postinstall_cmds='chmod +x $lib'
9086 ;;
9087
9088sunos4*)
9089 version_type=sunos
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9094 if test "$with_gnu_ld" = yes; then
9095 need_lib_prefix=no
9096 fi
9097 need_version=yes
9098 ;;
9099
Reid Spencera773bd52006-08-04 18:18:08 +00009100sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009101 version_type=linux
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 case $host_vendor in
9106 sni)
9107 shlibpath_overrides_runpath=no
9108 need_lib_prefix=no
9109 export_dynamic_flag_spec='${wl}-Blargedynsym'
9110 runpath_var=LD_RUN_PATH
9111 ;;
9112 siemens)
9113 need_lib_prefix=no
9114 ;;
9115 motorola)
9116 need_lib_prefix=no
9117 need_version=no
9118 shlibpath_overrides_runpath=no
9119 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9120 ;;
9121 esac
9122 ;;
9123
9124sysv4*MP*)
9125 if test -d /usr/nec ;then
9126 version_type=linux
9127 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9128 soname_spec='$libname${shared_ext}.$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 fi
9131 ;;
9132
Reid Spencera773bd52006-08-04 18:18:08 +00009133sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9134 version_type=freebsd-elf
9135 need_lib_prefix=no
9136 need_version=no
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 hardcode_into_libs=yes
9141 if test "$with_gnu_ld" = yes; then
9142 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9143 shlibpath_overrides_runpath=no
9144 else
9145 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9146 shlibpath_overrides_runpath=yes
9147 case $host_os in
9148 sco3.2v5*)
9149 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9150 ;;
9151 esac
9152 fi
9153 sys_lib_dlsearch_path_spec='/usr/lib'
9154 ;;
9155
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156uts4*)
9157 version_type=linux
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 ;;
9162
9163*)
9164 dynamic_linker=no
9165 ;;
9166esac
Reid Spencera773bd52006-08-04 18:18:08 +00009167{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9168echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009169test "$dynamic_linker" = no && can_build_shared=no
9170
Reid Spencera773bd52006-08-04 18:18:08 +00009171variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9172if test "$GCC" = yes; then
9173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9174fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009175
Reid Spencera773bd52006-08-04 18:18:08 +00009176
9177{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9178echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009179if test "${libltdl_cv_shlibext+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182
9183module=yes
9184eval libltdl_cv_shlibext=$shrext_cmds
9185
9186fi
Reid Spencera773bd52006-08-04 18:18:08 +00009187{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9188echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009189if test -n "$libltdl_cv_shlibext"; then
9190
9191cat >>confdefs.h <<_ACEOF
9192#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9193_ACEOF
9194
9195fi
9196
9197
Reid Spencera773bd52006-08-04 18:18:08 +00009198{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9199echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200if test "${libltdl_cv_shlibpath_var+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 libltdl_cv_shlibpath_var="$shlibpath_var"
9204fi
Reid Spencera773bd52006-08-04 18:18:08 +00009205{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9206echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207if test -n "$libltdl_cv_shlibpath_var"; then
9208
9209cat >>confdefs.h <<_ACEOF
9210#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9211_ACEOF
9212
9213fi
9214
9215
Reid Spencera773bd52006-08-04 18:18:08 +00009216{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9217echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218if test "${libltdl_cv_sys_search_path+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220else
9221 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9222fi
Reid Spencera773bd52006-08-04 18:18:08 +00009223{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9224echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225if test -n "$libltdl_cv_sys_search_path"; then
9226 sys_search_path=
9227 for dir in $libltdl_cv_sys_search_path; do
9228 if test -z "$sys_search_path"; then
9229 sys_search_path="$dir"
9230 else
9231 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9232 fi
9233 done
9234
9235cat >>confdefs.h <<_ACEOF
9236#define LTDL_SYSSEARCHPATH "$sys_search_path"
9237_ACEOF
9238
9239fi
9240
Reid Spencera773bd52006-08-04 18:18:08 +00009241{ echo "$as_me:$LINENO: checking for objdir" >&5
9242echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243if test "${libltdl_cv_objdir+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246 libltdl_cv_objdir="$objdir"
9247 if test -n "$objdir"; then
9248 :
9249 else
9250 rm -f .libs 2>/dev/null
9251 mkdir .libs 2>/dev/null
9252 if test -d .libs; then
9253 libltdl_cv_objdir=.libs
9254 else
9255 # MS-DOS does not allow filenames that begin with a dot.
9256 libltdl_cv_objdir=_libs
9257 fi
9258 rmdir .libs 2>/dev/null
9259 fi
9260
9261fi
Reid Spencera773bd52006-08-04 18:18:08 +00009262{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9263echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009264
9265cat >>confdefs.h <<_ACEOF
9266#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9267_ACEOF
9268
9269
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270
9271
9272
9273
9274# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009275{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9276echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009277if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279else
9280
9281# These are sane defaults that work on at least a few old systems.
9282# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9283
9284# Character class describing NM global symbol codes.
9285symcode='[BCDEGRST]'
9286
9287# Regexp to match symbols that can be accessed directly from C.
9288sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9289
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290# Transform an extracted symbol line into a proper C declaration
9291lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9292
9293# Transform an extracted symbol line into symbol name and symbol address
9294lt_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'"
9295
9296# Define system-specific variables.
9297case $host_os in
9298aix*)
9299 symcode='[BCDT]'
9300 ;;
9301cygwin* | mingw* | pw32*)
9302 symcode='[ABCDGISTW]'
9303 ;;
9304hpux*) # Its linker distinguishes data from code symbols
9305 if test "$host_cpu" = ia64; then
9306 symcode='[ABCDEGRST]'
9307 fi
9308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9309 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'"
9310 ;;
9311linux*)
9312 if test "$host_cpu" = ia64; then
9313 symcode='[ABCDGIRSTW]'
9314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9315 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'"
9316 fi
9317 ;;
9318irix* | nonstopux*)
9319 symcode='[BCDEGRST]'
9320 ;;
9321osf*)
9322 symcode='[BCDEGQRST]'
9323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009324solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325 symcode='[BDRT]'
9326 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009327sco3.2v5*)
9328 symcode='[DT]'
9329 ;;
9330sysv4.2uw2*)
9331 symcode='[DT]'
9332 ;;
9333sysv5* | sco5v6* | unixware* | OpenUNIX*)
9334 symcode='[ABDT]'
9335 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336sysv4)
9337 symcode='[DFNSTU]'
9338 ;;
9339esac
9340
9341# Handle CRLF in mingw tool chain
9342opt_cr=
9343case $build_os in
9344mingw*)
9345 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9346 ;;
9347esac
9348
9349# If we're using GNU nm, then use its standard symbol codes.
9350case `$NM -V 2>&1` in
9351*GNU* | *'with BFD'*)
9352 symcode='[ABCDGIRSTW]' ;;
9353esac
9354
9355# Try without a prefix undercore, then with it.
9356for ac_symprfx in "" "_"; do
9357
Reid Spencera773bd52006-08-04 18:18:08 +00009358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9359 symxfrm="\\1 $ac_symprfx\\2 \\2"
9360
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009362 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 +00009363
9364 # Check to see that the pipe works correctly.
9365 pipe_works=no
9366
9367 rm -f conftest*
9368 cat > conftest.$ac_ext <<EOF
9369#ifdef __cplusplus
9370extern "C" {
9371#endif
9372char nm_test_var;
9373void nm_test_func(){}
9374#ifdef __cplusplus
9375}
9376#endif
9377int main(){nm_test_var='a';nm_test_func();return(0);}
9378EOF
9379
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; then
9385 # Now try to grab the symbols.
9386 nlist=conftest.nm
9387 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9388 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && test -s "$nlist"; then
9392 # Try sorting and uniquifying the output.
9393 if sort "$nlist" | uniq > "$nlist"T; then
9394 mv -f "$nlist"T "$nlist"
9395 else
9396 rm -f "$nlist"T
9397 fi
9398
9399 # Make sure that we snagged all the symbols we need.
9400 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9401 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9402 cat <<EOF > conftest.$ac_ext
9403#ifdef __cplusplus
9404extern "C" {
9405#endif
9406
9407EOF
9408 # Now generate the symbol file.
9409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9410
9411 cat <<EOF >> conftest.$ac_ext
9412#if defined (__STDC__) && __STDC__
9413# define lt_ptr_t void *
9414#else
9415# define lt_ptr_t char *
9416# define const
9417#endif
9418
9419/* The mapping between symbol names and symbols. */
9420const struct {
9421 const char *name;
9422 lt_ptr_t address;
9423}
9424lt_preloaded_symbols[] =
9425{
9426EOF
9427 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9428 cat <<\EOF >> conftest.$ac_ext
9429 {0, (lt_ptr_t) 0}
9430};
9431
9432#ifdef __cplusplus
9433}
9434#endif
9435EOF
9436 # Now try linking the two files.
9437 mv conftest.$ac_objext conftstm.$ac_objext
9438 lt_save_LIBS="$LIBS"
9439 lt_save_CFLAGS="$CFLAGS"
9440 LIBS="conftstm.$ac_objext"
9441 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9447 pipe_works=yes
9448 fi
9449 LIBS="$lt_save_LIBS"
9450 CFLAGS="$lt_save_CFLAGS"
9451 else
9452 echo "cannot find nm_test_func in $nlist" >&5
9453 fi
9454 else
9455 echo "cannot find nm_test_var in $nlist" >&5
9456 fi
9457 else
9458 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9459 fi
9460 else
9461 echo "$progname: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 fi
9464 rm -f conftest* conftst*
9465
9466 # Do not use the global_symbol_pipe unless it works.
9467 if test "$pipe_works" = yes; then
9468 break
9469 else
9470 lt_cv_sys_global_symbol_pipe=
9471 fi
9472done
9473
9474fi
9475
9476if test -z "$lt_cv_sys_global_symbol_pipe"; then
9477 lt_cv_sys_global_symbol_to_cdecl=
9478fi
9479if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009480 { echo "$as_me:$LINENO: result: failed" >&5
9481echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482else
Reid Spencera773bd52006-08-04 18:18:08 +00009483 { echo "$as_me:$LINENO: result: ok" >&5
9484echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485fi
9486
9487
Reid Spencera773bd52006-08-04 18:18:08 +00009488{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9489echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492else
9493 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9494 libltdl_cv_preloaded_symbols=yes
9495 else
9496 libltdl_cv_preloaded_symbols=no
9497 fi
9498
9499fi
Reid Spencera773bd52006-08-04 18:18:08 +00009500{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9501echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9503
9504cat >>confdefs.h <<\_ACEOF
9505#define HAVE_PRELOADED_SYMBOLS 1
9506_ACEOF
9507
9508fi
9509
9510LIBADD_DL=
9511
9512ac_ext=c
9513ac_cpp='$CPP $CPPFLAGS'
9514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516ac_compiler_gnu=$ac_cv_c_compiler_gnu
9517
9518
Reid Spencera773bd52006-08-04 18:18:08 +00009519{ echo "$as_me:$LINENO: checking for shl_load" >&5
9520echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521if test "${ac_cv_func_shl_load+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524 cat >conftest.$ac_ext <<_ACEOF
9525/* confdefs.h. */
9526_ACEOF
9527cat confdefs.h >>conftest.$ac_ext
9528cat >>conftest.$ac_ext <<_ACEOF
9529/* end confdefs.h. */
9530/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9532#define shl_load innocuous_shl_load
9533
9534/* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char shl_load (); below.
9536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9537 <limits.h> exists even on freestanding compilers. */
9538
9539#ifdef __STDC__
9540# include <limits.h>
9541#else
9542# include <assert.h>
9543#endif
9544
9545#undef shl_load
9546
Reid Spencera773bd52006-08-04 18:18:08 +00009547/* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550#ifdef __cplusplus
9551extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553char shl_load ();
9554/* The GNU C library defines this for functions which it implements
9555 to always fail with ENOSYS. Some functions are actually named
9556 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009557#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559#endif
9560
9561int
9562main ()
9563{
Reid Spencera773bd52006-08-04 18:18:08 +00009564return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565 ;
9566 return 0;
9567}
9568_ACEOF
9569rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009570if { (ac_try="$ac_link"
9571case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574esac
9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587esac
9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_func_shl_load=yes
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
Reid Spencera773bd52006-08-04 18:18:08 +00009608 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609fi
Reid Spencera773bd52006-08-04 18:18:08 +00009610
9611rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612 conftest$ac_exeext conftest.$ac_ext
9613fi
Reid Spencera773bd52006-08-04 18:18:08 +00009614{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9615echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009616if test $ac_cv_func_shl_load = yes; then
9617
9618cat >>confdefs.h <<\_ACEOF
9619#define HAVE_SHL_LOAD 1
9620_ACEOF
9621
9622else
Reid Spencera773bd52006-08-04 18:18:08 +00009623 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9624echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628 ac_check_lib_save_LIBS=$LIBS
9629LIBS="-ldld $LIBS"
9630cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
9636
Reid Spencera773bd52006-08-04 18:18:08 +00009637/* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640#ifdef __cplusplus
9641extern "C"
9642#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643char shl_load ();
9644int
9645main ()
9646{
Reid Spencera773bd52006-08-04 18:18:08 +00009647return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009653if { (ac_try="$ac_link"
9654case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657esac
9658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670esac
9671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9680esac
9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_dld_shl_load=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
Reid Spencera773bd52006-08-04 18:18:08 +00009691 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692fi
Reid Spencera773bd52006-08-04 18:18:08 +00009693
9694rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695 conftest$ac_exeext conftest.$ac_ext
9696LIBS=$ac_check_lib_save_LIBS
9697fi
Reid Spencera773bd52006-08-04 18:18:08 +00009698{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9699echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700if test $ac_cv_lib_dld_shl_load = yes; then
9701
9702cat >>confdefs.h <<\_ACEOF
9703#define HAVE_SHL_LOAD 1
9704_ACEOF
9705
9706 LIBADD_DL="$LIBADD_DL -ldld"
9707else
Reid Spencera773bd52006-08-04 18:18:08 +00009708 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 ac_check_lib_save_LIBS=$LIBS
9714LIBS="-ldl $LIBS"
9715cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721
Reid Spencera773bd52006-08-04 18:18:08 +00009722/* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725#ifdef __cplusplus
9726extern "C"
9727#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728char dlopen ();
9729int
9730main ()
9731{
Reid Spencera773bd52006-08-04 18:18:08 +00009732return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733 ;
9734 return 0;
9735}
9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009738if { (ac_try="$ac_link"
9739case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_lib_dl_dlopen=yes
9772else
9773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
Reid Spencera773bd52006-08-04 18:18:08 +00009776 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777fi
Reid Spencera773bd52006-08-04 18:18:08 +00009778
9779rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 conftest$ac_exeext conftest.$ac_ext
9781LIBS=$ac_check_lib_save_LIBS
9782fi
Reid Spencera773bd52006-08-04 18:18:08 +00009783{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9784echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785if test $ac_cv_lib_dl_dlopen = yes; then
9786
9787cat >>confdefs.h <<\_ACEOF
9788#define HAVE_LIBDL 1
9789_ACEOF
9790
9791 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9792else
9793 cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
9799#if HAVE_DLFCN_H
9800# include <dlfcn.h>
9801#endif
9802
9803int
9804main ()
9805{
9806dlopen(0, 0);
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009812if { (ac_try="$ac_link"
9813case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9826 { (case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839esac
9840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845
9846cat >>confdefs.h <<\_ACEOF
9847#define HAVE_LIBDL 1
9848_ACEOF
9849 libltdl_cv_func_dlopen="yes"
9850else
9851 echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
Reid Spencera773bd52006-08-04 18:18:08 +00009854 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9855echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859 ac_check_lib_save_LIBS=$LIBS
9860LIBS="-lsvld $LIBS"
9861cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
9867
Reid Spencera773bd52006-08-04 18:18:08 +00009868/* Override any GCC internal prototype to avoid an error.
9869 Use char because int might match the return type of a GCC
9870 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871#ifdef __cplusplus
9872extern "C"
9873#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874char dlopen ();
9875int
9876main ()
9877{
Reid Spencera773bd52006-08-04 18:18:08 +00009878return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879 ;
9880 return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888esac
9889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_lib_svld_dlopen=yes
9918else
9919 echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
Reid Spencera773bd52006-08-04 18:18:08 +00009922 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923fi
Reid Spencera773bd52006-08-04 18:18:08 +00009924
9925rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 conftest$ac_exeext conftest.$ac_ext
9927LIBS=$ac_check_lib_save_LIBS
9928fi
Reid Spencera773bd52006-08-04 18:18:08 +00009929{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9930echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931if test $ac_cv_lib_svld_dlopen = yes; then
9932
9933cat >>confdefs.h <<\_ACEOF
9934#define HAVE_LIBDL 1
9935_ACEOF
9936
9937 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9938else
Reid Spencera773bd52006-08-04 18:18:08 +00009939 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9940echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 ac_check_lib_save_LIBS=$LIBS
9945LIBS="-ldld $LIBS"
9946cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
9952
Reid Spencera773bd52006-08-04 18:18:08 +00009953/* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956#ifdef __cplusplus
9957extern "C"
9958#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959char dld_link ();
9960int
9961main ()
9962{
Reid Spencera773bd52006-08-04 18:18:08 +00009963return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964 ;
9965 return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009969if { (ac_try="$ac_link"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_lib_dld_dld_link=yes
10003else
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
Reid Spencera773bd52006-08-04 18:18:08 +000010007 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008fi
Reid Spencera773bd52006-08-04 18:18:08 +000010009
10010rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 conftest$ac_exeext conftest.$ac_ext
10012LIBS=$ac_check_lib_save_LIBS
10013fi
Reid Spencera773bd52006-08-04 18:18:08 +000010014{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10015echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016if test $ac_cv_lib_dld_dld_link = yes; then
10017
10018cat >>confdefs.h <<\_ACEOF
10019#define HAVE_DLD 1
10020_ACEOF
10021
10022 LIBADD_DL="$LIBADD_DL -ldld"
10023else
Reid Spencera773bd52006-08-04 18:18:08 +000010024 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10025echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029 cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h. */
10035/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10037#define _dyld_func_lookup innocuous__dyld_func_lookup
10038
10039/* System header to define __stub macros and hopefully few prototypes,
10040 which can conflict with char _dyld_func_lookup (); below.
10041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10042 <limits.h> exists even on freestanding compilers. */
10043
10044#ifdef __STDC__
10045# include <limits.h>
10046#else
10047# include <assert.h>
10048#endif
10049
10050#undef _dyld_func_lookup
10051
Reid Spencera773bd52006-08-04 18:18:08 +000010052/* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055#ifdef __cplusplus
10056extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058char _dyld_func_lookup ();
10059/* The GNU C library defines this for functions which it implements
10060 to always fail with ENOSYS. Some functions are actually named
10061 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010062#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064#endif
10065
10066int
10067main ()
10068{
Reid Spencera773bd52006-08-04 18:18:08 +000010069return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ;
10071 return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010075if { (ac_try="$ac_link"
10076case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_func__dyld_func_lookup=yes
10109else
10110 echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
Reid Spencera773bd52006-08-04 18:18:08 +000010113 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114fi
Reid Spencera773bd52006-08-04 18:18:08 +000010115
10116rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 conftest$ac_exeext conftest.$ac_ext
10118fi
Reid Spencera773bd52006-08-04 18:18:08 +000010119{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10120echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121if test $ac_cv_func__dyld_func_lookup = yes; then
10122
10123cat >>confdefs.h <<\_ACEOF
10124#define HAVE_DYLD 1
10125_ACEOF
10126
10127fi
10128
10129
10130fi
10131
10132
10133fi
10134
10135
10136fi
Reid Spencera773bd52006-08-04 18:18:08 +000010137
10138rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 conftest$ac_exeext conftest.$ac_ext
10140
10141fi
10142
10143
10144fi
10145
10146
10147fi
10148
10149
10150if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10151then
10152 lt_save_LIBS="$LIBS"
10153 LIBS="$LIBS $LIBADD_DL"
10154
10155for ac_func in dlerror
10156do
10157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163 cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10171#define $ac_func innocuous_$ac_func
10172
10173/* System header to define __stub macros and hopefully few prototypes,
10174 which can conflict with char $ac_func (); below.
10175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10176 <limits.h> exists even on freestanding compilers. */
10177
10178#ifdef __STDC__
10179# include <limits.h>
10180#else
10181# include <assert.h>
10182#endif
10183
10184#undef $ac_func
10185
Reid Spencera773bd52006-08-04 18:18:08 +000010186/* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189#ifdef __cplusplus
10190extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192char $ac_func ();
10193/* The GNU C library defines this for functions which it implements
10194 to always fail with ENOSYS. Some functions are actually named
10195 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010196#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198#endif
10199
10200int
10201main ()
10202{
Reid Spencera773bd52006-08-04 18:18:08 +000010203return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204 ;
10205 return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010209if { (ac_try="$ac_link"
10210case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236esac
10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 eval "$as_ac_var=yes"
10243else
10244 echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
Reid Spencera773bd52006-08-04 18:18:08 +000010247 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248fi
Reid Spencera773bd52006-08-04 18:18:08 +000010249
10250rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 conftest$ac_exeext conftest.$ac_ext
10252fi
Reid Spencera773bd52006-08-04 18:18:08 +000010253ac_res=`eval echo '${'$as_ac_var'}'`
10254 { echo "$as_me:$LINENO: result: $ac_res" >&5
10255echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256if test `eval echo '${'$as_ac_var'}'` = yes; then
10257 cat >>confdefs.h <<_ACEOF
10258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10259_ACEOF
10260
10261fi
10262done
10263
10264 LIBS="$lt_save_LIBS"
10265fi
10266ac_ext=c
10267ac_cpp='$CPP $CPPFLAGS'
10268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10270ac_compiler_gnu=$ac_cv_c_compiler_gnu
10271
10272
10273
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10275echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 ac_cv_sys_symbol_underscore=no
10280 cat > conftest.$ac_ext <<EOF
10281void nm_test_func(){}
10282int main(){nm_test_func;return 0;}
10283EOF
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; then
10289 # Now try to grab the symbols.
10290 ac_nlist=conftest.nm
10291 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10292 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && test -s "$ac_nlist"; then
10296 # See whether the symbols have a leading underscore.
10297 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10298 ac_cv_sys_symbol_underscore=yes
10299 else
10300 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10301 :
10302 else
10303 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10304 fi
10305 fi
10306 else
10307 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10308 fi
10309 else
10310 echo "configure: failed program was:" >&5
10311 cat conftest.c >&5
10312 fi
10313 rm -rf conftest*
10314
10315fi
Reid Spencera773bd52006-08-04 18:18:08 +000010316{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10317echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318
10319
10320if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10321 if test x"$libltdl_cv_func_dlopen" = xyes ||
10322 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010323 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10324echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325if test "${libltdl_cv_need_uscore+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 libltdl_cv_need_uscore=unknown
10329 save_LIBS="$LIBS"
10330 LIBS="$LIBS $LIBADD_DL"
10331 if test "$cross_compiling" = yes; then :
10332 libltdl_cv_need_uscore=cross
10333else
10334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10335 lt_status=$lt_dlunknown
10336 cat > conftest.$ac_ext <<EOF
Reid Spencer466207a2007-01-20 20:45:39 +000010337#line 10337 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338#include "confdefs.h"
10339
10340#if HAVE_DLFCN_H
10341#include <dlfcn.h>
10342#endif
10343
10344#include <stdio.h>
10345
10346#ifdef RTLD_GLOBAL
10347# define LT_DLGLOBAL RTLD_GLOBAL
10348#else
10349# ifdef DL_GLOBAL
10350# define LT_DLGLOBAL DL_GLOBAL
10351# else
10352# define LT_DLGLOBAL 0
10353# endif
10354#endif
10355
10356/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10357 find out it does not work in some platform. */
10358#ifndef LT_DLLAZY_OR_NOW
10359# ifdef RTLD_LAZY
10360# define LT_DLLAZY_OR_NOW RTLD_LAZY
10361# else
10362# ifdef DL_LAZY
10363# define LT_DLLAZY_OR_NOW DL_LAZY
10364# else
10365# ifdef RTLD_NOW
10366# define LT_DLLAZY_OR_NOW RTLD_NOW
10367# else
10368# ifdef DL_NOW
10369# define LT_DLLAZY_OR_NOW DL_NOW
10370# else
10371# define LT_DLLAZY_OR_NOW 0
10372# endif
10373# endif
10374# endif
10375# endif
10376#endif
10377
10378#ifdef __cplusplus
10379extern "C" void exit (int);
10380#endif
10381
10382void fnord() { int i=42;}
10383int main ()
10384{
10385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10386 int status = $lt_dlunknown;
10387
10388 if (self)
10389 {
10390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10391 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10392 /* dlclose (self); */
10393 }
Reid Spencera773bd52006-08-04 18:18:08 +000010394 else
10395 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396
10397 exit (status);
10398}
10399EOF
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010405 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406 lt_status=$?
10407 case x$lt_status in
10408 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10409 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010410 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 esac
10412 else :
10413 # compilation failed
10414
10415 fi
10416fi
10417rm -fr conftest*
10418
10419 LIBS="$save_LIBS"
10420
10421fi
Reid Spencera773bd52006-08-04 18:18:08 +000010422{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10423echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424 fi
10425fi
10426
10427if test x"$libltdl_cv_need_uscore" = xyes; then
10428
10429cat >>confdefs.h <<\_ACEOF
10430#define NEED_USCORE 1
10431_ACEOF
10432
10433fi
10434
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10437echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 # PORTME does your system automatically load deplibs for dlopen?
10442 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10443 # For now, we just catch OSes we know something about -- in the
10444 # future, we'll try test this programmatically.
10445 libltdl_cv_sys_dlopen_deplibs=unknown
10446 case "$host_os" in
10447 aix3*|aix4.1.*|aix4.2.*)
10448 # Unknown whether this is true for these versions of AIX, but
10449 # we want this `case' here to explicitly catch those versions.
10450 libltdl_cv_sys_dlopen_deplibs=unknown
10451 ;;
10452 aix[45]*)
10453 libltdl_cv_sys_dlopen_deplibs=yes
10454 ;;
10455 darwin*)
10456 # Assuming the user has installed a libdl from somewhere, this is true
10457 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10458 libltdl_cv_sys_dlopen_deplibs=yes
10459 ;;
10460 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10461 # GNU and its variants, using gnu ld.so (Glibc)
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 hpux10*|hpux11*)
10465 libltdl_cv_sys_dlopen_deplibs=yes
10466 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010467 interix*)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10469 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 irix[12345]*|irix6.[01]*)
10471 # Catch all versions of IRIX before 6.2, and indicate that we don't
10472 # know how it worked for any of those versions.
10473 libltdl_cv_sys_dlopen_deplibs=unknown
10474 ;;
10475 irix*)
10476 # The case above catches anything before 6.2, and it's known that
10477 # at 6.2 and later dlopen does load deplibs.
10478 libltdl_cv_sys_dlopen_deplibs=yes
10479 ;;
10480 netbsd*)
10481 libltdl_cv_sys_dlopen_deplibs=yes
10482 ;;
10483 openbsd*)
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 osf[1234]*)
10487 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10488 # it did *not* use an RPATH in a shared library to find objects the
10489 # library depends on, so we explictly say `no'.
10490 libltdl_cv_sys_dlopen_deplibs=no
10491 ;;
10492 osf5.0|osf5.0a|osf5.1)
10493 # dlopen *does* load deplibs and with the right loader patch applied
10494 # it even uses RPATH in a shared library to search for shared objects
10495 # that the library depends on, but there's no easy way to know if that
10496 # patch is installed. Since this is the case, all we can really
10497 # say is unknown -- it depends on the patch being installed. If
10498 # it is, this changes to `yes'. Without it, it would be `no'.
10499 libltdl_cv_sys_dlopen_deplibs=unknown
10500 ;;
10501 osf*)
10502 # the two cases above should catch all versions of osf <= 5.1. Read
10503 # the comments above for what we know about them.
10504 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10505 # is used to find them so we can finally say `yes'.
10506 libltdl_cv_sys_dlopen_deplibs=yes
10507 ;;
10508 solaris*)
10509 libltdl_cv_sys_dlopen_deplibs=yes
10510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10512 libltdl_cv_sys_dlopen_deplibs=yes
10513 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514 esac
10515
10516fi
Reid Spencera773bd52006-08-04 18:18:08 +000010517{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10518echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10520
10521cat >>confdefs.h <<\_ACEOF
10522#define LTDL_DLOPEN_DEPLIBS 1
10523_ACEOF
10524
10525fi
10526
10527
10528for ac_header in argz.h
10529do
10530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536fi
Reid Spencera773bd52006-08-04 18:18:08 +000010537ac_res=`eval echo '${'$as_ac_Header'}'`
10538 { echo "$as_me:$LINENO: result: $ac_res" >&5
10539echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540else
10541 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
10550$ac_includes_default
10551#include <$ac_header>
10552_ACEOF
10553rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010554if { (ac_try="$ac_compile"
10555case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10558esac
10559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561 ac_status=$?
10562 grep -v '^ *+' conftest.er1 >conftest.err
10563 rm -f conftest.er1
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010578 { (case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581esac
10582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_header_compiler=yes
10588else
10589 echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591
Reid Spencera773bd52006-08-04 18:18:08 +000010592 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593fi
Reid Spencera773bd52006-08-04 18:18:08 +000010594
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598
10599# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608#include <$ac_header>
10609_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010610if { (ac_try="$ac_cpp conftest.$ac_ext"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
10615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null; then
10623 if test -s conftest.err; then
10624 ac_cpp_err=$ac_c_preproc_warn_flag
10625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 else
10627 ac_cpp_err=
10628 fi
10629else
10630 ac_cpp_err=yes
10631fi
10632if test -z "$ac_cpp_err"; then
10633 ac_header_preproc=yes
10634else
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
10639fi
Reid Spencera773bd52006-08-04 18:18:08 +000010640
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644
10645# So? What about this header?
10646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647 yes:no: )
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10653 ;;
10654 no:yes:* )
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010667 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668## ----------------------------------- ##
10669## Report this to llvmbugs@cs.uiuc.edu ##
10670## ----------------------------------- ##
10671_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010672 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 ;;
10674esac
Reid Spencera773bd52006-08-04 18:18:08 +000010675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680 eval "$as_ac_Header=\$ac_header_preproc"
10681fi
Reid Spencera773bd52006-08-04 18:18:08 +000010682ac_res=`eval echo '${'$as_ac_Header'}'`
10683 { echo "$as_me:$LINENO: result: $ac_res" >&5
10684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685
10686fi
10687if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690_ACEOF
10691
10692fi
10693
10694done
10695
10696
Reid Spencera773bd52006-08-04 18:18:08 +000010697{ echo "$as_me:$LINENO: checking for error_t" >&5
10698echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699if test "${ac_cv_type_error_t+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h. */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h. */
10708#if HAVE_ARGZ_H
10709# include <argz.h>
10710#endif
10711
Reid Spencera773bd52006-08-04 18:18:08 +000010712typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713int
10714main ()
10715{
Reid Spencera773bd52006-08-04 18:18:08 +000010716if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010718if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 return 0;
10720 ;
10721 return 0;
10722}
10723_ACEOF
10724rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010725if { (ac_try="$ac_compile"
10726case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729esac
10730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742esac
10743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_type_error_t=yes
10759else
10760 echo "$as_me: failed program was:" >&5
10761sed 's/^/| /' conftest.$ac_ext >&5
10762
Reid Spencera773bd52006-08-04 18:18:08 +000010763 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764fi
Reid Spencera773bd52006-08-04 18:18:08 +000010765
10766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010767fi
Reid Spencera773bd52006-08-04 18:18:08 +000010768{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10769echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770if test $ac_cv_type_error_t = yes; then
10771
10772cat >>confdefs.h <<_ACEOF
10773#define HAVE_ERROR_T 1
10774_ACEOF
10775
10776
10777else
10778
10779cat >>confdefs.h <<\_ACEOF
10780#define error_t int
10781_ACEOF
10782
10783fi
10784
10785
10786
10787
10788
10789
10790
10791for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10792do
10793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010794{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10796if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 cat >conftest.$ac_ext <<_ACEOF
10800/* confdefs.h. */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h. */
10805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10807#define $ac_func innocuous_$ac_func
10808
10809/* System header to define __stub macros and hopefully few prototypes,
10810 which can conflict with char $ac_func (); below.
10811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10812 <limits.h> exists even on freestanding compilers. */
10813
10814#ifdef __STDC__
10815# include <limits.h>
10816#else
10817# include <assert.h>
10818#endif
10819
10820#undef $ac_func
10821
Reid Spencera773bd52006-08-04 18:18:08 +000010822/* Override any GCC internal prototype to avoid an error.
10823 Use char because int might match the return type of a GCC
10824 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825#ifdef __cplusplus
10826extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828char $ac_func ();
10829/* The GNU C library defines this for functions which it implements
10830 to always fail with ENOSYS. Some functions are actually named
10831 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010832#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834#endif
10835
10836int
10837main ()
10838{
Reid Spencera773bd52006-08-04 18:18:08 +000010839return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840 ;
10841 return 0;
10842}
10843_ACEOF
10844rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010845if { (ac_try="$ac_link"
10846case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849esac
10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 eval "$as_ac_var=yes"
10879else
10880 echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
Reid Spencera773bd52006-08-04 18:18:08 +000010883 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884fi
Reid Spencera773bd52006-08-04 18:18:08 +000010885
10886rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887 conftest$ac_exeext conftest.$ac_ext
10888fi
Reid Spencera773bd52006-08-04 18:18:08 +000010889ac_res=`eval echo '${'$as_ac_var'}'`
10890 { echo "$as_me:$LINENO: result: $ac_res" >&5
10891echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892if test `eval echo '${'$as_ac_var'}'` = yes; then
10893 cat >>confdefs.h <<_ACEOF
10894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10895_ACEOF
10896
10897fi
10898done
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10928 stdio.h unistd.h
10929do
10930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936fi
Reid Spencera773bd52006-08-04 18:18:08 +000010937ac_res=`eval echo '${'$as_ac_Header'}'`
10938 { echo "$as_me:$LINENO: result: $ac_res" >&5
10939echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940else
10941 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010942{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h. */
10950$ac_includes_default
10951#include <$ac_header>
10952_ACEOF
10953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010954if { (ac_try="$ac_compile"
10955case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958esac
10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010978 { (case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_header_compiler=yes
10988else
10989 echo "$as_me: failed program was:" >&5
10990sed 's/^/| /' conftest.$ac_ext >&5
10991
Reid Spencera773bd52006-08-04 18:18:08 +000010992 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993fi
Reid Spencera773bd52006-08-04 18:18:08 +000010994
10995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10997echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998
10999# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011000{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002cat >conftest.$ac_ext <<_ACEOF
11003/* confdefs.h. */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
11008#include <$ac_header>
11009_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011010if { (ac_try="$ac_cpp conftest.$ac_ext"
11011case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } >/dev/null; then
11023 if test -s conftest.err; then
11024 ac_cpp_err=$ac_c_preproc_warn_flag
11025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11026 else
11027 ac_cpp_err=
11028 fi
11029else
11030 ac_cpp_err=yes
11031fi
11032if test -z "$ac_cpp_err"; then
11033 ac_header_preproc=yes
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 ac_header_preproc=no
11039fi
Reid Spencera773bd52006-08-04 18:18:08 +000011040
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11043echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044
11045# So? What about this header?
11046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11047 yes:no: )
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11052 ac_header_preproc=yes
11053 ;;
11054 no:yes:* )
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11062echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011067 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068## ----------------------------------- ##
11069## Report this to llvmbugs@cs.uiuc.edu ##
11070## ----------------------------------- ##
11071_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011072 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073 ;;
11074esac
Reid Spencera773bd52006-08-04 18:18:08 +000011075{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079else
11080 eval "$as_ac_Header=\$ac_header_preproc"
11081fi
Reid Spencera773bd52006-08-04 18:18:08 +000011082ac_res=`eval echo '${'$as_ac_Header'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085
11086fi
11087if test `eval echo '${'$as_ac_Header'}'` = yes; then
11088 cat >>confdefs.h <<_ACEOF
11089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11090_ACEOF
11091
11092fi
11093
11094done
11095
11096
11097
11098
11099
11100for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11101do
11102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108fi
Reid Spencera773bd52006-08-04 18:18:08 +000011109ac_res=`eval echo '${'$as_ac_Header'}'`
11110 { echo "$as_me:$LINENO: result: $ac_res" >&5
11111echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112else
11113 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011114{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116cat >conftest.$ac_ext <<_ACEOF
11117/* confdefs.h. */
11118_ACEOF
11119cat confdefs.h >>conftest.$ac_ext
11120cat >>conftest.$ac_ext <<_ACEOF
11121/* end confdefs.h. */
11122$ac_includes_default
11123#include <$ac_header>
11124_ACEOF
11125rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011126if { (ac_try="$ac_compile"
11127case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130esac
11131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_header_compiler=yes
11160else
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
Reid Spencera773bd52006-08-04 18:18:08 +000011164 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165fi
Reid Spencera773bd52006-08-04 18:18:08 +000011166
11167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11169echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170
11171# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011172{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174cat >conftest.$ac_ext <<_ACEOF
11175/* confdefs.h. */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h. */
11180#include <$ac_header>
11181_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011182if { (ac_try="$ac_cpp conftest.$ac_ext"
11183case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186esac
11187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null; then
11195 if test -s conftest.err; then
11196 ac_cpp_err=$ac_c_preproc_warn_flag
11197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11198 else
11199 ac_cpp_err=
11200 fi
11201else
11202 ac_cpp_err=yes
11203fi
11204if test -z "$ac_cpp_err"; then
11205 ac_header_preproc=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 ac_header_preproc=no
11211fi
Reid Spencera773bd52006-08-04 18:18:08 +000011212
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011214{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11215echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216
11217# So? What about this header?
11218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11219 yes:no: )
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11224 ac_header_preproc=yes
11225 ;;
11226 no:yes:* )
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11234echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011239 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240## ----------------------------------- ##
11241## Report this to llvmbugs@cs.uiuc.edu ##
11242## ----------------------------------- ##
11243_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011244 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245 ;;
11246esac
Reid Spencera773bd52006-08-04 18:18:08 +000011247{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251else
11252 eval "$as_ac_Header=\$ac_header_preproc"
11253fi
Reid Spencera773bd52006-08-04 18:18:08 +000011254ac_res=`eval echo '${'$as_ac_Header'}'`
11255 { echo "$as_me:$LINENO: result: $ac_res" >&5
11256echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257
11258fi
11259if test `eval echo '${'$as_ac_Header'}'` = yes; then
11260 cat >>confdefs.h <<_ACEOF
11261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262_ACEOF
11263
11264fi
11265
11266done
11267
11268
11269
11270for ac_header in string.h strings.h
11271do
11272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278fi
Reid Spencera773bd52006-08-04 18:18:08 +000011279ac_res=`eval echo '${'$as_ac_Header'}'`
11280 { echo "$as_me:$LINENO: result: $ac_res" >&5
11281echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282else
11283 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
11292$ac_includes_default
11293#include <$ac_header>
11294_ACEOF
11295rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011296if { (ac_try="$ac_compile"
11297case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300esac
11301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323esac
11324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler=yes
11330else
11331 echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
Reid Spencera773bd52006-08-04 18:18:08 +000011334 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335fi
Reid Spencera773bd52006-08-04 18:18:08 +000011336
11337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11339echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340
11341# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011342{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350#include <$ac_header>
11351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011352if { (ac_try="$ac_cpp conftest.$ac_ext"
11353case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } >/dev/null; then
11365 if test -s conftest.err; then
11366 ac_cpp_err=$ac_c_preproc_warn_flag
11367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11368 else
11369 ac_cpp_err=
11370 fi
11371else
11372 ac_cpp_err=yes
11373fi
11374if test -z "$ac_cpp_err"; then
11375 ac_header_preproc=yes
11376else
11377 echo "$as_me: failed program was:" >&5
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 ac_header_preproc=no
11381fi
Reid Spencera773bd52006-08-04 18:18:08 +000011382
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011384{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11385echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386
11387# So? What about this header?
11388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11389 yes:no: )
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11394 ac_header_preproc=yes
11395 ;;
11396 no:yes:* )
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011409 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410## ----------------------------------- ##
11411## Report this to llvmbugs@cs.uiuc.edu ##
11412## ----------------------------------- ##
11413_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011414 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 ;;
11416esac
Reid Spencera773bd52006-08-04 18:18:08 +000011417{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 eval "$as_ac_Header=\$ac_header_preproc"
11423fi
Reid Spencera773bd52006-08-04 18:18:08 +000011424ac_res=`eval echo '${'$as_ac_Header'}'`
11425 { echo "$as_me:$LINENO: result: $ac_res" >&5
11426echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427
11428fi
11429if test `eval echo '${'$as_ac_Header'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432_ACEOF
11433 break
11434fi
11435
11436done
11437
11438
11439
11440
11441for ac_func in strchr index
11442do
11443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448else
11449 cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457#define $ac_func innocuous_$ac_func
11458
11459/* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11463
11464#ifdef __STDC__
11465# include <limits.h>
11466#else
11467# include <assert.h>
11468#endif
11469
11470#undef $ac_func
11471
Reid Spencera773bd52006-08-04 18:18:08 +000011472/* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475#ifdef __cplusplus
11476extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011478char $ac_func ();
11479/* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011482#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484#endif
11485
11486int
11487main ()
11488{
Reid Spencera773bd52006-08-04 18:18:08 +000011489return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011495if { (ac_try="$ac_link"
11496case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 eval "$as_ac_var=yes"
11529else
11530 echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
11532
Reid Spencera773bd52006-08-04 18:18:08 +000011533 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534fi
Reid Spencera773bd52006-08-04 18:18:08 +000011535
11536rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 conftest$ac_exeext conftest.$ac_ext
11538fi
Reid Spencera773bd52006-08-04 18:18:08 +000011539ac_res=`eval echo '${'$as_ac_var'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542if test `eval echo '${'$as_ac_var'}'` = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11545_ACEOF
11546 break
11547fi
11548done
11549
11550
11551
11552for ac_func in strrchr rindex
11553do
11554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011555{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11557if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559else
11560 cat >conftest.$ac_ext <<_ACEOF
11561/* confdefs.h. */
11562_ACEOF
11563cat confdefs.h >>conftest.$ac_ext
11564cat >>conftest.$ac_ext <<_ACEOF
11565/* end confdefs.h. */
11566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11568#define $ac_func innocuous_$ac_func
11569
11570/* System header to define __stub macros and hopefully few prototypes,
11571 which can conflict with char $ac_func (); below.
11572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11573 <limits.h> exists even on freestanding compilers. */
11574
11575#ifdef __STDC__
11576# include <limits.h>
11577#else
11578# include <assert.h>
11579#endif
11580
11581#undef $ac_func
11582
Reid Spencera773bd52006-08-04 18:18:08 +000011583/* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586#ifdef __cplusplus
11587extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589char $ac_func ();
11590/* The GNU C library defines this for functions which it implements
11591 to always fail with ENOSYS. Some functions are actually named
11592 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011593#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595#endif
11596
11597int
11598main ()
11599{
Reid Spencera773bd52006-08-04 18:18:08 +000011600return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601 ;
11602 return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011606if { (ac_try="$ac_link"
11607case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610esac
11611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11620 { (case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011630 { (case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 eval "$as_ac_var=yes"
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
Reid Spencera773bd52006-08-04 18:18:08 +000011644 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645fi
Reid Spencera773bd52006-08-04 18:18:08 +000011646
11647rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648 conftest$ac_exeext conftest.$ac_ext
11649fi
Reid Spencera773bd52006-08-04 18:18:08 +000011650ac_res=`eval echo '${'$as_ac_var'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653if test `eval echo '${'$as_ac_var'}'` = yes; then
11654 cat >>confdefs.h <<_ACEOF
11655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11656_ACEOF
11657 break
11658fi
11659done
11660
11661
11662
11663for ac_func in memcpy bcopy
11664do
11665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
11671 cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
11677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11679#define $ac_func innocuous_$ac_func
11680
11681/* System header to define __stub macros and hopefully few prototypes,
11682 which can conflict with char $ac_func (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11685
11686#ifdef __STDC__
11687# include <limits.h>
11688#else
11689# include <assert.h>
11690#endif
11691
11692#undef $ac_func
11693
Reid Spencera773bd52006-08-04 18:18:08 +000011694/* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697#ifdef __cplusplus
11698extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700char $ac_func ();
11701/* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011704#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706#endif
11707
11708int
11709main ()
11710{
Reid Spencera773bd52006-08-04 18:18:08 +000011711return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011717if { (ac_try="$ac_link"
11718case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11731 { (case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734esac
11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011741 { (case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744esac
11745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 eval "$as_ac_var=yes"
11751else
11752 echo "$as_me: failed program was:" >&5
11753sed 's/^/| /' conftest.$ac_ext >&5
11754
Reid Spencera773bd52006-08-04 18:18:08 +000011755 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756fi
Reid Spencera773bd52006-08-04 18:18:08 +000011757
11758rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759 conftest$ac_exeext conftest.$ac_ext
11760fi
Reid Spencera773bd52006-08-04 18:18:08 +000011761ac_res=`eval echo '${'$as_ac_var'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764if test `eval echo '${'$as_ac_var'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11767_ACEOF
11768 break
11769fi
11770done
11771
11772
11773
11774for ac_func in memmove strcmp
11775do
11776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11790#define $ac_func innocuous_$ac_func
11791
11792/* System header to define __stub macros and hopefully few prototypes,
11793 which can conflict with char $ac_func (); below.
11794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11795 <limits.h> exists even on freestanding compilers. */
11796
11797#ifdef __STDC__
11798# include <limits.h>
11799#else
11800# include <assert.h>
11801#endif
11802
11803#undef $ac_func
11804
Reid Spencera773bd52006-08-04 18:18:08 +000011805/* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808#ifdef __cplusplus
11809extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811char $ac_func ();
11812/* The GNU C library defines this for functions which it implements
11813 to always fail with ENOSYS. Some functions are actually named
11814 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011815#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817#endif
11818
11819int
11820main ()
11821{
Reid Spencera773bd52006-08-04 18:18:08 +000011822return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011828if { (ac_try="$ac_link"
11829case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855esac
11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 eval "$as_ac_var=yes"
11862else
11863 echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
Reid Spencera773bd52006-08-04 18:18:08 +000011866 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867fi
Reid Spencera773bd52006-08-04 18:18:08 +000011868
11869rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870 conftest$ac_exeext conftest.$ac_ext
11871fi
Reid Spencera773bd52006-08-04 18:18:08 +000011872ac_res=`eval echo '${'$as_ac_var'}'`
11873 { echo "$as_me:$LINENO: result: $ac_res" >&5
11874echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875if test `eval echo '${'$as_ac_var'}'` = yes; then
11876 cat >>confdefs.h <<_ACEOF
11877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11878_ACEOF
11879
11880fi
11881done
11882
11883
11884
11885
11886for ac_func in closedir opendir readdir
11887do
11888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011889{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11891if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11902#define $ac_func innocuous_$ac_func
11903
11904/* System header to define __stub macros and hopefully few prototypes,
11905 which can conflict with char $ac_func (); below.
11906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 <limits.h> exists even on freestanding compilers. */
11908
11909#ifdef __STDC__
11910# include <limits.h>
11911#else
11912# include <assert.h>
11913#endif
11914
11915#undef $ac_func
11916
Reid Spencera773bd52006-08-04 18:18:08 +000011917/* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920#ifdef __cplusplus
11921extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923char $ac_func ();
11924/* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011927#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929#endif
11930
11931int
11932main ()
11933{
Reid Spencera773bd52006-08-04 18:18:08 +000011934return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011940if { (ac_try="$ac_link"
11941case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944esac
11945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 eval "$as_ac_var=yes"
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
Reid Spencera773bd52006-08-04 18:18:08 +000011978 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979fi
Reid Spencera773bd52006-08-04 18:18:08 +000011980
11981rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982 conftest$ac_exeext conftest.$ac_ext
11983fi
Reid Spencera773bd52006-08-04 18:18:08 +000011984ac_res=`eval echo '${'$as_ac_var'}'`
11985 { echo "$as_me:$LINENO: result: $ac_res" >&5
11986echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987if test `eval echo '${'$as_ac_var'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990_ACEOF
11991
11992fi
11993done
11994
11995
Reid Spencera773bd52006-08-04 18:18:08 +000011996# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011998 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999 case $enableval in
12000 yes) enable_shared=yes ;;
12001 no) enable_shared=no ;;
12002 *)
12003 enable_shared=no
12004 # Look at the argument we got. We use all the common list separators.
12005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12006 for pkg in $enableval; do
12007 IFS="$lt_save_ifs"
12008 if test "X$pkg" = "X$p"; then
12009 enable_shared=yes
12010 fi
12011 done
12012 IFS="$lt_save_ifs"
12013 ;;
12014 esac
12015else
12016 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012017fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018
Reid Spencera773bd52006-08-04 18:18:08 +000012019
12020# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012022 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023 case $enableval in
12024 yes) enable_static=yes ;;
12025 no) enable_static=no ;;
12026 *)
12027 enable_static=no
12028 # Look at the argument we got. We use all the common list separators.
12029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12030 for pkg in $enableval; do
12031 IFS="$lt_save_ifs"
12032 if test "X$pkg" = "X$p"; then
12033 enable_static=yes
12034 fi
12035 done
12036 IFS="$lt_save_ifs"
12037 ;;
12038 esac
12039else
12040 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012041fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042
Reid Spencera773bd52006-08-04 18:18:08 +000012043
12044# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012046 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047 case $enableval in
12048 yes) enable_fast_install=yes ;;
12049 no) enable_fast_install=no ;;
12050 *)
12051 enable_fast_install=no
12052 # Look at the argument we got. We use all the common list separators.
12053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12054 for pkg in $enableval; do
12055 IFS="$lt_save_ifs"
12056 if test "X$pkg" = "X$p"; then
12057 enable_fast_install=yes
12058 fi
12059 done
12060 IFS="$lt_save_ifs"
12061 ;;
12062 esac
12063else
12064 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012065fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066
Reid Spencera773bd52006-08-04 18:18:08 +000012067
12068{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12069echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070if test "${lt_cv_path_SED+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073 # Loop through the user's path and test for sed and gsed.
12074# Then use that list of sed's as ones to test for truncation.
12075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for lt_ac_prog in sed gsed; do
12081 for ac_exec_ext in '' $ac_executable_extensions; do
12082 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12083 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12084 fi
12085 done
12086 done
12087done
12088lt_ac_max=0
12089lt_ac_count=0
12090# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12091# along with /bin/sed that truncates output.
12092for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012093 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094 cat /dev/null > conftest.in
12095 lt_ac_count=0
12096 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12097 # Check for GNU sed and select it if it is found.
12098 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12099 lt_cv_path_SED=$lt_ac_sed
12100 break
12101 fi
12102 while true; do
12103 cat conftest.in conftest.in >conftest.tmp
12104 mv conftest.tmp conftest.in
12105 cp conftest.in conftest.nl
12106 echo >>conftest.nl
12107 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12108 cmp -s conftest.out conftest.nl || break
12109 # 10000 chars as input seems more than enough
12110 test $lt_ac_count -gt 10 && break
12111 lt_ac_count=`expr $lt_ac_count + 1`
12112 if test $lt_ac_count -gt $lt_ac_max; then
12113 lt_ac_max=$lt_ac_count
12114 lt_cv_path_SED=$lt_ac_sed
12115 fi
12116 done
12117done
12118
12119fi
12120
12121SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012122{ echo "$as_me:$LINENO: result: $SED" >&5
12123echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012124
12125
Reid Spencera773bd52006-08-04 18:18:08 +000012126# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012127if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129else
12130 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012131fi
12132
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133ac_prog=ld
12134if test "$GCC" = yes; then
12135 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012136 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12137echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138 case $host in
12139 *-*-mingw*)
12140 # gcc leaves a trailing carriage return which upsets mingw
12141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12142 *)
12143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12144 esac
12145 case $ac_prog in
12146 # Accept absolute paths.
12147 [\\/]* | ?:[\\/]*)
12148 re_direlt='/[^/][^/]*/\.\./'
12149 # Canonicalize the pathname of ld
12150 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12151 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12152 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12153 done
12154 test -z "$LD" && LD="$ac_prog"
12155 ;;
12156 "")
12157 # If it fails, then pretend we aren't using GCC.
12158 ac_prog=ld
12159 ;;
12160 *)
12161 # If it is relative, then search for the first ld in PATH.
12162 with_gnu_ld=unknown
12163 ;;
12164 esac
12165elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012166 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12167echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168else
Reid Spencera773bd52006-08-04 18:18:08 +000012169 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12170echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171fi
12172if test "${lt_cv_path_LD+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174else
12175 if test -z "$LD"; then
12176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12177 for ac_dir in $PATH; do
12178 IFS="$lt_save_ifs"
12179 test -z "$ac_dir" && ac_dir=.
12180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12181 lt_cv_path_LD="$ac_dir/$ac_prog"
12182 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012183 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012184 # Break only if it was the GNU/non-GNU ld that we prefer.
12185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12186 *GNU* | *'with BFD'*)
12187 test "$with_gnu_ld" != no && break
12188 ;;
12189 *)
12190 test "$with_gnu_ld" != yes && break
12191 ;;
12192 esac
12193 fi
12194 done
12195 IFS="$lt_save_ifs"
12196else
12197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12198fi
12199fi
12200
12201LD="$lt_cv_path_LD"
12202if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012203 { echo "$as_me:$LINENO: result: $LD" >&5
12204echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205else
Reid Spencera773bd52006-08-04 18:18:08 +000012206 { echo "$as_me:$LINENO: result: no" >&5
12207echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208fi
12209test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12210echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12211 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012212{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12213echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214if test "${lt_cv_prog_gnu_ld+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216else
Reid Spencera773bd52006-08-04 18:18:08 +000012217 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218case `$LD -v 2>&1 </dev/null` in
12219*GNU* | *'with BFD'*)
12220 lt_cv_prog_gnu_ld=yes
12221 ;;
12222*)
12223 lt_cv_prog_gnu_ld=no
12224 ;;
12225esac
12226fi
Reid Spencera773bd52006-08-04 18:18:08 +000012227{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12228echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229with_gnu_ld=$lt_cv_prog_gnu_ld
12230
12231
Reid Spencera773bd52006-08-04 18:18:08 +000012232{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12233echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234if test "${lt_cv_ld_reload_flag+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237 lt_cv_ld_reload_flag='-r'
12238fi
Reid Spencera773bd52006-08-04 18:18:08 +000012239{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12240echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241reload_flag=$lt_cv_ld_reload_flag
12242case $reload_flag in
12243"" | " "*) ;;
12244*) reload_flag=" $reload_flag" ;;
12245esac
12246reload_cmds='$LD$reload_flag -o $output$reload_objs'
12247case $host_os in
12248 darwin*)
12249 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012250 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251 else
12252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12253 fi
12254 ;;
12255esac
12256
Reid Spencera773bd52006-08-04 18:18:08 +000012257{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12258echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259if test "${lt_cv_deplibs_check_method+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262 lt_cv_file_magic_cmd='$MAGIC_CMD'
12263lt_cv_file_magic_test_file=
12264lt_cv_deplibs_check_method='unknown'
12265# Need to set the preceding variable on all platforms that support
12266# interlibrary dependencies.
12267# 'none' -- dependencies not supported.
12268# `unknown' -- same as none, but documents that we really don't know.
12269# 'pass_all' -- all dependencies passed with no checks.
12270# 'test_compile' -- check by making test program.
12271# 'file_magic [[regex]]' -- check by looking for files in library path
12272# which responds to the $file_magic_cmd with a given extended regex.
12273# If you have `file' or equivalent on your system and you're not sure
12274# whether `pass_all' will *always* work, you probably want this one.
12275
12276case $host_os in
12277aix4* | aix5*)
12278 lt_cv_deplibs_check_method=pass_all
12279 ;;
12280
12281beos*)
12282 lt_cv_deplibs_check_method=pass_all
12283 ;;
12284
12285bsdi[45]*)
12286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12287 lt_cv_file_magic_cmd='/usr/bin/file -L'
12288 lt_cv_file_magic_test_file=/shlib/libc.so
12289 ;;
12290
12291cygwin*)
12292 # func_win32_libid is a shell function defined in ltmain.sh
12293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12294 lt_cv_file_magic_cmd='func_win32_libid'
12295 ;;
12296
12297mingw* | pw32*)
12298 # Base MSYS/MinGW do not provide the 'file' command needed by
12299 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12301 lt_cv_file_magic_cmd='$OBJDUMP -f'
12302 ;;
12303
12304darwin* | rhapsody*)
12305 lt_cv_deplibs_check_method=pass_all
12306 ;;
12307
Reid Spencera773bd52006-08-04 18:18:08 +000012308freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012309 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12310 case $host_cpu in
12311 i*86 )
12312 # Not sure whether the presence of OpenBSD here was a mistake.
12313 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012314 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 +000012315 lt_cv_file_magic_cmd=/usr/bin/file
12316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12317 ;;
12318 esac
12319 else
12320 lt_cv_deplibs_check_method=pass_all
12321 fi
12322 ;;
12323
12324gnu*)
12325 lt_cv_deplibs_check_method=pass_all
12326 ;;
12327
12328hpux10.20* | hpux11*)
12329 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012330 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012331 ia64*)
12332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12333 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12334 ;;
12335 hppa*64*)
12336 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]'
12337 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12338 ;;
12339 *)
12340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12341 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12342 ;;
12343 esac
12344 ;;
12345
Reid Spencera773bd52006-08-04 18:18:08 +000012346interix3*)
12347 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12349 ;;
12350
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012351irix5* | irix6* | nonstopux*)
12352 case $LD in
12353 *-32|*"-32 ") libmagic=32-bit;;
12354 *-n32|*"-n32 ") libmagic=N32;;
12355 *-64|*"-64 ") libmagic=64-bit;;
12356 *) libmagic=never-match;;
12357 esac
12358 lt_cv_deplibs_check_method=pass_all
12359 ;;
12360
12361# This must be Linux ELF.
12362linux*)
12363 lt_cv_deplibs_check_method=pass_all
12364 ;;
12365
12366netbsd*)
12367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12369 else
12370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12371 fi
12372 ;;
12373
12374newos6*)
12375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12376 lt_cv_file_magic_cmd=/usr/bin/file
12377 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12378 ;;
12379
12380nto-qnx*)
12381 lt_cv_deplibs_check_method=unknown
12382 ;;
12383
12384openbsd*)
12385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12387 else
12388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12389 fi
12390 ;;
12391
12392osf3* | osf4* | osf5*)
12393 lt_cv_deplibs_check_method=pass_all
12394 ;;
12395
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012396solaris*)
12397 lt_cv_deplibs_check_method=pass_all
12398 ;;
12399
Reid Spencera773bd52006-08-04 18:18:08 +000012400sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012401 case $host_vendor in
12402 motorola)
12403 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]'
12404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12405 ;;
12406 ncr)
12407 lt_cv_deplibs_check_method=pass_all
12408 ;;
12409 sequent)
12410 lt_cv_file_magic_cmd='/bin/file'
12411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12412 ;;
12413 sni)
12414 lt_cv_file_magic_cmd='/bin/file'
12415 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12416 lt_cv_file_magic_test_file=/lib/libc.so
12417 ;;
12418 siemens)
12419 lt_cv_deplibs_check_method=pass_all
12420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012421 pc)
12422 lt_cv_deplibs_check_method=pass_all
12423 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424 esac
12425 ;;
12426
Reid Spencera773bd52006-08-04 18:18:08 +000012427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428 lt_cv_deplibs_check_method=pass_all
12429 ;;
12430esac
12431
12432fi
Reid Spencera773bd52006-08-04 18:18:08 +000012433{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12434echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435file_magic_cmd=$lt_cv_file_magic_cmd
12436deplibs_check_method=$lt_cv_deplibs_check_method
12437test -z "$deplibs_check_method" && deplibs_check_method=unknown
12438
12439
12440
12441# If no C compiler was specified, use CC.
12442LTCC=${LTCC-"$CC"}
12443
Reid Spencera773bd52006-08-04 18:18:08 +000012444# If no C compiler flags were specified, use CFLAGS.
12445LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12446
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447# Allow CC to be a program name with arguments.
12448compiler=$CC
12449
Reid Spencera773bd52006-08-04 18:18:08 +000012450# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012452 enableval=$enable_libtool_lock;
12453fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12456
12457# Some flags need to be propagated to the compiler or linker for good
12458# libtool support.
12459case $host in
12460ia64-*-hpux*)
12461 # Find out which ABI we are using.
12462 echo 'int i;' > conftest.$ac_ext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; then
12468 case `/usr/bin/file conftest.$ac_objext` in
12469 *ELF-32*)
12470 HPUX_IA64_MODE="32"
12471 ;;
12472 *ELF-64*)
12473 HPUX_IA64_MODE="64"
12474 ;;
12475 esac
12476 fi
12477 rm -rf conftest*
12478 ;;
12479*-*-irix6*)
12480 # Find out which ABI we are using.
Reid Spencer466207a2007-01-20 20:45:39 +000012481 echo '#line 12481 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; then
12487 if test "$lt_cv_prog_gnu_ld" = yes; then
12488 case `/usr/bin/file conftest.$ac_objext` in
12489 *32-bit*)
12490 LD="${LD-ld} -melf32bsmip"
12491 ;;
12492 *N32*)
12493 LD="${LD-ld} -melf32bmipn32"
12494 ;;
12495 *64-bit*)
12496 LD="${LD-ld} -melf64bmip"
12497 ;;
12498 esac
12499 else
12500 case `/usr/bin/file conftest.$ac_objext` in
12501 *32-bit*)
12502 LD="${LD-ld} -32"
12503 ;;
12504 *N32*)
12505 LD="${LD-ld} -n32"
12506 ;;
12507 *64-bit*)
12508 LD="${LD-ld} -64"
12509 ;;
12510 esac
12511 fi
12512 fi
12513 rm -rf conftest*
12514 ;;
12515
12516x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12517 # Find out which ABI we are using.
12518 echo 'int i;' > conftest.$ac_ext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012524 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012525 *32-bit*)
12526 case $host in
12527 x86_64-*linux*)
12528 LD="${LD-ld} -m elf_i386"
12529 ;;
12530 ppc64-*linux*|powerpc64-*linux*)
12531 LD="${LD-ld} -m elf32ppclinux"
12532 ;;
12533 s390x-*linux*)
12534 LD="${LD-ld} -m elf_s390"
12535 ;;
12536 sparc64-*linux*)
12537 LD="${LD-ld} -m elf32_sparc"
12538 ;;
12539 esac
12540 ;;
12541 *64-bit*)
12542 case $host in
12543 x86_64-*linux*)
12544 LD="${LD-ld} -m elf_x86_64"
12545 ;;
12546 ppc*-*linux*|powerpc*-*linux*)
12547 LD="${LD-ld} -m elf64ppc"
12548 ;;
12549 s390*-*linux*)
12550 LD="${LD-ld} -m elf64_s390"
12551 ;;
12552 sparc*-*linux*)
12553 LD="${LD-ld} -m elf64_sparc"
12554 ;;
12555 esac
12556 ;;
12557 esac
12558 fi
12559 rm -rf conftest*
12560 ;;
12561
12562*-*-sco3.2v5*)
12563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12564 SAVE_CFLAGS="$CFLAGS"
12565 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012566 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12567echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568if test "${lt_cv_cc_needs_belf+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570else
12571 ac_ext=c
12572ac_cpp='$CPP $CPPFLAGS'
12573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576
12577 cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
12582/* end confdefs.h. */
12583
Reid Spencera773bd52006-08-04 18:18:08 +000012584int
12585main ()
12586{
12587
12588 ;
12589 return 0;
12590}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591_ACEOF
12592rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012593if { (ac_try="$ac_link"
12594case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610esac
12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012617 { (case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620esac
12621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 lt_cv_cc_needs_belf=yes
12627else
12628 echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
Reid Spencera773bd52006-08-04 18:18:08 +000012631 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012632fi
Reid Spencera773bd52006-08-04 18:18:08 +000012633
12634rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635 conftest$ac_exeext conftest.$ac_ext
12636 ac_ext=c
12637ac_cpp='$CPP $CPPFLAGS'
12638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641
12642fi
Reid Spencera773bd52006-08-04 18:18:08 +000012643{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12644echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012645 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12646 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12647 CFLAGS="$SAVE_CFLAGS"
12648 fi
12649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012650sparc*-*solaris*)
12651 # Find out which ABI we are using.
12652 echo 'int i;' > conftest.$ac_ext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; then
12658 case `/usr/bin/file conftest.o` in
12659 *64-bit*)
12660 case $lt_cv_prog_gnu_ld in
12661 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12662 *) LD="${LD-ld} -64" ;;
12663 esac
12664 ;;
12665 esac
12666 fi
12667 rm -rf conftest*
12668 ;;
12669
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012670
12671esac
12672
12673need_locks="$enable_libtool_lock"
12674
12675
Reid Spencer2706f8c2004-09-19 23:53:36 +000012676
12677
12678if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12679 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12680 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012681 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012682ac_cpp='$CXXCPP $CPPFLAGS'
12683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012686{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12687echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012688if test -z "$CXXCPP"; then
12689 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
John Criswell47fdd832003-07-14 16:52:07 +000012692 # Double quotes because CXXCPP needs to be expanded
12693 for CXXCPP in "$CXX -E" "/lib/cpp"
12694 do
12695 ac_preproc_ok=false
12696for ac_cxx_preproc_warn_flag in '' yes
12697do
12698 # Use a header file that comes with gcc, so configuring glibc
12699 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12701 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012702 # On the NeXT, cc -E runs the code through the compiler's parser,
12703 # not just through cpp. "Syntax error" is here to catch this case.
12704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710#ifdef __STDC__
12711# include <limits.h>
12712#else
12713# include <assert.h>
12714#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012715 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012716_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012717if { (ac_try="$ac_cpp conftest.$ac_ext"
12718case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12721esac
12722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012724 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012725 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev/null; then
12730 if test -s conftest.err; then
12731 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012733 else
John Criswell47fdd832003-07-14 16:52:07 +000012734 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012735 fi
John Criswell47fdd832003-07-14 16:52:07 +000012736else
12737 ac_cpp_err=yes
12738fi
12739if test -z "$ac_cpp_err"; then
12740 :
12741else
12742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012743sed 's/^/| /' conftest.$ac_ext >&5
12744
John Criswell47fdd832003-07-14 16:52:07 +000012745 # Broken: fails on valid input.
12746continue
12747fi
Reid Spencera773bd52006-08-04 18:18:08 +000012748
John Criswell47fdd832003-07-14 16:52:07 +000012749rm -f conftest.err conftest.$ac_ext
12750
Reid Spencera773bd52006-08-04 18:18:08 +000012751 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012752 # can be detected and how.
12753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012759#include <ac_nonexistent.h>
12760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012761if { (ac_try="$ac_cpp conftest.$ac_ext"
12762case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765esac
12766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012768 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012769 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } >/dev/null; then
12774 if test -s conftest.err; then
12775 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012777 else
12778 ac_cpp_err=
12779 fi
12780else
12781 ac_cpp_err=yes
12782fi
12783if test -z "$ac_cpp_err"; then
12784 # Broken: success on invalid input.
12785continue
12786else
12787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012788sed 's/^/| /' conftest.$ac_ext >&5
12789
John Criswell47fdd832003-07-14 16:52:07 +000012790 # Passes both tests.
12791ac_preproc_ok=:
12792break
12793fi
Reid Spencera773bd52006-08-04 18:18:08 +000012794
John Criswell47fdd832003-07-14 16:52:07 +000012795rm -f conftest.err conftest.$ac_ext
12796
12797done
12798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12799rm -f conftest.err conftest.$ac_ext
12800if $ac_preproc_ok; then
12801 break
John Criswell7a73b802003-06-30 21:59:07 +000012802fi
12803
John Criswell47fdd832003-07-14 16:52:07 +000012804 done
12805 ac_cv_prog_CXXCPP=$CXXCPP
12806
12807fi
12808 CXXCPP=$ac_cv_prog_CXXCPP
12809else
12810 ac_cv_prog_CXXCPP=$CXXCPP
12811fi
Reid Spencera773bd52006-08-04 18:18:08 +000012812{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12813echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012814ac_preproc_ok=false
12815for ac_cxx_preproc_warn_flag in '' yes
12816do
12817 # Use a header file that comes with gcc, so configuring glibc
12818 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12820 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012821 # On the NeXT, cc -E runs the code through the compiler's parser,
12822 # not just through cpp. "Syntax error" is here to catch this case.
12823 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829#ifdef __STDC__
12830# include <limits.h>
12831#else
12832# include <assert.h>
12833#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012834 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012835_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012836if { (ac_try="$ac_cpp conftest.$ac_ext"
12837case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012843 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012844 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev/null; then
12849 if test -s conftest.err; then
12850 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012852 else
12853 ac_cpp_err=
12854 fi
12855else
12856 ac_cpp_err=yes
12857fi
12858if test -z "$ac_cpp_err"; then
12859 :
12860else
12861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012862sed 's/^/| /' conftest.$ac_ext >&5
12863
John Criswell47fdd832003-07-14 16:52:07 +000012864 # Broken: fails on valid input.
12865continue
12866fi
Reid Spencera773bd52006-08-04 18:18:08 +000012867
John Criswell47fdd832003-07-14 16:52:07 +000012868rm -f conftest.err conftest.$ac_ext
12869
Reid Spencera773bd52006-08-04 18:18:08 +000012870 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012871 # can be detected and how.
12872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012878#include <ac_nonexistent.h>
12879_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012880if { (ac_try="$ac_cpp conftest.$ac_ext"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012887 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012888 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } >/dev/null; then
12893 if test -s conftest.err; then
12894 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012896 else
12897 ac_cpp_err=
12898 fi
12899else
12900 ac_cpp_err=yes
12901fi
12902if test -z "$ac_cpp_err"; then
12903 # Broken: success on invalid input.
12904continue
12905else
12906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012907sed 's/^/| /' conftest.$ac_ext >&5
12908
John Criswell47fdd832003-07-14 16:52:07 +000012909 # Passes both tests.
12910ac_preproc_ok=:
12911break
12912fi
Reid Spencera773bd52006-08-04 18:18:08 +000012913
John Criswell47fdd832003-07-14 16:52:07 +000012914rm -f conftest.err conftest.$ac_ext
12915
12916done
12917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12918rm -f conftest.err conftest.$ac_ext
12919if $ac_preproc_ok; then
12920 :
12921else
John Criswell0c38eaf2003-09-10 15:17:25 +000012922 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12923See \`config.log' for more details." >&5
12924echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12925See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012926 { (exit 1); exit 1; }; }
12927fi
12928
Reid Spencera773bd52006-08-04 18:18:08 +000012929ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012930ac_cpp='$CXXCPP $CPPFLAGS'
12931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12934
Reid Spencer2706f8c2004-09-19 23:53:36 +000012935fi
12936
John Criswell47fdd832003-07-14 16:52:07 +000012937
12938ac_ext=f
12939ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12940ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12942if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012943 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 +000012944 do
12945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012949if test "${ac_cv_prog_F77+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951else
12952 if test -n "$F77"; then
12953 ac_cv_prog_F77="$F77" # Let the user override the test.
12954else
12955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $PATH
12957do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012961 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 +000012962 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12965 fi
12966done
12967done
Reid Spencera773bd52006-08-04 18:18:08 +000012968IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012969
12970fi
12971fi
12972F77=$ac_cv_prog_F77
12973if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012974 { echo "$as_me:$LINENO: result: $F77" >&5
12975echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012976else
Reid Spencera773bd52006-08-04 18:18:08 +000012977 { echo "$as_me:$LINENO: result: no" >&5
12978echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012979fi
12980
Reid Spencera773bd52006-08-04 18:18:08 +000012981
John Criswell47fdd832003-07-14 16:52:07 +000012982 test -n "$F77" && break
12983 done
12984fi
12985if test -z "$F77"; then
12986 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012987 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 +000012988do
12989 # Extract the first word of "$ac_prog", so it can be a program name with args.
12990set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012993if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995else
12996 if test -n "$ac_ct_F77"; then
12997 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12998else
12999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000for as_dir in $PATH
13001do
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013005 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 +000013006 ac_cv_prog_ac_ct_F77="$ac_prog"
13007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13009 fi
13010done
13011done
Reid Spencera773bd52006-08-04 18:18:08 +000013012IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013013
13014fi
13015fi
13016ac_ct_F77=$ac_cv_prog_ac_ct_F77
13017if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013018 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13019echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013020else
Reid Spencera773bd52006-08-04 18:18:08 +000013021 { echo "$as_me:$LINENO: result: no" >&5
13022echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013023fi
13024
Reid Spencera773bd52006-08-04 18:18:08 +000013025
John Criswell47fdd832003-07-14 16:52:07 +000013026 test -n "$ac_ct_F77" && break
13027done
13028
Reid Spencera773bd52006-08-04 18:18:08 +000013029 if test "x$ac_ct_F77" = x; then
13030 F77=""
13031 else
13032 case $cross_compiling:$ac_tool_warned in
13033yes:)
13034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13035whose name does not start with the host triplet. If you think this
13036configuration is useful to you, please write to autoconf@gnu.org." >&5
13037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13038whose name does not start with the host triplet. If you think this
13039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13040ac_tool_warned=yes ;;
13041esac
13042 F77=$ac_ct_F77
13043 fi
John Criswell47fdd832003-07-14 16:52:07 +000013044fi
13045
13046
13047# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013048echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013049ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013050{ (ac_try="$ac_compiler --version >&5"
13051case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013060{ (ac_try="$ac_compiler -v >&5"
13061case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013070{ (ac_try="$ac_compiler -V >&5"
13071case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013080rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013081
13082# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013083# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013084ac_save_ext=$ac_ext
13085ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013086{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13087echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013088if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 cat >conftest.$ac_ext <<_ACEOF
13092 program main
13093#ifndef __GNUC__
13094 choke me
13095#endif
13096
13097 end
13098_ACEOF
13099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013100if { (ac_try="$ac_compile"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013113 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117esac
13118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_compiler_gnu=yes
13134else
13135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013136sed 's/^/| /' conftest.$ac_ext >&5
13137
Reid Spencera773bd52006-08-04 18:18:08 +000013138 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013139fi
Reid Spencera773bd52006-08-04 18:18:08 +000013140
13141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013142ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13143
13144fi
Reid Spencera773bd52006-08-04 18:18:08 +000013145{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13146echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013147ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013148ac_test_FFLAGS=${FFLAGS+set}
13149ac_save_FFLAGS=$FFLAGS
13150FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013151{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13152echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013153if test "${ac_cv_prog_f77_g+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155else
13156 FFLAGS=-g
13157cat >conftest.$ac_ext <<_ACEOF
13158 program main
13159
13160 end
13161_ACEOF
13162rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013163if { (ac_try="$ac_compile"
13164case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
13168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013176 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_prog_f77_g=yes
13197else
13198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013199sed 's/^/| /' conftest.$ac_ext >&5
13200
Reid Spencera773bd52006-08-04 18:18:08 +000013201 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013202fi
Reid Spencera773bd52006-08-04 18:18:08 +000013203
13204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013205
13206fi
Reid Spencera773bd52006-08-04 18:18:08 +000013207{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13208echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013209if test "$ac_test_FFLAGS" = set; then
13210 FFLAGS=$ac_save_FFLAGS
13211elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013212 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013213 FFLAGS="-g -O2"
13214 else
13215 FFLAGS="-g"
13216 fi
13217else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013218 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013219 FFLAGS="-O2"
13220 else
13221 FFLAGS=
13222 fi
13223fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224
13225G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013226ac_ext=c
13227ac_cpp='$CPP $CPPFLAGS'
13228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230ac_compiler_gnu=$ac_cv_c_compiler_gnu
13231
13232
13233
13234# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13235
13236# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013237{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13238echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013239if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241else
13242 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013243 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013244
13245 case $build_os in
13246 msdosdjgpp*)
13247 # On DJGPP, this test can blow up pretty badly due to problems in libc
13248 # (any single argument exceeding 2000 bytes causes a buffer overrun
13249 # during glob expansion). Even if it were fixed, the result of this
13250 # check would be larger than it should be.
13251 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13252 ;;
13253
13254 gnu*)
13255 # Under GNU Hurd, this test is not required because there is
13256 # no limit to the length of command line arguments.
13257 # Libtool will interpret -1 as no limit whatsoever
13258 lt_cv_sys_max_cmd_len=-1;
13259 ;;
13260
13261 cygwin* | mingw*)
13262 # On Win9x/ME, this test blows up -- it succeeds, but takes
13263 # about 5 minutes as the teststring grows exponentially.
13264 # Worse, since 9x/ME are not pre-emptively multitasking,
13265 # you end up with a "frozen" computer, even though with patience
13266 # the test eventually succeeds (with a max line length of 256k).
13267 # Instead, let's just punt: use the minimum linelength reported by
13268 # all of the supported platforms: 8192 (on NT/2K/XP).
13269 lt_cv_sys_max_cmd_len=8192;
13270 ;;
13271
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272 amigaos*)
13273 # On AmigaOS with pdksh, this test takes hours, literally.
13274 # So we just punt and use a minimum line length of 8192.
13275 lt_cv_sys_max_cmd_len=8192;
13276 ;;
13277
Reid Spencera773bd52006-08-04 18:18:08 +000013278 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279 # This has been around since 386BSD, at least. Likely further.
13280 if test -x /sbin/sysctl; then
13281 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13282 elif test -x /usr/sbin/sysctl; then
13283 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13284 else
Reid Spencera773bd52006-08-04 18:18:08 +000013285 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013286 fi
13287 # And add a safety zone
13288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013290 ;;
13291
Reid Spencera773bd52006-08-04 18:18:08 +000013292 interix*)
13293 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13294 lt_cv_sys_max_cmd_len=196608
13295 ;;
13296
13297 osf*)
13298 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13299 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13300 # nice to cause kernel panics so lets avoid the loop below.
13301 # First set a reasonable default.
13302 lt_cv_sys_max_cmd_len=16384
13303 #
13304 if test -x /sbin/sysconfig; then
13305 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13306 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13307 esac
13308 fi
13309 ;;
13310 sco3.2v5*)
13311 lt_cv_sys_max_cmd_len=102400
13312 ;;
13313 sysv5* | sco5v6* | sysv4.2uw2*)
13314 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13315 if test -n "$kargmax"; then
13316 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13317 else
13318 lt_cv_sys_max_cmd_len=32768
13319 fi
13320 ;;
13321 *)
John Criswell47fdd832003-07-14 16:52:07 +000013322 # If test is not a shell built-in, we'll probably end up computing a
13323 # maximum length that is only half of the actual maximum length, but
13324 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013325 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13326 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13327 = "XX$teststring") >/dev/null 2>&1 &&
13328 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013329 lt_cv_sys_max_cmd_len=$new_result &&
13330 test $i != 17 # 1/2 MB should be enough
13331 do
13332 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013333 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013334 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013335 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013336 # Add a significant safety factor because C++ compilers can tack on massive
13337 # amounts of additional arguments before passing them to the linker.
13338 # It appears as though 1/2 is a usable value.
13339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13340 ;;
13341 esac
13342
13343fi
13344
13345if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013346 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13347echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013348else
Reid Spencera773bd52006-08-04 18:18:08 +000013349 { echo "$as_me:$LINENO: result: none" >&5
13350echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013351fi
13352
13353
13354
13355
13356# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013357{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13358echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013359if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361else
13362
13363# These are sane defaults that work on at least a few old systems.
13364# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13365
13366# Character class describing NM global symbol codes.
13367symcode='[BCDEGRST]'
13368
13369# Regexp to match symbols that can be accessed directly from C.
13370sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13371
John Criswell47fdd832003-07-14 16:52:07 +000013372# Transform an extracted symbol line into a proper C declaration
13373lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13374
13375# Transform an extracted symbol line into symbol name and symbol address
13376lt_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'"
13377
13378# Define system-specific variables.
13379case $host_os in
13380aix*)
13381 symcode='[BCDT]'
13382 ;;
13383cygwin* | mingw* | pw32*)
13384 symcode='[ABCDGISTW]'
13385 ;;
13386hpux*) # Its linker distinguishes data from code symbols
13387 if test "$host_cpu" = ia64; then
13388 symcode='[ABCDEGRST]'
13389 fi
13390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13391 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'"
13392 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013393linux*)
13394 if test "$host_cpu" = ia64; then
13395 symcode='[ABCDGIRSTW]'
13396 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13397 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'"
13398 fi
13399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013400irix* | nonstopux*)
13401 symcode='[BCDEGRST]'
13402 ;;
13403osf*)
13404 symcode='[BCDEGQRST]'
13405 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013406solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013408 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013409sco3.2v5*)
13410 symcode='[DT]'
13411 ;;
13412sysv4.2uw2*)
13413 symcode='[DT]'
13414 ;;
13415sysv5* | sco5v6* | unixware* | OpenUNIX*)
13416 symcode='[ABDT]'
13417 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013418sysv4)
13419 symcode='[DFNSTU]'
13420 ;;
13421esac
13422
13423# Handle CRLF in mingw tool chain
13424opt_cr=
13425case $build_os in
13426mingw*)
13427 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13428 ;;
13429esac
13430
13431# If we're using GNU nm, then use its standard symbol codes.
13432case `$NM -V 2>&1` in
13433*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013434 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013435esac
13436
13437# Try without a prefix undercore, then with it.
13438for ac_symprfx in "" "_"; do
13439
Reid Spencera773bd52006-08-04 18:18:08 +000013440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13441 symxfrm="\\1 $ac_symprfx\\2 \\2"
13442
John Criswell47fdd832003-07-14 16:52:07 +000013443 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013444 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 +000013445
13446 # Check to see that the pipe works correctly.
13447 pipe_works=no
13448
13449 rm -f conftest*
13450 cat > conftest.$ac_ext <<EOF
13451#ifdef __cplusplus
13452extern "C" {
13453#endif
13454char nm_test_var;
13455void nm_test_func(){}
13456#ifdef __cplusplus
13457}
13458#endif
13459int main(){nm_test_var='a';nm_test_func();return(0);}
13460EOF
13461
13462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; then
13467 # Now try to grab the symbols.
13468 nlist=conftest.nm
13469 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13470 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && test -s "$nlist"; then
13474 # Try sorting and uniquifying the output.
13475 if sort "$nlist" | uniq > "$nlist"T; then
13476 mv -f "$nlist"T "$nlist"
13477 else
13478 rm -f "$nlist"T
13479 fi
13480
13481 # Make sure that we snagged all the symbols we need.
13482 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13483 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13484 cat <<EOF > conftest.$ac_ext
13485#ifdef __cplusplus
13486extern "C" {
13487#endif
13488
13489EOF
13490 # Now generate the symbol file.
13491 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13492
13493 cat <<EOF >> conftest.$ac_ext
13494#if defined (__STDC__) && __STDC__
13495# define lt_ptr_t void *
13496#else
13497# define lt_ptr_t char *
13498# define const
13499#endif
13500
13501/* The mapping between symbol names and symbols. */
13502const struct {
13503 const char *name;
13504 lt_ptr_t address;
13505}
13506lt_preloaded_symbols[] =
13507{
13508EOF
13509 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13510 cat <<\EOF >> conftest.$ac_ext
13511 {0, (lt_ptr_t) 0}
13512};
13513
13514#ifdef __cplusplus
13515}
13516#endif
13517EOF
13518 # Now try linking the two files.
13519 mv conftest.$ac_objext conftstm.$ac_objext
13520 lt_save_LIBS="$LIBS"
13521 lt_save_CFLAGS="$CFLAGS"
13522 LIBS="conftstm.$ac_objext"
13523 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13529 pipe_works=yes
13530 fi
13531 LIBS="$lt_save_LIBS"
13532 CFLAGS="$lt_save_CFLAGS"
13533 else
13534 echo "cannot find nm_test_func in $nlist" >&5
13535 fi
13536 else
13537 echo "cannot find nm_test_var in $nlist" >&5
13538 fi
13539 else
13540 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13541 fi
13542 else
13543 echo "$progname: failed program was:" >&5
13544 cat conftest.$ac_ext >&5
13545 fi
13546 rm -f conftest* conftst*
13547
13548 # Do not use the global_symbol_pipe unless it works.
13549 if test "$pipe_works" = yes; then
13550 break
13551 else
13552 lt_cv_sys_global_symbol_pipe=
13553 fi
13554done
13555
13556fi
13557
13558if test -z "$lt_cv_sys_global_symbol_pipe"; then
13559 lt_cv_sys_global_symbol_to_cdecl=
13560fi
13561if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013562 { echo "$as_me:$LINENO: result: failed" >&5
13563echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013564else
Reid Spencera773bd52006-08-04 18:18:08 +000013565 { echo "$as_me:$LINENO: result: ok" >&5
13566echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013567fi
13568
Reid Spencera773bd52006-08-04 18:18:08 +000013569{ echo "$as_me:$LINENO: checking for objdir" >&5
13570echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013571if test "${lt_cv_objdir+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573else
13574 rm -f .libs 2>/dev/null
13575mkdir .libs 2>/dev/null
13576if test -d .libs; then
13577 lt_cv_objdir=.libs
13578else
13579 # MS-DOS does not allow filenames that begin with a dot.
13580 lt_cv_objdir=_libs
13581fi
13582rmdir .libs 2>/dev/null
13583fi
Reid Spencera773bd52006-08-04 18:18:08 +000013584{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13585echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013586objdir=$lt_cv_objdir
13587
13588
13589
13590
13591
13592case $host_os in
13593aix3*)
13594 # AIX sometimes has problems with the GCC collect2 program. For some
13595 # reason, if we set the COLLECT_NAMES environment variable, the problems
13596 # vanish in a puff of smoke.
13597 if test "X${COLLECT_NAMES+set}" != Xset; then
13598 COLLECT_NAMES=
13599 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013600 fi
13601 ;;
13602esac
13603
John Criswell47fdd832003-07-14 16:52:07 +000013604# Sed substitution that helps us do robust quoting. It backslashifies
13605# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013606Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013607sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13608
13609# Same as above, but do not quote variable references.
13610double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13611
13612# Sed substitution to delay expansion of an escaped shell variable in a
13613# double_quote_subst'ed string.
13614delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13615
13616# Sed substitution to avoid accidental globbing in evaled expressions
13617no_glob_subst='s/\*/\\\*/g'
13618
13619# Constants:
13620rm="rm -f"
13621
13622# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013623default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013624can_build_shared=yes
13625
Reid Spencera773bd52006-08-04 18:18:08 +000013626# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013627# which needs '.lib').
13628libext=a
13629ltmain="$ac_aux_dir/ltmain.sh"
13630ofile="$default_ofile"
13631with_gnu_ld="$lt_cv_prog_gnu_ld"
13632
13633if test -n "$ac_tool_prefix"; then
13634 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13635set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013638if test "${ac_cv_prog_AR+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640else
13641 if test -n "$AR"; then
13642 ac_cv_prog_AR="$AR" # Let the user override the test.
13643else
13644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645for as_dir in $PATH
13646do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013650 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 +000013651 ac_cv_prog_AR="${ac_tool_prefix}ar"
13652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655done
13656done
Reid Spencera773bd52006-08-04 18:18:08 +000013657IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013658
13659fi
13660fi
13661AR=$ac_cv_prog_AR
13662if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013663 { echo "$as_me:$LINENO: result: $AR" >&5
13664echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013665else
Reid Spencera773bd52006-08-04 18:18:08 +000013666 { echo "$as_me:$LINENO: result: no" >&5
13667echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013668fi
13669
Reid Spencera773bd52006-08-04 18:18:08 +000013670
John Criswell47fdd832003-07-14 16:52:07 +000013671fi
13672if test -z "$ac_cv_prog_AR"; then
13673 ac_ct_AR=$AR
13674 # Extract the first word of "ar", so it can be a program name with args.
13675set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013678if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680else
13681 if test -n "$ac_ct_AR"; then
13682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13683else
13684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685for as_dir in $PATH
13686do
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013690 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 +000013691 ac_cv_prog_ac_ct_AR="ar"
13692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13694 fi
13695done
13696done
Reid Spencera773bd52006-08-04 18:18:08 +000013697IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013698
John Criswell47fdd832003-07-14 16:52:07 +000013699fi
13700fi
13701ac_ct_AR=$ac_cv_prog_ac_ct_AR
13702if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013703 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13704echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013705else
Reid Spencera773bd52006-08-04 18:18:08 +000013706 { echo "$as_me:$LINENO: result: no" >&5
13707echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013708fi
13709
Reid Spencera773bd52006-08-04 18:18:08 +000013710 if test "x$ac_ct_AR" = x; then
13711 AR="false"
13712 else
13713 case $cross_compiling:$ac_tool_warned in
13714yes:)
13715{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13716whose name does not start with the host triplet. If you think this
13717configuration is useful to you, please write to autoconf@gnu.org." >&5
13718echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13719whose name does not start with the host triplet. If you think this
13720configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13721ac_tool_warned=yes ;;
13722esac
13723 AR=$ac_ct_AR
13724 fi
John Criswell47fdd832003-07-14 16:52:07 +000013725else
13726 AR="$ac_cv_prog_AR"
13727fi
13728
John Criswell7a73b802003-06-30 21:59:07 +000013729if test -n "$ac_tool_prefix"; then
13730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13731set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013734if test "${ac_cv_prog_RANLIB+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737 if test -n "$RANLIB"; then
13738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13739else
13740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741for as_dir in $PATH
13742do
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013746 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 +000013747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13750 fi
13751done
13752done
Reid Spencera773bd52006-08-04 18:18:08 +000013753IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013754
13755fi
13756fi
13757RANLIB=$ac_cv_prog_RANLIB
13758if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013759 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13760echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013761else
Reid Spencera773bd52006-08-04 18:18:08 +000013762 { echo "$as_me:$LINENO: result: no" >&5
13763echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013764fi
13765
Reid Spencera773bd52006-08-04 18:18:08 +000013766
John Criswell7a73b802003-06-30 21:59:07 +000013767fi
13768if test -z "$ac_cv_prog_RANLIB"; then
13769 ac_ct_RANLIB=$RANLIB
13770 # Extract the first word of "ranlib", so it can be a program name with args.
13771set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 if test -n "$ac_ct_RANLIB"; then
13778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13779else
13780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781for as_dir in $PATH
13782do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013786 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 +000013787 ac_cv_prog_ac_ct_RANLIB="ranlib"
13788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13790 fi
13791done
13792done
Reid Spencera773bd52006-08-04 18:18:08 +000013793IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013794
John Criswell7a73b802003-06-30 21:59:07 +000013795fi
13796fi
13797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13798if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013799 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13800echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013801else
Reid Spencera773bd52006-08-04 18:18:08 +000013802 { echo "$as_me:$LINENO: result: no" >&5
13803echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013804fi
13805
Reid Spencera773bd52006-08-04 18:18:08 +000013806 if test "x$ac_ct_RANLIB" = x; then
13807 RANLIB=":"
13808 else
13809 case $cross_compiling:$ac_tool_warned in
13810yes:)
13811{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13812whose name does not start with the host triplet. If you think this
13813configuration is useful to you, please write to autoconf@gnu.org." >&5
13814echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13815whose name does not start with the host triplet. If you think this
13816configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13817ac_tool_warned=yes ;;
13818esac
13819 RANLIB=$ac_ct_RANLIB
13820 fi
John Criswell7a73b802003-06-30 21:59:07 +000013821else
13822 RANLIB="$ac_cv_prog_RANLIB"
13823fi
13824
13825if test -n "$ac_tool_prefix"; then
13826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13827set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013830if test "${ac_cv_prog_STRIP+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832else
13833 if test -n "$STRIP"; then
13834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13835else
13836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $PATH
13838do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013842 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 +000013843 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13846 fi
13847done
13848done
Reid Spencera773bd52006-08-04 18:18:08 +000013849IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013850
13851fi
13852fi
13853STRIP=$ac_cv_prog_STRIP
13854if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013855 { echo "$as_me:$LINENO: result: $STRIP" >&5
13856echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013857else
Reid Spencera773bd52006-08-04 18:18:08 +000013858 { echo "$as_me:$LINENO: result: no" >&5
13859echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013860fi
13861
Reid Spencera773bd52006-08-04 18:18:08 +000013862
John Criswell7a73b802003-06-30 21:59:07 +000013863fi
13864if test -z "$ac_cv_prog_STRIP"; then
13865 ac_ct_STRIP=$STRIP
13866 # Extract the first word of "strip", so it can be a program name with args.
13867set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013870if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$ac_ct_STRIP"; then
13874 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013882 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 +000013883 ac_cv_prog_ac_ct_STRIP="strip"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
Reid Spencera773bd52006-08-04 18:18:08 +000013889IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013890
John Criswell7a73b802003-06-30 21:59:07 +000013891fi
13892fi
13893ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13894if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013895 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13896echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013897else
Reid Spencera773bd52006-08-04 18:18:08 +000013898 { echo "$as_me:$LINENO: result: no" >&5
13899echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013900fi
13901
Reid Spencera773bd52006-08-04 18:18:08 +000013902 if test "x$ac_ct_STRIP" = x; then
13903 STRIP=":"
13904 else
13905 case $cross_compiling:$ac_tool_warned in
13906yes:)
13907{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13908whose name does not start with the host triplet. If you think this
13909configuration is useful to you, please write to autoconf@gnu.org." >&5
13910echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13911whose name does not start with the host triplet. If you think this
13912configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13913ac_tool_warned=yes ;;
13914esac
13915 STRIP=$ac_ct_STRIP
13916 fi
John Criswell7a73b802003-06-30 21:59:07 +000013917else
13918 STRIP="$ac_cv_prog_STRIP"
13919fi
13920
13921
John Criswell7a73b802003-06-30 21:59:07 +000013922old_CC="$CC"
13923old_CFLAGS="$CFLAGS"
13924
13925# Set sane defaults for various variables
13926test -z "$AR" && AR=ar
13927test -z "$AR_FLAGS" && AR_FLAGS=cru
13928test -z "$AS" && AS=as
13929test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013930test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013931test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013932test -z "$DLLTOOL" && DLLTOOL=dlltool
13933test -z "$LD" && LD=ld
13934test -z "$LN_S" && LN_S="ln -s"
13935test -z "$MAGIC_CMD" && MAGIC_CMD=file
13936test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013937test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013938test -z "$OBJDUMP" && OBJDUMP=objdump
13939test -z "$RANLIB" && RANLIB=:
13940test -z "$STRIP" && STRIP=:
13941test -z "$ac_objext" && ac_objext=o
13942
John Criswell7a73b802003-06-30 21:59:07 +000013943# Determine commands to create old-style static archives.
13944old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13945old_postinstall_cmds='chmod 644 $oldlib'
13946old_postuninstall_cmds=
13947
13948if test -n "$RANLIB"; then
13949 case $host_os in
13950 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013952 ;;
13953 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013955 ;;
13956 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013958fi
13959
Reid Spencera773bd52006-08-04 18:18:08 +000013960for cc_temp in $compiler""; do
13961 case $cc_temp in
13962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13964 \-*) ;;
13965 *) break;;
13966 esac
13967done
13968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13969
Reid Spencer2706f8c2004-09-19 23:53:36 +000013970
John Criswell47fdd832003-07-14 16:52:07 +000013971# Only perform the check for file, if the check method requires it
13972case $deplibs_check_method in
13973file_magic*)
13974 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13976echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013977if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013979else
John Criswell47fdd832003-07-14 16:52:07 +000013980 case $MAGIC_CMD in
13981[\\/*] | ?:[\\/]*)
13982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13983 ;;
13984*)
13985 lt_save_MAGIC_CMD="$MAGIC_CMD"
13986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13988 for ac_dir in $ac_dummy; do
13989 IFS="$lt_save_ifs"
13990 test -z "$ac_dir" && ac_dir=.
13991 if test -f $ac_dir/${ac_tool_prefix}file; then
13992 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13993 if test -n "$file_magic_test_file"; then
13994 case $deplibs_check_method in
13995 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13999 $EGREP "$file_magic_regex" > /dev/null; then
14000 :
14001 else
14002 cat <<EOF 1>&2
14003
14004*** Warning: the command libtool uses to detect shared libraries,
14005*** $file_magic_cmd, produces output that libtool cannot recognize.
14006*** The result is that libtool may fail to recognize shared libraries
14007*** as such. This will affect the creation of libtool libraries that
14008*** depend on shared libraries, but programs linked with such libtool
14009*** libraries will work regardless of this problem. Nevertheless, you
14010*** may want to report the problem to your system manager and/or to
14011*** bug-libtool@gnu.org
14012
14013EOF
14014 fi ;;
14015 esac
14016 fi
14017 break
14018 fi
14019 done
14020 IFS="$lt_save_ifs"
14021 MAGIC_CMD="$lt_save_MAGIC_CMD"
14022 ;;
14023esac
John Criswell7a73b802003-06-30 21:59:07 +000014024fi
John Criswell7a73b802003-06-30 21:59:07 +000014025
John Criswell47fdd832003-07-14 16:52:07 +000014026MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14027if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014028 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14029echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014030else
Reid Spencera773bd52006-08-04 18:18:08 +000014031 { echo "$as_me:$LINENO: result: no" >&5
14032echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014033fi
John Criswell7a73b802003-06-30 21:59:07 +000014034
John Criswell47fdd832003-07-14 16:52:07 +000014035if test -z "$lt_cv_path_MAGIC_CMD"; then
14036 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: checking for file" >&5
14038echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014039if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 case $MAGIC_CMD in
14043[\\/*] | ?:[\\/]*)
14044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14045 ;;
14046*)
14047 lt_save_MAGIC_CMD="$MAGIC_CMD"
14048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14050 for ac_dir in $ac_dummy; do
14051 IFS="$lt_save_ifs"
14052 test -z "$ac_dir" && ac_dir=.
14053 if test -f $ac_dir/file; then
14054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14055 if test -n "$file_magic_test_file"; then
14056 case $deplibs_check_method in
14057 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14061 $EGREP "$file_magic_regex" > /dev/null; then
14062 :
14063 else
14064 cat <<EOF 1>&2
14065
14066*** Warning: the command libtool uses to detect shared libraries,
14067*** $file_magic_cmd, produces output that libtool cannot recognize.
14068*** The result is that libtool may fail to recognize shared libraries
14069*** as such. This will affect the creation of libtool libraries that
14070*** depend on shared libraries, but programs linked with such libtool
14071*** libraries will work regardless of this problem. Nevertheless, you
14072*** may want to report the problem to your system manager and/or to
14073*** bug-libtool@gnu.org
14074
14075EOF
14076 fi ;;
14077 esac
14078 fi
14079 break
14080 fi
14081 done
14082 IFS="$lt_save_ifs"
14083 MAGIC_CMD="$lt_save_MAGIC_CMD"
14084 ;;
14085esac
14086fi
14087
14088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14089if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014090 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14091echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014092else
Reid Spencera773bd52006-08-04 18:18:08 +000014093 { echo "$as_me:$LINENO: result: no" >&5
14094echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014095fi
14096
14097 else
14098 MAGIC_CMD=:
14099 fi
14100fi
14101
14102 fi
14103 ;;
14104esac
14105
Reid Spencer17795972004-11-18 09:47:37 +000014106enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014107enable_win32_dll=no
14108
Reid Spencera773bd52006-08-04 18:18:08 +000014109# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014110if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014111 enableval=$enable_libtool_lock;
14112fi
John Criswell47fdd832003-07-14 16:52:07 +000014113
John Criswell47fdd832003-07-14 16:52:07 +000014114test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14115
John Criswell7a73b802003-06-30 21:59:07 +000014116
Reid Spencera773bd52006-08-04 18:18:08 +000014117# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014118if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014119 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014120else
14121 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014122fi
14123
John Criswell7a73b802003-06-30 21:59:07 +000014124test -z "$pic_mode" && pic_mode=default
14125
John Criswell47fdd832003-07-14 16:52:07 +000014126# Use C for the default configuration in the libtool script
14127tagname=
14128lt_save_CC="$CC"
14129ac_ext=c
14130ac_cpp='$CPP $CPPFLAGS'
14131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14133ac_compiler_gnu=$ac_cv_c_compiler_gnu
14134
14135
14136# Source file extension for C test sources.
14137ac_ext=c
14138
14139# Object file extension for compiled C test sources.
14140objext=o
14141objext=$objext
14142
14143# Code to be used in simple compile tests
14144lt_simple_compile_test_code="int some_variable = 0;\n"
14145
14146# Code to be used in simple link tests
14147lt_simple_link_test_code='int main(){return(0);}\n'
14148
14149
14150# If no C compiler was specified, use CC.
14151LTCC=${LTCC-"$CC"}
14152
Reid Spencera773bd52006-08-04 18:18:08 +000014153# If no C compiler flags were specified, use CFLAGS.
14154LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14155
John Criswell47fdd832003-07-14 16:52:07 +000014156# Allow CC to be a program name with arguments.
14157compiler=$CC
14158
14159
Reid Spencera773bd52006-08-04 18:18:08 +000014160# save warnings/boilerplate of simple test code
14161ac_outfile=conftest.$ac_objext
14162printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14163eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14164_lt_compiler_boilerplate=`cat conftest.err`
14165$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014166
Reid Spencera773bd52006-08-04 18:18:08 +000014167ac_outfile=conftest.$ac_objext
14168printf "$lt_simple_link_test_code" >conftest.$ac_ext
14169eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170_lt_linker_boilerplate=`cat conftest.err`
14171$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014172
14173
John Criswell47fdd832003-07-14 16:52:07 +000014174
14175lt_prog_compiler_no_builtin_flag=
14176
14177if test "$GCC" = yes; then
14178 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14179
Reid Spencer2706f8c2004-09-19 23:53:36 +000014180
Reid Spencera773bd52006-08-04 18:18:08 +000014181{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14182echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014183if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185else
14186 lt_cv_prog_compiler_rtti_exceptions=no
14187 ac_outfile=conftest.$ac_objext
14188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14189 lt_compiler_flag="-fno-rtti -fno-exceptions"
14190 # Insert the option either (1) after the last *FLAGS variable, or
14191 # (2) before a word containing "conftest.", or (3) at the end.
14192 # Note that $ac_compile itself does not contain backslashes and begins
14193 # with a dollar sign (not a hyphen), so the echo should work correctly.
14194 # The option is referenced via a variable to avoid confusing sed.
14195 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14198 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000014199 (eval echo "\"\$as_me:14199: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014200 (eval "$lt_compile" 2>conftest.err)
14201 ac_status=$?
14202 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000014203 echo "$as_me:14203: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014204 if (exit $ac_status) && test -s "$ac_outfile"; then
14205 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014206 # So say no if there are warnings other than the usual output.
14207 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14209 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014210 lt_cv_prog_compiler_rtti_exceptions=yes
14211 fi
14212 fi
14213 $rm conftest*
14214
14215fi
Reid Spencera773bd52006-08-04 18:18:08 +000014216{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14217echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014218
14219if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14220 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14221else
14222 :
14223fi
14224
14225fi
14226
14227lt_prog_compiler_wl=
14228lt_prog_compiler_pic=
14229lt_prog_compiler_static=
14230
Reid Spencera773bd52006-08-04 18:18:08 +000014231{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14232echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014233
14234 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014235 lt_prog_compiler_wl='-Wl,'
14236 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014237
14238 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014239 aix*)
14240 # All AIX code is PIC.
14241 if test "$host_cpu" = ia64; then
14242 # AIX 5 now supports IA64 processor
14243 lt_prog_compiler_static='-Bstatic'
14244 fi
John Criswell7a73b802003-06-30 21:59:07 +000014245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014246
John Criswell7a73b802003-06-30 21:59:07 +000014247 amigaos*)
14248 # FIXME: we need at least 68020 code to build shared libraries, but
14249 # adding the `-m68020' flag to GCC prevents building anything better,
14250 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014251 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014252 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014253
14254 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014255 # PIC is the default for these OSes.
14256 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014257
14258 mingw* | pw32* | os2*)
14259 # This hack is so that the source file can tell whether it is being
14260 # built for inclusion in a dll (and should export symbols for example).
14261 lt_prog_compiler_pic='-DDLL_EXPORT'
14262 ;;
14263
John Criswell7a73b802003-06-30 21:59:07 +000014264 darwin* | rhapsody*)
14265 # PIC is the default on this platform
14266 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014267 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014268 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014269
Reid Spencera773bd52006-08-04 18:18:08 +000014270 interix3*)
14271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14272 # Instead, we relocate shared libraries at runtime.
14273 ;;
14274
John Criswell47fdd832003-07-14 16:52:07 +000014275 msdosdjgpp*)
14276 # Just because we use GCC doesn't mean we suddenly get shared libraries
14277 # on systems that don't support them.
14278 lt_prog_compiler_can_build_shared=no
14279 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014281
John Criswell7a73b802003-06-30 21:59:07 +000014282 sysv4*MP*)
14283 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014284 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014285 fi
14286 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014287
14288 hpux*)
14289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14290 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014291 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014292 hppa*64*|ia64*)
14293 # +Z the default
14294 ;;
14295 *)
14296 lt_prog_compiler_pic='-fPIC'
14297 ;;
14298 esac
14299 ;;
14300
John Criswell7a73b802003-06-30 21:59:07 +000014301 *)
John Criswell47fdd832003-07-14 16:52:07 +000014302 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014303 ;;
14304 esac
14305 else
John Criswell47fdd832003-07-14 16:52:07 +000014306 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014307 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014308 aix*)
14309 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014310 if test "$host_cpu" = ia64; then
14311 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014312 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014313 else
John Criswell47fdd832003-07-14 16:52:07 +000014314 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014315 fi
14316 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014317 darwin*)
14318 # PIC is the default on this platform
14319 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014320 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014321 xlc*)
14322 lt_prog_compiler_pic='-qnocommon'
14323 lt_prog_compiler_wl='-Wl,'
14324 ;;
14325 esac
14326 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014327
John Criswell47fdd832003-07-14 16:52:07 +000014328 mingw* | pw32* | os2*)
14329 # This hack is so that the source file can tell whether it is being
14330 # built for inclusion in a dll (and should export symbols for example).
14331 lt_prog_compiler_pic='-DDLL_EXPORT'
14332 ;;
14333
John Criswell7a73b802003-06-30 21:59:07 +000014334 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014335 lt_prog_compiler_wl='-Wl,'
14336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14337 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014338 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014339 hppa*64*|ia64*)
14340 # +Z the default
14341 ;;
14342 *)
14343 lt_prog_compiler_pic='+Z'
14344 ;;
14345 esac
14346 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14347 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014348 ;;
14349
John Criswell47fdd832003-07-14 16:52:07 +000014350 irix5* | irix6* | nonstopux*)
14351 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014352 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014353 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014354 ;;
14355
14356 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014357 lt_prog_compiler_pic='-KPIC'
14358 lt_prog_compiler_static='-Bstatic'
14359 ;;
14360
14361 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014362 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014363 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014364 lt_prog_compiler_wl='-Wl,'
14365 lt_prog_compiler_pic='-KPIC'
14366 lt_prog_compiler_static='-static'
14367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014368 pgcc* | pgf77* | pgf90* | pgf95*)
14369 # Portland Group compilers (*not* the Pentium gcc compiler,
14370 # which looks to be a dead project)
14371 lt_prog_compiler_wl='-Wl,'
14372 lt_prog_compiler_pic='-fpic'
14373 lt_prog_compiler_static='-Bstatic'
14374 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014375 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014376 lt_prog_compiler_wl='-Wl,'
14377 # All Alpha code is PIC.
14378 lt_prog_compiler_static='-non_shared'
14379 ;;
14380 esac
John Criswell7a73b802003-06-30 21:59:07 +000014381 ;;
14382
14383 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014384 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014385 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014386 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014387 ;;
14388
John Criswell7a73b802003-06-30 21:59:07 +000014389 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014390 lt_prog_compiler_pic='-KPIC'
14391 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014392 case $cc_basename in
14393 f77* | f90* | f95*)
14394 lt_prog_compiler_wl='-Qoption ld ';;
14395 *)
14396 lt_prog_compiler_wl='-Wl,';;
14397 esac
John Criswell7a73b802003-06-30 21:59:07 +000014398 ;;
14399
14400 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_prog_compiler_wl='-Qoption ld '
14402 lt_prog_compiler_pic='-PIC'
14403 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014404 ;;
14405
Reid Spencera773bd52006-08-04 18:18:08 +000014406 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014407 lt_prog_compiler_wl='-Wl,'
14408 lt_prog_compiler_pic='-KPIC'
14409 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014410 ;;
14411
14412 sysv4*MP*)
14413 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014414 lt_prog_compiler_pic='-Kconform_pic'
14415 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014416 fi
14417 ;;
14418
Reid Spencera773bd52006-08-04 18:18:08 +000014419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420 lt_prog_compiler_wl='-Wl,'
14421 lt_prog_compiler_pic='-KPIC'
14422 lt_prog_compiler_static='-Bstatic'
14423 ;;
14424
14425 unicos*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_can_build_shared=no
14428 ;;
14429
John Criswell47fdd832003-07-14 16:52:07 +000014430 uts4*)
14431 lt_prog_compiler_pic='-pic'
14432 lt_prog_compiler_static='-Bstatic'
14433 ;;
14434
John Criswell7a73b802003-06-30 21:59:07 +000014435 *)
John Criswell47fdd832003-07-14 16:52:07 +000014436 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014437 ;;
14438 esac
14439 fi
14440
Reid Spencera773bd52006-08-04 18:18:08 +000014441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14442echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014443
John Criswell47fdd832003-07-14 16:52:07 +000014444#
14445# Check to make sure the PIC flag actually works.
14446#
14447if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014448
Reid Spencera773bd52006-08-04 18:18:08 +000014449{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14450echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014451if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
John Criswell47fdd832003-07-14 16:52:07 +000014454 lt_prog_compiler_pic_works=no
14455 ac_outfile=conftest.$ac_objext
14456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14457 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14458 # Insert the option either (1) after the last *FLAGS variable, or
14459 # (2) before a word containing "conftest.", or (3) at the end.
14460 # Note that $ac_compile itself does not contain backslashes and begins
14461 # with a dollar sign (not a hyphen), so the echo should work correctly.
14462 # The option is referenced via a variable to avoid confusing sed.
14463 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14466 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000014467 (eval echo "\"\$as_me:14467: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014468 (eval "$lt_compile" 2>conftest.err)
14469 ac_status=$?
14470 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000014471 echo "$as_me:14471: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014472 if (exit $ac_status) && test -s "$ac_outfile"; then
14473 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014474 # So say no if there are warnings other than the usual output.
14475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014478 lt_prog_compiler_pic_works=yes
14479 fi
14480 fi
14481 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014482
John Criswell47fdd832003-07-14 16:52:07 +000014483fi
Reid Spencera773bd52006-08-04 18:18:08 +000014484{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14485echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014486
John Criswell47fdd832003-07-14 16:52:07 +000014487if test x"$lt_prog_compiler_pic_works" = xyes; then
14488 case $lt_prog_compiler_pic in
14489 "" | " "*) ;;
14490 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14491 esac
John Criswell7a73b802003-06-30 21:59:07 +000014492else
John Criswell47fdd832003-07-14 16:52:07 +000014493 lt_prog_compiler_pic=
14494 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014495fi
14496
John Criswell7a73b802003-06-30 21:59:07 +000014497fi
Reid Spencera773bd52006-08-04 18:18:08 +000014498case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014499 # For platforms which do not support PIC, -DPIC is meaningless:
14500 *djgpp*)
14501 lt_prog_compiler_pic=
14502 ;;
14503 *)
14504 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14505 ;;
14506esac
John Criswell7a73b802003-06-30 21:59:07 +000014507
Reid Spencera773bd52006-08-04 18:18:08 +000014508#
14509# Check to make sure the static flag actually works.
14510#
14511wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14512{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14513echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14514if test "${lt_prog_compiler_static_works+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516else
14517 lt_prog_compiler_static_works=no
14518 save_LDFLAGS="$LDFLAGS"
14519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14520 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14522 # The linker can only warn and ignore the option if not recognized
14523 # So say no if there are warnings
14524 if test -s conftest.err; then
14525 # Append any errors to the config.log.
14526 cat conftest.err 1>&5
14527 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14529 if diff conftest.exp conftest.er2 >/dev/null; then
14530 lt_prog_compiler_static_works=yes
14531 fi
14532 else
14533 lt_prog_compiler_static_works=yes
14534 fi
14535 fi
14536 $rm conftest*
14537 LDFLAGS="$save_LDFLAGS"
14538
14539fi
14540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14541echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14542
14543if test x"$lt_prog_compiler_static_works" = xyes; then
14544 :
14545else
14546 lt_prog_compiler_static=
14547fi
14548
14549
14550{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14551echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014552if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554else
John Criswell47fdd832003-07-14 16:52:07 +000014555 lt_cv_prog_compiler_c_o=no
14556 $rm -r conftest 2>/dev/null
14557 mkdir conftest
14558 cd conftest
14559 mkdir out
14560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014561
John Criswell47fdd832003-07-14 16:52:07 +000014562 lt_compiler_flag="-o out/conftest2.$ac_objext"
14563 # Insert the option either (1) after the last *FLAGS variable, or
14564 # (2) before a word containing "conftest.", or (3) at the end.
14565 # Note that $ac_compile itself does not contain backslashes and begins
14566 # with a dollar sign (not a hyphen), so the echo should work correctly.
14567 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14570 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000014571 (eval echo "\"\$as_me:14571: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014572 (eval "$lt_compile" 2>out/conftest.err)
14573 ac_status=$?
14574 cat out/conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000014575 echo "$as_me:14575: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14577 then
14578 # The compiler can only warn and ignore the option if not recognized
14579 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014580 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014583 lt_cv_prog_compiler_c_o=yes
14584 fi
14585 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014586 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014587 $rm conftest*
14588 # SGI C++ compiler will create directory out/ii_files/ for
14589 # template instantiation
14590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14591 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014592 cd ..
14593 rmdir conftest
14594 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014595
14596fi
Reid Spencera773bd52006-08-04 18:18:08 +000014597{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14598echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014599
John Criswell7a73b802003-06-30 21:59:07 +000014600
John Criswell7a73b802003-06-30 21:59:07 +000014601hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014602if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014603 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014604 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14605echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014606 hard_links=yes
14607 $rm conftest*
14608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14609 touch conftest.a
14610 ln conftest.a conftest.b 2>&5 || hard_links=no
14611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014612 { echo "$as_me:$LINENO: result: $hard_links" >&5
14613echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014614 if test "$hard_links" = no; then
14615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14616echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14617 need_locks=warn
14618 fi
14619else
14620 need_locks=no
14621fi
John Criswell7a73b802003-06-30 21:59:07 +000014622
Reid Spencera773bd52006-08-04 18:18:08 +000014623{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14624echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014625
14626 runpath_var=
14627 allow_undefined_flag=
14628 enable_shared_with_static_runtimes=no
14629 archive_cmds=
14630 archive_expsym_cmds=
14631 old_archive_From_new_cmds=
14632 old_archive_from_expsyms_cmds=
14633 export_dynamic_flag_spec=
14634 whole_archive_flag_spec=
14635 thread_safe_flag_spec=
14636 hardcode_libdir_flag_spec=
14637 hardcode_libdir_flag_spec_ld=
14638 hardcode_libdir_separator=
14639 hardcode_direct=no
14640 hardcode_minus_L=no
14641 hardcode_shlibpath_var=unsupported
14642 link_all_deplibs=unknown
14643 hardcode_automatic=no
14644 module_cmds=
14645 module_expsym_cmds=
14646 always_export_symbols=no
14647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14648 # include_expsyms should be a list of space-separated symbols to be *always*
14649 # included in the symbol list
14650 include_expsyms=
14651 # exclude_expsyms can be an extended regexp of symbols to exclude
14652 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14653 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14654 # as well as any symbol that contains `d'.
14655 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14657 # platforms (ab)use it in PIC code, but their linkers get confused if
14658 # the symbol is explicitly referenced. Since portable code cannot
14659 # rely on this symbol name, it's probably fine to never include it in
14660 # preloaded symbol tables.
14661 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014662 # Just being paranoid about ensuring that cc_basename is set.
14663 for cc_temp in $compiler""; do
14664 case $cc_temp in
14665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14667 \-*) ;;
14668 *) break;;
14669 esac
14670done
14671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014672
14673 case $host_os in
14674 cygwin* | mingw* | pw32*)
14675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14676 # When not using gcc, we currently assume that we are using
14677 # Microsoft Visual C++.
14678 if test "$GCC" != yes; then
14679 with_gnu_ld=no
14680 fi
14681 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014682 interix*)
14683 # we just hope/assume this is gcc and not c89 (= MSVC++)
14684 with_gnu_ld=yes
14685 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014686 openbsd*)
14687 with_gnu_ld=no
14688 ;;
14689 esac
14690
14691 ld_shlibs=yes
14692 if test "$with_gnu_ld" = yes; then
14693 # If archive_cmds runs LD, not CC, wlarc should be empty
14694 wlarc='${wl}'
14695
Reid Spencera773bd52006-08-04 18:18:08 +000014696 # Set some defaults for GNU ld with shared library support. These
14697 # are reset later if shared libraries are not supported. Putting them
14698 # here allows them to be overridden if necessary.
14699 runpath_var=LD_RUN_PATH
14700 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14701 export_dynamic_flag_spec='${wl}--export-dynamic'
14702 # ancient GNU ld didn't support --whole-archive et. al.
14703 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14704 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14705 else
14706 whole_archive_flag_spec=
14707 fi
14708 supports_anon_versioning=no
14709 case `$LD -v 2>/dev/null` in
14710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14713 *\ 2.11.*) ;; # other 2.11 versions
14714 *) supports_anon_versioning=yes ;;
14715 esac
14716
John Criswell47fdd832003-07-14 16:52:07 +000014717 # See if GNU ld supports shared libraries.
14718 case $host_os in
14719 aix3* | aix4* | aix5*)
14720 # On AIX/PPC, the GNU linker is very broken
14721 if test "$host_cpu" != ia64; then
14722 ld_shlibs=no
14723 cat <<EOF 1>&2
14724
14725*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14726*** to be unable to reliably create shared libraries on AIX.
14727*** Therefore, libtool is disabling shared libraries support. If you
14728*** really care for shared libraries, you may want to modify your PATH
14729*** so that a non-GNU linker is found, and then restart.
14730
14731EOF
14732 fi
14733 ;;
14734
14735 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014736 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 +000014737 hardcode_libdir_flag_spec='-L$libdir'
14738 hardcode_minus_L=yes
14739
14740 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14741 # that the semantics of dynamic libraries on AmigaOS, at least up
14742 # to version 4, is to share data among multiple programs linked
14743 # with the same dynamic library. Since this doesn't match the
14744 # behavior of shared libraries on other platforms, we can't use
14745 # them.
14746 ld_shlibs=no
14747 ;;
14748
14749 beos*)
14750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14751 allow_undefined_flag=unsupported
14752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14753 # support --undefined. This deserves some investigation. FIXME
14754 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755 else
14756 ld_shlibs=no
14757 fi
14758 ;;
14759
14760 cygwin* | mingw* | pw32*)
14761 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14762 # as there is no search path for DLLs.
14763 hardcode_libdir_flag_spec='-L$libdir'
14764 allow_undefined_flag=unsupported
14765 always_export_symbols=no
14766 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014767 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 +000014768
14769 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014770 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 +000014771 # If the export-symbols file already is a .def file (1st line
14772 # is EXPORTS), use it as is; otherwise, prepend...
14773 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14774 cp $export_symbols $output_objdir/$soname.def;
14775 else
14776 echo EXPORTS > $output_objdir/$soname.def;
14777 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014778 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780 else
14781 ld_shlibs=no
14782 fi
14783 ;;
14784
14785 interix3*)
14786 hardcode_direct=no
14787 hardcode_shlibpath_var=no
14788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14789 export_dynamic_flag_spec='${wl}-E'
14790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14791 # Instead, shared libraries are loaded at an image base (0x10000000 by
14792 # default) and relocated if they conflict, which is a slow very memory
14793 # consuming and fragmenting process. To avoid this, we pick a random,
14794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14797 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'
14798 ;;
14799
14800 linux*)
14801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802 tmp_addflag=
14803 case $cc_basename,$host_cpu in
14804 pgcc*) # Portland Group C compiler
14805 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'
14806 tmp_addflag=' $pic_flag'
14807 ;;
14808 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14809 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'
14810 tmp_addflag=' $pic_flag -Mnomain' ;;
14811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14812 tmp_addflag=' -i_dynamic' ;;
14813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14814 tmp_addflag=' -i_dynamic -nofor_main' ;;
14815 ifc* | ifort*) # Intel Fortran compiler
14816 tmp_addflag=' -nofor_main' ;;
14817 esac
14818 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14819
14820 if test $supports_anon_versioning = yes; then
14821 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14823 $echo "local: *; };" >> $output_objdir/$libname.ver~
14824 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14825 fi
John Criswell47fdd832003-07-14 16:52:07 +000014826 else
14827 ld_shlibs=no
14828 fi
14829 ;;
14830
14831 netbsd*)
14832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14834 wlarc=
14835 else
14836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14838 fi
14839 ;;
14840
Reid Spencera773bd52006-08-04 18:18:08 +000014841 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14843 ld_shlibs=no
14844 cat <<EOF 1>&2
14845
14846*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14847*** create shared libraries on Solaris systems. Therefore, libtool
14848*** is disabling shared libraries support. We urge you to upgrade GNU
14849*** binutils to release 2.9.1 or newer. Another option is to modify
14850*** your PATH or compiler configuration so that the native linker is
14851*** used, and then restart.
14852
14853EOF
14854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14857 else
14858 ld_shlibs=no
14859 fi
14860 ;;
14861
Reid Spencera773bd52006-08-04 18:18:08 +000014862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14863 case `$LD -v 2>&1` in
14864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14865 ld_shlibs=no
14866 cat <<_LT_EOF 1>&2
14867
14868*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14869*** reliably create shared libraries on SCO systems. Therefore, libtool
14870*** is disabling shared libraries support. We urge you to upgrade GNU
14871*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14872*** your PATH or compiler configuration so that the native linker is
14873*** used, and then restart.
14874
14875_LT_EOF
14876 ;;
14877 *)
14878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14879 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14882 else
14883 ld_shlibs=no
14884 fi
14885 ;;
14886 esac
14887 ;;
14888
John Criswell47fdd832003-07-14 16:52:07 +000014889 sunos4*)
14890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14891 wlarc=
14892 hardcode_direct=yes
14893 hardcode_shlibpath_var=no
14894 ;;
14895
14896 *)
14897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14900 else
14901 ld_shlibs=no
14902 fi
14903 ;;
14904 esac
14905
Reid Spencera773bd52006-08-04 18:18:08 +000014906 if test "$ld_shlibs" = no; then
14907 runpath_var=
14908 hardcode_libdir_flag_spec=
14909 export_dynamic_flag_spec=
14910 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014911 fi
14912 else
14913 # PORTME fill in a description of your system's linker (not GNU ld)
14914 case $host_os in
14915 aix3*)
14916 allow_undefined_flag=unsupported
14917 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014918 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 +000014919 # Note: this linker hardcodes the directories in LIBPATH if there
14920 # are no directories specified by -L.
14921 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014923 # Neither direct hardcoding nor static linking is supported with a
14924 # broken collect2.
14925 hardcode_direct=unsupported
14926 fi
14927 ;;
14928
14929 aix4* | aix5*)
14930 if test "$host_cpu" = ia64; then
14931 # On IA64, the linker does run time linking by default, so we don't
14932 # have to do anything special.
14933 aix_use_runtimelinking=no
14934 exp_sym_flag='-Bexport'
14935 no_entry_flag=""
14936 else
14937 # If we're using GNU nm, then we don't want the "-C" option.
14938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14940 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'
14941 else
14942 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'
14943 fi
14944 aix_use_runtimelinking=no
14945
14946 # Test if we are trying to use run time linking or normal
14947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14948 # need to do runtime linking.
14949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14950 for ld_flag in $LDFLAGS; do
14951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14952 aix_use_runtimelinking=yes
14953 break
14954 fi
14955 done
Reid Spencera773bd52006-08-04 18:18:08 +000014956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014957 esac
14958
14959 exp_sym_flag='-bexport'
14960 no_entry_flag='-bnoentry'
14961 fi
14962
14963 # When large executables or shared objects are built, AIX ld can
14964 # have problems creating the table of contents. If linking a library
14965 # or program results in "error TOC overflow" add -mminimal-toc to
14966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14968
14969 archive_cmds=''
14970 hardcode_direct=yes
14971 hardcode_libdir_separator=':'
14972 link_all_deplibs=yes
14973
14974 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014975 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014976 # We only want to do this on AIX 4.2 and lower, the check
14977 # below for broken collect2 doesn't work under 4.3+
14978 collect2name=`${CC} -print-prog-name=collect2`
14979 if test -f "$collect2name" && \
14980 strings "$collect2name" | grep resolve_lib_name >/dev/null
14981 then
14982 # We have reworked collect2
14983 hardcode_direct=yes
14984 else
14985 # We have old collect2
14986 hardcode_direct=unsupported
14987 # It fails to find uninstalled libraries when the uninstalled
14988 # path is not listed in the libpath. Setting hardcode_minus_L
14989 # to unsupported forces relinking
14990 hardcode_minus_L=yes
14991 hardcode_libdir_flag_spec='-L$libdir'
14992 hardcode_libdir_separator=
14993 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014994 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014995 esac
14996 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014997 if test "$aix_use_runtimelinking" = yes; then
14998 shared_flag="$shared_flag "'${wl}-G'
14999 fi
John Criswell47fdd832003-07-14 16:52:07 +000015000 else
15001 # not using gcc
15002 if test "$host_cpu" = ia64; then
15003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15004 # chokes on -Wl,-G. The following line is correct:
15005 shared_flag='-G'
15006 else
Reid Spencera773bd52006-08-04 18:18:08 +000015007 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015008 shared_flag='${wl}-G'
15009 else
15010 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015011 fi
John Criswell47fdd832003-07-14 16:52:07 +000015012 fi
15013 fi
15014
15015 # It seems that -bexpall does not export symbols beginning with
15016 # underscore (_), so it is better to generate a list of symbols to export.
15017 always_export_symbols=yes
15018 if test "$aix_use_runtimelinking" = yes; then
15019 # Warning - without using the other runtime loading flags (-brtl),
15020 # -berok will link without error, but may produce a broken library.
15021 allow_undefined_flag='-berok'
15022 # Determine the default libpath from the value encoded in an empty executable.
15023 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015029
John Criswell7a73b802003-06-30 21:59:07 +000015030int
15031main ()
15032{
John Criswell47fdd832003-07-14 16:52:07 +000015033
John Criswell7a73b802003-06-30 21:59:07 +000015034 ;
15035 return 0;
15036}
15037_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015038rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015039if { (ac_try="$ac_link"
15040case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
15044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15053 { (case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056esac
15057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015072
John Criswell47fdd832003-07-14 16:52:07 +000015073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15074}'`
15075# Check for a 64-bit object if we didn't find anything.
15076if 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; }
15077}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015078else
15079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015080sed 's/^/| /' conftest.$ac_ext >&5
15081
Reid Spencera773bd52006-08-04 18:18:08 +000015082
John Criswell7a73b802003-06-30 21:59:07 +000015083fi
Reid Spencera773bd52006-08-04 18:18:08 +000015084
15085rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015086 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015088
John Criswell47fdd832003-07-14 16:52:07 +000015089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015090 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 +000015091 else
15092 if test "$host_cpu" = ia64; then
15093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15094 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015095 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 +000015096 else
15097 # Determine the default libpath from the value encoded in an empty executable.
15098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
15103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015104
John Criswell47fdd832003-07-14 16:52:07 +000015105int
15106main ()
15107{
John Criswell7a73b802003-06-30 21:59:07 +000015108
John Criswell47fdd832003-07-14 16:52:07 +000015109 ;
15110 return 0;
15111}
15112_ACEOF
15113rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015114if { (ac_try="$ac_link"
15115case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015138 { (case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141esac
15142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015147
John Criswell47fdd832003-07-14 16:52:07 +000015148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15149}'`
15150# Check for a 64-bit object if we didn't find anything.
15151if 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; }
15152}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015153else
John Criswell47fdd832003-07-14 16:52:07 +000015154 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015155sed 's/^/| /' conftest.$ac_ext >&5
15156
Reid Spencera773bd52006-08-04 18:18:08 +000015157
John Criswell47fdd832003-07-14 16:52:07 +000015158fi
Reid Spencera773bd52006-08-04 18:18:08 +000015159
15160rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015161 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015162if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015163
John Criswell47fdd832003-07-14 16:52:07 +000015164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15165 # Warning - without using the other run time loading flags,
15166 # -berok will link without error, but may produce a broken library.
15167 no_undefined_flag=' ${wl}-bernotok'
15168 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015169 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015170 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015171 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015172 # This is similar to how AIX traditionally builds its shared libraries.
15173 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 +000015174 fi
15175 fi
John Criswell7a73b802003-06-30 21:59:07 +000015176 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015177
15178 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015179 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 +000015180 hardcode_libdir_flag_spec='-L$libdir'
15181 hardcode_minus_L=yes
15182 # see comment about different semantics on the GNU ld section
15183 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015184 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015185
Reid Spencer2706f8c2004-09-19 23:53:36 +000015186 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015187 export_dynamic_flag_spec=-rdynamic
15188 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015189
John Criswell47fdd832003-07-14 16:52:07 +000015190 cygwin* | mingw* | pw32*)
15191 # When not using gcc, we currently assume that we are using
15192 # Microsoft Visual C++.
15193 # hardcode_libdir_flag_spec is actually meaningless, as there is
15194 # no search path for DLLs.
15195 hardcode_libdir_flag_spec=' '
15196 allow_undefined_flag=unsupported
15197 # Tell ltmain to make .lib files, not .a files.
15198 libext=lib
15199 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015200 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015201 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015202 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015203 # The linker will automatically build a .lib file if we build a DLL.
15204 old_archive_From_new_cmds='true'
15205 # FIXME: Should let the user specify the lib program.
15206 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15207 fix_srcfile_path='`cygpath -w "$srcfile"`'
15208 enable_shared_with_static_runtimes=yes
15209 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015210
John Criswell47fdd832003-07-14 16:52:07 +000015211 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015212 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015213 rhapsody* | darwin1.[012])
15214 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15215 ;;
15216 *) # Darwin 1.3 on
15217 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15218 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15219 else
15220 case ${MACOSX_DEPLOYMENT_TARGET} in
15221 10.[012])
15222 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15223 ;;
15224 10.*)
15225 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15226 ;;
15227 esac
15228 fi
15229 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015230 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015231 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015232 hardcode_direct=no
15233 hardcode_automatic=yes
15234 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015235 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015236 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015237 if test "$GCC" = yes ; then
15238 output_verbose_link_cmd='echo'
15239 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15240 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015241 # 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 +000015242 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}'
15243 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 +000015244 else
Reid Spencera773bd52006-08-04 18:18:08 +000015245 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015246 xlc*)
15247 output_verbose_link_cmd='echo'
15248 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15249 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015250 # 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 +000015251 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}'
15252 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 +000015253 ;;
15254 *)
15255 ld_shlibs=no
15256 ;;
15257 esac
John Criswell7a73b802003-06-30 21:59:07 +000015258 fi
John Criswell47fdd832003-07-14 16:52:07 +000015259 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015260
John Criswell47fdd832003-07-14 16:52:07 +000015261 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015263 hardcode_libdir_flag_spec='-L$libdir'
15264 hardcode_shlibpath_var=no
15265 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015266
John Criswell47fdd832003-07-14 16:52:07 +000015267 freebsd1*)
15268 ld_shlibs=no
15269 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015270
John Criswell47fdd832003-07-14 16:52:07 +000015271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15272 # support. Future versions do this automatically, but an explicit c++rt0.o
15273 # does not break anything, and helps significantly (at the cost of a little
15274 # extra space).
15275 freebsd2.2*)
15276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15277 hardcode_libdir_flag_spec='-R$libdir'
15278 hardcode_direct=yes
15279 hardcode_shlibpath_var=no
15280 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015281
John Criswell47fdd832003-07-14 16:52:07 +000015282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15283 freebsd2*)
15284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15285 hardcode_direct=yes
15286 hardcode_minus_L=yes
15287 hardcode_shlibpath_var=no
15288 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015289
John Criswell47fdd832003-07-14 16:52:07 +000015290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015291 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015292 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15293 hardcode_libdir_flag_spec='-R$libdir'
15294 hardcode_direct=yes
15295 hardcode_shlibpath_var=no
15296 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015297
John Criswell47fdd832003-07-14 16:52:07 +000015298 hpux9*)
15299 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015300 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 +000015301 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015302 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 +000015303 fi
15304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15305 hardcode_libdir_separator=:
15306 hardcode_direct=yes
15307
15308 # hardcode_minus_L: Not really in the search PATH,
15309 # but as the default location of the library.
15310 hardcode_minus_L=yes
15311 export_dynamic_flag_spec='${wl}-E'
15312 ;;
15313
Reid Spencera773bd52006-08-04 18:18:08 +000015314 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15317 else
15318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15319 fi
15320 if test "$with_gnu_ld" = no; then
15321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15322 hardcode_libdir_separator=:
15323
15324 hardcode_direct=yes
15325 export_dynamic_flag_spec='${wl}-E'
15326
15327 # hardcode_minus_L: Not really in the search PATH,
15328 # but as the default location of the library.
15329 hardcode_minus_L=yes
15330 fi
15331 ;;
15332
15333 hpux11*)
15334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15335 case $host_cpu in
15336 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015337 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015339 ia64*)
15340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15341 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015342 *)
15343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15344 ;;
15345 esac
15346 else
Reid Spencera773bd52006-08-04 18:18:08 +000015347 case $host_cpu in
15348 hppa*64*)
15349 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15350 ;;
15351 ia64*)
15352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015353 ;;
15354 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015355 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 +000015356 ;;
15357 esac
15358 fi
15359 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015360 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15361 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015362
Reid Spencera773bd52006-08-04 18:18:08 +000015363 case $host_cpu in
15364 hppa*64*|ia64*)
15365 hardcode_libdir_flag_spec_ld='+b $libdir'
15366 hardcode_direct=no
15367 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015368 ;;
15369 *)
John Criswell47fdd832003-07-14 16:52:07 +000015370 hardcode_direct=yes
15371 export_dynamic_flag_spec='${wl}-E'
15372
15373 # hardcode_minus_L: Not really in the search PATH,
15374 # but as the default location of the library.
15375 hardcode_minus_L=yes
15376 ;;
15377 esac
15378 fi
15379 ;;
15380
15381 irix5* | irix6* | nonstopux*)
15382 if test "$GCC" = yes; then
15383 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'
15384 else
15385 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'
15386 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15387 fi
15388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15389 hardcode_libdir_separator=:
15390 link_all_deplibs=yes
15391 ;;
15392
15393 netbsd*)
15394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15396 else
15397 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15398 fi
15399 hardcode_libdir_flag_spec='-R$libdir'
15400 hardcode_direct=yes
15401 hardcode_shlibpath_var=no
15402 ;;
15403
15404 newsos6)
15405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_direct=yes
15407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15408 hardcode_libdir_separator=:
15409 hardcode_shlibpath_var=no
15410 ;;
15411
15412 openbsd*)
15413 hardcode_direct=yes
15414 hardcode_shlibpath_var=no
15415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015417 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 +000015418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15419 export_dynamic_flag_spec='${wl}-E'
15420 else
15421 case $host_os in
15422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_libdir_flag_spec='-R$libdir'
15425 ;;
15426 *)
15427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15429 ;;
15430 esac
15431 fi
15432 ;;
15433
15434 os2*)
15435 hardcode_libdir_flag_spec='-L$libdir'
15436 hardcode_minus_L=yes
15437 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 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 +000015439 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15440 ;;
15441
15442 osf3*)
15443 if test "$GCC" = yes; then
15444 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15445 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'
15446 else
15447 allow_undefined_flag=' -expect_unresolved \*'
15448 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'
15449 fi
15450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15451 hardcode_libdir_separator=:
15452 ;;
15453
15454 osf4* | osf5*) # as osf3* with the addition of -msym flag
15455 if test "$GCC" = yes; then
15456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15457 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'
15458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15459 else
15460 allow_undefined_flag=' -expect_unresolved \*'
15461 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 +000015462 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 +000015463 $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 +000015464
John Criswell47fdd832003-07-14 16:52:07 +000015465 # Both c and cxx compiler support -rpath directly
15466 hardcode_libdir_flag_spec='-rpath $libdir'
15467 fi
15468 hardcode_libdir_separator=:
15469 ;;
15470
John Criswell47fdd832003-07-14 16:52:07 +000015471 solaris*)
15472 no_undefined_flag=' -z text'
15473 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015474 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015475 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015476 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15477 $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 +000015478 else
Reid Spencera773bd52006-08-04 18:18:08 +000015479 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015480 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015481 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482 $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 +000015483 fi
15484 hardcode_libdir_flag_spec='-R$libdir'
15485 hardcode_shlibpath_var=no
15486 case $host_os in
15487 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015488 *)
15489 # The compiler driver will combine linker options so we
15490 # cannot just pass the convience library names through
15491 # without $wl, iff we do not link with $LD.
15492 # Luckily, gcc supports the same syntax we need for Sun Studio.
15493 # Supported since Solaris 2.6 (maybe 2.5.1?)
15494 case $wlarc in
15495 '')
15496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15497 *)
15498 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' ;;
15499 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015500 esac
15501 link_all_deplibs=yes
15502 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015503
John Criswell47fdd832003-07-14 16:52:07 +000015504 sunos4*)
15505 if test "x$host_vendor" = xsequent; then
15506 # Use $CC to link under sequent, because it throws in some extra .o
15507 # files that make .init and .fini sections work.
15508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15509 else
15510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15511 fi
15512 hardcode_libdir_flag_spec='-L$libdir'
15513 hardcode_direct=yes
15514 hardcode_minus_L=yes
15515 hardcode_shlibpath_var=no
15516 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015517
John Criswell47fdd832003-07-14 16:52:07 +000015518 sysv4)
15519 case $host_vendor in
15520 sni)
15521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes # is this really true???
15523 ;;
15524 siemens)
15525 ## LD is ld it makes a PLAMLIB
15526 ## CC just makes a GrossModule.
15527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15528 reload_cmds='$CC -r -o $output$reload_objs'
15529 hardcode_direct=no
15530 ;;
15531 motorola)
15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15534 ;;
15535 esac
15536 runpath_var='LD_RUN_PATH'
15537 hardcode_shlibpath_var=no
15538 ;;
15539
15540 sysv4.3*)
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var=no
15543 export_dynamic_flag_spec='-Bexport'
15544 ;;
15545
15546 sysv4*MP*)
15547 if test -d /usr/nec; then
15548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var=no
15550 runpath_var=LD_RUN_PATH
15551 hardcode_runpath_var=yes
15552 ld_shlibs=yes
15553 fi
15554 ;;
15555
Reid Spencera773bd52006-08-04 18:18:08 +000015556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15557 no_undefined_flag='${wl}-z,text'
15558 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015559 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015560 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015561
John Criswell47fdd832003-07-14 16:52:07 +000015562 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 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 +000015565 else
Reid Spencera773bd52006-08-04 18:18:08 +000015566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 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 +000015568 fi
John Criswell47fdd832003-07-14 16:52:07 +000015569 ;;
15570
Reid Spencera773bd52006-08-04 18:18:08 +000015571 sysv5* | sco3.2v5* | sco5v6*)
15572 # Note: We can NOT use -z defs as we might desire, because we do not
15573 # link with -lc, and that would cause any symbols used from libc to
15574 # always be unresolved, which means just about no library would
15575 # ever link correctly. If we're not using GNU ld we use -z text
15576 # though, which does catch some bad symbols but isn't as heavy-handed
15577 # as -z defs.
15578 no_undefined_flag='${wl}-z,text'
15579 allow_undefined_flag='${wl}-z,nodefs'
15580 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015581 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015582 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15583 hardcode_libdir_separator=':'
15584 link_all_deplibs=yes
15585 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015586 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015587
15588 if test "$GCC" = yes; then
15589 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 else
15592 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 fi
John Criswell47fdd832003-07-14 16:52:07 +000015595 ;;
15596
15597 uts4*)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec='-L$libdir'
15600 hardcode_shlibpath_var=no
15601 ;;
15602
15603 *)
15604 ld_shlibs=no
15605 ;;
15606 esac
15607 fi
15608
Reid Spencera773bd52006-08-04 18:18:08 +000015609{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15610echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015611test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015612
John Criswell47fdd832003-07-14 16:52:07 +000015613#
15614# Do we need to explicitly link libc?
15615#
15616case "x$archive_cmds_need_lc" in
15617x|xyes)
15618 # Assume -lc should be added
15619 archive_cmds_need_lc=yes
15620
15621 if test "$enable_shared" = yes && test "$GCC" = yes; then
15622 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015623 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015624 # FIXME: we may have to deal with multi-command sequences.
15625 ;;
15626 '$CC '*)
15627 # Test whether the compiler implicitly links with -lc since on some
15628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15629 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15631echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015632 $rm conftest*
15633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15634
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } 2>conftest.err; then
15640 soname=conftest
15641 lib=conftest
15642 libobjs=conftest.$ac_objext
15643 deplibs=
15644 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015645 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015646 compiler_flags=-v
15647 linker_flags=-v
15648 verstring=
15649 output_objdir=.
15650 libname=conftest
15651 lt_save_allow_undefined_flag=$allow_undefined_flag
15652 allow_undefined_flag=
15653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15654 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }
15658 then
15659 archive_cmds_need_lc=no
15660 else
15661 archive_cmds_need_lc=yes
15662 fi
15663 allow_undefined_flag=$lt_save_allow_undefined_flag
15664 else
15665 cat conftest.err 1>&5
15666 fi
15667 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15669echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015670 ;;
15671 esac
15672 fi
15673 ;;
15674esac
15675
Reid Spencera773bd52006-08-04 18:18:08 +000015676{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15677echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015678library_names_spec=
15679libname_spec='lib$name'
15680soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015681shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015682postinstall_cmds=
15683postuninstall_cmds=
15684finish_cmds=
15685finish_eval=
15686shlibpath_var=
15687shlibpath_overrides_runpath=unknown
15688version_type=none
15689dynamic_linker="$host_os ld.so"
15690sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015691if test "$GCC" = yes; then
15692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15694 # if the path contains ";" then we assume it to be the separator
15695 # otherwise default to the standard path separator (i.e. ":") - it is
15696 # assumed that no part of a normal pathname contains ";" but that should
15697 # okay in the real world where ";" in dirpaths is itself problematic.
15698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15699 else
15700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15701 fi
15702else
15703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15704fi
15705need_lib_prefix=unknown
15706hardcode_into_libs=no
15707
15708# when you set need_version to no, make sure it does not cause -set_version
15709# flags to be left without arguments
15710need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015711
15712case $host_os in
15713aix3*)
15714 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015716 shlibpath_var=LIBPATH
15717
John Criswell47fdd832003-07-14 16:52:07 +000015718 # AIX 3 has no versioning support, so we append a major version to the name.
15719 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015720 ;;
15721
15722aix4* | aix5*)
15723 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015724 need_lib_prefix=no
15725 need_version=no
15726 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015727 if test "$host_cpu" = ia64; then
15728 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015730 shlibpath_var=LD_LIBRARY_PATH
15731 else
15732 # With GCC up to 2.95.x, collect2 would create an import file
15733 # for dependence libraries. The import file would start with
15734 # the line `#! .'. This would cause the generated library to
15735 # depend on `.', always an invalid library. This was fixed in
15736 # development snapshots of GCC prior to 3.0.
15737 case $host_os in
15738 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15740 echo ' yes '
15741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15742 :
15743 else
15744 can_build_shared=no
15745 fi
15746 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015747 esac
John Criswell47fdd832003-07-14 16:52:07 +000015748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15749 # soname into executable. Probably we can add versioning support to
15750 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015751 if test "$aix_use_runtimelinking" = yes; then
15752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15753 # instead of lib<name>.a to let people know that these are not
15754 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015756 else
15757 # We preserve .a as extension for shared libraries through AIX4.2
15758 # and later when we are not doing run time linking.
15759 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015760 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015761 fi
15762 shlibpath_var=LIBPATH
15763 fi
15764 ;;
15765
15766amigaos*)
15767 library_names_spec='$libname.ixlibrary $libname.a'
15768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015769 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 +000015770 ;;
15771
15772beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015773 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015774 dynamic_linker="$host_os ld.so"
15775 shlibpath_var=LIBRARY_PATH
15776 ;;
15777
Reid Spencer2706f8c2004-09-19 23:53:36 +000015778bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015779 version_type=linux
15780 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015787 # the default ld.so.conf also contains /usr/contrib/lib and
15788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15789 # libtool to hard-code these into programs
15790 ;;
15791
15792cygwin* | mingw* | pw32*)
15793 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015794 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015795 need_version=no
15796 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015797
John Criswell7a73b802003-06-30 21:59:07 +000015798 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015799 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015800 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015802 postinstall_cmds='base_file=`basename \${file}`~
15803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15804 dldir=$destdir/`dirname \$dlpath`~
15805 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015806 $install_prog $dir/$dlname \$dldir/$dlname~
15807 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15809 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015810 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015811 shlibpath_overrides_runpath=yes
15812
15813 case $host_os in
15814 cygwin*)
15815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15816 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 +000015817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015818 ;;
15819 mingw*)
15820 # MinGW DLLs use traditional 'lib' prefix
15821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15824 # It is most probably a Windows format PATH printed by
15825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15826 # path with ; separators, and with drive letters. We can handle the
15827 # drive letters (cygwin fileutils understands them), so leave them,
15828 # especially as we might pass files found there to a mingw objdump,
15829 # which wouldn't understand a cygwinified path. Ahh.
15830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15831 else
15832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15833 fi
15834 ;;
15835 pw32*)
15836 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015837 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 +000015838 ;;
15839 esac
John Criswell7a73b802003-06-30 21:59:07 +000015840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015841
John Criswell7a73b802003-06-30 21:59:07 +000015842 *)
John Criswell47fdd832003-07-14 16:52:07 +000015843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015844 ;;
15845 esac
15846 dynamic_linker='Win32 ld.exe'
15847 # FIXME: first we should search . and the directory the executable is in
15848 shlibpath_var=PATH
15849 ;;
15850
15851darwin* | rhapsody*)
15852 dynamic_linker="$host_os dyld"
15853 version_type=darwin
15854 need_lib_prefix=no
15855 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015857 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015858 shlibpath_overrides_runpath=yes
15859 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015862 if test "$GCC" = yes; then
15863 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"`
15864 else
15865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015866 fi
15867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15868 ;;
15869
15870dgux*)
15871 version_type=linux
15872 need_lib_prefix=no
15873 need_version=no
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015877 ;;
15878
15879freebsd1*)
15880 dynamic_linker=no
15881 ;;
15882
Reid Spencer2706f8c2004-09-19 23:53:36 +000015883kfreebsd*-gnu)
15884 version_type=linux
15885 need_lib_prefix=no
15886 need_version=no
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 shlibpath_var=LD_LIBRARY_PATH
15890 shlibpath_overrides_runpath=no
15891 hardcode_into_libs=yes
15892 dynamic_linker='GNU ld.so'
15893 ;;
15894
Reid Spencera773bd52006-08-04 18:18:08 +000015895freebsd* | dragonfly*)
15896 # DragonFly does not have aout. When/if they implement a new
15897 # versioning mechanism, adjust this.
15898 if test -x /usr/bin/objformat; then
15899 objformat=`/usr/bin/objformat`
15900 else
15901 case $host_os in
15902 freebsd[123]*) objformat=aout ;;
15903 *) objformat=elf ;;
15904 esac
15905 fi
John Criswell7a73b802003-06-30 21:59:07 +000015906 version_type=freebsd-$objformat
15907 case $version_type in
15908 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015910 need_version=no
15911 need_lib_prefix=no
15912 ;;
15913 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015915 need_version=yes
15916 ;;
15917 esac
15918 shlibpath_var=LD_LIBRARY_PATH
15919 case $host_os in
15920 freebsd2*)
15921 shlibpath_overrides_runpath=yes
15922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015923 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015924 shlibpath_overrides_runpath=yes
15925 hardcode_into_libs=yes
15926 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015929 shlibpath_overrides_runpath=no
15930 hardcode_into_libs=yes
15931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015932 freebsd*) # from 4.6 on
15933 shlibpath_overrides_runpath=yes
15934 hardcode_into_libs=yes
15935 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015936 esac
15937 ;;
15938
15939gnu*)
15940 version_type=linux
15941 need_lib_prefix=no
15942 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15944 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015945 shlibpath_var=LD_LIBRARY_PATH
15946 hardcode_into_libs=yes
15947 ;;
15948
15949hpux9* | hpux10* | hpux11*)
15950 # Give a soname corresponding to the major version so that dld.sl refuses to
15951 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015952 version_type=sunos
15953 need_lib_prefix=no
15954 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015955 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015956 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015957 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015958 hardcode_into_libs=yes
15959 dynamic_linker="$host_os dld.so"
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 if test "X$HPUX_IA64_MODE" = X32; then
15965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15966 else
15967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15968 fi
15969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15970 ;;
15971 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015972 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015973 hardcode_into_libs=yes
15974 dynamic_linker="$host_os dld.sl"
15975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15981 ;;
15982 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015983 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015984 dynamic_linker="$host_os dld.sl"
15985 shlibpath_var=SHLIB_PATH
15986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 soname_spec='${libname}${release}${shared_ext}$major'
15989 ;;
15990 esac
John Criswell7a73b802003-06-30 21:59:07 +000015991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15992 postinstall_cmds='chmod 555 $lib'
15993 ;;
15994
Reid Spencera773bd52006-08-04 18:18:08 +000015995interix3*)
15996 version_type=linux
15997 need_lib_prefix=no
15998 need_version=no
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 hardcode_into_libs=yes
16005 ;;
16006
John Criswell47fdd832003-07-14 16:52:07 +000016007irix5* | irix6* | nonstopux*)
16008 case $host_os in
16009 nonstopux*) version_type=nonstopux ;;
16010 *)
16011 if test "$lt_cv_prog_gnu_ld" = yes; then
16012 version_type=linux
16013 else
16014 version_type=irix
16015 fi ;;
16016 esac
John Criswell7a73b802003-06-30 21:59:07 +000016017 need_lib_prefix=no
16018 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016019 soname_spec='${libname}${release}${shared_ext}$major'
16020 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 +000016021 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016022 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016023 libsuff= shlibsuff=
16024 ;;
16025 *)
16026 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16028 libsuff= shlibsuff= libmagic=32-bit;;
16029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16030 libsuff=32 shlibsuff=N32 libmagic=N32;;
16031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016033 *) libsuff= shlibsuff= libmagic=never-match;;
16034 esac
16035 ;;
16036 esac
16037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16038 shlibpath_overrides_runpath=no
16039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016041 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016042 ;;
16043
16044# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016045linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016046 dynamic_linker=no
16047 ;;
16048
16049# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016050linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=no
16059 # This implies no fast_install, which is unacceptable.
16060 # Some rework will be needed to allow for fast_install
16061 # before this can be enabled.
16062 hardcode_into_libs=yes
16063
Reid Spencer2706f8c2004-09-19 23:53:36 +000016064 # Append ld.so.conf contents to the search path
16065 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016066 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 +000016067 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16068 fi
16069
John Criswell7a73b802003-06-30 21:59:07 +000016070 # We used to test for /lib/ld.so.1 and disable shared libraries on
16071 # powerpc, because MkLinux only supported shared libraries with the
16072 # GNU dynamic linker. Since this was broken with cross compilers,
16073 # most powerpc-linux boxes support dynamic linking these days and
16074 # people can always --disable-shared, the test was removed, and we
16075 # assume the GNU/Linux dynamic linker is in use.
16076 dynamic_linker='GNU/Linux ld.so'
16077 ;;
16078
Reid Spencer2706f8c2004-09-19 23:53:36 +000016079knetbsd*-gnu)
16080 version_type=linux
16081 need_lib_prefix=no
16082 need_version=no
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 shlibpath_overrides_runpath=no
16087 hardcode_into_libs=yes
16088 dynamic_linker='GNU ld.so'
16089 ;;
16090
John Criswell7a73b802003-06-30 21:59:07 +000016091netbsd*)
16092 version_type=sunos
16093 need_lib_prefix=no
16094 need_version=no
16095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16098 dynamic_linker='NetBSD (a.out) ld.so'
16099 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016101 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016102 dynamic_linker='NetBSD ld.elf_so'
16103 fi
16104 shlibpath_var=LD_LIBRARY_PATH
16105 shlibpath_overrides_runpath=yes
16106 hardcode_into_libs=yes
16107 ;;
16108
16109newsos6)
16110 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16114 ;;
16115
Reid Spencer2706f8c2004-09-19 23:53:36 +000016116nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016117 version_type=linux
16118 need_lib_prefix=no
16119 need_version=no
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016122 shlibpath_var=LD_LIBRARY_PATH
16123 shlibpath_overrides_runpath=yes
16124 ;;
16125
16126openbsd*)
16127 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016128 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016129 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16131 case $host_os in
16132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16133 *) need_version=no ;;
16134 esac
John Criswell47fdd832003-07-14 16:52:07 +000016135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016138 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 +000016139 case $host_os in
16140 openbsd2.[89] | openbsd2.[89].*)
16141 shlibpath_overrides_runpath=no
16142 ;;
16143 *)
16144 shlibpath_overrides_runpath=yes
16145 ;;
16146 esac
John Criswell7a73b802003-06-30 21:59:07 +000016147 else
16148 shlibpath_overrides_runpath=yes
16149 fi
John Criswell7a73b802003-06-30 21:59:07 +000016150 ;;
16151
16152os2*)
16153 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016154 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016155 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016156 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016157 dynamic_linker='OS/2 ld.exe'
16158 shlibpath_var=LIBPATH
16159 ;;
16160
16161osf3* | osf4* | osf5*)
16162 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016163 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016164 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016165 soname_spec='${libname}${release}${shared_ext}$major'
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016167 shlibpath_var=LD_LIBRARY_PATH
16168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16170 ;;
16171
John Criswell7a73b802003-06-30 21:59:07 +000016172solaris*)
16173 version_type=linux
16174 need_lib_prefix=no
16175 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16181 # ldd complains unless libraries are executable
16182 postinstall_cmds='chmod +x $lib'
16183 ;;
16184
16185sunos4*)
16186 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016188 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16189 shlibpath_var=LD_LIBRARY_PATH
16190 shlibpath_overrides_runpath=yes
16191 if test "$with_gnu_ld" = yes; then
16192 need_lib_prefix=no
16193 fi
16194 need_version=yes
16195 ;;
16196
Reid Spencera773bd52006-08-04 18:18:08 +000016197sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016198 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016201 shlibpath_var=LD_LIBRARY_PATH
16202 case $host_vendor in
16203 sni)
16204 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016205 need_lib_prefix=no
16206 export_dynamic_flag_spec='${wl}-Blargedynsym'
16207 runpath_var=LD_RUN_PATH
16208 ;;
16209 siemens)
16210 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016211 ;;
16212 motorola)
16213 need_lib_prefix=no
16214 need_version=no
16215 shlibpath_overrides_runpath=no
16216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16217 ;;
16218 esac
16219 ;;
16220
John Criswell7a73b802003-06-30 21:59:07 +000016221sysv4*MP*)
16222 if test -d /usr/nec ;then
16223 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16225 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016226 shlibpath_var=LD_LIBRARY_PATH
16227 fi
16228 ;;
16229
Reid Spencera773bd52006-08-04 18:18:08 +000016230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16231 version_type=freebsd-elf
16232 need_lib_prefix=no
16233 need_version=no
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 hardcode_into_libs=yes
16238 if test "$with_gnu_ld" = yes; then
16239 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16240 shlibpath_overrides_runpath=no
16241 else
16242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16243 shlibpath_overrides_runpath=yes
16244 case $host_os in
16245 sco3.2v5*)
16246 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16247 ;;
16248 esac
16249 fi
16250 sys_lib_dlsearch_path_spec='/usr/lib'
16251 ;;
16252
John Criswell47fdd832003-07-14 16:52:07 +000016253uts4*)
16254 version_type=linux
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 ;;
16259
John Criswell7a73b802003-06-30 21:59:07 +000016260*)
16261 dynamic_linker=no
16262 ;;
16263esac
Reid Spencera773bd52006-08-04 18:18:08 +000016264{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16265echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016266test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016267
Reid Spencera773bd52006-08-04 18:18:08 +000016268variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16269if test "$GCC" = yes; then
16270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16271fi
16272
16273{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16274echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016275hardcode_action=
16276if test -n "$hardcode_libdir_flag_spec" || \
16277 test -n "$runpath_var" || \
16278 test "X$hardcode_automatic" = "Xyes" ; then
16279
16280 # We can hardcode non-existant directories.
16281 if test "$hardcode_direct" != no &&
16282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16283 # have to relink, otherwise we might link with an installed library
16284 # when we should be linking with a yet-to-be-installed one
16285 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16286 test "$hardcode_minus_L" != no; then
16287 # Linking always hardcodes the temporary library directory.
16288 hardcode_action=relink
16289 else
16290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16291 hardcode_action=immediate
16292 fi
16293else
16294 # We cannot hardcode anything, or else we can only hardcode existing
16295 # directories.
16296 hardcode_action=unsupported
16297fi
Reid Spencera773bd52006-08-04 18:18:08 +000016298{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16299echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016300
16301if test "$hardcode_action" = relink; then
16302 # Fast installation is not supported
16303 enable_fast_install=no
16304elif test "$shlibpath_overrides_runpath" = yes ||
16305 test "$enable_shared" = no; then
16306 # Fast installation is not necessary
16307 enable_fast_install=needless
16308fi
16309
16310striplib=
16311old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016312{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16313echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16315 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16316 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016317 { echo "$as_me:$LINENO: result: yes" >&5
16318echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016319else
16320# FIXME - insert some real tests, host_os isn't really good enough
16321 case $host_os in
16322 darwin*)
16323 if test -n "$STRIP" ; then
16324 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016325 { echo "$as_me:$LINENO: result: yes" >&5
16326echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016327 else
Reid Spencera773bd52006-08-04 18:18:08 +000016328 { echo "$as_me:$LINENO: result: no" >&5
16329echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016330fi
16331 ;;
16332 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016333 { echo "$as_me:$LINENO: result: no" >&5
16334echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016335 ;;
16336 esac
16337fi
16338
John Criswell7a73b802003-06-30 21:59:07 +000016339if test "x$enable_dlopen" != xyes; then
16340 enable_dlopen=unknown
16341 enable_dlopen_self=unknown
16342 enable_dlopen_self_static=unknown
16343else
16344 lt_cv_dlopen=no
16345 lt_cv_dlopen_libs=
16346
16347 case $host_os in
16348 beos*)
16349 lt_cv_dlopen="load_add_on"
16350 lt_cv_dlopen_libs=
16351 lt_cv_dlopen_self=yes
16352 ;;
16353
John Criswell47fdd832003-07-14 16:52:07 +000016354 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016355 lt_cv_dlopen="LoadLibrary"
16356 lt_cv_dlopen_libs=
16357 ;;
16358
John Criswell47fdd832003-07-14 16:52:07 +000016359 cygwin*)
16360 lt_cv_dlopen="dlopen"
16361 lt_cv_dlopen_libs=
16362 ;;
16363
16364 darwin*)
16365 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016366 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 ac_check_lib_save_LIBS=$LIBS
16372LIBS="-ldl $LIBS"
16373cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016374/* confdefs.h. */
16375_ACEOF
16376cat confdefs.h >>conftest.$ac_ext
16377cat >>conftest.$ac_ext <<_ACEOF
16378/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016379
Reid Spencera773bd52006-08-04 18:18:08 +000016380/* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016383#ifdef __cplusplus
16384extern "C"
16385#endif
John Criswell47fdd832003-07-14 16:52:07 +000016386char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016387int
16388main ()
16389{
Reid Spencera773bd52006-08-04 18:18:08 +000016390return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016396if { (ac_try="$ac_link"
16397case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400esac
16401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423esac
16424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_cv_lib_dl_dlopen=yes
16430else
16431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016432sed 's/^/| /' conftest.$ac_ext >&5
16433
Reid Spencera773bd52006-08-04 18:18:08 +000016434 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016435fi
Reid Spencera773bd52006-08-04 18:18:08 +000016436
16437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016438 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016439LIBS=$ac_check_lib_save_LIBS
16440fi
Reid Spencera773bd52006-08-04 18:18:08 +000016441{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16442echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016443if test $ac_cv_lib_dl_dlopen = yes; then
16444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16445else
16446
16447 lt_cv_dlopen="dyld"
16448 lt_cv_dlopen_libs=
16449 lt_cv_dlopen_self=yes
16450
16451fi
16452
16453 ;;
16454
John Criswell7a73b802003-06-30 21:59:07 +000016455 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016456 { echo "$as_me:$LINENO: checking for shl_load" >&5
16457echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016458if test "${ac_cv_func_shl_load+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460else
16461 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016462/* confdefs.h. */
16463_ACEOF
16464cat confdefs.h >>conftest.$ac_ext
16465cat >>conftest.$ac_ext <<_ACEOF
16466/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016467/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16469#define shl_load innocuous_shl_load
16470
John Criswell7a73b802003-06-30 21:59:07 +000016471/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016472 which can conflict with char shl_load (); below.
16473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16474 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016475
John Criswell0c38eaf2003-09-10 15:17:25 +000016476#ifdef __STDC__
16477# include <limits.h>
16478#else
16479# include <assert.h>
16480#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016481
16482#undef shl_load
16483
Reid Spencera773bd52006-08-04 18:18:08 +000016484/* Override any GCC internal prototype to avoid an error.
16485 Use char because int might match the return type of a GCC
16486 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016487#ifdef __cplusplus
16488extern "C"
16489#endif
John Criswell7a73b802003-06-30 21:59:07 +000016490char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016491/* The GNU C library defines this for functions which it implements
16492 to always fail with ENOSYS. Some functions are actually named
16493 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016494#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016495choke me
John Criswell7a73b802003-06-30 21:59:07 +000016496#endif
16497
John Criswell0c38eaf2003-09-10 15:17:25 +000016498int
16499main ()
16500{
Reid Spencera773bd52006-08-04 18:18:08 +000016501return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016507if { (ac_try="$ac_link"
16508case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016515 grep -v '^ *+' conftest.er1 >conftest.err
16516 rm -f conftest.er1
16517 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; } &&
16530 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534esac
16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_func_shl_load=yes
16541else
16542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016543sed 's/^/| /' conftest.$ac_ext >&5
16544
Reid Spencera773bd52006-08-04 18:18:08 +000016545 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016546fi
Reid Spencera773bd52006-08-04 18:18:08 +000016547
16548rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016549 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016550fi
Reid Spencera773bd52006-08-04 18:18:08 +000016551{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16552echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016553if test $ac_cv_func_shl_load = yes; then
16554 lt_cv_dlopen="shl_load"
16555else
Reid Spencera773bd52006-08-04 18:18:08 +000016556 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16557echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016558if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560else
16561 ac_check_lib_save_LIBS=$LIBS
16562LIBS="-ldld $LIBS"
16563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016569
Reid Spencera773bd52006-08-04 18:18:08 +000016570/* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016573#ifdef __cplusplus
16574extern "C"
16575#endif
John Criswell7a73b802003-06-30 21:59:07 +000016576char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016577int
16578main ()
16579{
Reid Spencera773bd52006-08-04 18:18:08 +000016580return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016581 ;
16582 return 0;
16583}
16584_ACEOF
16585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016586if { (ac_try="$ac_link"
16587case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590esac
16591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603esac
16604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016610 { (case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613esac
16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_lib_dld_shl_load=yes
16620else
16621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016622sed 's/^/| /' conftest.$ac_ext >&5
16623
Reid Spencera773bd52006-08-04 18:18:08 +000016624 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016625fi
Reid Spencera773bd52006-08-04 18:18:08 +000016626
16627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016628 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016629LIBS=$ac_check_lib_save_LIBS
16630fi
Reid Spencera773bd52006-08-04 18:18:08 +000016631{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16632echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016633if test $ac_cv_lib_dld_shl_load = yes; then
16634 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16635else
Reid Spencera773bd52006-08-04 18:18:08 +000016636 { echo "$as_me:$LINENO: checking for dlopen" >&5
16637echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016638if test "${ac_cv_func_dlopen+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649#define dlopen innocuous_dlopen
16650
John Criswell7a73b802003-06-30 21:59:07 +000016651/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016652 which can conflict with char dlopen (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016655
John Criswell0c38eaf2003-09-10 15:17:25 +000016656#ifdef __STDC__
16657# include <limits.h>
16658#else
16659# include <assert.h>
16660#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016661
16662#undef dlopen
16663
Reid Spencera773bd52006-08-04 18:18:08 +000016664/* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016667#ifdef __cplusplus
16668extern "C"
16669#endif
John Criswell7a73b802003-06-30 21:59:07 +000016670char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016671/* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016674#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016675choke me
John Criswell7a73b802003-06-30 21:59:07 +000016676#endif
16677
John Criswell0c38eaf2003-09-10 15:17:25 +000016678int
16679main ()
16680{
Reid Spencera773bd52006-08-04 18:18:08 +000016681return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016682 ;
16683 return 0;
16684}
16685_ACEOF
16686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016687if { (ac_try="$ac_link"
16688case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691esac
16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701 { (case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704esac
16705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016711 { (case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714esac
16715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_cv_func_dlopen=yes
16721else
16722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016723sed 's/^/| /' conftest.$ac_ext >&5
16724
Reid Spencera773bd52006-08-04 18:18:08 +000016725 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016726fi
Reid Spencera773bd52006-08-04 18:18:08 +000016727
16728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016729 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016730fi
Reid Spencera773bd52006-08-04 18:18:08 +000016731{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16732echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016733if test $ac_cv_func_dlopen = yes; then
16734 lt_cv_dlopen="dlopen"
16735else
Reid Spencera773bd52006-08-04 18:18:08 +000016736 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16737echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016738if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740else
16741 ac_check_lib_save_LIBS=$LIBS
16742LIBS="-ldl $LIBS"
16743cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016749
Reid Spencera773bd52006-08-04 18:18:08 +000016750/* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016753#ifdef __cplusplus
16754extern "C"
16755#endif
John Criswell7a73b802003-06-30 21:59:07 +000016756char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016757int
16758main ()
16759{
Reid Spencera773bd52006-08-04 18:18:08 +000016760return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016766if { (ac_try="$ac_link"
16767case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793esac
16794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_lib_dl_dlopen=yes
16800else
16801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016802sed 's/^/| /' conftest.$ac_ext >&5
16803
Reid Spencera773bd52006-08-04 18:18:08 +000016804 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016805fi
Reid Spencera773bd52006-08-04 18:18:08 +000016806
16807rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016808 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016809LIBS=$ac_check_lib_save_LIBS
16810fi
Reid Spencera773bd52006-08-04 18:18:08 +000016811{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16812echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016813if test $ac_cv_lib_dl_dlopen = yes; then
16814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16815else
Reid Spencera773bd52006-08-04 18:18:08 +000016816 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16817echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016818if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 ac_check_lib_save_LIBS=$LIBS
16822LIBS="-lsvld $LIBS"
16823cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016824/* confdefs.h. */
16825_ACEOF
16826cat confdefs.h >>conftest.$ac_ext
16827cat >>conftest.$ac_ext <<_ACEOF
16828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016829
Reid Spencera773bd52006-08-04 18:18:08 +000016830/* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016833#ifdef __cplusplus
16834extern "C"
16835#endif
John Criswell7a73b802003-06-30 21:59:07 +000016836char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016837int
16838main ()
16839{
Reid Spencera773bd52006-08-04 18:18:08 +000016840return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016841 ;
16842 return 0;
16843}
16844_ACEOF
16845rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016846if { (ac_try="$ac_link"
16847case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850esac
16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016870 { (case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16873esac
16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 ac_cv_lib_svld_dlopen=yes
16880else
16881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016882sed 's/^/| /' conftest.$ac_ext >&5
16883
Reid Spencera773bd52006-08-04 18:18:08 +000016884 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016885fi
Reid Spencera773bd52006-08-04 18:18:08 +000016886
16887rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016888 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016889LIBS=$ac_check_lib_save_LIBS
16890fi
Reid Spencera773bd52006-08-04 18:18:08 +000016891{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16892echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016893if test $ac_cv_lib_svld_dlopen = yes; then
16894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16895else
Reid Spencera773bd52006-08-04 18:18:08 +000016896 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16897echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016898if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900else
16901 ac_check_lib_save_LIBS=$LIBS
16902LIBS="-ldld $LIBS"
16903cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016909
Reid Spencera773bd52006-08-04 18:18:08 +000016910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016913#ifdef __cplusplus
16914extern "C"
16915#endif
John Criswell7a73b802003-06-30 21:59:07 +000016916char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016917int
16918main ()
16919{
Reid Spencera773bd52006-08-04 18:18:08 +000016920return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016921 ;
16922 return 0;
16923}
16924_ACEOF
16925rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016926if { (ac_try="$ac_link"
16927case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930esac
16931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016933 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016934 grep -v '^ *+' conftest.er1 >conftest.err
16935 rm -f conftest.er1
16936 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943esac
16944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_lib_dld_dld_link=yes
16960else
16961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016962sed 's/^/| /' conftest.$ac_ext >&5
16963
Reid Spencera773bd52006-08-04 18:18:08 +000016964 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016965fi
Reid Spencera773bd52006-08-04 18:18:08 +000016966
16967rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016968 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016969LIBS=$ac_check_lib_save_LIBS
16970fi
Reid Spencera773bd52006-08-04 18:18:08 +000016971{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16972echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016973if test $ac_cv_lib_dld_dld_link = yes; then
16974 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16975fi
16976
16977
16978fi
16979
16980
16981fi
16982
16983
16984fi
16985
16986
16987fi
16988
16989
16990fi
16991
16992 ;;
16993 esac
16994
16995 if test "x$lt_cv_dlopen" != xno; then
16996 enable_dlopen=yes
16997 else
16998 enable_dlopen=no
16999 fi
17000
17001 case $lt_cv_dlopen in
17002 dlopen)
17003 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017004 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017005
17006 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017008
17009 save_LIBS="$LIBS"
17010 LIBS="$lt_cv_dlopen_libs $LIBS"
17011
Reid Spencera773bd52006-08-04 18:18:08 +000017012 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17013echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017014if test "${lt_cv_dlopen_self+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016else
17017 if test "$cross_compiling" = yes; then :
17018 lt_cv_dlopen_self=cross
17019else
John Criswell47fdd832003-07-14 16:52:07 +000017020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017021 lt_status=$lt_dlunknown
17022 cat > conftest.$ac_ext <<EOF
Reid Spencer466207a2007-01-20 20:45:39 +000017023#line 17023 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017024#include "confdefs.h"
17025
17026#if HAVE_DLFCN_H
17027#include <dlfcn.h>
17028#endif
17029
17030#include <stdio.h>
17031
17032#ifdef RTLD_GLOBAL
17033# define LT_DLGLOBAL RTLD_GLOBAL
17034#else
17035# ifdef DL_GLOBAL
17036# define LT_DLGLOBAL DL_GLOBAL
17037# else
17038# define LT_DLGLOBAL 0
17039# endif
17040#endif
17041
17042/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17043 find out it does not work in some platform. */
17044#ifndef LT_DLLAZY_OR_NOW
17045# ifdef RTLD_LAZY
17046# define LT_DLLAZY_OR_NOW RTLD_LAZY
17047# else
17048# ifdef DL_LAZY
17049# define LT_DLLAZY_OR_NOW DL_LAZY
17050# else
17051# ifdef RTLD_NOW
17052# define LT_DLLAZY_OR_NOW RTLD_NOW
17053# else
17054# ifdef DL_NOW
17055# define LT_DLLAZY_OR_NOW DL_NOW
17056# else
17057# define LT_DLLAZY_OR_NOW 0
17058# endif
17059# endif
17060# endif
17061# endif
17062#endif
17063
17064#ifdef __cplusplus
17065extern "C" void exit (int);
17066#endif
17067
17068void fnord() { int i=42;}
17069int main ()
17070{
17071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17072 int status = $lt_dlunknown;
17073
17074 if (self)
17075 {
17076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17077 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17078 /* dlclose (self); */
17079 }
Reid Spencera773bd52006-08-04 18:18:08 +000017080 else
17081 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017082
17083 exit (status);
17084}
17085EOF
17086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17087 (eval $ac_link) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017091 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017092 lt_status=$?
17093 case x$lt_status in
17094 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17095 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017096 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017097 esac
17098 else :
17099 # compilation failed
17100 lt_cv_dlopen_self=no
17101 fi
17102fi
17103rm -fr conftest*
17104
17105
17106fi
Reid Spencera773bd52006-08-04 18:18:08 +000017107{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17108echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017109
17110 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17112 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17113echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017114if test "${lt_cv_dlopen_self_static+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 if test "$cross_compiling" = yes; then :
17118 lt_cv_dlopen_self_static=cross
17119else
John Criswell47fdd832003-07-14 16:52:07 +000017120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017121 lt_status=$lt_dlunknown
17122 cat > conftest.$ac_ext <<EOF
Reid Spencer466207a2007-01-20 20:45:39 +000017123#line 17123 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017124#include "confdefs.h"
17125
17126#if HAVE_DLFCN_H
17127#include <dlfcn.h>
17128#endif
17129
17130#include <stdio.h>
17131
17132#ifdef RTLD_GLOBAL
17133# define LT_DLGLOBAL RTLD_GLOBAL
17134#else
17135# ifdef DL_GLOBAL
17136# define LT_DLGLOBAL DL_GLOBAL
17137# else
17138# define LT_DLGLOBAL 0
17139# endif
17140#endif
17141
17142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17143 find out it does not work in some platform. */
17144#ifndef LT_DLLAZY_OR_NOW
17145# ifdef RTLD_LAZY
17146# define LT_DLLAZY_OR_NOW RTLD_LAZY
17147# else
17148# ifdef DL_LAZY
17149# define LT_DLLAZY_OR_NOW DL_LAZY
17150# else
17151# ifdef RTLD_NOW
17152# define LT_DLLAZY_OR_NOW RTLD_NOW
17153# else
17154# ifdef DL_NOW
17155# define LT_DLLAZY_OR_NOW DL_NOW
17156# else
17157# define LT_DLLAZY_OR_NOW 0
17158# endif
17159# endif
17160# endif
17161# endif
17162#endif
17163
17164#ifdef __cplusplus
17165extern "C" void exit (int);
17166#endif
17167
17168void fnord() { int i=42;}
17169int main ()
17170{
17171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17172 int status = $lt_dlunknown;
17173
17174 if (self)
17175 {
17176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17178 /* dlclose (self); */
17179 }
Reid Spencera773bd52006-08-04 18:18:08 +000017180 else
17181 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017182
17183 exit (status);
17184}
17185EOF
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017191 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017192 lt_status=$?
17193 case x$lt_status in
17194 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17195 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017196 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017197 esac
17198 else :
17199 # compilation failed
17200 lt_cv_dlopen_self_static=no
17201 fi
17202fi
17203rm -fr conftest*
17204
17205
17206fi
Reid Spencera773bd52006-08-04 18:18:08 +000017207{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17208echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017209 fi
17210
17211 CPPFLAGS="$save_CPPFLAGS"
17212 LDFLAGS="$save_LDFLAGS"
17213 LIBS="$save_LIBS"
17214 ;;
17215 esac
17216
17217 case $lt_cv_dlopen_self in
17218 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17219 *) enable_dlopen_self=unknown ;;
17220 esac
17221
17222 case $lt_cv_dlopen_self_static in
17223 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17224 *) enable_dlopen_self_static=unknown ;;
17225 esac
17226fi
17227
17228
Reid Spencera773bd52006-08-04 18:18:08 +000017229# Report which library types will actually be built
17230{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17231echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17232{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17233echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017234
Reid Spencera773bd52006-08-04 18:18:08 +000017235{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17236echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017237test "$can_build_shared" = "no" && enable_shared=no
17238
17239# On AIX, shared libraries and static libraries use the same namespace, and
17240# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017241case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017242aix3*)
17243 test "$enable_shared" = yes && enable_static=no
17244 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017245 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017246 postinstall_cmds='$RANLIB $lib'
17247 fi
17248 ;;
17249
Reid Spencer2706f8c2004-09-19 23:53:36 +000017250aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017251 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17252 test "$enable_shared" = yes && enable_static=no
17253 fi
John Criswell7a73b802003-06-30 21:59:07 +000017254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017255esac
Reid Spencera773bd52006-08-04 18:18:08 +000017256{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17257echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017258
Reid Spencera773bd52006-08-04 18:18:08 +000017259{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17260echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017261# Make sure either enable_shared or enable_static is yes.
17262test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017263{ echo "$as_me:$LINENO: result: $enable_static" >&5
17264echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017265
17266# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017267# libtool distribution, otherwise you forgot to ship ltmain.sh
17268# with your package, and you will get complaints that there are
17269# no rules to generate ltmain.sh.
17270if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017271 # See if we are running on zsh, and set the options which allow our commands through
17272 # without removal of \ escapes.
17273 if test -n "${ZSH_VERSION+set}" ; then
17274 setopt NO_GLOB_SUBST
17275 fi
John Criswell7a73b802003-06-30 21:59:07 +000017276 # Now quote all the things that may contain metacharacters while being
17277 # careful not to overquote the AC_SUBSTed values. We take copies of the
17278 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017279 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 +000017280 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17283 deplibs_check_method reload_flag reload_cmds need_locks \
17284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17285 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017287 old_postinstall_cmds old_postuninstall_cmds \
17288 compiler \
17289 CC \
17290 LD \
17291 lt_prog_compiler_wl \
17292 lt_prog_compiler_pic \
17293 lt_prog_compiler_static \
17294 lt_prog_compiler_no_builtin_flag \
17295 export_dynamic_flag_spec \
17296 thread_safe_flag_spec \
17297 whole_archive_flag_spec \
17298 enable_shared_with_static_runtimes \
17299 old_archive_cmds \
17300 old_archive_from_new_cmds \
17301 predep_objects \
17302 postdep_objects \
17303 predeps \
17304 postdeps \
17305 compiler_lib_search_path \
17306 archive_cmds \
17307 archive_expsym_cmds \
17308 postinstall_cmds \
17309 postuninstall_cmds \
17310 old_archive_from_expsyms_cmds \
17311 allow_undefined_flag \
17312 no_undefined_flag \
17313 export_symbols_cmds \
17314 hardcode_libdir_flag_spec \
17315 hardcode_libdir_flag_spec_ld \
17316 hardcode_libdir_separator \
17317 hardcode_automatic \
17318 module_cmds \
17319 module_expsym_cmds \
17320 lt_cv_prog_compiler_c_o \
17321 exclude_expsyms \
17322 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017323
17324 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017325 old_archive_cmds | \
17326 old_archive_from_new_cmds | \
17327 archive_cmds | \
17328 archive_expsym_cmds | \
17329 module_cmds | \
17330 module_expsym_cmds | \
17331 old_archive_from_expsyms_cmds | \
17332 export_symbols_cmds | \
17333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017334 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017335 old_postinstall_cmds | old_postuninstall_cmds | \
17336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017337 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017338 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 +000017339 ;;
17340 *)
17341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17342 ;;
17343 esac
17344 done
17345
John Criswell47fdd832003-07-14 16:52:07 +000017346 case $lt_echo in
17347 *'\$0 --fallback-echo"')
17348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17349 ;;
17350 esac
17351
17352cfgfile="${ofile}T"
17353 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17354 $rm -f "$cfgfile"
17355 { echo "$as_me:$LINENO: creating $ofile" >&5
17356echo "$as_me: creating $ofile" >&6;}
17357
17358 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017359#! $SHELL
17360
John Criswell47fdd832003-07-14 16:52:07 +000017361# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017362# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17363# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17364#
John Criswell47fdd832003-07-14 16:52:07 +000017365# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17366# Free Software Foundation, Inc.
17367#
17368# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017369# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17370#
17371# This program is free software; you can redistribute it and/or modify
17372# it under the terms of the GNU General Public License as published by
17373# the Free Software Foundation; either version 2 of the License, or
17374# (at your option) any later version.
17375#
17376# This program is distributed in the hope that it will be useful, but
17377# WITHOUT ANY WARRANTY; without even the implied warranty of
17378# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17379# General Public License for more details.
17380#
17381# You should have received a copy of the GNU General Public License
17382# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017383# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017384#
17385# As a special exception to the GNU General Public License, if you
17386# distribute this file as part of a program that contains a
17387# configuration script generated by Autoconf, you may include it under
17388# the same distribution terms that you use for the rest of that program.
17389
John Criswell47fdd832003-07-14 16:52:07 +000017390# A sed program that does not truncate output.
17391SED=$lt_SED
17392
John Criswell7a73b802003-06-30 21:59:07 +000017393# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017394Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017395
17396# The HP-UX ksh and POSIX shell print the target directory to stdout
17397# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017398(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017399
John Criswell47fdd832003-07-14 16:52:07 +000017400# The names of the tagged configurations supported by this script.
17401available_tags=
17402
John Criswell7a73b802003-06-30 21:59:07 +000017403# ### BEGIN LIBTOOL CONFIG
17404
17405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17406
17407# Shell to use when invoking shell scripts.
17408SHELL=$lt_SHELL
17409
17410# Whether or not to build shared libraries.
17411build_libtool_libs=$enable_shared
17412
17413# Whether or not to build static libraries.
17414build_old_libs=$enable_static
17415
17416# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017417build_libtool_need_lc=$archive_cmds_need_lc
17418
17419# Whether or not to disallow shared libs when runtime libs are static
17420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017421
17422# Whether or not to optimize for fast installation.
17423fast_install=$enable_fast_install
17424
17425# The host system.
17426host_alias=$host_alias
17427host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017428host_os=$host_os
17429
17430# The build system.
17431build_alias=$build_alias
17432build=$build
17433build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017434
17435# An echo program that does not interpret backslashes.
17436echo=$lt_echo
17437
17438# The archiver.
17439AR=$lt_AR
17440AR_FLAGS=$lt_AR_FLAGS
17441
John Criswell47fdd832003-07-14 16:52:07 +000017442# A C compiler.
17443LTCC=$lt_LTCC
17444
Reid Spencera773bd52006-08-04 18:18:08 +000017445# LTCC compiler flags.
17446LTCFLAGS=$lt_LTCFLAGS
17447
John Criswell47fdd832003-07-14 16:52:07 +000017448# A language-specific compiler.
17449CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017450
17451# Is the compiler the GNU C compiler?
17452with_gcc=$GCC
17453
John Criswell47fdd832003-07-14 16:52:07 +000017454# An ERE matcher.
17455EGREP=$lt_EGREP
17456
John Criswell7a73b802003-06-30 21:59:07 +000017457# The linker used to build libraries.
17458LD=$lt_LD
17459
17460# Whether we need hard or soft links.
17461LN_S=$lt_LN_S
17462
17463# A BSD-compatible nm program.
17464NM=$lt_NM
17465
17466# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017467STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017468
17469# Used to examine libraries when file_magic_cmd begins "file"
17470MAGIC_CMD=$MAGIC_CMD
17471
17472# Used on cygwin: DLL creation program.
17473DLLTOOL="$DLLTOOL"
17474
17475# Used on cygwin: object dumper.
17476OBJDUMP="$OBJDUMP"
17477
17478# Used on cygwin: assembler.
17479AS="$AS"
17480
17481# The name of the directory that contains temporary libtool files.
17482objdir=$objdir
17483
17484# How to create reloadable object files.
17485reload_flag=$lt_reload_flag
17486reload_cmds=$lt_reload_cmds
17487
17488# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017489wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017490
17491# Object file suffix (normally "o").
17492objext="$ac_objext"
17493
17494# Old archive suffix (normally "a").
17495libext="$libext"
17496
John Criswell47fdd832003-07-14 16:52:07 +000017497# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017498shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017499
John Criswell7a73b802003-06-30 21:59:07 +000017500# Executable file suffix (normally "").
17501exeext="$exeext"
17502
17503# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017504pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017505pic_mode=$pic_mode
17506
John Criswell47fdd832003-07-14 16:52:07 +000017507# What is the maximum length of a command?
17508max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017509
John Criswell47fdd832003-07-14 16:52:07 +000017510# Does compiler simultaneously support -c and -o options?
17511compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017512
Reid Spencera773bd52006-08-04 18:18:08 +000017513# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017514need_locks=$lt_need_locks
17515
17516# Do we need the lib prefix for modules?
17517need_lib_prefix=$need_lib_prefix
17518
17519# Do we need a version for libraries?
17520need_version=$need_version
17521
17522# Whether dlopen is supported.
17523dlopen_support=$enable_dlopen
17524
17525# Whether dlopen of programs is supported.
17526dlopen_self=$enable_dlopen_self
17527
17528# Whether dlopen of statically linked programs is supported.
17529dlopen_self_static=$enable_dlopen_self_static
17530
17531# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017532link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017533
17534# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017536
17537# Compiler flag to allow reflexive dlopens.
17538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17539
17540# Compiler flag to generate shared objects directly from archives.
17541whole_archive_flag_spec=$lt_whole_archive_flag_spec
17542
17543# Compiler flag to generate thread-safe objects.
17544thread_safe_flag_spec=$lt_thread_safe_flag_spec
17545
17546# Library versioning type.
17547version_type=$version_type
17548
17549# Format of library name prefix.
17550libname_spec=$lt_libname_spec
17551
17552# List of archive names. First name is the real one, the rest are links.
17553# The last name is the one that the linker finds with -lNAME.
17554library_names_spec=$lt_library_names_spec
17555
17556# The coded name of the library, if different from the real name.
17557soname_spec=$lt_soname_spec
17558
17559# Commands used to build and install an old-style archive.
17560RANLIB=$lt_RANLIB
17561old_archive_cmds=$lt_old_archive_cmds
17562old_postinstall_cmds=$lt_old_postinstall_cmds
17563old_postuninstall_cmds=$lt_old_postuninstall_cmds
17564
17565# Create an old-style archive from a shared archive.
17566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17567
17568# Create a temporary old-style archive to link instead of a shared archive.
17569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17570
17571# Commands used to build and install a shared archive.
17572archive_cmds=$lt_archive_cmds
17573archive_expsym_cmds=$lt_archive_expsym_cmds
17574postinstall_cmds=$lt_postinstall_cmds
17575postuninstall_cmds=$lt_postuninstall_cmds
17576
John Criswell47fdd832003-07-14 16:52:07 +000017577# Commands used to build a loadable module (assumed same as above if empty)
17578module_cmds=$lt_module_cmds
17579module_expsym_cmds=$lt_module_expsym_cmds
17580
John Criswell7a73b802003-06-30 21:59:07 +000017581# Commands to strip libraries.
17582old_striplib=$lt_old_striplib
17583striplib=$lt_striplib
17584
John Criswell47fdd832003-07-14 16:52:07 +000017585# Dependencies to place before the objects being linked to create a
17586# shared library.
17587predep_objects=$lt_predep_objects
17588
17589# Dependencies to place after the objects being linked to create a
17590# shared library.
17591postdep_objects=$lt_postdep_objects
17592
17593# Dependencies to place before the objects being linked to create a
17594# shared library.
17595predeps=$lt_predeps
17596
17597# Dependencies to place after the objects being linked to create a
17598# shared library.
17599postdeps=$lt_postdeps
17600
17601# The library search path used internally by the compiler when linking
17602# a shared library.
17603compiler_lib_search_path=$lt_compiler_lib_search_path
17604
John Criswell7a73b802003-06-30 21:59:07 +000017605# Method to check whether dependent libraries are shared objects.
17606deplibs_check_method=$lt_deplibs_check_method
17607
17608# Command to use when deplibs_check_method == file_magic.
17609file_magic_cmd=$lt_file_magic_cmd
17610
17611# Flag that allows shared libraries with undefined symbols to be built.
17612allow_undefined_flag=$lt_allow_undefined_flag
17613
17614# Flag that forces no undefined symbols.
17615no_undefined_flag=$lt_no_undefined_flag
17616
17617# Commands used to finish a libtool library installation in a directory.
17618finish_cmds=$lt_finish_cmds
17619
17620# Same as above, but a single script fragment to be evaled but not shown.
17621finish_eval=$lt_finish_eval
17622
17623# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017624global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017625
17626# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017627global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017628
17629# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017630global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017631
17632# This is the shared library runtime path variable.
17633runpath_var=$runpath_var
17634
17635# This is the shared library path variable.
17636shlibpath_var=$shlibpath_var
17637
17638# Is shlibpath searched before the hard-coded library search path?
17639shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17640
17641# How to hardcode a shared library path into an executable.
17642hardcode_action=$hardcode_action
17643
17644# Whether we should hardcode library paths into libraries.
17645hardcode_into_libs=$hardcode_into_libs
17646
17647# Flag to hardcode \$libdir into a binary during linking.
17648# This must work even if \$libdir does not exist.
17649hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17650
John Criswell47fdd832003-07-14 16:52:07 +000017651# If ld is used when linking, flag to hardcode \$libdir into
17652# a binary during linking. This must work even if \$libdir does
17653# not exist.
17654hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17655
John Criswell7a73b802003-06-30 21:59:07 +000017656# Whether we need a single -rpath flag with a separated argument.
17657hardcode_libdir_separator=$lt_hardcode_libdir_separator
17658
John Criswell47fdd832003-07-14 16:52:07 +000017659# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017660# resulting binary.
17661hardcode_direct=$hardcode_direct
17662
17663# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17664# resulting binary.
17665hardcode_minus_L=$hardcode_minus_L
17666
17667# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17668# the resulting binary.
17669hardcode_shlibpath_var=$hardcode_shlibpath_var
17670
John Criswell47fdd832003-07-14 16:52:07 +000017671# Set to yes if building a shared library automatically hardcodes DIR into the library
17672# and all subsequent libraries and executables linked against it.
17673hardcode_automatic=$hardcode_automatic
17674
John Criswell7a73b802003-06-30 21:59:07 +000017675# Variables whose values should be saved in libtool wrapper scripts and
17676# restored at relink time.
17677variables_saved_for_relink="$variables_saved_for_relink"
17678
17679# Whether libtool must link a program against all its dependency libraries.
17680link_all_deplibs=$link_all_deplibs
17681
17682# Compile-time system search path for libraries
17683sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17684
17685# Run-time system search path for libraries
17686sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17687
17688# Fix the shell variable \$srcfile for the compiler.
17689fix_srcfile_path="$fix_srcfile_path"
17690
17691# Set to yes if exported symbols are required.
17692always_export_symbols=$always_export_symbols
17693
17694# The commands to list exported symbols.
17695export_symbols_cmds=$lt_export_symbols_cmds
17696
17697# The commands to extract the exported symbol list from a shared archive.
17698extract_expsyms_cmds=$lt_extract_expsyms_cmds
17699
17700# Symbols that should not be listed in the preloaded symbols.
17701exclude_expsyms=$lt_exclude_expsyms
17702
17703# Symbols that must always be exported.
17704include_expsyms=$lt_include_expsyms
17705
17706# ### END LIBTOOL CONFIG
17707
17708__EOF__
17709
John Criswell47fdd832003-07-14 16:52:07 +000017710
John Criswell7a73b802003-06-30 21:59:07 +000017711 case $host_os in
17712 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017713 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017714
17715# AIX sometimes has problems with the GCC collect2 program. For some
17716# reason, if we set the COLLECT_NAMES environment variable, the problems
17717# vanish in a puff of smoke.
17718if test "X${COLLECT_NAMES+set}" != Xset; then
17719 COLLECT_NAMES=
17720 export COLLECT_NAMES
17721fi
17722EOF
17723 ;;
17724 esac
17725
John Criswell7a73b802003-06-30 21:59:07 +000017726 # We use sed instead of cat because bash on DJGPP gets confused if
17727 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17728 # text mode, it properly converts lines to CR/LF. This bash problem
17729 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017730 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017731
John Criswell47fdd832003-07-14 16:52:07 +000017732 mv -f "$cfgfile" "$ofile" || \
17733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017734 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017735
17736else
17737 # If there is no Makefile yet, we rely on a make rule to execute
17738 # `config.status --recheck' to rerun these tests and create the
17739 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17741 if test -f "$ltmain_in"; then
17742 test -f Makefile && make "$ltmain"
17743 fi
John Criswell7a73b802003-06-30 21:59:07 +000017744fi
John Criswell7a73b802003-06-30 21:59:07 +000017745
17746
John Criswell47fdd832003-07-14 16:52:07 +000017747ac_ext=c
17748ac_cpp='$CPP $CPPFLAGS'
17749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17751ac_compiler_gnu=$ac_cv_c_compiler_gnu
17752
17753CC="$lt_save_CC"
17754
17755
Reid Spencera773bd52006-08-04 18:18:08 +000017756# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017757if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017758 withval=$with_tags; tagnames="$withval"
17759fi
17760
John Criswell47fdd832003-07-14 16:52:07 +000017761
17762if test -f "$ltmain" && test -n "$tagnames"; then
17763 if test ! -f "${ofile}"; then
17764 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17765echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17766 fi
17767
17768 if test -z "$LTCC"; then
17769 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17770 if test -z "$LTCC"; then
17771 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17772echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17773 else
17774 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17775echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17776 fi
17777 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017778 if test -z "$LTCFLAGS"; then
17779 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17780 fi
John Criswell47fdd832003-07-14 16:52:07 +000017781
17782 # Extract list of available tagged configurations in $ofile.
17783 # Note that this assumes the entire list is on one line.
17784 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17785
17786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17787 for tagname in $tagnames; do
17788 IFS="$lt_save_ifs"
17789 # Check whether tagname contains only valid characters
17790 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17791 "") ;;
17792 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17793echo "$as_me: error: invalid tag name: $tagname" >&2;}
17794 { (exit 1); exit 1; }; }
17795 ;;
17796 esac
17797
17798 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17799 then
17800 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17801echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17802 { (exit 1); exit 1; }; }
17803 fi
17804
17805 # Update the list of available tags.
17806 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017807 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017808
17809 case $tagname in
17810 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017811 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17812 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17813 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017814 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017815ac_cpp='$CXXCPP $CPPFLAGS'
17816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17819
17820
17821
17822
17823archive_cmds_need_lc_CXX=no
17824allow_undefined_flag_CXX=
17825always_export_symbols_CXX=no
17826archive_expsym_cmds_CXX=
17827export_dynamic_flag_spec_CXX=
17828hardcode_direct_CXX=no
17829hardcode_libdir_flag_spec_CXX=
17830hardcode_libdir_flag_spec_ld_CXX=
17831hardcode_libdir_separator_CXX=
17832hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017833hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017834hardcode_automatic_CXX=no
17835module_cmds_CXX=
17836module_expsym_cmds_CXX=
17837link_all_deplibs_CXX=unknown
17838old_archive_cmds_CXX=$old_archive_cmds
17839no_undefined_flag_CXX=
17840whole_archive_flag_spec_CXX=
17841enable_shared_with_static_runtimes_CXX=no
17842
17843# Dependencies to place before and after the object being linked:
17844predep_objects_CXX=
17845postdep_objects_CXX=
17846predeps_CXX=
17847postdeps_CXX=
17848compiler_lib_search_path_CXX=
17849
17850# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017851ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017852
17853# Object file extension for compiled C++ test sources.
17854objext=o
17855objext_CXX=$objext
17856
17857# Code to be used in simple compile tests
17858lt_simple_compile_test_code="int some_variable = 0;\n"
17859
17860# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017861lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017862
17863# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17864
17865# If no C compiler was specified, use CC.
17866LTCC=${LTCC-"$CC"}
17867
Reid Spencera773bd52006-08-04 18:18:08 +000017868# If no C compiler flags were specified, use CFLAGS.
17869LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17870
John Criswell47fdd832003-07-14 16:52:07 +000017871# Allow CC to be a program name with arguments.
17872compiler=$CC
17873
17874
Reid Spencera773bd52006-08-04 18:18:08 +000017875# save warnings/boilerplate of simple test code
17876ac_outfile=conftest.$ac_objext
17877printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17878eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17879_lt_compiler_boilerplate=`cat conftest.err`
17880$rm conftest*
17881
17882ac_outfile=conftest.$ac_objext
17883printf "$lt_simple_link_test_code" >conftest.$ac_ext
17884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17885_lt_linker_boilerplate=`cat conftest.err`
17886$rm conftest*
17887
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889# Allow CC to be a program name with arguments.
17890lt_save_CC=$CC
17891lt_save_LD=$LD
17892lt_save_GCC=$GCC
17893GCC=$GXX
17894lt_save_with_gnu_ld=$with_gnu_ld
17895lt_save_path_LD=$lt_cv_path_LD
17896if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17897 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17898else
Reid Spencera773bd52006-08-04 18:18:08 +000017899 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017900fi
17901if test -n "${lt_cv_path_LDCXX+set}"; then
17902 lt_cv_path_LD=$lt_cv_path_LDCXX
17903else
Reid Spencera773bd52006-08-04 18:18:08 +000017904 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017905fi
17906test -z "${LDCXX+set}" || LD=$LDCXX
17907CC=${CXX-"c++"}
17908compiler=$CC
17909compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017910for cc_temp in $compiler""; do
17911 case $cc_temp in
17912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17914 \-*) ;;
17915 *) break;;
17916 esac
17917done
17918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17919
John Criswell47fdd832003-07-14 16:52:07 +000017920
17921# We don't want -fno-exception wen compiling C++ code, so set the
17922# no_builtin_flag separately
17923if test "$GXX" = yes; then
17924 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17925else
17926 lt_prog_compiler_no_builtin_flag_CXX=
17927fi
17928
17929if test "$GXX" = yes; then
17930 # Set up default GNU C++ configuration
17931
17932
Reid Spencera773bd52006-08-04 18:18:08 +000017933# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017934if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017936else
17937 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017938fi
17939
John Criswell47fdd832003-07-14 16:52:07 +000017940ac_prog=ld
17941if test "$GCC" = yes; then
17942 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017943 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17944echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017945 case $host in
17946 *-*-mingw*)
17947 # gcc leaves a trailing carriage return which upsets mingw
17948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17949 *)
17950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17951 esac
17952 case $ac_prog in
17953 # Accept absolute paths.
17954 [\\/]* | ?:[\\/]*)
17955 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017956 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017957 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17958 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17959 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17960 done
17961 test -z "$LD" && LD="$ac_prog"
17962 ;;
17963 "")
17964 # If it fails, then pretend we aren't using GCC.
17965 ac_prog=ld
17966 ;;
17967 *)
17968 # If it is relative, then search for the first ld in PATH.
17969 with_gnu_ld=unknown
17970 ;;
17971 esac
17972elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017973 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17974echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017975else
Reid Spencera773bd52006-08-04 18:18:08 +000017976 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17977echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017978fi
17979if test "${lt_cv_path_LD+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981else
17982 if test -z "$LD"; then
17983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17984 for ac_dir in $PATH; do
17985 IFS="$lt_save_ifs"
17986 test -z "$ac_dir" && ac_dir=.
17987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17988 lt_cv_path_LD="$ac_dir/$ac_prog"
17989 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017990 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017991 # Break only if it was the GNU/non-GNU ld that we prefer.
17992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17993 *GNU* | *'with BFD'*)
17994 test "$with_gnu_ld" != no && break
17995 ;;
17996 *)
17997 test "$with_gnu_ld" != yes && break
17998 ;;
17999 esac
18000 fi
18001 done
18002 IFS="$lt_save_ifs"
18003else
18004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18005fi
18006fi
18007
18008LD="$lt_cv_path_LD"
18009if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018010 { echo "$as_me:$LINENO: result: $LD" >&5
18011echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018012else
Reid Spencera773bd52006-08-04 18:18:08 +000018013 { echo "$as_me:$LINENO: result: no" >&5
18014echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018015fi
18016test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18017echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18018 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018019{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18020echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018021if test "${lt_cv_prog_gnu_ld+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023else
Reid Spencera773bd52006-08-04 18:18:08 +000018024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018025case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018026*GNU* | *'with BFD'*)
18027 lt_cv_prog_gnu_ld=yes
18028 ;;
18029*)
18030 lt_cv_prog_gnu_ld=no
18031 ;;
18032esac
18033fi
Reid Spencera773bd52006-08-04 18:18:08 +000018034{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18035echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018036with_gnu_ld=$lt_cv_prog_gnu_ld
18037
18038
18039
18040 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18041 # archiving commands below assume that GNU ld is being used.
18042 if test "$with_gnu_ld" = yes; then
18043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18044 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'
18045
18046 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18048
18049 # If archive_cmds runs LD, not CC, wlarc should be empty
18050 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18051 # investigate it a little bit more. (MM)
18052 wlarc='${wl}'
18053
18054 # ancient GNU ld didn't support --whole-archive et. al.
18055 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18056 grep 'no-whole-archive' > /dev/null; then
18057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18058 else
18059 whole_archive_flag_spec_CXX=
18060 fi
18061 else
18062 with_gnu_ld=no
18063 wlarc=
18064
18065 # A generic and very simple default shared library creation
18066 # command for GNU C++ for the case where it uses the native
18067 # linker, instead of GNU ld. If possible, this setting should
18068 # overridden to take advantage of the native linker features on
18069 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018070 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018071 fi
18072
18073 # Commands to make compiler produce verbose output that lists
18074 # what "hidden" libraries, object files and flags are used when
18075 # linking a shared library.
18076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18077
18078else
18079 GXX=no
18080 with_gnu_ld=no
18081 wlarc=
18082fi
18083
18084# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018085{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18086echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018087ld_shlibs_CXX=yes
18088case $host_os in
18089 aix3*)
18090 # FIXME: insert proper C++ library support
18091 ld_shlibs_CXX=no
18092 ;;
18093 aix4* | aix5*)
18094 if test "$host_cpu" = ia64; then
18095 # On IA64, the linker does run time linking by default, so we don't
18096 # have to do anything special.
18097 aix_use_runtimelinking=no
18098 exp_sym_flag='-Bexport'
18099 no_entry_flag=""
18100 else
18101 aix_use_runtimelinking=no
18102
18103 # Test if we are trying to use run time linking or normal
18104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18105 # need to do runtime linking.
18106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18107 for ld_flag in $LDFLAGS; do
18108 case $ld_flag in
18109 *-brtl*)
18110 aix_use_runtimelinking=yes
18111 break
18112 ;;
18113 esac
18114 done
Reid Spencera773bd52006-08-04 18:18:08 +000018115 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018116 esac
18117
18118 exp_sym_flag='-bexport'
18119 no_entry_flag='-bnoentry'
18120 fi
18121
18122 # When large executables or shared objects are built, AIX ld can
18123 # have problems creating the table of contents. If linking a library
18124 # or program results in "error TOC overflow" add -mminimal-toc to
18125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18127
18128 archive_cmds_CXX=''
18129 hardcode_direct_CXX=yes
18130 hardcode_libdir_separator_CXX=':'
18131 link_all_deplibs_CXX=yes
18132
18133 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018134 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018135 # We only want to do this on AIX 4.2 and lower, the check
18136 # below for broken collect2 doesn't work under 4.3+
18137 collect2name=`${CC} -print-prog-name=collect2`
18138 if test -f "$collect2name" && \
18139 strings "$collect2name" | grep resolve_lib_name >/dev/null
18140 then
18141 # We have reworked collect2
18142 hardcode_direct_CXX=yes
18143 else
18144 # We have old collect2
18145 hardcode_direct_CXX=unsupported
18146 # It fails to find uninstalled libraries when the uninstalled
18147 # path is not listed in the libpath. Setting hardcode_minus_L
18148 # to unsupported forces relinking
18149 hardcode_minus_L_CXX=yes
18150 hardcode_libdir_flag_spec_CXX='-L$libdir'
18151 hardcode_libdir_separator_CXX=
18152 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018153 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018154 esac
18155 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018156 if test "$aix_use_runtimelinking" = yes; then
18157 shared_flag="$shared_flag "'${wl}-G'
18158 fi
John Criswell47fdd832003-07-14 16:52:07 +000018159 else
18160 # not using gcc
18161 if test "$host_cpu" = ia64; then
18162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18163 # chokes on -Wl,-G. The following line is correct:
18164 shared_flag='-G'
18165 else
18166 if test "$aix_use_runtimelinking" = yes; then
18167 shared_flag='${wl}-G'
18168 else
18169 shared_flag='${wl}-bM:SRE'
18170 fi
18171 fi
18172 fi
18173
18174 # It seems that -bexpall does not export symbols beginning with
18175 # underscore (_), so it is better to generate a list of symbols to export.
18176 always_export_symbols_CXX=yes
18177 if test "$aix_use_runtimelinking" = yes; then
18178 # Warning - without using the other runtime loading flags (-brtl),
18179 # -berok will link without error, but may produce a broken library.
18180 allow_undefined_flag_CXX='-berok'
18181 # Determine the default libpath from the value encoded in an empty executable.
18182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018183/* confdefs.h. */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018188
John Criswell47fdd832003-07-14 16:52:07 +000018189int
18190main ()
18191{
18192
18193 ;
18194 return 0;
18195}
18196_ACEOF
18197rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018198if { (ac_try="$ac_link"
18199case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018205 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231
18232aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18233}'`
18234# Check for a 64-bit object if we didn't find anything.
18235if 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; }
18236}'`; fi
18237else
18238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018239sed 's/^/| /' conftest.$ac_ext >&5
18240
Reid Spencera773bd52006-08-04 18:18:08 +000018241
John Criswell47fdd832003-07-14 16:52:07 +000018242fi
Reid Spencera773bd52006-08-04 18:18:08 +000018243
18244rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018245 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18247
18248 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18249
Reid Spencera773bd52006-08-04 18:18:08 +000018250 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 +000018251 else
18252 if test "$host_cpu" = ia64; then
18253 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18254 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018255 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 +000018256 else
18257 # Determine the default libpath from the value encoded in an empty executable.
18258 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018259/* confdefs.h. */
18260_ACEOF
18261cat confdefs.h >>conftest.$ac_ext
18262cat >>conftest.$ac_ext <<_ACEOF
18263/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018264
John Criswell47fdd832003-07-14 16:52:07 +000018265int
18266main ()
18267{
18268
18269 ;
18270 return 0;
18271}
18272_ACEOF
18273rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018274if { (ac_try="$ac_link"
18275case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301esac
18302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307
18308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18309}'`
18310# Check for a 64-bit object if we didn't find anything.
18311if 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; }
18312}'`; fi
18313else
18314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018315sed 's/^/| /' conftest.$ac_ext >&5
18316
Reid Spencera773bd52006-08-04 18:18:08 +000018317
John Criswell47fdd832003-07-14 16:52:07 +000018318fi
Reid Spencera773bd52006-08-04 18:18:08 +000018319
18320rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018321 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18323
18324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18325 # Warning - without using the other run time loading flags,
18326 # -berok will link without error, but may produce a broken library.
18327 no_undefined_flag_CXX=' ${wl}-bernotok'
18328 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018329 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018330 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018331 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018332 # This is similar to how AIX traditionally builds its shared libraries.
18333 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 +000018334 fi
18335 fi
18336 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018337
18338 beos*)
18339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18340 allow_undefined_flag_CXX=unsupported
18341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18342 # support --undefined. This deserves some investigation. FIXME
18343 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18344 else
18345 ld_shlibs_CXX=no
18346 fi
18347 ;;
18348
John Criswell47fdd832003-07-14 16:52:07 +000018349 chorus*)
18350 case $cc_basename in
18351 *)
18352 # FIXME: insert proper C++ library support
18353 ld_shlibs_CXX=no
18354 ;;
18355 esac
18356 ;;
18357
18358 cygwin* | mingw* | pw32*)
18359 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18360 # as there is no search path for DLLs.
18361 hardcode_libdir_flag_spec_CXX='-L$libdir'
18362 allow_undefined_flag_CXX=unsupported
18363 always_export_symbols_CXX=no
18364 enable_shared_with_static_runtimes_CXX=yes
18365
18366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018367 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 +000018368 # If the export-symbols file already is a .def file (1st line
18369 # is EXPORTS), use it as is; otherwise, prepend...
18370 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18371 cp $export_symbols $output_objdir/$soname.def;
18372 else
18373 echo EXPORTS > $output_objdir/$soname.def;
18374 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018375 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018376 $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 +000018377 else
18378 ld_shlibs_CXX=no
18379 fi
18380 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018381 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018382 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018383 rhapsody* | darwin1.[012])
18384 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18385 ;;
18386 *) # Darwin 1.3 on
18387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18388 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18389 else
18390 case ${MACOSX_DEPLOYMENT_TARGET} in
18391 10.[012])
18392 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18393 ;;
18394 10.*)
18395 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18396 ;;
18397 esac
18398 fi
18399 ;;
18400 esac
18401 archive_cmds_need_lc_CXX=no
18402 hardcode_direct_CXX=no
18403 hardcode_automatic_CXX=yes
18404 hardcode_shlibpath_var_CXX=unsupported
18405 whole_archive_flag_spec_CXX=''
18406 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018407
Reid Spencer2706f8c2004-09-19 23:53:36 +000018408 if test "$GXX" = yes ; then
18409 lt_int_apple_cc_single_mod=no
18410 output_verbose_link_cmd='echo'
18411 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18412 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018413 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018415 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 +000018416 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018417 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 +000018418 fi
18419 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018420 # 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 +000018421 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018422 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 +000018423 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018424 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 +000018425 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018426 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 +000018427 else
Reid Spencera773bd52006-08-04 18:18:08 +000018428 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018429 xlc*)
18430 output_verbose_link_cmd='echo'
18431 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'
18432 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018433 # 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 +000018434 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}'
18435 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 +000018436 ;;
18437 *)
18438 ld_shlibs_CXX=no
18439 ;;
18440 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018441 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018442 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018443
18444 dgux*)
18445 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018446 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018447 # FIXME: insert proper C++ library support
18448 ld_shlibs_CXX=no
18449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018450 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018451 # Green Hills C++ Compiler
18452 # FIXME: insert proper C++ library support
18453 ld_shlibs_CXX=no
18454 ;;
18455 *)
18456 # FIXME: insert proper C++ library support
18457 ld_shlibs_CXX=no
18458 ;;
18459 esac
18460 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018461 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018462 # C++ shared libraries reported to be fairly broken before switch to ELF
18463 ld_shlibs_CXX=no
18464 ;;
18465 freebsd-elf*)
18466 archive_cmds_need_lc_CXX=no
18467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018468 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018469 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18470 # conventions
18471 ld_shlibs_CXX=yes
18472 ;;
18473 gnu*)
18474 ;;
18475 hpux9*)
18476 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18477 hardcode_libdir_separator_CXX=:
18478 export_dynamic_flag_spec_CXX='${wl}-E'
18479 hardcode_direct_CXX=yes
18480 hardcode_minus_L_CXX=yes # Not in the search PATH,
18481 # but as the default
18482 # location of the library.
18483
18484 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018485 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018486 # FIXME: insert proper C++ library support
18487 ld_shlibs_CXX=no
18488 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018489 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018490 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 +000018491 # Commands to make compiler produce verbose output that lists
18492 # what "hidden" libraries, object files and flags are used when
18493 # linking a shared library.
18494 #
18495 # There doesn't appear to be a way to prevent this compiler from
18496 # explicitly linking system object files so we need to strip them
18497 # from the output so that they don't get included in the library
18498 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018499 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 +000018500 ;;
18501 *)
18502 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018503 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 +000018504 else
18505 # FIXME: insert proper C++ library support
18506 ld_shlibs_CXX=no
18507 fi
18508 ;;
18509 esac
18510 ;;
18511 hpux10*|hpux11*)
18512 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018513 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18514 hardcode_libdir_separator_CXX=:
18515
18516 case $host_cpu in
18517 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018518 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018519 ;;
18520 *)
John Criswell47fdd832003-07-14 16:52:07 +000018521 export_dynamic_flag_spec_CXX='${wl}-E'
18522 ;;
18523 esac
18524 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018525 case $host_cpu in
18526 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018527 hardcode_direct_CXX=no
18528 hardcode_shlibpath_var_CXX=no
18529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018530 *)
18531 hardcode_direct_CXX=yes
18532 hardcode_minus_L_CXX=yes # Not in the search PATH,
18533 # but as the default
18534 # location of the library.
18535 ;;
18536 esac
18537
18538 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018539 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018540 # FIXME: insert proper C++ library support
18541 ld_shlibs_CXX=no
18542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018543 aCC*)
18544 case $host_cpu in
18545 hppa*64*)
18546 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18547 ;;
18548 ia64*)
18549 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 +000018550 ;;
18551 *)
18552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18553 ;;
18554 esac
18555 # Commands to make compiler produce verbose output that lists
18556 # what "hidden" libraries, object files and flags are used when
18557 # linking a shared library.
18558 #
18559 # There doesn't appear to be a way to prevent this compiler from
18560 # explicitly linking system object files so we need to strip them
18561 # from the output so that they don't get included in the library
18562 # dependencies.
18563 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'
18564 ;;
18565 *)
18566 if test "$GXX" = yes; then
18567 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018568 case $host_cpu in
18569 hppa*64*)
18570 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18571 ;;
18572 ia64*)
18573 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 +000018574 ;;
18575 *)
18576 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'
18577 ;;
18578 esac
18579 fi
18580 else
18581 # FIXME: insert proper C++ library support
18582 ld_shlibs_CXX=no
18583 fi
18584 ;;
18585 esac
18586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018587 interix3*)
18588 hardcode_direct_CXX=no
18589 hardcode_shlibpath_var_CXX=no
18590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18591 export_dynamic_flag_spec_CXX='${wl}-E'
18592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18593 # Instead, shared libraries are loaded at an image base (0x10000000 by
18594 # default) and relocated if they conflict, which is a slow very memory
18595 # consuming and fragmenting process. To avoid this, we pick a random,
18596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18598 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'
18599 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'
18600 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018601 irix5* | irix6*)
18602 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018603 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018604 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018605 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 +000018606
18607 # Archives containing C++ object files must be created using
18608 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18609 # necessary to make sure instantiated templates are included
18610 # in the archive.
18611 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18612 ;;
18613 *)
18614 if test "$GXX" = yes; then
18615 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018616 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 +000018617 else
18618 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'
18619 fi
18620 fi
18621 link_all_deplibs_CXX=yes
18622 ;;
18623 esac
18624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18625 hardcode_libdir_separator_CXX=:
18626 ;;
18627 linux*)
18628 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018629 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018630 # Kuck and Associates, Inc. (KAI) C++ Compiler
18631
18632 # KCC will only create a shared library if the output file
18633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18634 # to its proper name (with version) after linking.
18635 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'
18636 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'
18637 # Commands to make compiler produce verbose output that lists
18638 # what "hidden" libraries, object files and flags are used when
18639 # linking a shared library.
18640 #
18641 # There doesn't appear to be a way to prevent this compiler from
18642 # explicitly linking system object files so we need to strip them
18643 # from the output so that they don't get included in the library
18644 # dependencies.
18645 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'
18646
18647 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18649
18650 # Archives containing C++ object files must be created using
18651 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18652 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018654 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018655 # Intel C++
18656 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018657 # version 8.0 and above of icpc choke on multiply defined symbols
18658 # if we add $predep_objects and $postdep_objects, however 7.1 and
18659 # earlier do not add the objects themselves.
18660 case `$CC -V 2>&1` in
18661 *"Version 7."*)
18662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663 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'
18664 ;;
18665 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018666 tmp_idyn=
18667 case $host_cpu in
18668 ia64*) tmp_idyn=' -i_dynamic';;
18669 esac
18670 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18671 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 +000018672 ;;
18673 esac
John Criswell47fdd832003-07-14 16:52:07 +000018674 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18677 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018679 pgCC*)
18680 # Portland Group C++ compiler
18681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18682 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'
18683
18684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686 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'
18687 ;;
18688 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018689 # Compaq C++
18690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691 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'
18692
18693 runpath_var=LD_RUN_PATH
18694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18695 hardcode_libdir_separator_CXX=:
18696
18697 # Commands to make compiler produce verbose output that lists
18698 # what "hidden" libraries, object files and flags are used when
18699 # linking a shared library.
18700 #
18701 # There doesn't appear to be a way to prevent this compiler from
18702 # explicitly linking system object files so we need to strip them
18703 # from the output so that they don't get included in the library
18704 # dependencies.
18705 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'
18706 ;;
18707 esac
18708 ;;
18709 lynxos*)
18710 # FIXME: insert proper C++ library support
18711 ld_shlibs_CXX=no
18712 ;;
18713 m88k*)
18714 # FIXME: insert proper C++ library support
18715 ld_shlibs_CXX=no
18716 ;;
18717 mvs*)
18718 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018719 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018720 # FIXME: insert proper C++ library support
18721 ld_shlibs_CXX=no
18722 ;;
18723 *)
18724 # FIXME: insert proper C++ library support
18725 ld_shlibs_CXX=no
18726 ;;
18727 esac
18728 ;;
18729 netbsd*)
18730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18731 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18732 wlarc=
18733 hardcode_libdir_flag_spec_CXX='-R$libdir'
18734 hardcode_direct_CXX=yes
18735 hardcode_shlibpath_var_CXX=no
18736 fi
18737 # Workaround some broken pre-1.5 toolchains
18738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18739 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018740 openbsd2*)
18741 # C++ shared libraries are fairly broken
18742 ld_shlibs_CXX=no
18743 ;;
18744 openbsd*)
18745 hardcode_direct_CXX=yes
18746 hardcode_shlibpath_var_CXX=no
18747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18751 export_dynamic_flag_spec_CXX='${wl}-E'
18752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18753 fi
18754 output_verbose_link_cmd='echo'
18755 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018756 osf3*)
18757 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018758 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018759 # Kuck and Associates, Inc. (KAI) C++ Compiler
18760
18761 # KCC will only create a shared library if the output file
18762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18763 # to its proper name (with version) after linking.
18764 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'
18765
18766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18767 hardcode_libdir_separator_CXX=:
18768
18769 # Archives containing C++ object files must be created using
18770 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18771 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18772
18773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018774 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018775 # Rational C++ 2.4.1
18776 # FIXME: insert proper C++ library support
18777 ld_shlibs_CXX=no
18778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018779 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018780 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018781 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 +000018782
18783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18784 hardcode_libdir_separator_CXX=:
18785
18786 # Commands to make compiler produce verbose output that lists
18787 # what "hidden" libraries, object files and flags are used when
18788 # linking a shared library.
18789 #
18790 # There doesn't appear to be a way to prevent this compiler from
18791 # explicitly linking system object files so we need to strip them
18792 # from the output so that they don't get included in the library
18793 # dependencies.
18794 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'
18795 ;;
18796 *)
18797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18798 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018799 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 +000018800
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18802 hardcode_libdir_separator_CXX=:
18803
18804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
18807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18808
18809 else
18810 # FIXME: insert proper C++ library support
18811 ld_shlibs_CXX=no
18812 fi
18813 ;;
18814 esac
18815 ;;
18816 osf4* | osf5*)
18817 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018818 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018819 # Kuck and Associates, Inc. (KAI) C++ Compiler
18820
18821 # KCC will only create a shared library if the output file
18822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18823 # to its proper name (with version) after linking.
18824 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'
18825
18826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18827 hardcode_libdir_separator_CXX=:
18828
18829 # Archives containing C++ object files must be created using
18830 # the KAI C++ compiler.
18831 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18832 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018833 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018834 # Rational C++ 2.4.1
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018838 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018840 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 +000018841 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18842 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018843 $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 +000018844 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018845
18846 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18847 hardcode_libdir_separator_CXX=:
18848
18849 # Commands to make compiler produce verbose output that lists
18850 # what "hidden" libraries, object files and flags are used when
18851 # linking a shared library.
18852 #
18853 # There doesn't appear to be a way to prevent this compiler from
18854 # explicitly linking system object files so we need to strip them
18855 # from the output so that they don't get included in the library
18856 # dependencies.
18857 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'
18858 ;;
18859 *)
18860 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018862 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 +000018863
18864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18865 hardcode_libdir_separator_CXX=:
18866
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 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18871
18872 else
18873 # FIXME: insert proper C++ library support
18874 ld_shlibs_CXX=no
18875 fi
18876 ;;
18877 esac
18878 ;;
18879 psos*)
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018883 sunos4*)
18884 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018885 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018886 # Sun C++ 4.x
18887 # FIXME: insert proper C++ library support
18888 ld_shlibs_CXX=no
18889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018890 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018891 # Lucid
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895 *)
18896 # FIXME: insert proper C++ library support
18897 ld_shlibs_CXX=no
18898 ;;
18899 esac
18900 ;;
18901 solaris*)
18902 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018903 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018904 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018905 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018906 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018907 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 +000018908 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 +000018909 $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 +000018910
18911 hardcode_libdir_flag_spec_CXX='-R$libdir'
18912 hardcode_shlibpath_var_CXX=no
18913 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018914 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018915 *)
18916 # The C++ compiler is used as linker so we must use $wl
18917 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018918 # linker. We must also pass each convience library through
18919 # to the system linker between allextract/defaultextract.
18920 # The C++ compiler will combine linker options so we
18921 # cannot just pass the convience library names through
18922 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018923 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018924 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 +000018925 ;;
18926 esac
18927 link_all_deplibs_CXX=yes
18928
Reid Spencera773bd52006-08-04 18:18:08 +000018929 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018930
18931 # Archives containing C++ object files must be created using
18932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18933 # necessary to make sure instantiated templates are included
18934 # in the archive.
18935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018937 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018938 # Green Hills C++ Compiler
18939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18940
18941 # The C++ compiler must be used to create the archive.
18942 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18943 ;;
18944 *)
18945 # GNU C++ compiler with Solaris linker
18946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18947 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18948 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018949 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 +000018950 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18951 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18952
John Criswell47fdd832003-07-14 16:52:07 +000018953 # Commands to make compiler produce verbose output that lists
18954 # what "hidden" libraries, object files and flags are used when
18955 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018956 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018957 else
18958 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18959 # platform.
18960 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 +000018961 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18962 $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 +000018963
18964 # Commands to make compiler produce verbose output that lists
18965 # what "hidden" libraries, object files and flags are used when
18966 # linking a shared library.
18967 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18968 fi
18969
18970 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18971 fi
18972 ;;
18973 esac
18974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18976 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018977 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018978 hardcode_shlibpath_var_CXX=no
18979 runpath_var='LD_RUN_PATH'
18980
18981 case $cc_basename in
18982 CC*)
18983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18985 ;;
18986 *)
18987 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18988 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 ;;
18990 esac
18991 ;;
18992 sysv5* | sco3.2v5* | sco5v6*)
18993 # Note: We can NOT use -z defs as we might desire, because we do not
18994 # link with -lc, and that would cause any symbols used from libc to
18995 # always be unresolved, which means just about no library would
18996 # ever link correctly. If we're not using GNU ld we use -z text
18997 # though, which does catch some bad symbols but isn't as heavy-handed
18998 # as -z defs.
18999 # For security reasons, it is highly recommended that you always
19000 # use absolute paths for naming shared libraries, and exclude the
19001 # DT_RUNPATH tag from executables and libraries. But doing so
19002 # requires that you compile everything twice, which is a pain.
19003 # So that behaviour is only enabled if SCOABSPATH is set to a
19004 # non-empty value in the environment. Most likely only useful for
19005 # creating official distributions of packages.
19006 # This is a hack until libtool officially supports absolute path
19007 # names for shared libraries.
19008 no_undefined_flag_CXX='${wl}-z,text'
19009 allow_undefined_flag_CXX='${wl}-z,nodefs'
19010 archive_cmds_need_lc_CXX=no
19011 hardcode_shlibpath_var_CXX=no
19012 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19013 hardcode_libdir_separator_CXX=':'
19014 link_all_deplibs_CXX=yes
19015 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19016 runpath_var='LD_RUN_PATH'
19017
19018 case $cc_basename in
19019 CC*)
19020 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19021 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19022 ;;
19023 *)
19024 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19025 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19026 ;;
19027 esac
John Criswell47fdd832003-07-14 16:52:07 +000019028 ;;
19029 tandem*)
19030 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019031 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019032 # NonStop-UX NCC 3.20
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 ;;
19036 *)
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19039 ;;
19040 esac
19041 ;;
19042 vxworks*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 *)
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050esac
Reid Spencera773bd52006-08-04 18:18:08 +000019051{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19052echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019053test "$ld_shlibs_CXX" = no && can_build_shared=no
19054
19055GCC_CXX="$GXX"
19056LD_CXX="$LD"
19057
John Criswell47fdd832003-07-14 16:52:07 +000019058
19059cat > conftest.$ac_ext <<EOF
19060class Foo
19061{
19062public:
19063 Foo (void) { a = 0; }
19064private:
19065 int a;
19066};
19067EOF
19068
19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19070 (eval $ac_compile) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; then
19074 # Parse the compiler output and extract the necessary
19075 # objects, libraries and library flags.
19076
19077 # Sentinel used to keep track of whether or not we are before
19078 # the conftest object file.
19079 pre_test_object_deps_done=no
19080
19081 # The `*' in the case matches for architectures that use `case' in
19082 # $output_verbose_cmd can trigger glob expansion during the loop
19083 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019084 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019085
19086 for p in `eval $output_verbose_link_cmd`; do
19087 case $p in
19088
19089 -L* | -R* | -l*)
19090 # Some compilers place space between "-{L,R}" and the path.
19091 # Remove the space.
19092 if test $p = "-L" \
19093 || test $p = "-R"; then
19094 prev=$p
19095 continue
19096 else
19097 prev=
19098 fi
19099
19100 if test "$pre_test_object_deps_done" = no; then
19101 case $p in
19102 -L* | -R*)
19103 # Internal compiler library paths should come after those
19104 # provided the user. The postdeps already come after the
19105 # user supplied libs so there is no need to process them.
19106 if test -z "$compiler_lib_search_path_CXX"; then
19107 compiler_lib_search_path_CXX="${prev}${p}"
19108 else
19109 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19110 fi
19111 ;;
19112 # The "-l" case would never come before the object being
19113 # linked, so don't bother handling this case.
19114 esac
19115 else
19116 if test -z "$postdeps_CXX"; then
19117 postdeps_CXX="${prev}${p}"
19118 else
19119 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19120 fi
19121 fi
19122 ;;
19123
19124 *.$objext)
19125 # This assumes that the test object file only shows up
19126 # once in the compiler output.
19127 if test "$p" = "conftest.$objext"; then
19128 pre_test_object_deps_done=yes
19129 continue
19130 fi
19131
19132 if test "$pre_test_object_deps_done" = no; then
19133 if test -z "$predep_objects_CXX"; then
19134 predep_objects_CXX="$p"
19135 else
19136 predep_objects_CXX="$predep_objects_CXX $p"
19137 fi
19138 else
19139 if test -z "$postdep_objects_CXX"; then
19140 postdep_objects_CXX="$p"
19141 else
19142 postdep_objects_CXX="$postdep_objects_CXX $p"
19143 fi
19144 fi
19145 ;;
19146
19147 *) ;; # Ignore the rest.
19148
19149 esac
19150 done
19151
19152 # Clean up.
19153 rm -f a.out a.exe
19154else
19155 echo "libtool.m4: error: problem compiling CXX test program"
19156fi
19157
19158$rm -f confest.$objext
19159
Reid Spencera773bd52006-08-04 18:18:08 +000019160# PORTME: override above test on systems where it is broken
19161case $host_os in
19162interix3*)
19163 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19164 # hack all around it, let's just trust "g++" to DTRT.
19165 predep_objects_CXX=
19166 postdep_objects_CXX=
19167 postdeps_CXX=
19168 ;;
19169
19170solaris*)
19171 case $cc_basename in
19172 CC*)
19173 # Adding this requires a known-good setup of shared libraries for
19174 # Sun compiler versions before 5.6, else PIC objects from an old
19175 # archive will be linked into the output, leading to subtle bugs.
19176 postdeps_CXX='-lCstd -lCrun'
19177 ;;
19178 esac
19179 ;;
19180esac
19181
19182
John Criswell47fdd832003-07-14 16:52:07 +000019183case " $postdeps_CXX " in
19184*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19185esac
19186
19187lt_prog_compiler_wl_CXX=
19188lt_prog_compiler_pic_CXX=
19189lt_prog_compiler_static_CXX=
19190
Reid Spencera773bd52006-08-04 18:18:08 +000019191{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19192echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019193
19194 # C++ specific cases for pic, static, wl, etc.
19195 if test "$GXX" = yes; then
19196 lt_prog_compiler_wl_CXX='-Wl,'
19197 lt_prog_compiler_static_CXX='-static'
19198
19199 case $host_os in
19200 aix*)
19201 # All AIX code is PIC.
19202 if test "$host_cpu" = ia64; then
19203 # AIX 5 now supports IA64 processor
19204 lt_prog_compiler_static_CXX='-Bstatic'
19205 fi
19206 ;;
19207 amigaos*)
19208 # FIXME: we need at least 68020 code to build shared libraries, but
19209 # adding the `-m68020' flag to GCC prevents building anything better,
19210 # like `-m68040'.
19211 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19212 ;;
19213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19214 # PIC is the default for these OSes.
19215 ;;
19216 mingw* | os2* | pw32*)
19217 # This hack is so that the source file can tell whether it is being
19218 # built for inclusion in a dll (and should export symbols for example).
19219 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19220 ;;
19221 darwin* | rhapsody*)
19222 # PIC is the default on this platform
19223 # Common symbols not allowed in MH_DYLIB files
19224 lt_prog_compiler_pic_CXX='-fno-common'
19225 ;;
19226 *djgpp*)
19227 # DJGPP does not support shared libraries at all
19228 lt_prog_compiler_pic_CXX=
19229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019230 interix3*)
19231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19232 # Instead, we relocate shared libraries at runtime.
19233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019234 sysv4*MP*)
19235 if test -d /usr/nec; then
19236 lt_prog_compiler_pic_CXX=-Kconform_pic
19237 fi
19238 ;;
19239 hpux*)
19240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19241 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019242 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019243 hppa*64*|ia64*)
19244 ;;
19245 *)
19246 lt_prog_compiler_pic_CXX='-fPIC'
19247 ;;
19248 esac
19249 ;;
19250 *)
19251 lt_prog_compiler_pic_CXX='-fPIC'
19252 ;;
19253 esac
19254 else
19255 case $host_os in
19256 aix4* | aix5*)
19257 # All AIX code is PIC.
19258 if test "$host_cpu" = ia64; then
19259 # AIX 5 now supports IA64 processor
19260 lt_prog_compiler_static_CXX='-Bstatic'
19261 else
19262 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19263 fi
19264 ;;
19265 chorus*)
19266 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019267 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # Green Hills C++ Compiler
19269 # _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"
19270 ;;
19271 esac
19272 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019273 darwin*)
19274 # PIC is the default on this platform
19275 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019276 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019277 xlc*)
19278 lt_prog_compiler_pic_CXX='-qnocommon'
19279 lt_prog_compiler_wl_CXX='-Wl,'
19280 ;;
19281 esac
19282 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019283 dgux*)
19284 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019285 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019286 lt_prog_compiler_pic_CXX='-KPIC'
19287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019288 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019289 # Green Hills C++ Compiler
19290 lt_prog_compiler_pic_CXX='-pic'
19291 ;;
19292 *)
19293 ;;
19294 esac
19295 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019296 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019297 # FreeBSD uses GNU C++
19298 ;;
19299 hpux9* | hpux10* | hpux11*)
19300 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019301 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019302 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019303 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019304 if test "$host_cpu" != ia64; then
19305 lt_prog_compiler_pic_CXX='+Z'
19306 fi
19307 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019308 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019309 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019310 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19311 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019312 hppa*64*|ia64*)
19313 # +Z the default
19314 ;;
19315 *)
19316 lt_prog_compiler_pic_CXX='+Z'
19317 ;;
19318 esac
19319 ;;
19320 *)
19321 ;;
19322 esac
19323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019324 interix*)
19325 # This is c89, which is MS Visual C++ (no shared libs)
19326 # Anyone wants to do a port?
19327 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019328 irix5* | irix6* | nonstopux*)
19329 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019330 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019331 lt_prog_compiler_wl_CXX='-Wl,'
19332 lt_prog_compiler_static_CXX='-non_shared'
19333 # CC pic flag -KPIC is the default.
19334 ;;
19335 *)
19336 ;;
19337 esac
19338 ;;
19339 linux*)
19340 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019341 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019342 # KAI C++ Compiler
19343 lt_prog_compiler_wl_CXX='--backend -Wl,'
19344 lt_prog_compiler_pic_CXX='-fPIC'
19345 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019346 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019347 # Intel C++
19348 lt_prog_compiler_wl_CXX='-Wl,'
19349 lt_prog_compiler_pic_CXX='-KPIC'
19350 lt_prog_compiler_static_CXX='-static'
19351 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019352 pgCC*)
19353 # Portland Group C++ compiler.
19354 lt_prog_compiler_wl_CXX='-Wl,'
19355 lt_prog_compiler_pic_CXX='-fpic'
19356 lt_prog_compiler_static_CXX='-Bstatic'
19357 ;;
19358 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019359 # Compaq C++
19360 # Make sure the PIC flag is empty. It appears that all Alpha
19361 # Linux and Compaq Tru64 Unix objects are PIC.
19362 lt_prog_compiler_pic_CXX=
19363 lt_prog_compiler_static_CXX='-non_shared'
19364 ;;
19365 *)
19366 ;;
19367 esac
19368 ;;
19369 lynxos*)
19370 ;;
19371 m88k*)
19372 ;;
19373 mvs*)
19374 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019375 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019376 lt_prog_compiler_pic_CXX='-W c,exportall'
19377 ;;
19378 *)
19379 ;;
19380 esac
19381 ;;
19382 netbsd*)
19383 ;;
19384 osf3* | osf4* | osf5*)
19385 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019386 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 lt_prog_compiler_wl_CXX='--backend -Wl,'
19388 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019389 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019390 # Rational C++ 2.4.1
19391 lt_prog_compiler_pic_CXX='-pic'
19392 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019393 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019394 # Digital/Compaq C++
19395 lt_prog_compiler_wl_CXX='-Wl,'
19396 # Make sure the PIC flag is empty. It appears that all Alpha
19397 # Linux and Compaq Tru64 Unix objects are PIC.
19398 lt_prog_compiler_pic_CXX=
19399 lt_prog_compiler_static_CXX='-non_shared'
19400 ;;
19401 *)
19402 ;;
19403 esac
19404 ;;
19405 psos*)
19406 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019407 solaris*)
19408 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019409 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019410 # Sun C++ 4.2, 5.x and Centerline C++
19411 lt_prog_compiler_pic_CXX='-KPIC'
19412 lt_prog_compiler_static_CXX='-Bstatic'
19413 lt_prog_compiler_wl_CXX='-Qoption ld '
19414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019415 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019416 # Green Hills C++ Compiler
19417 lt_prog_compiler_pic_CXX='-PIC'
19418 ;;
19419 *)
19420 ;;
19421 esac
19422 ;;
19423 sunos4*)
19424 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019425 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019426 # Sun C++ 4.x
19427 lt_prog_compiler_pic_CXX='-pic'
19428 lt_prog_compiler_static_CXX='-Bstatic'
19429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019430 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019431 # Lucid
19432 lt_prog_compiler_pic_CXX='-pic'
19433 ;;
19434 *)
19435 ;;
19436 esac
19437 ;;
19438 tandem*)
19439 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019440 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019441 # NonStop-UX NCC 3.20
19442 lt_prog_compiler_pic_CXX='-KPIC'
19443 ;;
19444 *)
19445 ;;
19446 esac
19447 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19449 case $cc_basename in
19450 CC*)
19451 lt_prog_compiler_wl_CXX='-Wl,'
19452 lt_prog_compiler_pic_CXX='-KPIC'
19453 lt_prog_compiler_static_CXX='-Bstatic'
19454 ;;
19455 esac
John Criswell47fdd832003-07-14 16:52:07 +000019456 ;;
19457 vxworks*)
19458 ;;
19459 *)
19460 lt_prog_compiler_can_build_shared_CXX=no
19461 ;;
19462 esac
19463 fi
19464
Reid Spencera773bd52006-08-04 18:18:08 +000019465{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19466echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019467
19468#
19469# Check to make sure the PIC flag actually works.
19470#
19471if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019472
Reid Spencera773bd52006-08-04 18:18:08 +000019473{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19474echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019475if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478 lt_prog_compiler_pic_works_CXX=no
19479 ac_outfile=conftest.$ac_objext
19480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19481 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19482 # Insert the option either (1) after the last *FLAGS variable, or
19483 # (2) before a word containing "conftest.", or (3) at the end.
19484 # Note that $ac_compile itself does not contain backslashes and begins
19485 # with a dollar sign (not a hyphen), so the echo should work correctly.
19486 # The option is referenced via a variable to avoid confusing sed.
19487 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19490 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000019491 (eval echo "\"\$as_me:19491: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019492 (eval "$lt_compile" 2>conftest.err)
19493 ac_status=$?
19494 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000019495 echo "$as_me:19495: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019496 if (exit $ac_status) && test -s "$ac_outfile"; then
19497 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019498 # So say no if there are warnings other than the usual output.
19499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019502 lt_prog_compiler_pic_works_CXX=yes
19503 fi
19504 fi
19505 $rm conftest*
19506
19507fi
Reid Spencera773bd52006-08-04 18:18:08 +000019508{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19509echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019510
19511if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19512 case $lt_prog_compiler_pic_CXX in
19513 "" | " "*) ;;
19514 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19515 esac
19516else
19517 lt_prog_compiler_pic_CXX=
19518 lt_prog_compiler_can_build_shared_CXX=no
19519fi
19520
19521fi
Reid Spencera773bd52006-08-04 18:18:08 +000019522case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019523 # For platforms which do not support PIC, -DPIC is meaningless:
19524 *djgpp*)
19525 lt_prog_compiler_pic_CXX=
19526 ;;
19527 *)
19528 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19529 ;;
19530esac
19531
Reid Spencera773bd52006-08-04 18:18:08 +000019532#
19533# Check to make sure the static flag actually works.
19534#
19535wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19536{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19537echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19538if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 lt_prog_compiler_static_works_CXX=no
19542 save_LDFLAGS="$LDFLAGS"
19543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19544 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19546 # The linker can only warn and ignore the option if not recognized
19547 # So say no if there are warnings
19548 if test -s conftest.err; then
19549 # Append any errors to the config.log.
19550 cat conftest.err 1>&5
19551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19553 if diff conftest.exp conftest.er2 >/dev/null; then
19554 lt_prog_compiler_static_works_CXX=yes
19555 fi
19556 else
19557 lt_prog_compiler_static_works_CXX=yes
19558 fi
19559 fi
19560 $rm conftest*
19561 LDFLAGS="$save_LDFLAGS"
19562
19563fi
19564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19565echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19566
19567if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19568 :
19569else
19570 lt_prog_compiler_static_CXX=
19571fi
19572
19573
19574{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019576if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578else
19579 lt_cv_prog_compiler_c_o_CXX=no
19580 $rm -r conftest 2>/dev/null
19581 mkdir conftest
19582 cd conftest
19583 mkdir out
19584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19585
John Criswell47fdd832003-07-14 16:52:07 +000019586 lt_compiler_flag="-o out/conftest2.$ac_objext"
19587 # Insert the option either (1) after the last *FLAGS variable, or
19588 # (2) before a word containing "conftest.", or (3) at the end.
19589 # Note that $ac_compile itself does not contain backslashes and begins
19590 # with a dollar sign (not a hyphen), so the echo should work correctly.
19591 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19594 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000019595 (eval echo "\"\$as_me:19595: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019596 (eval "$lt_compile" 2>out/conftest.err)
19597 ac_status=$?
19598 cat out/conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000019599 echo "$as_me:19599: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19601 then
19602 # The compiler can only warn and ignore the option if not recognized
19603 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019607 lt_cv_prog_compiler_c_o_CXX=yes
19608 fi
19609 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019610 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019611 $rm conftest*
19612 # SGI C++ compiler will create directory out/ii_files/ for
19613 # template instantiation
19614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19615 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019616 cd ..
19617 rmdir conftest
19618 $rm conftest*
19619
19620fi
Reid Spencera773bd52006-08-04 18:18:08 +000019621{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19622echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019623
19624
19625hard_links="nottested"
19626if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19627 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19629echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019630 hard_links=yes
19631 $rm conftest*
19632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19633 touch conftest.a
19634 ln conftest.a conftest.b 2>&5 || hard_links=no
19635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019636 { echo "$as_me:$LINENO: result: $hard_links" >&5
19637echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019638 if test "$hard_links" = no; then
19639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19640echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19641 need_locks=warn
19642 fi
19643else
19644 need_locks=no
19645fi
19646
Reid Spencera773bd52006-08-04 18:18:08 +000019647{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19648echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019649
19650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19651 case $host_os in
19652 aix4* | aix5*)
19653 # If we're using GNU nm, then we don't want the "-C" option.
19654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19655 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19656 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'
19657 else
19658 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'
19659 fi
19660 ;;
19661 pw32*)
19662 export_symbols_cmds_CXX="$ltdll_cmds"
19663 ;;
19664 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019665 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 +000019666 ;;
19667 *)
19668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19669 ;;
19670 esac
19671
Reid Spencera773bd52006-08-04 18:18:08 +000019672{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19673echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019674test "$ld_shlibs_CXX" = no && can_build_shared=no
19675
John Criswell47fdd832003-07-14 16:52:07 +000019676#
19677# Do we need to explicitly link libc?
19678#
19679case "x$archive_cmds_need_lc_CXX" in
19680x|xyes)
19681 # Assume -lc should be added
19682 archive_cmds_need_lc_CXX=yes
19683
19684 if test "$enable_shared" = yes && test "$GCC" = yes; then
19685 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019686 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019687 # FIXME: we may have to deal with multi-command sequences.
19688 ;;
19689 '$CC '*)
19690 # Test whether the compiler implicitly links with -lc since on some
19691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19692 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019693 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19694echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019695 $rm conftest*
19696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19697
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } 2>conftest.err; then
19703 soname=conftest
19704 lib=conftest
19705 libobjs=conftest.$ac_objext
19706 deplibs=
19707 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019708 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019709 compiler_flags=-v
19710 linker_flags=-v
19711 verstring=
19712 output_objdir=.
19713 libname=conftest
19714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19715 allow_undefined_flag_CXX=
19716 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19717 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }
19721 then
19722 archive_cmds_need_lc_CXX=no
19723 else
19724 archive_cmds_need_lc_CXX=yes
19725 fi
19726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19727 else
19728 cat conftest.err 1>&5
19729 fi
19730 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019731 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19732echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019733 ;;
19734 esac
19735 fi
19736 ;;
19737esac
19738
Reid Spencera773bd52006-08-04 18:18:08 +000019739{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19740echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019741library_names_spec=
19742libname_spec='lib$name'
19743soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019744shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019745postinstall_cmds=
19746postuninstall_cmds=
19747finish_cmds=
19748finish_eval=
19749shlibpath_var=
19750shlibpath_overrides_runpath=unknown
19751version_type=none
19752dynamic_linker="$host_os ld.so"
19753sys_lib_dlsearch_path_spec="/lib /usr/lib"
19754if test "$GCC" = yes; then
19755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19757 # if the path contains ";" then we assume it to be the separator
19758 # otherwise default to the standard path separator (i.e. ":") - it is
19759 # assumed that no part of a normal pathname contains ";" but that should
19760 # okay in the real world where ";" in dirpaths is itself problematic.
19761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19762 else
19763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19764 fi
19765else
19766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19767fi
19768need_lib_prefix=unknown
19769hardcode_into_libs=no
19770
19771# when you set need_version to no, make sure it does not cause -set_version
19772# flags to be left without arguments
19773need_version=unknown
19774
19775case $host_os in
19776aix3*)
19777 version_type=linux
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19779 shlibpath_var=LIBPATH
19780
19781 # AIX 3 has no versioning support, so we append a major version to the name.
19782 soname_spec='${libname}${release}${shared_ext}$major'
19783 ;;
19784
19785aix4* | aix5*)
19786 version_type=linux
19787 need_lib_prefix=no
19788 need_version=no
19789 hardcode_into_libs=yes
19790 if test "$host_cpu" = ia64; then
19791 # AIX 5 supports IA64
19792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19793 shlibpath_var=LD_LIBRARY_PATH
19794 else
19795 # With GCC up to 2.95.x, collect2 would create an import file
19796 # for dependence libraries. The import file would start with
19797 # the line `#! .'. This would cause the generated library to
19798 # depend on `.', always an invalid library. This was fixed in
19799 # development snapshots of GCC prior to 3.0.
19800 case $host_os in
19801 aix4 | aix4.[01] | aix4.[01].*)
19802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19803 echo ' yes '
19804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19805 :
19806 else
19807 can_build_shared=no
19808 fi
19809 ;;
19810 esac
19811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19812 # soname into executable. Probably we can add versioning support to
19813 # collect2, so additional links can be useful in future.
19814 if test "$aix_use_runtimelinking" = yes; then
19815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19816 # instead of lib<name>.a to let people know that these are not
19817 # typical AIX shared libraries.
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19819 else
19820 # We preserve .a as extension for shared libraries through AIX4.2
19821 # and later when we are not doing run time linking.
19822 library_names_spec='${libname}${release}.a $libname.a'
19823 soname_spec='${libname}${release}${shared_ext}$major'
19824 fi
19825 shlibpath_var=LIBPATH
19826 fi
19827 ;;
19828
19829amigaos*)
19830 library_names_spec='$libname.ixlibrary $libname.a'
19831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019832 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 +000019833 ;;
19834
19835beos*)
19836 library_names_spec='${libname}${shared_ext}'
19837 dynamic_linker="$host_os ld.so"
19838 shlibpath_var=LIBRARY_PATH
19839 ;;
19840
Reid Spencer2706f8c2004-09-19 23:53:36 +000019841bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019842 version_type=linux
19843 need_version=no
19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19845 soname_spec='${libname}${release}${shared_ext}$major'
19846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19847 shlibpath_var=LD_LIBRARY_PATH
19848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19850 # the default ld.so.conf also contains /usr/contrib/lib and
19851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19852 # libtool to hard-code these into programs
19853 ;;
19854
19855cygwin* | mingw* | pw32*)
19856 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019857 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019858 need_version=no
19859 need_lib_prefix=no
19860
19861 case $GCC,$host_os in
19862 yes,cygwin* | yes,mingw* | yes,pw32*)
19863 library_names_spec='$libname.dll.a'
19864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019865 postinstall_cmds='base_file=`basename \${file}`~
19866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19867 dldir=$destdir/`dirname \$dlpath`~
19868 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019869 $install_prog $dir/$dlname \$dldir/$dlname~
19870 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19872 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019873 $rm \$dlpath'
19874 shlibpath_overrides_runpath=yes
19875
19876 case $host_os in
19877 cygwin*)
19878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19879 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 +000019880 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019881 ;;
19882 mingw*)
19883 # MinGW DLLs use traditional 'lib' prefix
19884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19886 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19887 # It is most probably a Windows format PATH printed by
19888 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19889 # path with ; separators, and with drive letters. We can handle the
19890 # drive letters (cygwin fileutils understands them), so leave them,
19891 # especially as we might pass files found there to a mingw objdump,
19892 # which wouldn't understand a cygwinified path. Ahh.
19893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19894 else
19895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19896 fi
19897 ;;
19898 pw32*)
19899 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019900 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 +000019901 ;;
19902 esac
19903 ;;
19904
19905 *)
19906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19907 ;;
19908 esac
19909 dynamic_linker='Win32 ld.exe'
19910 # FIXME: first we should search . and the directory the executable is in
19911 shlibpath_var=PATH
19912 ;;
19913
19914darwin* | rhapsody*)
19915 dynamic_linker="$host_os dyld"
19916 version_type=darwin
19917 need_lib_prefix=no
19918 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019919 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019920 soname_spec='${libname}${release}${major}$shared_ext'
19921 shlibpath_overrides_runpath=yes
19922 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019924 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019925 if test "$GCC" = yes; then
19926 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"`
19927 else
19928 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019929 fi
19930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19931 ;;
19932
19933dgux*)
19934 version_type=linux
19935 need_lib_prefix=no
19936 need_version=no
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19938 soname_spec='${libname}${release}${shared_ext}$major'
19939 shlibpath_var=LD_LIBRARY_PATH
19940 ;;
19941
19942freebsd1*)
19943 dynamic_linker=no
19944 ;;
19945
Reid Spencer2706f8c2004-09-19 23:53:36 +000019946kfreebsd*-gnu)
19947 version_type=linux
19948 need_lib_prefix=no
19949 need_version=no
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 shlibpath_overrides_runpath=no
19954 hardcode_into_libs=yes
19955 dynamic_linker='GNU ld.so'
19956 ;;
19957
Reid Spencera773bd52006-08-04 18:18:08 +000019958freebsd* | dragonfly*)
19959 # DragonFly does not have aout. When/if they implement a new
19960 # versioning mechanism, adjust this.
19961 if test -x /usr/bin/objformat; then
19962 objformat=`/usr/bin/objformat`
19963 else
19964 case $host_os in
19965 freebsd[123]*) objformat=aout ;;
19966 *) objformat=elf ;;
19967 esac
19968 fi
John Criswell47fdd832003-07-14 16:52:07 +000019969 version_type=freebsd-$objformat
19970 case $version_type in
19971 freebsd-elf*)
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19973 need_version=no
19974 need_lib_prefix=no
19975 ;;
19976 freebsd-*)
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19978 need_version=yes
19979 ;;
19980 esac
19981 shlibpath_var=LD_LIBRARY_PATH
19982 case $host_os in
19983 freebsd2*)
19984 shlibpath_overrides_runpath=yes
19985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019986 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019987 shlibpath_overrides_runpath=yes
19988 hardcode_into_libs=yes
19989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019992 shlibpath_overrides_runpath=no
19993 hardcode_into_libs=yes
19994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019995 freebsd*) # from 4.6 on
19996 shlibpath_overrides_runpath=yes
19997 hardcode_into_libs=yes
19998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019999 esac
20000 ;;
20001
20002gnu*)
20003 version_type=linux
20004 need_lib_prefix=no
20005 need_version=no
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 shlibpath_var=LD_LIBRARY_PATH
20009 hardcode_into_libs=yes
20010 ;;
20011
20012hpux9* | hpux10* | hpux11*)
20013 # Give a soname corresponding to the major version so that dld.sl refuses to
20014 # link against other versions.
20015 version_type=sunos
20016 need_lib_prefix=no
20017 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020018 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020019 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020020 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020021 hardcode_into_libs=yes
20022 dynamic_linker="$host_os dld.so"
20023 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026 soname_spec='${libname}${release}${shared_ext}$major'
20027 if test "X$HPUX_IA64_MODE" = X32; then
20028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20029 else
20030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20031 fi
20032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20033 ;;
20034 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020035 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020036 hardcode_into_libs=yes
20037 dynamic_linker="$host_os dld.sl"
20038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20041 soname_spec='${libname}${release}${shared_ext}$major'
20042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20044 ;;
20045 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020046 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020047 dynamic_linker="$host_os dld.sl"
20048 shlibpath_var=SHLIB_PATH
20049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 ;;
20053 esac
20054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20055 postinstall_cmds='chmod 555 $lib'
20056 ;;
20057
Reid Spencera773bd52006-08-04 18:18:08 +000020058interix3*)
20059 version_type=linux
20060 need_lib_prefix=no
20061 need_version=no
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20065 shlibpath_var=LD_LIBRARY_PATH
20066 shlibpath_overrides_runpath=no
20067 hardcode_into_libs=yes
20068 ;;
20069
John Criswell47fdd832003-07-14 16:52:07 +000020070irix5* | irix6* | nonstopux*)
20071 case $host_os in
20072 nonstopux*) version_type=nonstopux ;;
20073 *)
20074 if test "$lt_cv_prog_gnu_ld" = yes; then
20075 version_type=linux
20076 else
20077 version_type=irix
20078 fi ;;
20079 esac
20080 need_lib_prefix=no
20081 need_version=no
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20084 case $host_os in
20085 irix5* | nonstopux*)
20086 libsuff= shlibsuff=
20087 ;;
20088 *)
20089 case $LD in # libtool.m4 will add one of these switches to LD
20090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20091 libsuff= shlibsuff= libmagic=32-bit;;
20092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20093 libsuff=32 shlibsuff=N32 libmagic=N32;;
20094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20096 *) libsuff= shlibsuff= libmagic=never-match;;
20097 esac
20098 ;;
20099 esac
20100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20101 shlibpath_overrides_runpath=no
20102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20104 hardcode_into_libs=yes
20105 ;;
20106
20107# No shared lib support for Linux oldld, aout, or coff.
20108linux*oldld* | linux*aout* | linux*coff*)
20109 dynamic_linker=no
20110 ;;
20111
20112# This must be Linux ELF.
20113linux*)
20114 version_type=linux
20115 need_lib_prefix=no
20116 need_version=no
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20120 shlibpath_var=LD_LIBRARY_PATH
20121 shlibpath_overrides_runpath=no
20122 # This implies no fast_install, which is unacceptable.
20123 # Some rework will be needed to allow for fast_install
20124 # before this can be enabled.
20125 hardcode_into_libs=yes
20126
Reid Spencer2706f8c2004-09-19 23:53:36 +000020127 # Append ld.so.conf contents to the search path
20128 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020129 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 +000020130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20131 fi
20132
John Criswell47fdd832003-07-14 16:52:07 +000020133 # We used to test for /lib/ld.so.1 and disable shared libraries on
20134 # powerpc, because MkLinux only supported shared libraries with the
20135 # GNU dynamic linker. Since this was broken with cross compilers,
20136 # most powerpc-linux boxes support dynamic linking these days and
20137 # people can always --disable-shared, the test was removed, and we
20138 # assume the GNU/Linux dynamic linker is in use.
20139 dynamic_linker='GNU/Linux ld.so'
20140 ;;
20141
Reid Spencer2706f8c2004-09-19 23:53:36 +000020142knetbsd*-gnu)
20143 version_type=linux
20144 need_lib_prefix=no
20145 need_version=no
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=no
20150 hardcode_into_libs=yes
20151 dynamic_linker='GNU ld.so'
20152 ;;
20153
John Criswell47fdd832003-07-14 16:52:07 +000020154netbsd*)
20155 version_type=sunos
20156 need_lib_prefix=no
20157 need_version=no
20158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20161 dynamic_linker='NetBSD (a.out) ld.so'
20162 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020164 soname_spec='${libname}${release}${shared_ext}$major'
20165 dynamic_linker='NetBSD ld.elf_so'
20166 fi
20167 shlibpath_var=LD_LIBRARY_PATH
20168 shlibpath_overrides_runpath=yes
20169 hardcode_into_libs=yes
20170 ;;
20171
20172newsos6)
20173 version_type=linux
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes
20177 ;;
20178
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020180 version_type=linux
20181 need_lib_prefix=no
20182 need_version=no
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 shlibpath_var=LD_LIBRARY_PATH
20186 shlibpath_overrides_runpath=yes
20187 ;;
20188
20189openbsd*)
20190 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020191 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020192 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20194 case $host_os in
20195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20196 *) need_version=no ;;
20197 esac
John Criswell47fdd832003-07-14 16:52:07 +000020198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20202 case $host_os in
20203 openbsd2.[89] | openbsd2.[89].*)
20204 shlibpath_overrides_runpath=no
20205 ;;
20206 *)
20207 shlibpath_overrides_runpath=yes
20208 ;;
20209 esac
20210 else
20211 shlibpath_overrides_runpath=yes
20212 fi
20213 ;;
20214
20215os2*)
20216 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020217 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020218 need_lib_prefix=no
20219 library_names_spec='$libname${shared_ext} $libname.a'
20220 dynamic_linker='OS/2 ld.exe'
20221 shlibpath_var=LIBPATH
20222 ;;
20223
20224osf3* | osf4* | osf5*)
20225 version_type=osf
20226 need_lib_prefix=no
20227 need_version=no
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20230 shlibpath_var=LD_LIBRARY_PATH
20231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20233 ;;
20234
John Criswell47fdd832003-07-14 16:52:07 +000020235solaris*)
20236 version_type=linux
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 shlibpath_overrides_runpath=yes
20243 hardcode_into_libs=yes
20244 # ldd complains unless libraries are executable
20245 postinstall_cmds='chmod +x $lib'
20246 ;;
20247
20248sunos4*)
20249 version_type=sunos
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=yes
20254 if test "$with_gnu_ld" = yes; then
20255 need_lib_prefix=no
20256 fi
20257 need_version=yes
20258 ;;
20259
Reid Spencera773bd52006-08-04 18:18:08 +000020260sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020261 version_type=linux
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 case $host_vendor in
20266 sni)
20267 shlibpath_overrides_runpath=no
20268 need_lib_prefix=no
20269 export_dynamic_flag_spec='${wl}-Blargedynsym'
20270 runpath_var=LD_RUN_PATH
20271 ;;
20272 siemens)
20273 need_lib_prefix=no
20274 ;;
20275 motorola)
20276 need_lib_prefix=no
20277 need_version=no
20278 shlibpath_overrides_runpath=no
20279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20280 ;;
20281 esac
20282 ;;
20283
20284sysv4*MP*)
20285 if test -d /usr/nec ;then
20286 version_type=linux
20287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20288 soname_spec='$libname${shared_ext}.$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 fi
20291 ;;
20292
Reid Spencera773bd52006-08-04 18:18:08 +000020293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20294 version_type=freebsd-elf
20295 need_lib_prefix=no
20296 need_version=no
20297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20298 soname_spec='${libname}${release}${shared_ext}$major'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 hardcode_into_libs=yes
20301 if test "$with_gnu_ld" = yes; then
20302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20303 shlibpath_overrides_runpath=no
20304 else
20305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20306 shlibpath_overrides_runpath=yes
20307 case $host_os in
20308 sco3.2v5*)
20309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20310 ;;
20311 esac
20312 fi
20313 sys_lib_dlsearch_path_spec='/usr/lib'
20314 ;;
20315
John Criswell47fdd832003-07-14 16:52:07 +000020316uts4*)
20317 version_type=linux
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 ;;
20322
20323*)
20324 dynamic_linker=no
20325 ;;
20326esac
Reid Spencera773bd52006-08-04 18:18:08 +000020327{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20328echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020329test "$dynamic_linker" = no && can_build_shared=no
20330
Reid Spencera773bd52006-08-04 18:18:08 +000020331variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20332if test "$GCC" = yes; then
20333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20334fi
20335
20336{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20337echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338hardcode_action_CXX=
20339if test -n "$hardcode_libdir_flag_spec_CXX" || \
20340 test -n "$runpath_var_CXX" || \
20341 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20342
20343 # We can hardcode non-existant directories.
20344 if test "$hardcode_direct_CXX" != no &&
20345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20346 # have to relink, otherwise we might link with an installed library
20347 # when we should be linking with a yet-to-be-installed one
20348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20349 test "$hardcode_minus_L_CXX" != no; then
20350 # Linking always hardcodes the temporary library directory.
20351 hardcode_action_CXX=relink
20352 else
20353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20354 hardcode_action_CXX=immediate
20355 fi
20356else
20357 # We cannot hardcode anything, or else we can only hardcode existing
20358 # directories.
20359 hardcode_action_CXX=unsupported
20360fi
Reid Spencera773bd52006-08-04 18:18:08 +000020361{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20362echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020363
20364if test "$hardcode_action_CXX" = relink; then
20365 # Fast installation is not supported
20366 enable_fast_install=no
20367elif test "$shlibpath_overrides_runpath" = yes ||
20368 test "$enable_shared" = no; then
20369 # Fast installation is not necessary
20370 enable_fast_install=needless
20371fi
20372
John Criswell47fdd832003-07-14 16:52:07 +000020373
20374# The else clause should only fire when bootstrapping the
20375# libtool distribution, otherwise you forgot to ship ltmain.sh
20376# with your package, and you will get complaints that there are
20377# no rules to generate ltmain.sh.
20378if test -f "$ltmain"; then
20379 # See if we are running on zsh, and set the options which allow our commands through
20380 # without removal of \ escapes.
20381 if test -n "${ZSH_VERSION+set}" ; then
20382 setopt NO_GLOB_SUBST
20383 fi
20384 # Now quote all the things that may contain metacharacters while being
20385 # careful not to overquote the AC_SUBSTed values. We take copies of the
20386 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020387 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 +000020388 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20391 deplibs_check_method reload_flag reload_cmds need_locks \
20392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20393 lt_cv_sys_global_symbol_to_c_name_address \
20394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20395 old_postinstall_cmds old_postuninstall_cmds \
20396 compiler_CXX \
20397 CC_CXX \
20398 LD_CXX \
20399 lt_prog_compiler_wl_CXX \
20400 lt_prog_compiler_pic_CXX \
20401 lt_prog_compiler_static_CXX \
20402 lt_prog_compiler_no_builtin_flag_CXX \
20403 export_dynamic_flag_spec_CXX \
20404 thread_safe_flag_spec_CXX \
20405 whole_archive_flag_spec_CXX \
20406 enable_shared_with_static_runtimes_CXX \
20407 old_archive_cmds_CXX \
20408 old_archive_from_new_cmds_CXX \
20409 predep_objects_CXX \
20410 postdep_objects_CXX \
20411 predeps_CXX \
20412 postdeps_CXX \
20413 compiler_lib_search_path_CXX \
20414 archive_cmds_CXX \
20415 archive_expsym_cmds_CXX \
20416 postinstall_cmds_CXX \
20417 postuninstall_cmds_CXX \
20418 old_archive_from_expsyms_cmds_CXX \
20419 allow_undefined_flag_CXX \
20420 no_undefined_flag_CXX \
20421 export_symbols_cmds_CXX \
20422 hardcode_libdir_flag_spec_CXX \
20423 hardcode_libdir_flag_spec_ld_CXX \
20424 hardcode_libdir_separator_CXX \
20425 hardcode_automatic_CXX \
20426 module_cmds_CXX \
20427 module_expsym_cmds_CXX \
20428 lt_cv_prog_compiler_c_o_CXX \
20429 exclude_expsyms_CXX \
20430 include_expsyms_CXX; do
20431
20432 case $var in
20433 old_archive_cmds_CXX | \
20434 old_archive_from_new_cmds_CXX | \
20435 archive_cmds_CXX | \
20436 archive_expsym_cmds_CXX | \
20437 module_cmds_CXX | \
20438 module_expsym_cmds_CXX | \
20439 old_archive_from_expsyms_cmds_CXX | \
20440 export_symbols_cmds_CXX | \
20441 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20442 postinstall_cmds | postuninstall_cmds | \
20443 old_postinstall_cmds | old_postuninstall_cmds | \
20444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20445 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020446 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 +000020447 ;;
20448 *)
20449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20450 ;;
20451 esac
20452 done
20453
20454 case $lt_echo in
20455 *'\$0 --fallback-echo"')
20456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20457 ;;
20458 esac
20459
20460cfgfile="$ofile"
20461
20462 cat <<__EOF__ >> "$cfgfile"
20463# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20464
20465# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20466
20467# Shell to use when invoking shell scripts.
20468SHELL=$lt_SHELL
20469
20470# Whether or not to build shared libraries.
20471build_libtool_libs=$enable_shared
20472
20473# Whether or not to build static libraries.
20474build_old_libs=$enable_static
20475
20476# Whether or not to add -lc for building shared libraries.
20477build_libtool_need_lc=$archive_cmds_need_lc_CXX
20478
20479# Whether or not to disallow shared libs when runtime libs are static
20480allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20481
20482# Whether or not to optimize for fast installation.
20483fast_install=$enable_fast_install
20484
20485# The host system.
20486host_alias=$host_alias
20487host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020488host_os=$host_os
20489
20490# The build system.
20491build_alias=$build_alias
20492build=$build
20493build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020494
20495# An echo program that does not interpret backslashes.
20496echo=$lt_echo
20497
20498# The archiver.
20499AR=$lt_AR
20500AR_FLAGS=$lt_AR_FLAGS
20501
20502# A C compiler.
20503LTCC=$lt_LTCC
20504
Reid Spencera773bd52006-08-04 18:18:08 +000020505# LTCC compiler flags.
20506LTCFLAGS=$lt_LTCFLAGS
20507
John Criswell47fdd832003-07-14 16:52:07 +000020508# A language-specific compiler.
20509CC=$lt_compiler_CXX
20510
20511# Is the compiler the GNU C compiler?
20512with_gcc=$GCC_CXX
20513
20514# An ERE matcher.
20515EGREP=$lt_EGREP
20516
20517# The linker used to build libraries.
20518LD=$lt_LD_CXX
20519
20520# Whether we need hard or soft links.
20521LN_S=$lt_LN_S
20522
20523# A BSD-compatible nm program.
20524NM=$lt_NM
20525
20526# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020527STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020528
20529# Used to examine libraries when file_magic_cmd begins "file"
20530MAGIC_CMD=$MAGIC_CMD
20531
20532# Used on cygwin: DLL creation program.
20533DLLTOOL="$DLLTOOL"
20534
20535# Used on cygwin: object dumper.
20536OBJDUMP="$OBJDUMP"
20537
20538# Used on cygwin: assembler.
20539AS="$AS"
20540
20541# The name of the directory that contains temporary libtool files.
20542objdir=$objdir
20543
20544# How to create reloadable object files.
20545reload_flag=$lt_reload_flag
20546reload_cmds=$lt_reload_cmds
20547
20548# How to pass a linker flag through the compiler.
20549wl=$lt_lt_prog_compiler_wl_CXX
20550
20551# Object file suffix (normally "o").
20552objext="$ac_objext"
20553
20554# Old archive suffix (normally "a").
20555libext="$libext"
20556
20557# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020558shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020559
20560# Executable file suffix (normally "").
20561exeext="$exeext"
20562
20563# Additional compiler flags for building library objects.
20564pic_flag=$lt_lt_prog_compiler_pic_CXX
20565pic_mode=$pic_mode
20566
20567# What is the maximum length of a command?
20568max_cmd_len=$lt_cv_sys_max_cmd_len
20569
20570# Does compiler simultaneously support -c and -o options?
20571compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20572
Reid Spencera773bd52006-08-04 18:18:08 +000020573# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020574need_locks=$lt_need_locks
20575
20576# Do we need the lib prefix for modules?
20577need_lib_prefix=$need_lib_prefix
20578
20579# Do we need a version for libraries?
20580need_version=$need_version
20581
20582# Whether dlopen is supported.
20583dlopen_support=$enable_dlopen
20584
20585# Whether dlopen of programs is supported.
20586dlopen_self=$enable_dlopen_self
20587
20588# Whether dlopen of statically linked programs is supported.
20589dlopen_self_static=$enable_dlopen_self_static
20590
20591# Compiler flag to prevent dynamic linking.
20592link_static_flag=$lt_lt_prog_compiler_static_CXX
20593
20594# Compiler flag to turn off builtin functions.
20595no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20596
20597# Compiler flag to allow reflexive dlopens.
20598export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20599
20600# Compiler flag to generate shared objects directly from archives.
20601whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20602
20603# Compiler flag to generate thread-safe objects.
20604thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20605
20606# Library versioning type.
20607version_type=$version_type
20608
20609# Format of library name prefix.
20610libname_spec=$lt_libname_spec
20611
20612# List of archive names. First name is the real one, the rest are links.
20613# The last name is the one that the linker finds with -lNAME.
20614library_names_spec=$lt_library_names_spec
20615
20616# The coded name of the library, if different from the real name.
20617soname_spec=$lt_soname_spec
20618
20619# Commands used to build and install an old-style archive.
20620RANLIB=$lt_RANLIB
20621old_archive_cmds=$lt_old_archive_cmds_CXX
20622old_postinstall_cmds=$lt_old_postinstall_cmds
20623old_postuninstall_cmds=$lt_old_postuninstall_cmds
20624
20625# Create an old-style archive from a shared archive.
20626old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20627
20628# Create a temporary old-style archive to link instead of a shared archive.
20629old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20630
20631# Commands used to build and install a shared archive.
20632archive_cmds=$lt_archive_cmds_CXX
20633archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20634postinstall_cmds=$lt_postinstall_cmds
20635postuninstall_cmds=$lt_postuninstall_cmds
20636
20637# Commands used to build a loadable module (assumed same as above if empty)
20638module_cmds=$lt_module_cmds_CXX
20639module_expsym_cmds=$lt_module_expsym_cmds_CXX
20640
20641# Commands to strip libraries.
20642old_striplib=$lt_old_striplib
20643striplib=$lt_striplib
20644
20645# Dependencies to place before the objects being linked to create a
20646# shared library.
20647predep_objects=$lt_predep_objects_CXX
20648
20649# Dependencies to place after the objects being linked to create a
20650# shared library.
20651postdep_objects=$lt_postdep_objects_CXX
20652
20653# Dependencies to place before the objects being linked to create a
20654# shared library.
20655predeps=$lt_predeps_CXX
20656
20657# Dependencies to place after the objects being linked to create a
20658# shared library.
20659postdeps=$lt_postdeps_CXX
20660
20661# The library search path used internally by the compiler when linking
20662# a shared library.
20663compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20664
20665# Method to check whether dependent libraries are shared objects.
20666deplibs_check_method=$lt_deplibs_check_method
20667
20668# Command to use when deplibs_check_method == file_magic.
20669file_magic_cmd=$lt_file_magic_cmd
20670
20671# Flag that allows shared libraries with undefined symbols to be built.
20672allow_undefined_flag=$lt_allow_undefined_flag_CXX
20673
20674# Flag that forces no undefined symbols.
20675no_undefined_flag=$lt_no_undefined_flag_CXX
20676
20677# Commands used to finish a libtool library installation in a directory.
20678finish_cmds=$lt_finish_cmds
20679
20680# Same as above, but a single script fragment to be evaled but not shown.
20681finish_eval=$lt_finish_eval
20682
20683# Take the output of nm and produce a listing of raw symbols and C names.
20684global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20685
20686# Transform the output of nm in a proper C declaration
20687global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20688
20689# Transform the output of nm in a C name address pair
20690global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20691
20692# This is the shared library runtime path variable.
20693runpath_var=$runpath_var
20694
20695# This is the shared library path variable.
20696shlibpath_var=$shlibpath_var
20697
20698# Is shlibpath searched before the hard-coded library search path?
20699shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20700
20701# How to hardcode a shared library path into an executable.
20702hardcode_action=$hardcode_action_CXX
20703
20704# Whether we should hardcode library paths into libraries.
20705hardcode_into_libs=$hardcode_into_libs
20706
20707# Flag to hardcode \$libdir into a binary during linking.
20708# This must work even if \$libdir does not exist.
20709hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20710
20711# If ld is used when linking, flag to hardcode \$libdir into
20712# a binary during linking. This must work even if \$libdir does
20713# not exist.
20714hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20715
20716# Whether we need a single -rpath flag with a separated argument.
20717hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20718
20719# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20720# resulting binary.
20721hardcode_direct=$hardcode_direct_CXX
20722
20723# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20724# resulting binary.
20725hardcode_minus_L=$hardcode_minus_L_CXX
20726
20727# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20728# the resulting binary.
20729hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20730
20731# Set to yes if building a shared library automatically hardcodes DIR into the library
20732# and all subsequent libraries and executables linked against it.
20733hardcode_automatic=$hardcode_automatic_CXX
20734
20735# Variables whose values should be saved in libtool wrapper scripts and
20736# restored at relink time.
20737variables_saved_for_relink="$variables_saved_for_relink"
20738
20739# Whether libtool must link a program against all its dependency libraries.
20740link_all_deplibs=$link_all_deplibs_CXX
20741
20742# Compile-time system search path for libraries
20743sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20744
20745# Run-time system search path for libraries
20746sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20747
20748# Fix the shell variable \$srcfile for the compiler.
20749fix_srcfile_path="$fix_srcfile_path_CXX"
20750
20751# Set to yes if exported symbols are required.
20752always_export_symbols=$always_export_symbols_CXX
20753
20754# The commands to list exported symbols.
20755export_symbols_cmds=$lt_export_symbols_cmds_CXX
20756
20757# The commands to extract the exported symbol list from a shared archive.
20758extract_expsyms_cmds=$lt_extract_expsyms_cmds
20759
20760# Symbols that should not be listed in the preloaded symbols.
20761exclude_expsyms=$lt_exclude_expsyms_CXX
20762
20763# Symbols that must always be exported.
20764include_expsyms=$lt_include_expsyms_CXX
20765
20766# ### END LIBTOOL TAG CONFIG: $tagname
20767
20768__EOF__
20769
20770
20771else
20772 # If there is no Makefile yet, we rely on a make rule to execute
20773 # `config.status --recheck' to rerun these tests and create the
20774 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020775 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20776 if test -f "$ltmain_in"; then
20777 test -f Makefile && make "$ltmain"
20778 fi
John Criswell47fdd832003-07-14 16:52:07 +000020779fi
20780
20781
20782ac_ext=c
20783ac_cpp='$CPP $CPPFLAGS'
20784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20786ac_compiler_gnu=$ac_cv_c_compiler_gnu
20787
20788CC=$lt_save_CC
20789LDCXX=$LD
20790LD=$lt_save_LD
20791GCC=$lt_save_GCC
20792with_gnu_ldcxx=$with_gnu_ld
20793with_gnu_ld=$lt_save_with_gnu_ld
20794lt_cv_path_LDCXX=$lt_cv_path_LD
20795lt_cv_path_LD=$lt_save_path_LD
20796lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20797lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20798
20799 else
20800 tagname=""
20801 fi
20802 ;;
20803
20804 F77)
20805 if test -n "$F77" && test "X$F77" != "Xno"; then
20806
20807ac_ext=f
20808ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20809ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20810ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20811
20812
20813archive_cmds_need_lc_F77=no
20814allow_undefined_flag_F77=
20815always_export_symbols_F77=no
20816archive_expsym_cmds_F77=
20817export_dynamic_flag_spec_F77=
20818hardcode_direct_F77=no
20819hardcode_libdir_flag_spec_F77=
20820hardcode_libdir_flag_spec_ld_F77=
20821hardcode_libdir_separator_F77=
20822hardcode_minus_L_F77=no
20823hardcode_automatic_F77=no
20824module_cmds_F77=
20825module_expsym_cmds_F77=
20826link_all_deplibs_F77=unknown
20827old_archive_cmds_F77=$old_archive_cmds
20828no_undefined_flag_F77=
20829whole_archive_flag_spec_F77=
20830enable_shared_with_static_runtimes_F77=no
20831
20832# Source file extension for f77 test sources.
20833ac_ext=f
20834
20835# Object file extension for compiled f77 test sources.
20836objext=o
20837objext_F77=$objext
20838
20839# Code to be used in simple compile tests
20840lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20841
20842# Code to be used in simple link tests
20843lt_simple_link_test_code=" program t\n end\n"
20844
20845# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20846
20847# If no C compiler was specified, use CC.
20848LTCC=${LTCC-"$CC"}
20849
Reid Spencera773bd52006-08-04 18:18:08 +000020850# If no C compiler flags were specified, use CFLAGS.
20851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20852
John Criswell47fdd832003-07-14 16:52:07 +000020853# Allow CC to be a program name with arguments.
20854compiler=$CC
20855
20856
Reid Spencera773bd52006-08-04 18:18:08 +000020857# save warnings/boilerplate of simple test code
20858ac_outfile=conftest.$ac_objext
20859printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20860eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20861_lt_compiler_boilerplate=`cat conftest.err`
20862$rm conftest*
20863
20864ac_outfile=conftest.$ac_objext
20865printf "$lt_simple_link_test_code" >conftest.$ac_ext
20866eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20867_lt_linker_boilerplate=`cat conftest.err`
20868$rm conftest*
20869
20870
John Criswell47fdd832003-07-14 16:52:07 +000020871# Allow CC to be a program name with arguments.
20872lt_save_CC="$CC"
20873CC=${F77-"f77"}
20874compiler=$CC
20875compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020876for cc_temp in $compiler""; do
20877 case $cc_temp in
20878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20880 \-*) ;;
20881 *) break;;
20882 esac
20883done
20884cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020885
John Criswell47fdd832003-07-14 16:52:07 +000020886
Reid Spencera773bd52006-08-04 18:18:08 +000020887{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20888echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20889{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20890echo "${ECHO_T}$can_build_shared" >&6; }
20891
20892{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20893echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020894test "$can_build_shared" = "no" && enable_shared=no
20895
20896# On AIX, shared libraries and static libraries use the same namespace, and
20897# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020898case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020899aix3*)
20900 test "$enable_shared" = yes && enable_static=no
20901 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020902 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020903 postinstall_cmds='$RANLIB $lib'
20904 fi
20905 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020906aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20908 test "$enable_shared" = yes && enable_static=no
20909 fi
John Criswell47fdd832003-07-14 16:52:07 +000020910 ;;
20911esac
Reid Spencera773bd52006-08-04 18:18:08 +000020912{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20913echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020914
Reid Spencera773bd52006-08-04 18:18:08 +000020915{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20916echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020917# Make sure either enable_shared or enable_static is yes.
20918test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020919{ echo "$as_me:$LINENO: result: $enable_static" >&5
20920echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020921
20922GCC_F77="$G77"
20923LD_F77="$LD"
20924
20925lt_prog_compiler_wl_F77=
20926lt_prog_compiler_pic_F77=
20927lt_prog_compiler_static_F77=
20928
Reid Spencera773bd52006-08-04 18:18:08 +000020929{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20930echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020931
20932 if test "$GCC" = yes; then
20933 lt_prog_compiler_wl_F77='-Wl,'
20934 lt_prog_compiler_static_F77='-static'
20935
20936 case $host_os in
20937 aix*)
20938 # All AIX code is PIC.
20939 if test "$host_cpu" = ia64; then
20940 # AIX 5 now supports IA64 processor
20941 lt_prog_compiler_static_F77='-Bstatic'
20942 fi
20943 ;;
20944
20945 amigaos*)
20946 # FIXME: we need at least 68020 code to build shared libraries, but
20947 # adding the `-m68020' flag to GCC prevents building anything better,
20948 # like `-m68040'.
20949 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20950 ;;
20951
20952 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20953 # PIC is the default for these OSes.
20954 ;;
20955
20956 mingw* | pw32* | os2*)
20957 # This hack is so that the source file can tell whether it is being
20958 # built for inclusion in a dll (and should export symbols for example).
20959 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20960 ;;
20961
20962 darwin* | rhapsody*)
20963 # PIC is the default on this platform
20964 # Common symbols not allowed in MH_DYLIB files
20965 lt_prog_compiler_pic_F77='-fno-common'
20966 ;;
20967
Reid Spencera773bd52006-08-04 18:18:08 +000020968 interix3*)
20969 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20970 # Instead, we relocate shared libraries at runtime.
20971 ;;
20972
John Criswell47fdd832003-07-14 16:52:07 +000020973 msdosdjgpp*)
20974 # Just because we use GCC doesn't mean we suddenly get shared libraries
20975 # on systems that don't support them.
20976 lt_prog_compiler_can_build_shared_F77=no
20977 enable_shared=no
20978 ;;
20979
20980 sysv4*MP*)
20981 if test -d /usr/nec; then
20982 lt_prog_compiler_pic_F77=-Kconform_pic
20983 fi
20984 ;;
20985
20986 hpux*)
20987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20988 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020989 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020990 hppa*64*|ia64*)
20991 # +Z the default
20992 ;;
20993 *)
20994 lt_prog_compiler_pic_F77='-fPIC'
20995 ;;
20996 esac
20997 ;;
20998
20999 *)
21000 lt_prog_compiler_pic_F77='-fPIC'
21001 ;;
21002 esac
21003 else
21004 # PORTME Check for flag to pass linker flags through the system compiler.
21005 case $host_os in
21006 aix*)
21007 lt_prog_compiler_wl_F77='-Wl,'
21008 if test "$host_cpu" = ia64; then
21009 # AIX 5 now supports IA64 processor
21010 lt_prog_compiler_static_F77='-Bstatic'
21011 else
21012 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21013 fi
21014 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021015 darwin*)
21016 # PIC is the default on this platform
21017 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021018 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021019 xlc*)
21020 lt_prog_compiler_pic_F77='-qnocommon'
21021 lt_prog_compiler_wl_F77='-Wl,'
21022 ;;
21023 esac
21024 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021025
21026 mingw* | pw32* | os2*)
21027 # This hack is so that the source file can tell whether it is being
21028 # built for inclusion in a dll (and should export symbols for example).
21029 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21030 ;;
21031
21032 hpux9* | hpux10* | hpux11*)
21033 lt_prog_compiler_wl_F77='-Wl,'
21034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21035 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021036 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021037 hppa*64*|ia64*)
21038 # +Z the default
21039 ;;
21040 *)
21041 lt_prog_compiler_pic_F77='+Z'
21042 ;;
21043 esac
21044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21045 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21046 ;;
21047
21048 irix5* | irix6* | nonstopux*)
21049 lt_prog_compiler_wl_F77='-Wl,'
21050 # PIC (with -KPIC) is the default.
21051 lt_prog_compiler_static_F77='-non_shared'
21052 ;;
21053
21054 newsos6)
21055 lt_prog_compiler_pic_F77='-KPIC'
21056 lt_prog_compiler_static_F77='-Bstatic'
21057 ;;
21058
21059 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021060 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021061 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021062 lt_prog_compiler_wl_F77='-Wl,'
21063 lt_prog_compiler_pic_F77='-KPIC'
21064 lt_prog_compiler_static_F77='-static'
21065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021066 pgcc* | pgf77* | pgf90* | pgf95*)
21067 # Portland Group compilers (*not* the Pentium gcc compiler,
21068 # which looks to be a dead project)
21069 lt_prog_compiler_wl_F77='-Wl,'
21070 lt_prog_compiler_pic_F77='-fpic'
21071 lt_prog_compiler_static_F77='-Bstatic'
21072 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021073 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021074 lt_prog_compiler_wl_F77='-Wl,'
21075 # All Alpha code is PIC.
21076 lt_prog_compiler_static_F77='-non_shared'
21077 ;;
21078 esac
21079 ;;
21080
21081 osf3* | osf4* | osf5*)
21082 lt_prog_compiler_wl_F77='-Wl,'
21083 # All OSF/1 code is PIC.
21084 lt_prog_compiler_static_F77='-non_shared'
21085 ;;
21086
John Criswell47fdd832003-07-14 16:52:07 +000021087 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021088 lt_prog_compiler_pic_F77='-KPIC'
21089 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021090 case $cc_basename in
21091 f77* | f90* | f95*)
21092 lt_prog_compiler_wl_F77='-Qoption ld ';;
21093 *)
21094 lt_prog_compiler_wl_F77='-Wl,';;
21095 esac
John Criswell47fdd832003-07-14 16:52:07 +000021096 ;;
21097
21098 sunos4*)
21099 lt_prog_compiler_wl_F77='-Qoption ld '
21100 lt_prog_compiler_pic_F77='-PIC'
21101 lt_prog_compiler_static_F77='-Bstatic'
21102 ;;
21103
Reid Spencera773bd52006-08-04 18:18:08 +000021104 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021105 lt_prog_compiler_wl_F77='-Wl,'
21106 lt_prog_compiler_pic_F77='-KPIC'
21107 lt_prog_compiler_static_F77='-Bstatic'
21108 ;;
21109
21110 sysv4*MP*)
21111 if test -d /usr/nec ;then
21112 lt_prog_compiler_pic_F77='-Kconform_pic'
21113 lt_prog_compiler_static_F77='-Bstatic'
21114 fi
21115 ;;
21116
Reid Spencera773bd52006-08-04 18:18:08 +000021117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21118 lt_prog_compiler_wl_F77='-Wl,'
21119 lt_prog_compiler_pic_F77='-KPIC'
21120 lt_prog_compiler_static_F77='-Bstatic'
21121 ;;
21122
21123 unicos*)
21124 lt_prog_compiler_wl_F77='-Wl,'
21125 lt_prog_compiler_can_build_shared_F77=no
21126 ;;
21127
John Criswell47fdd832003-07-14 16:52:07 +000021128 uts4*)
21129 lt_prog_compiler_pic_F77='-pic'
21130 lt_prog_compiler_static_F77='-Bstatic'
21131 ;;
21132
21133 *)
21134 lt_prog_compiler_can_build_shared_F77=no
21135 ;;
21136 esac
21137 fi
21138
Reid Spencera773bd52006-08-04 18:18:08 +000021139{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21140echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021141
21142#
21143# Check to make sure the PIC flag actually works.
21144#
21145if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021146
Reid Spencera773bd52006-08-04 18:18:08 +000021147{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21148echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021149if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151else
21152 lt_prog_compiler_pic_works_F77=no
21153 ac_outfile=conftest.$ac_objext
21154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21155 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21156 # Insert the option either (1) after the last *FLAGS variable, or
21157 # (2) before a word containing "conftest.", or (3) at the end.
21158 # Note that $ac_compile itself does not contain backslashes and begins
21159 # with a dollar sign (not a hyphen), so the echo should work correctly.
21160 # The option is referenced via a variable to avoid confusing sed.
21161 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21164 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000021165 (eval echo "\"\$as_me:21165: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021166 (eval "$lt_compile" 2>conftest.err)
21167 ac_status=$?
21168 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000021169 echo "$as_me:21169: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021170 if (exit $ac_status) && test -s "$ac_outfile"; then
21171 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021172 # So say no if there are warnings other than the usual output.
21173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021176 lt_prog_compiler_pic_works_F77=yes
21177 fi
21178 fi
21179 $rm conftest*
21180
21181fi
Reid Spencera773bd52006-08-04 18:18:08 +000021182{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21183echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021184
21185if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21186 case $lt_prog_compiler_pic_F77 in
21187 "" | " "*) ;;
21188 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21189 esac
21190else
21191 lt_prog_compiler_pic_F77=
21192 lt_prog_compiler_can_build_shared_F77=no
21193fi
21194
21195fi
Reid Spencera773bd52006-08-04 18:18:08 +000021196case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021197 # For platforms which do not support PIC, -DPIC is meaningless:
21198 *djgpp*)
21199 lt_prog_compiler_pic_F77=
21200 ;;
21201 *)
21202 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21203 ;;
21204esac
21205
Reid Spencera773bd52006-08-04 18:18:08 +000021206#
21207# Check to make sure the static flag actually works.
21208#
21209wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21210{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21211echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21212if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21214else
21215 lt_prog_compiler_static_works_F77=no
21216 save_LDFLAGS="$LDFLAGS"
21217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21218 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21220 # The linker can only warn and ignore the option if not recognized
21221 # So say no if there are warnings
21222 if test -s conftest.err; then
21223 # Append any errors to the config.log.
21224 cat conftest.err 1>&5
21225 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21227 if diff conftest.exp conftest.er2 >/dev/null; then
21228 lt_prog_compiler_static_works_F77=yes
21229 fi
21230 else
21231 lt_prog_compiler_static_works_F77=yes
21232 fi
21233 fi
21234 $rm conftest*
21235 LDFLAGS="$save_LDFLAGS"
21236
21237fi
21238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21239echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21240
21241if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21242 :
21243else
21244 lt_prog_compiler_static_F77=
21245fi
21246
21247
21248{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21249echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021250if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252else
21253 lt_cv_prog_compiler_c_o_F77=no
21254 $rm -r conftest 2>/dev/null
21255 mkdir conftest
21256 cd conftest
21257 mkdir out
21258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21259
John Criswell47fdd832003-07-14 16:52:07 +000021260 lt_compiler_flag="-o out/conftest2.$ac_objext"
21261 # Insert the option either (1) after the last *FLAGS variable, or
21262 # (2) before a word containing "conftest.", or (3) at the end.
21263 # Note that $ac_compile itself does not contain backslashes and begins
21264 # with a dollar sign (not a hyphen), so the echo should work correctly.
21265 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21268 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000021269 (eval echo "\"\$as_me:21269: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021270 (eval "$lt_compile" 2>out/conftest.err)
21271 ac_status=$?
21272 cat out/conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000021273 echo "$as_me:21273: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21275 then
21276 # The compiler can only warn and ignore the option if not recognized
21277 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021281 lt_cv_prog_compiler_c_o_F77=yes
21282 fi
21283 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021284 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021285 $rm conftest*
21286 # SGI C++ compiler will create directory out/ii_files/ for
21287 # template instantiation
21288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21289 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021290 cd ..
21291 rmdir conftest
21292 $rm conftest*
21293
21294fi
Reid Spencera773bd52006-08-04 18:18:08 +000021295{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21296echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021297
21298
21299hard_links="nottested"
21300if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21301 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021302 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21303echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021304 hard_links=yes
21305 $rm conftest*
21306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21307 touch conftest.a
21308 ln conftest.a conftest.b 2>&5 || hard_links=no
21309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021310 { echo "$as_me:$LINENO: result: $hard_links" >&5
21311echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021312 if test "$hard_links" = no; then
21313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21314echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21315 need_locks=warn
21316 fi
21317else
21318 need_locks=no
21319fi
21320
Reid Spencera773bd52006-08-04 18:18:08 +000021321{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021323
21324 runpath_var=
21325 allow_undefined_flag_F77=
21326 enable_shared_with_static_runtimes_F77=no
21327 archive_cmds_F77=
21328 archive_expsym_cmds_F77=
21329 old_archive_From_new_cmds_F77=
21330 old_archive_from_expsyms_cmds_F77=
21331 export_dynamic_flag_spec_F77=
21332 whole_archive_flag_spec_F77=
21333 thread_safe_flag_spec_F77=
21334 hardcode_libdir_flag_spec_F77=
21335 hardcode_libdir_flag_spec_ld_F77=
21336 hardcode_libdir_separator_F77=
21337 hardcode_direct_F77=no
21338 hardcode_minus_L_F77=no
21339 hardcode_shlibpath_var_F77=unsupported
21340 link_all_deplibs_F77=unknown
21341 hardcode_automatic_F77=no
21342 module_cmds_F77=
21343 module_expsym_cmds_F77=
21344 always_export_symbols_F77=no
21345 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21346 # include_expsyms should be a list of space-separated symbols to be *always*
21347 # included in the symbol list
21348 include_expsyms_F77=
21349 # exclude_expsyms can be an extended regexp of symbols to exclude
21350 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21351 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21352 # as well as any symbol that contains `d'.
21353 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21355 # platforms (ab)use it in PIC code, but their linkers get confused if
21356 # the symbol is explicitly referenced. Since portable code cannot
21357 # rely on this symbol name, it's probably fine to never include it in
21358 # preloaded symbol tables.
21359 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021360 # Just being paranoid about ensuring that cc_basename is set.
21361 for cc_temp in $compiler""; do
21362 case $cc_temp in
21363 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21364 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21365 \-*) ;;
21366 *) break;;
21367 esac
21368done
21369cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021370
21371 case $host_os in
21372 cygwin* | mingw* | pw32*)
21373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21374 # When not using gcc, we currently assume that we are using
21375 # Microsoft Visual C++.
21376 if test "$GCC" != yes; then
21377 with_gnu_ld=no
21378 fi
21379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021380 interix*)
21381 # we just hope/assume this is gcc and not c89 (= MSVC++)
21382 with_gnu_ld=yes
21383 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021384 openbsd*)
21385 with_gnu_ld=no
21386 ;;
21387 esac
21388
21389 ld_shlibs_F77=yes
21390 if test "$with_gnu_ld" = yes; then
21391 # If archive_cmds runs LD, not CC, wlarc should be empty
21392 wlarc='${wl}'
21393
Reid Spencera773bd52006-08-04 18:18:08 +000021394 # Set some defaults for GNU ld with shared library support. These
21395 # are reset later if shared libraries are not supported. Putting them
21396 # here allows them to be overridden if necessary.
21397 runpath_var=LD_RUN_PATH
21398 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21399 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21400 # ancient GNU ld didn't support --whole-archive et. al.
21401 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21402 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21403 else
21404 whole_archive_flag_spec_F77=
21405 fi
21406 supports_anon_versioning=no
21407 case `$LD -v 2>/dev/null` in
21408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21411 *\ 2.11.*) ;; # other 2.11 versions
21412 *) supports_anon_versioning=yes ;;
21413 esac
21414
John Criswell47fdd832003-07-14 16:52:07 +000021415 # See if GNU ld supports shared libraries.
21416 case $host_os in
21417 aix3* | aix4* | aix5*)
21418 # On AIX/PPC, the GNU linker is very broken
21419 if test "$host_cpu" != ia64; then
21420 ld_shlibs_F77=no
21421 cat <<EOF 1>&2
21422
21423*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21424*** to be unable to reliably create shared libraries on AIX.
21425*** Therefore, libtool is disabling shared libraries support. If you
21426*** really care for shared libraries, you may want to modify your PATH
21427*** so that a non-GNU linker is found, and then restart.
21428
21429EOF
21430 fi
21431 ;;
21432
21433 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021434 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 +000021435 hardcode_libdir_flag_spec_F77='-L$libdir'
21436 hardcode_minus_L_F77=yes
21437
21438 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21439 # that the semantics of dynamic libraries on AmigaOS, at least up
21440 # to version 4, is to share data among multiple programs linked
21441 # with the same dynamic library. Since this doesn't match the
21442 # behavior of shared libraries on other platforms, we can't use
21443 # them.
21444 ld_shlibs_F77=no
21445 ;;
21446
21447 beos*)
21448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21449 allow_undefined_flag_F77=unsupported
21450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21451 # support --undefined. This deserves some investigation. FIXME
21452 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21453 else
21454 ld_shlibs_F77=no
21455 fi
21456 ;;
21457
21458 cygwin* | mingw* | pw32*)
21459 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21460 # as there is no search path for DLLs.
21461 hardcode_libdir_flag_spec_F77='-L$libdir'
21462 allow_undefined_flag_F77=unsupported
21463 always_export_symbols_F77=no
21464 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021465 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 +000021466
21467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021468 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 +000021469 # If the export-symbols file already is a .def file (1st line
21470 # is EXPORTS), use it as is; otherwise, prepend...
21471 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21472 cp $export_symbols $output_objdir/$soname.def;
21473 else
21474 echo EXPORTS > $output_objdir/$soname.def;
21475 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021476 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021477 $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 +000021478 else
Reid Spencera773bd52006-08-04 18:18:08 +000021479 ld_shlibs_F77=no
21480 fi
21481 ;;
21482
21483 interix3*)
21484 hardcode_direct_F77=no
21485 hardcode_shlibpath_var_F77=no
21486 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21487 export_dynamic_flag_spec_F77='${wl}-E'
21488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21489 # Instead, shared libraries are loaded at an image base (0x10000000 by
21490 # default) and relocated if they conflict, which is a slow very memory
21491 # consuming and fragmenting process. To avoid this, we pick a random,
21492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21494 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'
21495 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'
21496 ;;
21497
21498 linux*)
21499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500 tmp_addflag=
21501 case $cc_basename,$host_cpu in
21502 pgcc*) # Portland Group C compiler
21503 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'
21504 tmp_addflag=' $pic_flag'
21505 ;;
21506 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21507 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'
21508 tmp_addflag=' $pic_flag -Mnomain' ;;
21509 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21510 tmp_addflag=' -i_dynamic' ;;
21511 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21512 tmp_addflag=' -i_dynamic -nofor_main' ;;
21513 ifc* | ifort*) # Intel Fortran compiler
21514 tmp_addflag=' -nofor_main' ;;
21515 esac
21516 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517
21518 if test $supports_anon_versioning = yes; then
21519 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21521 $echo "local: *; };" >> $output_objdir/$libname.ver~
21522 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21523 fi
21524 else
21525 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021526 fi
21527 ;;
21528
21529 netbsd*)
21530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21531 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21532 wlarc=
21533 else
21534 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21535 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21536 fi
21537 ;;
21538
Reid Spencera773bd52006-08-04 18:18:08 +000021539 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021540 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21541 ld_shlibs_F77=no
21542 cat <<EOF 1>&2
21543
21544*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21545*** create shared libraries on Solaris systems. Therefore, libtool
21546*** is disabling shared libraries support. We urge you to upgrade GNU
21547*** binutils to release 2.9.1 or newer. Another option is to modify
21548*** your PATH or compiler configuration so that the native linker is
21549*** used, and then restart.
21550
21551EOF
21552 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21555 else
21556 ld_shlibs_F77=no
21557 fi
21558 ;;
21559
Reid Spencera773bd52006-08-04 18:18:08 +000021560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21561 case `$LD -v 2>&1` in
21562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21563 ld_shlibs_F77=no
21564 cat <<_LT_EOF 1>&2
21565
21566*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21567*** reliably create shared libraries on SCO systems. Therefore, libtool
21568*** is disabling shared libraries support. We urge you to upgrade GNU
21569*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21570*** your PATH or compiler configuration so that the native linker is
21571*** used, and then restart.
21572
21573_LT_EOF
21574 ;;
21575 *)
21576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21577 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21580 else
21581 ld_shlibs_F77=no
21582 fi
21583 ;;
21584 esac
21585 ;;
21586
John Criswell47fdd832003-07-14 16:52:07 +000021587 sunos4*)
21588 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21589 wlarc=
21590 hardcode_direct_F77=yes
21591 hardcode_shlibpath_var_F77=no
21592 ;;
21593
21594 *)
21595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21598 else
21599 ld_shlibs_F77=no
21600 fi
21601 ;;
21602 esac
21603
Reid Spencera773bd52006-08-04 18:18:08 +000021604 if test "$ld_shlibs_F77" = no; then
21605 runpath_var=
21606 hardcode_libdir_flag_spec_F77=
21607 export_dynamic_flag_spec_F77=
21608 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021609 fi
21610 else
21611 # PORTME fill in a description of your system's linker (not GNU ld)
21612 case $host_os in
21613 aix3*)
21614 allow_undefined_flag_F77=unsupported
21615 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021616 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 +000021617 # Note: this linker hardcodes the directories in LIBPATH if there
21618 # are no directories specified by -L.
21619 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021621 # Neither direct hardcoding nor static linking is supported with a
21622 # broken collect2.
21623 hardcode_direct_F77=unsupported
21624 fi
21625 ;;
21626
21627 aix4* | aix5*)
21628 if test "$host_cpu" = ia64; then
21629 # On IA64, the linker does run time linking by default, so we don't
21630 # have to do anything special.
21631 aix_use_runtimelinking=no
21632 exp_sym_flag='-Bexport'
21633 no_entry_flag=""
21634 else
21635 # If we're using GNU nm, then we don't want the "-C" option.
21636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21638 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'
21639 else
21640 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'
21641 fi
21642 aix_use_runtimelinking=no
21643
21644 # Test if we are trying to use run time linking or normal
21645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21646 # need to do runtime linking.
21647 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21648 for ld_flag in $LDFLAGS; do
21649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21650 aix_use_runtimelinking=yes
21651 break
21652 fi
21653 done
Reid Spencera773bd52006-08-04 18:18:08 +000021654 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021655 esac
21656
21657 exp_sym_flag='-bexport'
21658 no_entry_flag='-bnoentry'
21659 fi
21660
21661 # When large executables or shared objects are built, AIX ld can
21662 # have problems creating the table of contents. If linking a library
21663 # or program results in "error TOC overflow" add -mminimal-toc to
21664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21666
21667 archive_cmds_F77=''
21668 hardcode_direct_F77=yes
21669 hardcode_libdir_separator_F77=':'
21670 link_all_deplibs_F77=yes
21671
21672 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021673 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021674 # We only want to do this on AIX 4.2 and lower, the check
21675 # below for broken collect2 doesn't work under 4.3+
21676 collect2name=`${CC} -print-prog-name=collect2`
21677 if test -f "$collect2name" && \
21678 strings "$collect2name" | grep resolve_lib_name >/dev/null
21679 then
21680 # We have reworked collect2
21681 hardcode_direct_F77=yes
21682 else
21683 # We have old collect2
21684 hardcode_direct_F77=unsupported
21685 # It fails to find uninstalled libraries when the uninstalled
21686 # path is not listed in the libpath. Setting hardcode_minus_L
21687 # to unsupported forces relinking
21688 hardcode_minus_L_F77=yes
21689 hardcode_libdir_flag_spec_F77='-L$libdir'
21690 hardcode_libdir_separator_F77=
21691 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021693 esac
21694 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021695 if test "$aix_use_runtimelinking" = yes; then
21696 shared_flag="$shared_flag "'${wl}-G'
21697 fi
John Criswell47fdd832003-07-14 16:52:07 +000021698 else
21699 # not using gcc
21700 if test "$host_cpu" = ia64; then
21701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21702 # chokes on -Wl,-G. The following line is correct:
21703 shared_flag='-G'
21704 else
Reid Spencera773bd52006-08-04 18:18:08 +000021705 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021706 shared_flag='${wl}-G'
21707 else
21708 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021709 fi
John Criswell47fdd832003-07-14 16:52:07 +000021710 fi
21711 fi
21712
21713 # It seems that -bexpall does not export symbols beginning with
21714 # underscore (_), so it is better to generate a list of symbols to export.
21715 always_export_symbols_F77=yes
21716 if test "$aix_use_runtimelinking" = yes; then
21717 # Warning - without using the other runtime loading flags (-brtl),
21718 # -berok will link without error, but may produce a broken library.
21719 allow_undefined_flag_F77='-berok'
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
21722 program main
21723
21724 end
21725_ACEOF
21726rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021727if { (ac_try="$ac_link"
21728case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731esac
21732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021740 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21741 { (case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744esac
21745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021751 { (case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754esac
21755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760
21761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21762}'`
21763# Check for a 64-bit object if we didn't find anything.
21764if 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; }
21765}'`; fi
21766else
21767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021768sed 's/^/| /' conftest.$ac_ext >&5
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770
John Criswell47fdd832003-07-14 16:52:07 +000021771fi
Reid Spencera773bd52006-08-04 18:18:08 +000021772
21773rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021774 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21776
21777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021778 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 +000021779 else
21780 if test "$host_cpu" = ia64; then
21781 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21782 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021783 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 +000021784 else
21785 # Determine the default libpath from the value encoded in an empty executable.
21786 cat >conftest.$ac_ext <<_ACEOF
21787 program main
21788
21789 end
21790_ACEOF
21791rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021792if { (ac_try="$ac_link"
21793case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796esac
21797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021799 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021805 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21806 { (case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21809esac
21810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021816 { (case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21819esac
21820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825
21826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21827}'`
21828# Check for a 64-bit object if we didn't find anything.
21829if 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; }
21830}'`; fi
21831else
21832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021833sed 's/^/| /' conftest.$ac_ext >&5
21834
Reid Spencera773bd52006-08-04 18:18:08 +000021835
John Criswell47fdd832003-07-14 16:52:07 +000021836fi
Reid Spencera773bd52006-08-04 18:18:08 +000021837
21838rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021839 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21841
21842 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21843 # Warning - without using the other run time loading flags,
21844 # -berok will link without error, but may produce a broken library.
21845 no_undefined_flag_F77=' ${wl}-bernotok'
21846 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021847 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021848 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021849 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021850 # This is similar to how AIX traditionally builds its shared libraries.
21851 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 +000021852 fi
21853 fi
21854 ;;
21855
21856 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021857 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 +000021858 hardcode_libdir_flag_spec_F77='-L$libdir'
21859 hardcode_minus_L_F77=yes
21860 # see comment about different semantics on the GNU ld section
21861 ld_shlibs_F77=no
21862 ;;
21863
Reid Spencer2706f8c2004-09-19 23:53:36 +000021864 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021865 export_dynamic_flag_spec_F77=-rdynamic
21866 ;;
21867
21868 cygwin* | mingw* | pw32*)
21869 # When not using gcc, we currently assume that we are using
21870 # Microsoft Visual C++.
21871 # hardcode_libdir_flag_spec is actually meaningless, as there is
21872 # no search path for DLLs.
21873 hardcode_libdir_flag_spec_F77=' '
21874 allow_undefined_flag_F77=unsupported
21875 # Tell ltmain to make .lib files, not .a files.
21876 libext=lib
21877 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021878 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021879 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021880 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 +000021881 # The linker will automatically build a .lib file if we build a DLL.
21882 old_archive_From_new_cmds_F77='true'
21883 # FIXME: Should let the user specify the lib program.
21884 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021885 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021886 enable_shared_with_static_runtimes_F77=yes
21887 ;;
21888
21889 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021890 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021891 rhapsody* | darwin1.[012])
21892 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21893 ;;
21894 *) # Darwin 1.3 on
21895 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21896 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21897 else
21898 case ${MACOSX_DEPLOYMENT_TARGET} in
21899 10.[012])
21900 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21901 ;;
21902 10.*)
21903 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21904 ;;
21905 esac
21906 fi
21907 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021908 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021909 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021910 hardcode_direct_F77=no
21911 hardcode_automatic_F77=yes
21912 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021913 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021914 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021915 if test "$GCC" = yes ; then
21916 output_verbose_link_cmd='echo'
21917 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21918 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021919 # 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 +000021920 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}'
21921 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 +000021922 else
Reid Spencera773bd52006-08-04 18:18:08 +000021923 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 xlc*)
21925 output_verbose_link_cmd='echo'
21926 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21927 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021928 # 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 +000021929 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}'
21930 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 +000021931 ;;
21932 *)
21933 ld_shlibs_F77=no
21934 ;;
21935 esac
John Criswell47fdd832003-07-14 16:52:07 +000021936 fi
21937 ;;
21938
21939 dgux*)
21940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21941 hardcode_libdir_flag_spec_F77='-L$libdir'
21942 hardcode_shlibpath_var_F77=no
21943 ;;
21944
21945 freebsd1*)
21946 ld_shlibs_F77=no
21947 ;;
21948
21949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21950 # support. Future versions do this automatically, but an explicit c++rt0.o
21951 # does not break anything, and helps significantly (at the cost of a little
21952 # extra space).
21953 freebsd2.2*)
21954 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21955 hardcode_libdir_flag_spec_F77='-R$libdir'
21956 hardcode_direct_F77=yes
21957 hardcode_shlibpath_var_F77=no
21958 ;;
21959
21960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21961 freebsd2*)
21962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21963 hardcode_direct_F77=yes
21964 hardcode_minus_L_F77=yes
21965 hardcode_shlibpath_var_F77=no
21966 ;;
21967
21968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021969 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021970 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21971 hardcode_libdir_flag_spec_F77='-R$libdir'
21972 hardcode_direct_F77=yes
21973 hardcode_shlibpath_var_F77=no
21974 ;;
21975
21976 hpux9*)
21977 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021978 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 +000021979 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021980 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 +000021981 fi
21982 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21983 hardcode_libdir_separator_F77=:
21984 hardcode_direct_F77=yes
21985
21986 # hardcode_minus_L: Not really in the search PATH,
21987 # but as the default location of the library.
21988 hardcode_minus_L_F77=yes
21989 export_dynamic_flag_spec_F77='${wl}-E'
21990 ;;
21991
Reid Spencera773bd52006-08-04 18:18:08 +000021992 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021994 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21995 else
21996 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21997 fi
21998 if test "$with_gnu_ld" = no; then
21999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22000 hardcode_libdir_separator_F77=:
22001
22002 hardcode_direct_F77=yes
22003 export_dynamic_flag_spec_F77='${wl}-E'
22004
22005 # hardcode_minus_L: Not really in the search PATH,
22006 # but as the default location of the library.
22007 hardcode_minus_L_F77=yes
22008 fi
22009 ;;
22010
22011 hpux11*)
22012 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22013 case $host_cpu in
22014 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022015 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022017 ia64*)
22018 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22019 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022020 *)
22021 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22022 ;;
22023 esac
22024 else
Reid Spencera773bd52006-08-04 18:18:08 +000022025 case $host_cpu in
22026 hppa*64*)
22027 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22028 ;;
22029 ia64*)
22030 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022031 ;;
22032 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022033 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 +000022034 ;;
22035 esac
22036 fi
22037 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22039 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022040
Reid Spencera773bd52006-08-04 18:18:08 +000022041 case $host_cpu in
22042 hppa*64*|ia64*)
22043 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22044 hardcode_direct_F77=no
22045 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022046 ;;
22047 *)
John Criswell47fdd832003-07-14 16:52:07 +000022048 hardcode_direct_F77=yes
22049 export_dynamic_flag_spec_F77='${wl}-E'
22050
22051 # hardcode_minus_L: Not really in the search PATH,
22052 # but as the default location of the library.
22053 hardcode_minus_L_F77=yes
22054 ;;
22055 esac
22056 fi
22057 ;;
22058
22059 irix5* | irix6* | nonstopux*)
22060 if test "$GCC" = yes; then
22061 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'
22062 else
22063 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'
22064 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22065 fi
22066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22067 hardcode_libdir_separator_F77=:
22068 link_all_deplibs_F77=yes
22069 ;;
22070
22071 netbsd*)
22072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22074 else
22075 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22076 fi
22077 hardcode_libdir_flag_spec_F77='-R$libdir'
22078 hardcode_direct_F77=yes
22079 hardcode_shlibpath_var_F77=no
22080 ;;
22081
22082 newsos6)
22083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 hardcode_direct_F77=yes
22085 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22086 hardcode_libdir_separator_F77=:
22087 hardcode_shlibpath_var_F77=no
22088 ;;
22089
22090 openbsd*)
22091 hardcode_direct_F77=yes
22092 hardcode_shlibpath_var_F77=no
22093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22094 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022095 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 +000022096 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22097 export_dynamic_flag_spec_F77='${wl}-E'
22098 else
22099 case $host_os in
22100 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22101 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22102 hardcode_libdir_flag_spec_F77='-R$libdir'
22103 ;;
22104 *)
22105 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22106 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22107 ;;
22108 esac
22109 fi
22110 ;;
22111
22112 os2*)
22113 hardcode_libdir_flag_spec_F77='-L$libdir'
22114 hardcode_minus_L_F77=yes
22115 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022116 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 +000022117 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22118 ;;
22119
22120 osf3*)
22121 if test "$GCC" = yes; then
22122 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22123 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'
22124 else
22125 allow_undefined_flag_F77=' -expect_unresolved \*'
22126 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'
22127 fi
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22129 hardcode_libdir_separator_F77=:
22130 ;;
22131
22132 osf4* | osf5*) # as osf3* with the addition of -msym flag
22133 if test "$GCC" = yes; then
22134 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22135 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'
22136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22137 else
22138 allow_undefined_flag_F77=' -expect_unresolved \*'
22139 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 +000022140 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 +000022141 $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 +000022142
John Criswell47fdd832003-07-14 16:52:07 +000022143 # Both c and cxx compiler support -rpath directly
22144 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22145 fi
22146 hardcode_libdir_separator_F77=:
22147 ;;
22148
John Criswell47fdd832003-07-14 16:52:07 +000022149 solaris*)
22150 no_undefined_flag_F77=' -z text'
22151 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022152 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022153 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22155 $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 +000022156 else
Reid Spencera773bd52006-08-04 18:18:08 +000022157 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022158 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022159 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22160 $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 +000022161 fi
22162 hardcode_libdir_flag_spec_F77='-R$libdir'
22163 hardcode_shlibpath_var_F77=no
22164 case $host_os in
22165 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022166 *)
22167 # The compiler driver will combine linker options so we
22168 # cannot just pass the convience library names through
22169 # without $wl, iff we do not link with $LD.
22170 # Luckily, gcc supports the same syntax we need for Sun Studio.
22171 # Supported since Solaris 2.6 (maybe 2.5.1?)
22172 case $wlarc in
22173 '')
22174 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22175 *)
22176 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' ;;
22177 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022178 esac
22179 link_all_deplibs_F77=yes
22180 ;;
22181
22182 sunos4*)
22183 if test "x$host_vendor" = xsequent; then
22184 # Use $CC to link under sequent, because it throws in some extra .o
22185 # files that make .init and .fini sections work.
22186 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22187 else
22188 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22189 fi
22190 hardcode_libdir_flag_spec_F77='-L$libdir'
22191 hardcode_direct_F77=yes
22192 hardcode_minus_L_F77=yes
22193 hardcode_shlibpath_var_F77=no
22194 ;;
22195
22196 sysv4)
22197 case $host_vendor in
22198 sni)
22199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22200 hardcode_direct_F77=yes # is this really true???
22201 ;;
22202 siemens)
22203 ## LD is ld it makes a PLAMLIB
22204 ## CC just makes a GrossModule.
22205 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22206 reload_cmds_F77='$CC -r -o $output$reload_objs'
22207 hardcode_direct_F77=no
22208 ;;
22209 motorola)
22210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22211 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22212 ;;
22213 esac
22214 runpath_var='LD_RUN_PATH'
22215 hardcode_shlibpath_var_F77=no
22216 ;;
22217
22218 sysv4.3*)
22219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220 hardcode_shlibpath_var_F77=no
22221 export_dynamic_flag_spec_F77='-Bexport'
22222 ;;
22223
22224 sysv4*MP*)
22225 if test -d /usr/nec; then
22226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22227 hardcode_shlibpath_var_F77=no
22228 runpath_var=LD_RUN_PATH
22229 hardcode_runpath_var=yes
22230 ld_shlibs_F77=yes
22231 fi
22232 ;;
22233
Reid Spencera773bd52006-08-04 18:18:08 +000022234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22235 no_undefined_flag_F77='${wl}-z,text'
22236 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022237 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022238 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022239
John Criswell47fdd832003-07-14 16:52:07 +000022240 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022241 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22242 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 +000022243 else
Reid Spencera773bd52006-08-04 18:18:08 +000022244 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22245 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 +000022246 fi
John Criswell47fdd832003-07-14 16:52:07 +000022247 ;;
22248
Reid Spencera773bd52006-08-04 18:18:08 +000022249 sysv5* | sco3.2v5* | sco5v6*)
22250 # Note: We can NOT use -z defs as we might desire, because we do not
22251 # link with -lc, and that would cause any symbols used from libc to
22252 # always be unresolved, which means just about no library would
22253 # ever link correctly. If we're not using GNU ld we use -z text
22254 # though, which does catch some bad symbols but isn't as heavy-handed
22255 # as -z defs.
22256 no_undefined_flag_F77='${wl}-z,text'
22257 allow_undefined_flag_F77='${wl}-z,nodefs'
22258 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022259 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022260 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22261 hardcode_libdir_separator_F77=':'
22262 link_all_deplibs_F77=yes
22263 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022264 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022265
22266 if test "$GCC" = yes; then
22267 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22268 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269 else
22270 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22272 fi
John Criswell47fdd832003-07-14 16:52:07 +000022273 ;;
22274
22275 uts4*)
22276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22277 hardcode_libdir_flag_spec_F77='-L$libdir'
22278 hardcode_shlibpath_var_F77=no
22279 ;;
22280
22281 *)
22282 ld_shlibs_F77=no
22283 ;;
22284 esac
22285 fi
22286
Reid Spencera773bd52006-08-04 18:18:08 +000022287{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22288echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022289test "$ld_shlibs_F77" = no && can_build_shared=no
22290
John Criswell47fdd832003-07-14 16:52:07 +000022291#
22292# Do we need to explicitly link libc?
22293#
22294case "x$archive_cmds_need_lc_F77" in
22295x|xyes)
22296 # Assume -lc should be added
22297 archive_cmds_need_lc_F77=yes
22298
22299 if test "$enable_shared" = yes && test "$GCC" = yes; then
22300 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022301 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022302 # FIXME: we may have to deal with multi-command sequences.
22303 ;;
22304 '$CC '*)
22305 # Test whether the compiler implicitly links with -lc since on some
22306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22307 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022308 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22309echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022310 $rm conftest*
22311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22312
22313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22314 (eval $ac_compile) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } 2>conftest.err; then
22318 soname=conftest
22319 lib=conftest
22320 libobjs=conftest.$ac_objext
22321 deplibs=
22322 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022323 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022324 compiler_flags=-v
22325 linker_flags=-v
22326 verstring=
22327 output_objdir=.
22328 libname=conftest
22329 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22330 allow_undefined_flag_F77=
22331 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22332 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }
22336 then
22337 archive_cmds_need_lc_F77=no
22338 else
22339 archive_cmds_need_lc_F77=yes
22340 fi
22341 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22342 else
22343 cat conftest.err 1>&5
22344 fi
22345 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022346 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22347echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022348 ;;
22349 esac
22350 fi
22351 ;;
22352esac
22353
Reid Spencera773bd52006-08-04 18:18:08 +000022354{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22355echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022356library_names_spec=
22357libname_spec='lib$name'
22358soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022359shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022360postinstall_cmds=
22361postuninstall_cmds=
22362finish_cmds=
22363finish_eval=
22364shlibpath_var=
22365shlibpath_overrides_runpath=unknown
22366version_type=none
22367dynamic_linker="$host_os ld.so"
22368sys_lib_dlsearch_path_spec="/lib /usr/lib"
22369if test "$GCC" = yes; then
22370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22371 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22372 # if the path contains ";" then we assume it to be the separator
22373 # otherwise default to the standard path separator (i.e. ":") - it is
22374 # assumed that no part of a normal pathname contains ";" but that should
22375 # okay in the real world where ";" in dirpaths is itself problematic.
22376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22377 else
22378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22379 fi
22380else
22381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22382fi
22383need_lib_prefix=unknown
22384hardcode_into_libs=no
22385
22386# when you set need_version to no, make sure it does not cause -set_version
22387# flags to be left without arguments
22388need_version=unknown
22389
22390case $host_os in
22391aix3*)
22392 version_type=linux
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22394 shlibpath_var=LIBPATH
22395
22396 # AIX 3 has no versioning support, so we append a major version to the name.
22397 soname_spec='${libname}${release}${shared_ext}$major'
22398 ;;
22399
22400aix4* | aix5*)
22401 version_type=linux
22402 need_lib_prefix=no
22403 need_version=no
22404 hardcode_into_libs=yes
22405 if test "$host_cpu" = ia64; then
22406 # AIX 5 supports IA64
22407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22408 shlibpath_var=LD_LIBRARY_PATH
22409 else
22410 # With GCC up to 2.95.x, collect2 would create an import file
22411 # for dependence libraries. The import file would start with
22412 # the line `#! .'. This would cause the generated library to
22413 # depend on `.', always an invalid library. This was fixed in
22414 # development snapshots of GCC prior to 3.0.
22415 case $host_os in
22416 aix4 | aix4.[01] | aix4.[01].*)
22417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22418 echo ' yes '
22419 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22420 :
22421 else
22422 can_build_shared=no
22423 fi
22424 ;;
22425 esac
22426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22427 # soname into executable. Probably we can add versioning support to
22428 # collect2, so additional links can be useful in future.
22429 if test "$aix_use_runtimelinking" = yes; then
22430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22431 # instead of lib<name>.a to let people know that these are not
22432 # typical AIX shared libraries.
22433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22434 else
22435 # We preserve .a as extension for shared libraries through AIX4.2
22436 # and later when we are not doing run time linking.
22437 library_names_spec='${libname}${release}.a $libname.a'
22438 soname_spec='${libname}${release}${shared_ext}$major'
22439 fi
22440 shlibpath_var=LIBPATH
22441 fi
22442 ;;
22443
22444amigaos*)
22445 library_names_spec='$libname.ixlibrary $libname.a'
22446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022447 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 +000022448 ;;
22449
22450beos*)
22451 library_names_spec='${libname}${shared_ext}'
22452 dynamic_linker="$host_os ld.so"
22453 shlibpath_var=LIBRARY_PATH
22454 ;;
22455
Reid Spencer2706f8c2004-09-19 23:53:36 +000022456bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022457 version_type=linux
22458 need_version=no
22459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22460 soname_spec='${libname}${release}${shared_ext}$major'
22461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22462 shlibpath_var=LD_LIBRARY_PATH
22463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22465 # the default ld.so.conf also contains /usr/contrib/lib and
22466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22467 # libtool to hard-code these into programs
22468 ;;
22469
22470cygwin* | mingw* | pw32*)
22471 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022472 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022473 need_version=no
22474 need_lib_prefix=no
22475
22476 case $GCC,$host_os in
22477 yes,cygwin* | yes,mingw* | yes,pw32*)
22478 library_names_spec='$libname.dll.a'
22479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022480 postinstall_cmds='base_file=`basename \${file}`~
22481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22482 dldir=$destdir/`dirname \$dlpath`~
22483 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022484 $install_prog $dir/$dlname \$dldir/$dlname~
22485 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22487 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022488 $rm \$dlpath'
22489 shlibpath_overrides_runpath=yes
22490
22491 case $host_os in
22492 cygwin*)
22493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22494 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 +000022495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022496 ;;
22497 mingw*)
22498 # MinGW DLLs use traditional 'lib' prefix
22499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22501 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22502 # It is most probably a Windows format PATH printed by
22503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22504 # path with ; separators, and with drive letters. We can handle the
22505 # drive letters (cygwin fileutils understands them), so leave them,
22506 # especially as we might pass files found there to a mingw objdump,
22507 # which wouldn't understand a cygwinified path. Ahh.
22508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22509 else
22510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22511 fi
22512 ;;
22513 pw32*)
22514 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022515 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 +000022516 ;;
22517 esac
22518 ;;
22519
22520 *)
22521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22522 ;;
22523 esac
22524 dynamic_linker='Win32 ld.exe'
22525 # FIXME: first we should search . and the directory the executable is in
22526 shlibpath_var=PATH
22527 ;;
22528
22529darwin* | rhapsody*)
22530 dynamic_linker="$host_os dyld"
22531 version_type=darwin
22532 need_lib_prefix=no
22533 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022534 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022535 soname_spec='${libname}${release}${major}$shared_ext'
22536 shlibpath_overrides_runpath=yes
22537 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022539 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022540 if test "$GCC" = yes; then
22541 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"`
22542 else
22543 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022544 fi
22545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22546 ;;
22547
22548dgux*)
22549 version_type=linux
22550 need_lib_prefix=no
22551 need_version=no
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22553 soname_spec='${libname}${release}${shared_ext}$major'
22554 shlibpath_var=LD_LIBRARY_PATH
22555 ;;
22556
22557freebsd1*)
22558 dynamic_linker=no
22559 ;;
22560
Reid Spencer2706f8c2004-09-19 23:53:36 +000022561kfreebsd*-gnu)
22562 version_type=linux
22563 need_lib_prefix=no
22564 need_version=no
22565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22566 soname_spec='${libname}${release}${shared_ext}$major'
22567 shlibpath_var=LD_LIBRARY_PATH
22568 shlibpath_overrides_runpath=no
22569 hardcode_into_libs=yes
22570 dynamic_linker='GNU ld.so'
22571 ;;
22572
Reid Spencera773bd52006-08-04 18:18:08 +000022573freebsd* | dragonfly*)
22574 # DragonFly does not have aout. When/if they implement a new
22575 # versioning mechanism, adjust this.
22576 if test -x /usr/bin/objformat; then
22577 objformat=`/usr/bin/objformat`
22578 else
22579 case $host_os in
22580 freebsd[123]*) objformat=aout ;;
22581 *) objformat=elf ;;
22582 esac
22583 fi
John Criswell47fdd832003-07-14 16:52:07 +000022584 version_type=freebsd-$objformat
22585 case $version_type in
22586 freebsd-elf*)
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22588 need_version=no
22589 need_lib_prefix=no
22590 ;;
22591 freebsd-*)
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22593 need_version=yes
22594 ;;
22595 esac
22596 shlibpath_var=LD_LIBRARY_PATH
22597 case $host_os in
22598 freebsd2*)
22599 shlibpath_overrides_runpath=yes
22600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022601 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022602 shlibpath_overrides_runpath=yes
22603 hardcode_into_libs=yes
22604 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022607 shlibpath_overrides_runpath=no
22608 hardcode_into_libs=yes
22609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022610 freebsd*) # from 4.6 on
22611 shlibpath_overrides_runpath=yes
22612 hardcode_into_libs=yes
22613 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022614 esac
22615 ;;
22616
22617gnu*)
22618 version_type=linux
22619 need_lib_prefix=no
22620 need_version=no
22621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 shlibpath_var=LD_LIBRARY_PATH
22624 hardcode_into_libs=yes
22625 ;;
22626
22627hpux9* | hpux10* | hpux11*)
22628 # Give a soname corresponding to the major version so that dld.sl refuses to
22629 # link against other versions.
22630 version_type=sunos
22631 need_lib_prefix=no
22632 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022633 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022634 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022635 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022636 hardcode_into_libs=yes
22637 dynamic_linker="$host_os dld.so"
22638 shlibpath_var=LD_LIBRARY_PATH
22639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 if test "X$HPUX_IA64_MODE" = X32; then
22643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22644 else
22645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22646 fi
22647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22648 ;;
22649 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022650 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022651 hardcode_into_libs=yes
22652 dynamic_linker="$host_os dld.sl"
22653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22656 soname_spec='${libname}${release}${shared_ext}$major'
22657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22659 ;;
22660 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022661 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022662 dynamic_linker="$host_os dld.sl"
22663 shlibpath_var=SHLIB_PATH
22664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22666 soname_spec='${libname}${release}${shared_ext}$major'
22667 ;;
22668 esac
22669 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22670 postinstall_cmds='chmod 555 $lib'
22671 ;;
22672
Reid Spencera773bd52006-08-04 18:18:08 +000022673interix3*)
22674 version_type=linux
22675 need_lib_prefix=no
22676 need_version=no
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22680 shlibpath_var=LD_LIBRARY_PATH
22681 shlibpath_overrides_runpath=no
22682 hardcode_into_libs=yes
22683 ;;
22684
John Criswell47fdd832003-07-14 16:52:07 +000022685irix5* | irix6* | nonstopux*)
22686 case $host_os in
22687 nonstopux*) version_type=nonstopux ;;
22688 *)
22689 if test "$lt_cv_prog_gnu_ld" = yes; then
22690 version_type=linux
22691 else
22692 version_type=irix
22693 fi ;;
22694 esac
22695 need_lib_prefix=no
22696 need_version=no
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22699 case $host_os in
22700 irix5* | nonstopux*)
22701 libsuff= shlibsuff=
22702 ;;
22703 *)
22704 case $LD in # libtool.m4 will add one of these switches to LD
22705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22706 libsuff= shlibsuff= libmagic=32-bit;;
22707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22708 libsuff=32 shlibsuff=N32 libmagic=N32;;
22709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22711 *) libsuff= shlibsuff= libmagic=never-match;;
22712 esac
22713 ;;
22714 esac
22715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22716 shlibpath_overrides_runpath=no
22717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22719 hardcode_into_libs=yes
22720 ;;
22721
22722# No shared lib support for Linux oldld, aout, or coff.
22723linux*oldld* | linux*aout* | linux*coff*)
22724 dynamic_linker=no
22725 ;;
22726
22727# This must be Linux ELF.
22728linux*)
22729 version_type=linux
22730 need_lib_prefix=no
22731 need_version=no
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=no
22737 # This implies no fast_install, which is unacceptable.
22738 # Some rework will be needed to allow for fast_install
22739 # before this can be enabled.
22740 hardcode_into_libs=yes
22741
Reid Spencer2706f8c2004-09-19 23:53:36 +000022742 # Append ld.so.conf contents to the search path
22743 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022744 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 +000022745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22746 fi
22747
John Criswell47fdd832003-07-14 16:52:07 +000022748 # We used to test for /lib/ld.so.1 and disable shared libraries on
22749 # powerpc, because MkLinux only supported shared libraries with the
22750 # GNU dynamic linker. Since this was broken with cross compilers,
22751 # most powerpc-linux boxes support dynamic linking these days and
22752 # people can always --disable-shared, the test was removed, and we
22753 # assume the GNU/Linux dynamic linker is in use.
22754 dynamic_linker='GNU/Linux ld.so'
22755 ;;
22756
Reid Spencer2706f8c2004-09-19 23:53:36 +000022757knetbsd*-gnu)
22758 version_type=linux
22759 need_lib_prefix=no
22760 need_version=no
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 shlibpath_overrides_runpath=no
22765 hardcode_into_libs=yes
22766 dynamic_linker='GNU ld.so'
22767 ;;
22768
John Criswell47fdd832003-07-14 16:52:07 +000022769netbsd*)
22770 version_type=sunos
22771 need_lib_prefix=no
22772 need_version=no
22773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22776 dynamic_linker='NetBSD (a.out) ld.so'
22777 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022779 soname_spec='${libname}${release}${shared_ext}$major'
22780 dynamic_linker='NetBSD ld.elf_so'
22781 fi
22782 shlibpath_var=LD_LIBRARY_PATH
22783 shlibpath_overrides_runpath=yes
22784 hardcode_into_libs=yes
22785 ;;
22786
22787newsos6)
22788 version_type=linux
22789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790 shlibpath_var=LD_LIBRARY_PATH
22791 shlibpath_overrides_runpath=yes
22792 ;;
22793
Reid Spencer2706f8c2004-09-19 23:53:36 +000022794nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022795 version_type=linux
22796 need_lib_prefix=no
22797 need_version=no
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799 soname_spec='${libname}${release}${shared_ext}$major'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 shlibpath_overrides_runpath=yes
22802 ;;
22803
22804openbsd*)
22805 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022806 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022807 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022808 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22809 case $host_os in
22810 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22811 *) need_version=no ;;
22812 esac
John Criswell47fdd832003-07-14 16:52:07 +000022813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815 shlibpath_var=LD_LIBRARY_PATH
22816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22817 case $host_os in
22818 openbsd2.[89] | openbsd2.[89].*)
22819 shlibpath_overrides_runpath=no
22820 ;;
22821 *)
22822 shlibpath_overrides_runpath=yes
22823 ;;
22824 esac
22825 else
22826 shlibpath_overrides_runpath=yes
22827 fi
22828 ;;
22829
22830os2*)
22831 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022832 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022833 need_lib_prefix=no
22834 library_names_spec='$libname${shared_ext} $libname.a'
22835 dynamic_linker='OS/2 ld.exe'
22836 shlibpath_var=LIBPATH
22837 ;;
22838
22839osf3* | osf4* | osf5*)
22840 version_type=osf
22841 need_lib_prefix=no
22842 need_version=no
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22845 shlibpath_var=LD_LIBRARY_PATH
22846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22848 ;;
22849
John Criswell47fdd832003-07-14 16:52:07 +000022850solaris*)
22851 version_type=linux
22852 need_lib_prefix=no
22853 need_version=no
22854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22855 soname_spec='${libname}${release}${shared_ext}$major'
22856 shlibpath_var=LD_LIBRARY_PATH
22857 shlibpath_overrides_runpath=yes
22858 hardcode_into_libs=yes
22859 # ldd complains unless libraries are executable
22860 postinstall_cmds='chmod +x $lib'
22861 ;;
22862
22863sunos4*)
22864 version_type=sunos
22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22867 shlibpath_var=LD_LIBRARY_PATH
22868 shlibpath_overrides_runpath=yes
22869 if test "$with_gnu_ld" = yes; then
22870 need_lib_prefix=no
22871 fi
22872 need_version=yes
22873 ;;
22874
Reid Spencera773bd52006-08-04 18:18:08 +000022875sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022876 version_type=linux
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 case $host_vendor in
22881 sni)
22882 shlibpath_overrides_runpath=no
22883 need_lib_prefix=no
22884 export_dynamic_flag_spec='${wl}-Blargedynsym'
22885 runpath_var=LD_RUN_PATH
22886 ;;
22887 siemens)
22888 need_lib_prefix=no
22889 ;;
22890 motorola)
22891 need_lib_prefix=no
22892 need_version=no
22893 shlibpath_overrides_runpath=no
22894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22895 ;;
22896 esac
22897 ;;
22898
22899sysv4*MP*)
22900 if test -d /usr/nec ;then
22901 version_type=linux
22902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22903 soname_spec='$libname${shared_ext}.$major'
22904 shlibpath_var=LD_LIBRARY_PATH
22905 fi
22906 ;;
22907
Reid Spencera773bd52006-08-04 18:18:08 +000022908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22909 version_type=freebsd-elf
22910 need_lib_prefix=no
22911 need_version=no
22912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22913 soname_spec='${libname}${release}${shared_ext}$major'
22914 shlibpath_var=LD_LIBRARY_PATH
22915 hardcode_into_libs=yes
22916 if test "$with_gnu_ld" = yes; then
22917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22918 shlibpath_overrides_runpath=no
22919 else
22920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22921 shlibpath_overrides_runpath=yes
22922 case $host_os in
22923 sco3.2v5*)
22924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22925 ;;
22926 esac
22927 fi
22928 sys_lib_dlsearch_path_spec='/usr/lib'
22929 ;;
22930
John Criswell47fdd832003-07-14 16:52:07 +000022931uts4*)
22932 version_type=linux
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 ;;
22937
22938*)
22939 dynamic_linker=no
22940 ;;
22941esac
Reid Spencera773bd52006-08-04 18:18:08 +000022942{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22943echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022944test "$dynamic_linker" = no && can_build_shared=no
22945
Reid Spencera773bd52006-08-04 18:18:08 +000022946variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22947if test "$GCC" = yes; then
22948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22949fi
22950
22951{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22952echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022953hardcode_action_F77=
22954if test -n "$hardcode_libdir_flag_spec_F77" || \
22955 test -n "$runpath_var_F77" || \
22956 test "X$hardcode_automatic_F77" = "Xyes" ; then
22957
22958 # We can hardcode non-existant directories.
22959 if test "$hardcode_direct_F77" != no &&
22960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22961 # have to relink, otherwise we might link with an installed library
22962 # when we should be linking with a yet-to-be-installed one
22963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22964 test "$hardcode_minus_L_F77" != no; then
22965 # Linking always hardcodes the temporary library directory.
22966 hardcode_action_F77=relink
22967 else
22968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22969 hardcode_action_F77=immediate
22970 fi
22971else
22972 # We cannot hardcode anything, or else we can only hardcode existing
22973 # directories.
22974 hardcode_action_F77=unsupported
22975fi
Reid Spencera773bd52006-08-04 18:18:08 +000022976{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22977echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022978
22979if test "$hardcode_action_F77" = relink; then
22980 # Fast installation is not supported
22981 enable_fast_install=no
22982elif test "$shlibpath_overrides_runpath" = yes ||
22983 test "$enable_shared" = no; then
22984 # Fast installation is not necessary
22985 enable_fast_install=needless
22986fi
22987
John Criswell47fdd832003-07-14 16:52:07 +000022988
22989# The else clause should only fire when bootstrapping the
22990# libtool distribution, otherwise you forgot to ship ltmain.sh
22991# with your package, and you will get complaints that there are
22992# no rules to generate ltmain.sh.
22993if test -f "$ltmain"; then
22994 # See if we are running on zsh, and set the options which allow our commands through
22995 # without removal of \ escapes.
22996 if test -n "${ZSH_VERSION+set}" ; then
22997 setopt NO_GLOB_SUBST
22998 fi
22999 # Now quote all the things that may contain metacharacters while being
23000 # careful not to overquote the AC_SUBSTed values. We take copies of the
23001 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023002 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 +000023003 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023004 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23005 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23006 deplibs_check_method reload_flag reload_cmds need_locks \
23007 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23008 lt_cv_sys_global_symbol_to_c_name_address \
23009 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23010 old_postinstall_cmds old_postuninstall_cmds \
23011 compiler_F77 \
23012 CC_F77 \
23013 LD_F77 \
23014 lt_prog_compiler_wl_F77 \
23015 lt_prog_compiler_pic_F77 \
23016 lt_prog_compiler_static_F77 \
23017 lt_prog_compiler_no_builtin_flag_F77 \
23018 export_dynamic_flag_spec_F77 \
23019 thread_safe_flag_spec_F77 \
23020 whole_archive_flag_spec_F77 \
23021 enable_shared_with_static_runtimes_F77 \
23022 old_archive_cmds_F77 \
23023 old_archive_from_new_cmds_F77 \
23024 predep_objects_F77 \
23025 postdep_objects_F77 \
23026 predeps_F77 \
23027 postdeps_F77 \
23028 compiler_lib_search_path_F77 \
23029 archive_cmds_F77 \
23030 archive_expsym_cmds_F77 \
23031 postinstall_cmds_F77 \
23032 postuninstall_cmds_F77 \
23033 old_archive_from_expsyms_cmds_F77 \
23034 allow_undefined_flag_F77 \
23035 no_undefined_flag_F77 \
23036 export_symbols_cmds_F77 \
23037 hardcode_libdir_flag_spec_F77 \
23038 hardcode_libdir_flag_spec_ld_F77 \
23039 hardcode_libdir_separator_F77 \
23040 hardcode_automatic_F77 \
23041 module_cmds_F77 \
23042 module_expsym_cmds_F77 \
23043 lt_cv_prog_compiler_c_o_F77 \
23044 exclude_expsyms_F77 \
23045 include_expsyms_F77; do
23046
23047 case $var in
23048 old_archive_cmds_F77 | \
23049 old_archive_from_new_cmds_F77 | \
23050 archive_cmds_F77 | \
23051 archive_expsym_cmds_F77 | \
23052 module_cmds_F77 | \
23053 module_expsym_cmds_F77 | \
23054 old_archive_from_expsyms_cmds_F77 | \
23055 export_symbols_cmds_F77 | \
23056 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23057 postinstall_cmds | postuninstall_cmds | \
23058 old_postinstall_cmds | old_postuninstall_cmds | \
23059 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23060 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023061 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 +000023062 ;;
23063 *)
23064 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23065 ;;
23066 esac
23067 done
23068
23069 case $lt_echo in
23070 *'\$0 --fallback-echo"')
23071 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23072 ;;
23073 esac
23074
23075cfgfile="$ofile"
23076
23077 cat <<__EOF__ >> "$cfgfile"
23078# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23079
23080# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23081
23082# Shell to use when invoking shell scripts.
23083SHELL=$lt_SHELL
23084
23085# Whether or not to build shared libraries.
23086build_libtool_libs=$enable_shared
23087
23088# Whether or not to build static libraries.
23089build_old_libs=$enable_static
23090
23091# Whether or not to add -lc for building shared libraries.
23092build_libtool_need_lc=$archive_cmds_need_lc_F77
23093
23094# Whether or not to disallow shared libs when runtime libs are static
23095allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23096
23097# Whether or not to optimize for fast installation.
23098fast_install=$enable_fast_install
23099
23100# The host system.
23101host_alias=$host_alias
23102host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023103host_os=$host_os
23104
23105# The build system.
23106build_alias=$build_alias
23107build=$build
23108build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023109
23110# An echo program that does not interpret backslashes.
23111echo=$lt_echo
23112
23113# The archiver.
23114AR=$lt_AR
23115AR_FLAGS=$lt_AR_FLAGS
23116
23117# A C compiler.
23118LTCC=$lt_LTCC
23119
Reid Spencera773bd52006-08-04 18:18:08 +000023120# LTCC compiler flags.
23121LTCFLAGS=$lt_LTCFLAGS
23122
John Criswell47fdd832003-07-14 16:52:07 +000023123# A language-specific compiler.
23124CC=$lt_compiler_F77
23125
23126# Is the compiler the GNU C compiler?
23127with_gcc=$GCC_F77
23128
23129# An ERE matcher.
23130EGREP=$lt_EGREP
23131
23132# The linker used to build libraries.
23133LD=$lt_LD_F77
23134
23135# Whether we need hard or soft links.
23136LN_S=$lt_LN_S
23137
23138# A BSD-compatible nm program.
23139NM=$lt_NM
23140
23141# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023142STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023143
23144# Used to examine libraries when file_magic_cmd begins "file"
23145MAGIC_CMD=$MAGIC_CMD
23146
23147# Used on cygwin: DLL creation program.
23148DLLTOOL="$DLLTOOL"
23149
23150# Used on cygwin: object dumper.
23151OBJDUMP="$OBJDUMP"
23152
23153# Used on cygwin: assembler.
23154AS="$AS"
23155
23156# The name of the directory that contains temporary libtool files.
23157objdir=$objdir
23158
23159# How to create reloadable object files.
23160reload_flag=$lt_reload_flag
23161reload_cmds=$lt_reload_cmds
23162
23163# How to pass a linker flag through the compiler.
23164wl=$lt_lt_prog_compiler_wl_F77
23165
23166# Object file suffix (normally "o").
23167objext="$ac_objext"
23168
23169# Old archive suffix (normally "a").
23170libext="$libext"
23171
23172# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023173shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023174
23175# Executable file suffix (normally "").
23176exeext="$exeext"
23177
23178# Additional compiler flags for building library objects.
23179pic_flag=$lt_lt_prog_compiler_pic_F77
23180pic_mode=$pic_mode
23181
23182# What is the maximum length of a command?
23183max_cmd_len=$lt_cv_sys_max_cmd_len
23184
23185# Does compiler simultaneously support -c and -o options?
23186compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23187
Reid Spencera773bd52006-08-04 18:18:08 +000023188# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023189need_locks=$lt_need_locks
23190
23191# Do we need the lib prefix for modules?
23192need_lib_prefix=$need_lib_prefix
23193
23194# Do we need a version for libraries?
23195need_version=$need_version
23196
23197# Whether dlopen is supported.
23198dlopen_support=$enable_dlopen
23199
23200# Whether dlopen of programs is supported.
23201dlopen_self=$enable_dlopen_self
23202
23203# Whether dlopen of statically linked programs is supported.
23204dlopen_self_static=$enable_dlopen_self_static
23205
23206# Compiler flag to prevent dynamic linking.
23207link_static_flag=$lt_lt_prog_compiler_static_F77
23208
23209# Compiler flag to turn off builtin functions.
23210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23211
23212# Compiler flag to allow reflexive dlopens.
23213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23214
23215# Compiler flag to generate shared objects directly from archives.
23216whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23217
23218# Compiler flag to generate thread-safe objects.
23219thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23220
23221# Library versioning type.
23222version_type=$version_type
23223
23224# Format of library name prefix.
23225libname_spec=$lt_libname_spec
23226
23227# List of archive names. First name is the real one, the rest are links.
23228# The last name is the one that the linker finds with -lNAME.
23229library_names_spec=$lt_library_names_spec
23230
23231# The coded name of the library, if different from the real name.
23232soname_spec=$lt_soname_spec
23233
23234# Commands used to build and install an old-style archive.
23235RANLIB=$lt_RANLIB
23236old_archive_cmds=$lt_old_archive_cmds_F77
23237old_postinstall_cmds=$lt_old_postinstall_cmds
23238old_postuninstall_cmds=$lt_old_postuninstall_cmds
23239
23240# Create an old-style archive from a shared archive.
23241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23242
23243# Create a temporary old-style archive to link instead of a shared archive.
23244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23245
23246# Commands used to build and install a shared archive.
23247archive_cmds=$lt_archive_cmds_F77
23248archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23249postinstall_cmds=$lt_postinstall_cmds
23250postuninstall_cmds=$lt_postuninstall_cmds
23251
23252# Commands used to build a loadable module (assumed same as above if empty)
23253module_cmds=$lt_module_cmds_F77
23254module_expsym_cmds=$lt_module_expsym_cmds_F77
23255
23256# Commands to strip libraries.
23257old_striplib=$lt_old_striplib
23258striplib=$lt_striplib
23259
23260# Dependencies to place before the objects being linked to create a
23261# shared library.
23262predep_objects=$lt_predep_objects_F77
23263
23264# Dependencies to place after the objects being linked to create a
23265# shared library.
23266postdep_objects=$lt_postdep_objects_F77
23267
23268# Dependencies to place before the objects being linked to create a
23269# shared library.
23270predeps=$lt_predeps_F77
23271
23272# Dependencies to place after the objects being linked to create a
23273# shared library.
23274postdeps=$lt_postdeps_F77
23275
23276# The library search path used internally by the compiler when linking
23277# a shared library.
23278compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23279
23280# Method to check whether dependent libraries are shared objects.
23281deplibs_check_method=$lt_deplibs_check_method
23282
23283# Command to use when deplibs_check_method == file_magic.
23284file_magic_cmd=$lt_file_magic_cmd
23285
23286# Flag that allows shared libraries with undefined symbols to be built.
23287allow_undefined_flag=$lt_allow_undefined_flag_F77
23288
23289# Flag that forces no undefined symbols.
23290no_undefined_flag=$lt_no_undefined_flag_F77
23291
23292# Commands used to finish a libtool library installation in a directory.
23293finish_cmds=$lt_finish_cmds
23294
23295# Same as above, but a single script fragment to be evaled but not shown.
23296finish_eval=$lt_finish_eval
23297
23298# Take the output of nm and produce a listing of raw symbols and C names.
23299global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23300
23301# Transform the output of nm in a proper C declaration
23302global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23303
23304# Transform the output of nm in a C name address pair
23305global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23306
23307# This is the shared library runtime path variable.
23308runpath_var=$runpath_var
23309
23310# This is the shared library path variable.
23311shlibpath_var=$shlibpath_var
23312
23313# Is shlibpath searched before the hard-coded library search path?
23314shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23315
23316# How to hardcode a shared library path into an executable.
23317hardcode_action=$hardcode_action_F77
23318
23319# Whether we should hardcode library paths into libraries.
23320hardcode_into_libs=$hardcode_into_libs
23321
23322# Flag to hardcode \$libdir into a binary during linking.
23323# This must work even if \$libdir does not exist.
23324hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23325
23326# If ld is used when linking, flag to hardcode \$libdir into
23327# a binary during linking. This must work even if \$libdir does
23328# not exist.
23329hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23330
23331# Whether we need a single -rpath flag with a separated argument.
23332hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23333
23334# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23335# resulting binary.
23336hardcode_direct=$hardcode_direct_F77
23337
23338# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23339# resulting binary.
23340hardcode_minus_L=$hardcode_minus_L_F77
23341
23342# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23343# the resulting binary.
23344hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23345
23346# Set to yes if building a shared library automatically hardcodes DIR into the library
23347# and all subsequent libraries and executables linked against it.
23348hardcode_automatic=$hardcode_automatic_F77
23349
23350# Variables whose values should be saved in libtool wrapper scripts and
23351# restored at relink time.
23352variables_saved_for_relink="$variables_saved_for_relink"
23353
23354# Whether libtool must link a program against all its dependency libraries.
23355link_all_deplibs=$link_all_deplibs_F77
23356
23357# Compile-time system search path for libraries
23358sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23359
23360# Run-time system search path for libraries
23361sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23362
23363# Fix the shell variable \$srcfile for the compiler.
23364fix_srcfile_path="$fix_srcfile_path_F77"
23365
23366# Set to yes if exported symbols are required.
23367always_export_symbols=$always_export_symbols_F77
23368
23369# The commands to list exported symbols.
23370export_symbols_cmds=$lt_export_symbols_cmds_F77
23371
23372# The commands to extract the exported symbol list from a shared archive.
23373extract_expsyms_cmds=$lt_extract_expsyms_cmds
23374
23375# Symbols that should not be listed in the preloaded symbols.
23376exclude_expsyms=$lt_exclude_expsyms_F77
23377
23378# Symbols that must always be exported.
23379include_expsyms=$lt_include_expsyms_F77
23380
23381# ### END LIBTOOL TAG CONFIG: $tagname
23382
23383__EOF__
23384
23385
23386else
23387 # If there is no Makefile yet, we rely on a make rule to execute
23388 # `config.status --recheck' to rerun these tests and create the
23389 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023390 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23391 if test -f "$ltmain_in"; then
23392 test -f Makefile && make "$ltmain"
23393 fi
John Criswell47fdd832003-07-14 16:52:07 +000023394fi
23395
23396
23397ac_ext=c
23398ac_cpp='$CPP $CPPFLAGS'
23399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23401ac_compiler_gnu=$ac_cv_c_compiler_gnu
23402
23403CC="$lt_save_CC"
23404
23405 else
23406 tagname=""
23407 fi
23408 ;;
23409
23410 GCJ)
23411 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023412 ac_ext=c
23413ac_cpp='$CPP $CPPFLAGS'
23414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23416ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023417
23418
23419# Source file extension for Java test sources.
23420ac_ext=java
23421
23422# Object file extension for compiled Java test sources.
23423objext=o
23424objext_GCJ=$objext
23425
23426# Code to be used in simple compile tests
23427lt_simple_compile_test_code="class foo {}\n"
23428
23429# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023430lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023431
23432# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23433
23434# If no C compiler was specified, use CC.
23435LTCC=${LTCC-"$CC"}
23436
Reid Spencera773bd52006-08-04 18:18:08 +000023437# If no C compiler flags were specified, use CFLAGS.
23438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23439
John Criswell47fdd832003-07-14 16:52:07 +000023440# Allow CC to be a program name with arguments.
23441compiler=$CC
23442
23443
Reid Spencera773bd52006-08-04 18:18:08 +000023444# save warnings/boilerplate of simple test code
23445ac_outfile=conftest.$ac_objext
23446printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23448_lt_compiler_boilerplate=`cat conftest.err`
23449$rm conftest*
23450
23451ac_outfile=conftest.$ac_objext
23452printf "$lt_simple_link_test_code" >conftest.$ac_ext
23453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23454_lt_linker_boilerplate=`cat conftest.err`
23455$rm conftest*
23456
23457
John Criswell47fdd832003-07-14 16:52:07 +000023458# Allow CC to be a program name with arguments.
23459lt_save_CC="$CC"
23460CC=${GCJ-"gcj"}
23461compiler=$CC
23462compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023463for cc_temp in $compiler""; do
23464 case $cc_temp in
23465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23467 \-*) ;;
23468 *) break;;
23469 esac
23470done
23471cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23472
John Criswell47fdd832003-07-14 16:52:07 +000023473
23474# GCJ did not exist at the time GCC didn't implicitly link libc in.
23475archive_cmds_need_lc_GCJ=no
23476
Reid Spencera773bd52006-08-04 18:18:08 +000023477old_archive_cmds_GCJ=$old_archive_cmds
23478
John Criswell47fdd832003-07-14 16:52:07 +000023479
23480lt_prog_compiler_no_builtin_flag_GCJ=
23481
23482if test "$GCC" = yes; then
23483 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23484
Reid Spencer2706f8c2004-09-19 23:53:36 +000023485
Reid Spencera773bd52006-08-04 18:18:08 +000023486{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23487echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023488if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490else
23491 lt_cv_prog_compiler_rtti_exceptions=no
23492 ac_outfile=conftest.$ac_objext
23493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23494 lt_compiler_flag="-fno-rtti -fno-exceptions"
23495 # Insert the option either (1) after the last *FLAGS variable, or
23496 # (2) before a word containing "conftest.", or (3) at the end.
23497 # Note that $ac_compile itself does not contain backslashes and begins
23498 # with a dollar sign (not a hyphen), so the echo should work correctly.
23499 # The option is referenced via a variable to avoid confusing sed.
23500 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23503 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000023504 (eval echo "\"\$as_me:23504: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023505 (eval "$lt_compile" 2>conftest.err)
23506 ac_status=$?
23507 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000023508 echo "$as_me:23508: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023509 if (exit $ac_status) && test -s "$ac_outfile"; then
23510 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023511 # So say no if there are warnings other than the usual output.
23512 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023515 lt_cv_prog_compiler_rtti_exceptions=yes
23516 fi
23517 fi
23518 $rm conftest*
23519
23520fi
Reid Spencera773bd52006-08-04 18:18:08 +000023521{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23522echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023523
23524if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23525 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23526else
23527 :
23528fi
23529
23530fi
23531
23532lt_prog_compiler_wl_GCJ=
23533lt_prog_compiler_pic_GCJ=
23534lt_prog_compiler_static_GCJ=
23535
Reid Spencera773bd52006-08-04 18:18:08 +000023536{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23537echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023538
23539 if test "$GCC" = yes; then
23540 lt_prog_compiler_wl_GCJ='-Wl,'
23541 lt_prog_compiler_static_GCJ='-static'
23542
23543 case $host_os in
23544 aix*)
23545 # All AIX code is PIC.
23546 if test "$host_cpu" = ia64; then
23547 # AIX 5 now supports IA64 processor
23548 lt_prog_compiler_static_GCJ='-Bstatic'
23549 fi
23550 ;;
23551
23552 amigaos*)
23553 # FIXME: we need at least 68020 code to build shared libraries, but
23554 # adding the `-m68020' flag to GCC prevents building anything better,
23555 # like `-m68040'.
23556 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23557 ;;
23558
23559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23560 # PIC is the default for these OSes.
23561 ;;
23562
23563 mingw* | pw32* | os2*)
23564 # This hack is so that the source file can tell whether it is being
23565 # built for inclusion in a dll (and should export symbols for example).
23566 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23567 ;;
23568
23569 darwin* | rhapsody*)
23570 # PIC is the default on this platform
23571 # Common symbols not allowed in MH_DYLIB files
23572 lt_prog_compiler_pic_GCJ='-fno-common'
23573 ;;
23574
Reid Spencera773bd52006-08-04 18:18:08 +000023575 interix3*)
23576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23577 # Instead, we relocate shared libraries at runtime.
23578 ;;
23579
John Criswell47fdd832003-07-14 16:52:07 +000023580 msdosdjgpp*)
23581 # Just because we use GCC doesn't mean we suddenly get shared libraries
23582 # on systems that don't support them.
23583 lt_prog_compiler_can_build_shared_GCJ=no
23584 enable_shared=no
23585 ;;
23586
23587 sysv4*MP*)
23588 if test -d /usr/nec; then
23589 lt_prog_compiler_pic_GCJ=-Kconform_pic
23590 fi
23591 ;;
23592
23593 hpux*)
23594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23595 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023596 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023597 hppa*64*|ia64*)
23598 # +Z the default
23599 ;;
23600 *)
23601 lt_prog_compiler_pic_GCJ='-fPIC'
23602 ;;
23603 esac
23604 ;;
23605
23606 *)
23607 lt_prog_compiler_pic_GCJ='-fPIC'
23608 ;;
23609 esac
23610 else
23611 # PORTME Check for flag to pass linker flags through the system compiler.
23612 case $host_os in
23613 aix*)
23614 lt_prog_compiler_wl_GCJ='-Wl,'
23615 if test "$host_cpu" = ia64; then
23616 # AIX 5 now supports IA64 processor
23617 lt_prog_compiler_static_GCJ='-Bstatic'
23618 else
23619 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23620 fi
23621 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023622 darwin*)
23623 # PIC is the default on this platform
23624 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023625 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023626 xlc*)
23627 lt_prog_compiler_pic_GCJ='-qnocommon'
23628 lt_prog_compiler_wl_GCJ='-Wl,'
23629 ;;
23630 esac
23631 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023632
23633 mingw* | pw32* | os2*)
23634 # This hack is so that the source file can tell whether it is being
23635 # built for inclusion in a dll (and should export symbols for example).
23636 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23637 ;;
23638
23639 hpux9* | hpux10* | hpux11*)
23640 lt_prog_compiler_wl_GCJ='-Wl,'
23641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23642 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023643 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023644 hppa*64*|ia64*)
23645 # +Z the default
23646 ;;
23647 *)
23648 lt_prog_compiler_pic_GCJ='+Z'
23649 ;;
23650 esac
23651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23652 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23653 ;;
23654
23655 irix5* | irix6* | nonstopux*)
23656 lt_prog_compiler_wl_GCJ='-Wl,'
23657 # PIC (with -KPIC) is the default.
23658 lt_prog_compiler_static_GCJ='-non_shared'
23659 ;;
23660
23661 newsos6)
23662 lt_prog_compiler_pic_GCJ='-KPIC'
23663 lt_prog_compiler_static_GCJ='-Bstatic'
23664 ;;
23665
23666 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023667 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023668 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023669 lt_prog_compiler_wl_GCJ='-Wl,'
23670 lt_prog_compiler_pic_GCJ='-KPIC'
23671 lt_prog_compiler_static_GCJ='-static'
23672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023673 pgcc* | pgf77* | pgf90* | pgf95*)
23674 # Portland Group compilers (*not* the Pentium gcc compiler,
23675 # which looks to be a dead project)
23676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 lt_prog_compiler_pic_GCJ='-fpic'
23678 lt_prog_compiler_static_GCJ='-Bstatic'
23679 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023680 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023681 lt_prog_compiler_wl_GCJ='-Wl,'
23682 # All Alpha code is PIC.
23683 lt_prog_compiler_static_GCJ='-non_shared'
23684 ;;
23685 esac
23686 ;;
23687
23688 osf3* | osf4* | osf5*)
23689 lt_prog_compiler_wl_GCJ='-Wl,'
23690 # All OSF/1 code is PIC.
23691 lt_prog_compiler_static_GCJ='-non_shared'
23692 ;;
23693
John Criswell47fdd832003-07-14 16:52:07 +000023694 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023695 lt_prog_compiler_pic_GCJ='-KPIC'
23696 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023697 case $cc_basename in
23698 f77* | f90* | f95*)
23699 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23700 *)
23701 lt_prog_compiler_wl_GCJ='-Wl,';;
23702 esac
John Criswell47fdd832003-07-14 16:52:07 +000023703 ;;
23704
23705 sunos4*)
23706 lt_prog_compiler_wl_GCJ='-Qoption ld '
23707 lt_prog_compiler_pic_GCJ='-PIC'
23708 lt_prog_compiler_static_GCJ='-Bstatic'
23709 ;;
23710
Reid Spencera773bd52006-08-04 18:18:08 +000023711 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023712 lt_prog_compiler_wl_GCJ='-Wl,'
23713 lt_prog_compiler_pic_GCJ='-KPIC'
23714 lt_prog_compiler_static_GCJ='-Bstatic'
23715 ;;
23716
23717 sysv4*MP*)
23718 if test -d /usr/nec ;then
23719 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23720 lt_prog_compiler_static_GCJ='-Bstatic'
23721 fi
23722 ;;
23723
Reid Spencera773bd52006-08-04 18:18:08 +000023724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23725 lt_prog_compiler_wl_GCJ='-Wl,'
23726 lt_prog_compiler_pic_GCJ='-KPIC'
23727 lt_prog_compiler_static_GCJ='-Bstatic'
23728 ;;
23729
23730 unicos*)
23731 lt_prog_compiler_wl_GCJ='-Wl,'
23732 lt_prog_compiler_can_build_shared_GCJ=no
23733 ;;
23734
John Criswell47fdd832003-07-14 16:52:07 +000023735 uts4*)
23736 lt_prog_compiler_pic_GCJ='-pic'
23737 lt_prog_compiler_static_GCJ='-Bstatic'
23738 ;;
23739
23740 *)
23741 lt_prog_compiler_can_build_shared_GCJ=no
23742 ;;
23743 esac
23744 fi
23745
Reid Spencera773bd52006-08-04 18:18:08 +000023746{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23747echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023748
23749#
23750# Check to make sure the PIC flag actually works.
23751#
23752if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023753
Reid Spencera773bd52006-08-04 18:18:08 +000023754{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023756if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23758else
23759 lt_prog_compiler_pic_works_GCJ=no
23760 ac_outfile=conftest.$ac_objext
23761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23762 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23763 # Insert the option either (1) after the last *FLAGS variable, or
23764 # (2) before a word containing "conftest.", or (3) at the end.
23765 # Note that $ac_compile itself does not contain backslashes and begins
23766 # with a dollar sign (not a hyphen), so the echo should work correctly.
23767 # The option is referenced via a variable to avoid confusing sed.
23768 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23771 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000023772 (eval echo "\"\$as_me:23772: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023773 (eval "$lt_compile" 2>conftest.err)
23774 ac_status=$?
23775 cat conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000023776 echo "$as_me:23776: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023777 if (exit $ac_status) && test -s "$ac_outfile"; then
23778 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023779 # So say no if there are warnings other than the usual output.
23780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023783 lt_prog_compiler_pic_works_GCJ=yes
23784 fi
23785 fi
23786 $rm conftest*
23787
23788fi
Reid Spencera773bd52006-08-04 18:18:08 +000023789{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23790echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023791
23792if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23793 case $lt_prog_compiler_pic_GCJ in
23794 "" | " "*) ;;
23795 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23796 esac
23797else
23798 lt_prog_compiler_pic_GCJ=
23799 lt_prog_compiler_can_build_shared_GCJ=no
23800fi
23801
23802fi
Reid Spencera773bd52006-08-04 18:18:08 +000023803case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023804 # For platforms which do not support PIC, -DPIC is meaningless:
23805 *djgpp*)
23806 lt_prog_compiler_pic_GCJ=
23807 ;;
23808 *)
23809 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23810 ;;
23811esac
23812
Reid Spencera773bd52006-08-04 18:18:08 +000023813#
23814# Check to make sure the static flag actually works.
23815#
23816wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23817{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23818echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23819if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821else
23822 lt_prog_compiler_static_works_GCJ=no
23823 save_LDFLAGS="$LDFLAGS"
23824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23825 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23827 # The linker can only warn and ignore the option if not recognized
23828 # So say no if there are warnings
23829 if test -s conftest.err; then
23830 # Append any errors to the config.log.
23831 cat conftest.err 1>&5
23832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23834 if diff conftest.exp conftest.er2 >/dev/null; then
23835 lt_prog_compiler_static_works_GCJ=yes
23836 fi
23837 else
23838 lt_prog_compiler_static_works_GCJ=yes
23839 fi
23840 fi
23841 $rm conftest*
23842 LDFLAGS="$save_LDFLAGS"
23843
23844fi
23845{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23846echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23847
23848if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23849 :
23850else
23851 lt_prog_compiler_static_GCJ=
23852fi
23853
23854
23855{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023857if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859else
23860 lt_cv_prog_compiler_c_o_GCJ=no
23861 $rm -r conftest 2>/dev/null
23862 mkdir conftest
23863 cd conftest
23864 mkdir out
23865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23866
John Criswell47fdd832003-07-14 16:52:07 +000023867 lt_compiler_flag="-o out/conftest2.$ac_objext"
23868 # Insert the option either (1) after the last *FLAGS variable, or
23869 # (2) before a word containing "conftest.", or (3) at the end.
23870 # Note that $ac_compile itself does not contain backslashes and begins
23871 # with a dollar sign (not a hyphen), so the echo should work correctly.
23872 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23875 -e 's:$: $lt_compiler_flag:'`
Reid Spencer466207a2007-01-20 20:45:39 +000023876 (eval echo "\"\$as_me:23876: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023877 (eval "$lt_compile" 2>out/conftest.err)
23878 ac_status=$?
23879 cat out/conftest.err >&5
Reid Spencer466207a2007-01-20 20:45:39 +000023880 echo "$as_me:23880: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23882 then
23883 # The compiler can only warn and ignore the option if not recognized
23884 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023888 lt_cv_prog_compiler_c_o_GCJ=yes
23889 fi
23890 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023891 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023892 $rm conftest*
23893 # SGI C++ compiler will create directory out/ii_files/ for
23894 # template instantiation
23895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23896 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023897 cd ..
23898 rmdir conftest
23899 $rm conftest*
23900
23901fi
Reid Spencera773bd52006-08-04 18:18:08 +000023902{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23903echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023904
23905
23906hard_links="nottested"
23907if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23908 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023911 hard_links=yes
23912 $rm conftest*
23913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23914 touch conftest.a
23915 ln conftest.a conftest.b 2>&5 || hard_links=no
23916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023917 { echo "$as_me:$LINENO: result: $hard_links" >&5
23918echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023919 if test "$hard_links" = no; then
23920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23922 need_locks=warn
23923 fi
23924else
23925 need_locks=no
23926fi
23927
Reid Spencera773bd52006-08-04 18:18:08 +000023928{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023930
23931 runpath_var=
23932 allow_undefined_flag_GCJ=
23933 enable_shared_with_static_runtimes_GCJ=no
23934 archive_cmds_GCJ=
23935 archive_expsym_cmds_GCJ=
23936 old_archive_From_new_cmds_GCJ=
23937 old_archive_from_expsyms_cmds_GCJ=
23938 export_dynamic_flag_spec_GCJ=
23939 whole_archive_flag_spec_GCJ=
23940 thread_safe_flag_spec_GCJ=
23941 hardcode_libdir_flag_spec_GCJ=
23942 hardcode_libdir_flag_spec_ld_GCJ=
23943 hardcode_libdir_separator_GCJ=
23944 hardcode_direct_GCJ=no
23945 hardcode_minus_L_GCJ=no
23946 hardcode_shlibpath_var_GCJ=unsupported
23947 link_all_deplibs_GCJ=unknown
23948 hardcode_automatic_GCJ=no
23949 module_cmds_GCJ=
23950 module_expsym_cmds_GCJ=
23951 always_export_symbols_GCJ=no
23952 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23953 # include_expsyms should be a list of space-separated symbols to be *always*
23954 # included in the symbol list
23955 include_expsyms_GCJ=
23956 # exclude_expsyms can be an extended regexp of symbols to exclude
23957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23959 # as well as any symbol that contains `d'.
23960 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23962 # platforms (ab)use it in PIC code, but their linkers get confused if
23963 # the symbol is explicitly referenced. Since portable code cannot
23964 # rely on this symbol name, it's probably fine to never include it in
23965 # preloaded symbol tables.
23966 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023967 # Just being paranoid about ensuring that cc_basename is set.
23968 for cc_temp in $compiler""; do
23969 case $cc_temp in
23970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23972 \-*) ;;
23973 *) break;;
23974 esac
23975done
23976cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023977
23978 case $host_os in
23979 cygwin* | mingw* | pw32*)
23980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23981 # When not using gcc, we currently assume that we are using
23982 # Microsoft Visual C++.
23983 if test "$GCC" != yes; then
23984 with_gnu_ld=no
23985 fi
23986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023987 interix*)
23988 # we just hope/assume this is gcc and not c89 (= MSVC++)
23989 with_gnu_ld=yes
23990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023991 openbsd*)
23992 with_gnu_ld=no
23993 ;;
23994 esac
23995
23996 ld_shlibs_GCJ=yes
23997 if test "$with_gnu_ld" = yes; then
23998 # If archive_cmds runs LD, not CC, wlarc should be empty
23999 wlarc='${wl}'
24000
Reid Spencera773bd52006-08-04 18:18:08 +000024001 # Set some defaults for GNU ld with shared library support. These
24002 # are reset later if shared libraries are not supported. Putting them
24003 # here allows them to be overridden if necessary.
24004 runpath_var=LD_RUN_PATH
24005 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24006 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24007 # ancient GNU ld didn't support --whole-archive et. al.
24008 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24009 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24010 else
24011 whole_archive_flag_spec_GCJ=
24012 fi
24013 supports_anon_versioning=no
24014 case `$LD -v 2>/dev/null` in
24015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24018 *\ 2.11.*) ;; # other 2.11 versions
24019 *) supports_anon_versioning=yes ;;
24020 esac
24021
John Criswell47fdd832003-07-14 16:52:07 +000024022 # See if GNU ld supports shared libraries.
24023 case $host_os in
24024 aix3* | aix4* | aix5*)
24025 # On AIX/PPC, the GNU linker is very broken
24026 if test "$host_cpu" != ia64; then
24027 ld_shlibs_GCJ=no
24028 cat <<EOF 1>&2
24029
24030*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24031*** to be unable to reliably create shared libraries on AIX.
24032*** Therefore, libtool is disabling shared libraries support. If you
24033*** really care for shared libraries, you may want to modify your PATH
24034*** so that a non-GNU linker is found, and then restart.
24035
24036EOF
24037 fi
24038 ;;
24039
24040 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024041 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 +000024042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24043 hardcode_minus_L_GCJ=yes
24044
24045 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24046 # that the semantics of dynamic libraries on AmigaOS, at least up
24047 # to version 4, is to share data among multiple programs linked
24048 # with the same dynamic library. Since this doesn't match the
24049 # behavior of shared libraries on other platforms, we can't use
24050 # them.
24051 ld_shlibs_GCJ=no
24052 ;;
24053
24054 beos*)
24055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24056 allow_undefined_flag_GCJ=unsupported
24057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24058 # support --undefined. This deserves some investigation. FIXME
24059 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24060 else
24061 ld_shlibs_GCJ=no
24062 fi
24063 ;;
24064
24065 cygwin* | mingw* | pw32*)
24066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24067 # as there is no search path for DLLs.
24068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24069 allow_undefined_flag_GCJ=unsupported
24070 always_export_symbols_GCJ=no
24071 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024072 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 +000024073
24074 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024075 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 +000024076 # If the export-symbols file already is a .def file (1st line
24077 # is EXPORTS), use it as is; otherwise, prepend...
24078 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24079 cp $export_symbols $output_objdir/$soname.def;
24080 else
24081 echo EXPORTS > $output_objdir/$soname.def;
24082 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024083 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024084 $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 +000024085 else
Reid Spencera773bd52006-08-04 18:18:08 +000024086 ld_shlibs_GCJ=no
24087 fi
24088 ;;
24089
24090 interix3*)
24091 hardcode_direct_GCJ=no
24092 hardcode_shlibpath_var_GCJ=no
24093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24094 export_dynamic_flag_spec_GCJ='${wl}-E'
24095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24096 # Instead, shared libraries are loaded at an image base (0x10000000 by
24097 # default) and relocated if they conflict, which is a slow very memory
24098 # consuming and fragmenting process. To avoid this, we pick a random,
24099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24100 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24101 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'
24102 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'
24103 ;;
24104
24105 linux*)
24106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24107 tmp_addflag=
24108 case $cc_basename,$host_cpu in
24109 pgcc*) # Portland Group C compiler
24110 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'
24111 tmp_addflag=' $pic_flag'
24112 ;;
24113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24114 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'
24115 tmp_addflag=' $pic_flag -Mnomain' ;;
24116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24117 tmp_addflag=' -i_dynamic' ;;
24118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24119 tmp_addflag=' -i_dynamic -nofor_main' ;;
24120 ifc* | ifort*) # Intel Fortran compiler
24121 tmp_addflag=' -nofor_main' ;;
24122 esac
24123 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24124
24125 if test $supports_anon_versioning = yes; then
24126 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24128 $echo "local: *; };" >> $output_objdir/$libname.ver~
24129 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24130 fi
24131 else
24132 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024133 fi
24134 ;;
24135
24136 netbsd*)
24137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24138 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24139 wlarc=
24140 else
24141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24143 fi
24144 ;;
24145
Reid Spencera773bd52006-08-04 18:18:08 +000024146 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24148 ld_shlibs_GCJ=no
24149 cat <<EOF 1>&2
24150
24151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24152*** create shared libraries on Solaris systems. Therefore, libtool
24153*** is disabling shared libraries support. We urge you to upgrade GNU
24154*** binutils to release 2.9.1 or newer. Another option is to modify
24155*** your PATH or compiler configuration so that the native linker is
24156*** used, and then restart.
24157
24158EOF
24159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24162 else
24163 ld_shlibs_GCJ=no
24164 fi
24165 ;;
24166
Reid Spencera773bd52006-08-04 18:18:08 +000024167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24168 case `$LD -v 2>&1` in
24169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24170 ld_shlibs_GCJ=no
24171 cat <<_LT_EOF 1>&2
24172
24173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24174*** reliably create shared libraries on SCO systems. Therefore, libtool
24175*** is disabling shared libraries support. We urge you to upgrade GNU
24176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24177*** your PATH or compiler configuration so that the native linker is
24178*** used, and then restart.
24179
24180_LT_EOF
24181 ;;
24182 *)
24183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24184 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24186 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24187 else
24188 ld_shlibs_GCJ=no
24189 fi
24190 ;;
24191 esac
24192 ;;
24193
John Criswell47fdd832003-07-14 16:52:07 +000024194 sunos4*)
24195 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24196 wlarc=
24197 hardcode_direct_GCJ=yes
24198 hardcode_shlibpath_var_GCJ=no
24199 ;;
24200
24201 *)
24202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24204 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24205 else
24206 ld_shlibs_GCJ=no
24207 fi
24208 ;;
24209 esac
24210
Reid Spencera773bd52006-08-04 18:18:08 +000024211 if test "$ld_shlibs_GCJ" = no; then
24212 runpath_var=
24213 hardcode_libdir_flag_spec_GCJ=
24214 export_dynamic_flag_spec_GCJ=
24215 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024216 fi
24217 else
24218 # PORTME fill in a description of your system's linker (not GNU ld)
24219 case $host_os in
24220 aix3*)
24221 allow_undefined_flag_GCJ=unsupported
24222 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024223 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 +000024224 # Note: this linker hardcodes the directories in LIBPATH if there
24225 # are no directories specified by -L.
24226 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024228 # Neither direct hardcoding nor static linking is supported with a
24229 # broken collect2.
24230 hardcode_direct_GCJ=unsupported
24231 fi
24232 ;;
24233
24234 aix4* | aix5*)
24235 if test "$host_cpu" = ia64; then
24236 # On IA64, the linker does run time linking by default, so we don't
24237 # have to do anything special.
24238 aix_use_runtimelinking=no
24239 exp_sym_flag='-Bexport'
24240 no_entry_flag=""
24241 else
24242 # If we're using GNU nm, then we don't want the "-C" option.
24243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24245 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'
24246 else
24247 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'
24248 fi
24249 aix_use_runtimelinking=no
24250
24251 # Test if we are trying to use run time linking or normal
24252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24253 # need to do runtime linking.
24254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24255 for ld_flag in $LDFLAGS; do
24256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24257 aix_use_runtimelinking=yes
24258 break
24259 fi
24260 done
Reid Spencera773bd52006-08-04 18:18:08 +000024261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024262 esac
24263
24264 exp_sym_flag='-bexport'
24265 no_entry_flag='-bnoentry'
24266 fi
24267
24268 # When large executables or shared objects are built, AIX ld can
24269 # have problems creating the table of contents. If linking a library
24270 # or program results in "error TOC overflow" add -mminimal-toc to
24271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24273
24274 archive_cmds_GCJ=''
24275 hardcode_direct_GCJ=yes
24276 hardcode_libdir_separator_GCJ=':'
24277 link_all_deplibs_GCJ=yes
24278
24279 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024280 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024281 # We only want to do this on AIX 4.2 and lower, the check
24282 # below for broken collect2 doesn't work under 4.3+
24283 collect2name=`${CC} -print-prog-name=collect2`
24284 if test -f "$collect2name" && \
24285 strings "$collect2name" | grep resolve_lib_name >/dev/null
24286 then
24287 # We have reworked collect2
24288 hardcode_direct_GCJ=yes
24289 else
24290 # We have old collect2
24291 hardcode_direct_GCJ=unsupported
24292 # It fails to find uninstalled libraries when the uninstalled
24293 # path is not listed in the libpath. Setting hardcode_minus_L
24294 # to unsupported forces relinking
24295 hardcode_minus_L_GCJ=yes
24296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24297 hardcode_libdir_separator_GCJ=
24298 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024299 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024300 esac
24301 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024302 if test "$aix_use_runtimelinking" = yes; then
24303 shared_flag="$shared_flag "'${wl}-G'
24304 fi
John Criswell47fdd832003-07-14 16:52:07 +000024305 else
24306 # not using gcc
24307 if test "$host_cpu" = ia64; then
24308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24309 # chokes on -Wl,-G. The following line is correct:
24310 shared_flag='-G'
24311 else
Reid Spencera773bd52006-08-04 18:18:08 +000024312 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024313 shared_flag='${wl}-G'
24314 else
24315 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024316 fi
John Criswell47fdd832003-07-14 16:52:07 +000024317 fi
24318 fi
24319
24320 # It seems that -bexpall does not export symbols beginning with
24321 # underscore (_), so it is better to generate a list of symbols to export.
24322 always_export_symbols_GCJ=yes
24323 if test "$aix_use_runtimelinking" = yes; then
24324 # Warning - without using the other runtime loading flags (-brtl),
24325 # -berok will link without error, but may produce a broken library.
24326 allow_undefined_flag_GCJ='-berok'
24327 # Determine the default libpath from the value encoded in an empty executable.
24328 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024329/* confdefs.h. */
24330_ACEOF
24331cat confdefs.h >>conftest.$ac_ext
24332cat >>conftest.$ac_ext <<_ACEOF
24333/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024334
John Criswell47fdd832003-07-14 16:52:07 +000024335int
24336main ()
24337{
24338
24339 ;
24340 return 0;
24341}
24342_ACEOF
24343rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024344if { (ac_try="$ac_link"
24345case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24348esac
24349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24358 { (case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24361esac
24362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024368 { (case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24371esac
24372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; }; then
24377
24378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24379}'`
24380# Check for a 64-bit object if we didn't find anything.
24381if 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; }
24382}'`; fi
24383else
24384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024385sed 's/^/| /' conftest.$ac_ext >&5
24386
Reid Spencera773bd52006-08-04 18:18:08 +000024387
John Criswell47fdd832003-07-14 16:52:07 +000024388fi
Reid Spencera773bd52006-08-04 18:18:08 +000024389
24390rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024391 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24393
24394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024395 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 +000024396 else
24397 if test "$host_cpu" = ia64; then
24398 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24399 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024400 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 +000024401 else
24402 # Determine the default libpath from the value encoded in an empty executable.
24403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024404/* confdefs.h. */
24405_ACEOF
24406cat confdefs.h >>conftest.$ac_ext
24407cat >>conftest.$ac_ext <<_ACEOF
24408/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024409
John Criswell47fdd832003-07-14 16:52:07 +000024410int
24411main ()
24412{
24413
24414 ;
24415 return 0;
24416}
24417_ACEOF
24418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024419if { (ac_try="$ac_link"
24420case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24423esac
24424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024427 grep -v '^ *+' conftest.er1 >conftest.err
24428 rm -f conftest.er1
24429 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24433 { (case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24436esac
24437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024439 ac_status=$?
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024443 { (case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24446esac
24447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024449 ac_status=$?
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
24452
24453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24454}'`
24455# Check for a 64-bit object if we didn't find anything.
24456if 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; }
24457}'`; fi
24458else
24459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024460sed 's/^/| /' conftest.$ac_ext >&5
24461
Reid Spencera773bd52006-08-04 18:18:08 +000024462
John Criswell47fdd832003-07-14 16:52:07 +000024463fi
Reid Spencera773bd52006-08-04 18:18:08 +000024464
24465rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024466 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24468
24469 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24470 # Warning - without using the other run time loading flags,
24471 # -berok will link without error, but may produce a broken library.
24472 no_undefined_flag_GCJ=' ${wl}-bernotok'
24473 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024474 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024475 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024476 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024477 # This is similar to how AIX traditionally builds its shared libraries.
24478 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 +000024479 fi
24480 fi
24481 ;;
24482
24483 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024484 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 +000024485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24486 hardcode_minus_L_GCJ=yes
24487 # see comment about different semantics on the GNU ld section
24488 ld_shlibs_GCJ=no
24489 ;;
24490
Reid Spencer2706f8c2004-09-19 23:53:36 +000024491 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024492 export_dynamic_flag_spec_GCJ=-rdynamic
24493 ;;
24494
24495 cygwin* | mingw* | pw32*)
24496 # When not using gcc, we currently assume that we are using
24497 # Microsoft Visual C++.
24498 # hardcode_libdir_flag_spec is actually meaningless, as there is
24499 # no search path for DLLs.
24500 hardcode_libdir_flag_spec_GCJ=' '
24501 allow_undefined_flag_GCJ=unsupported
24502 # Tell ltmain to make .lib files, not .a files.
24503 libext=lib
24504 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024505 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024506 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024507 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 +000024508 # The linker will automatically build a .lib file if we build a DLL.
24509 old_archive_From_new_cmds_GCJ='true'
24510 # FIXME: Should let the user specify the lib program.
24511 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024512 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024513 enable_shared_with_static_runtimes_GCJ=yes
24514 ;;
24515
24516 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024517 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024518 rhapsody* | darwin1.[012])
24519 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24520 ;;
24521 *) # Darwin 1.3 on
24522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24523 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24524 else
24525 case ${MACOSX_DEPLOYMENT_TARGET} in
24526 10.[012])
24527 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24528 ;;
24529 10.*)
24530 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24531 ;;
24532 esac
24533 fi
24534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024535 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024536 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024537 hardcode_direct_GCJ=no
24538 hardcode_automatic_GCJ=yes
24539 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024540 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024541 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024542 if test "$GCC" = yes ; then
24543 output_verbose_link_cmd='echo'
24544 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24545 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024546 # 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 +000024547 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}'
24548 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 +000024549 else
Reid Spencera773bd52006-08-04 18:18:08 +000024550 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024551 xlc*)
24552 output_verbose_link_cmd='echo'
24553 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24554 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024555 # 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 +000024556 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}'
24557 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 +000024558 ;;
24559 *)
24560 ld_shlibs_GCJ=no
24561 ;;
24562 esac
John Criswell47fdd832003-07-14 16:52:07 +000024563 fi
24564 ;;
24565
24566 dgux*)
24567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24569 hardcode_shlibpath_var_GCJ=no
24570 ;;
24571
24572 freebsd1*)
24573 ld_shlibs_GCJ=no
24574 ;;
24575
24576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24577 # support. Future versions do this automatically, but an explicit c++rt0.o
24578 # does not break anything, and helps significantly (at the cost of a little
24579 # extra space).
24580 freebsd2.2*)
24581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24583 hardcode_direct_GCJ=yes
24584 hardcode_shlibpath_var_GCJ=no
24585 ;;
24586
24587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24588 freebsd2*)
24589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24590 hardcode_direct_GCJ=yes
24591 hardcode_minus_L_GCJ=yes
24592 hardcode_shlibpath_var_GCJ=no
24593 ;;
24594
24595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024596 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024597 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24598 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24599 hardcode_direct_GCJ=yes
24600 hardcode_shlibpath_var_GCJ=no
24601 ;;
24602
24603 hpux9*)
24604 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024605 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 +000024606 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024607 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 +000024608 fi
24609 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24610 hardcode_libdir_separator_GCJ=:
24611 hardcode_direct_GCJ=yes
24612
24613 # hardcode_minus_L: Not really in the search PATH,
24614 # but as the default location of the library.
24615 hardcode_minus_L_GCJ=yes
24616 export_dynamic_flag_spec_GCJ='${wl}-E'
24617 ;;
24618
Reid Spencera773bd52006-08-04 18:18:08 +000024619 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24622 else
24623 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24624 fi
24625 if test "$with_gnu_ld" = no; then
24626 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24627 hardcode_libdir_separator_GCJ=:
24628
24629 hardcode_direct_GCJ=yes
24630 export_dynamic_flag_spec_GCJ='${wl}-E'
24631
24632 # hardcode_minus_L: Not really in the search PATH,
24633 # but as the default location of the library.
24634 hardcode_minus_L_GCJ=yes
24635 fi
24636 ;;
24637
24638 hpux11*)
24639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24640 case $host_cpu in
24641 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024642 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024644 ia64*)
24645 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24646 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024647 *)
24648 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24649 ;;
24650 esac
24651 else
Reid Spencera773bd52006-08-04 18:18:08 +000024652 case $host_cpu in
24653 hppa*64*)
24654 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24655 ;;
24656 ia64*)
24657 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024658 ;;
24659 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024660 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 +000024661 ;;
24662 esac
24663 fi
24664 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24666 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024667
Reid Spencera773bd52006-08-04 18:18:08 +000024668 case $host_cpu in
24669 hppa*64*|ia64*)
24670 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24671 hardcode_direct_GCJ=no
24672 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024673 ;;
24674 *)
John Criswell47fdd832003-07-14 16:52:07 +000024675 hardcode_direct_GCJ=yes
24676 export_dynamic_flag_spec_GCJ='${wl}-E'
24677
24678 # hardcode_minus_L: Not really in the search PATH,
24679 # but as the default location of the library.
24680 hardcode_minus_L_GCJ=yes
24681 ;;
24682 esac
24683 fi
24684 ;;
24685
24686 irix5* | irix6* | nonstopux*)
24687 if test "$GCC" = yes; then
24688 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'
24689 else
24690 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'
24691 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24692 fi
24693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24694 hardcode_libdir_separator_GCJ=:
24695 link_all_deplibs_GCJ=yes
24696 ;;
24697
24698 netbsd*)
24699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24701 else
24702 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24703 fi
24704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24705 hardcode_direct_GCJ=yes
24706 hardcode_shlibpath_var_GCJ=no
24707 ;;
24708
24709 newsos6)
24710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24711 hardcode_direct_GCJ=yes
24712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24713 hardcode_libdir_separator_GCJ=:
24714 hardcode_shlibpath_var_GCJ=no
24715 ;;
24716
24717 openbsd*)
24718 hardcode_direct_GCJ=yes
24719 hardcode_shlibpath_var_GCJ=no
24720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24721 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024722 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 +000024723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24724 export_dynamic_flag_spec_GCJ='${wl}-E'
24725 else
24726 case $host_os in
24727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24728 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24729 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24730 ;;
24731 *)
24732 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24734 ;;
24735 esac
24736 fi
24737 ;;
24738
24739 os2*)
24740 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24741 hardcode_minus_L_GCJ=yes
24742 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024743 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 +000024744 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24745 ;;
24746
24747 osf3*)
24748 if test "$GCC" = yes; then
24749 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24750 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'
24751 else
24752 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24753 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'
24754 fi
24755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24756 hardcode_libdir_separator_GCJ=:
24757 ;;
24758
24759 osf4* | osf5*) # as osf3* with the addition of -msym flag
24760 if test "$GCC" = yes; then
24761 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24762 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'
24763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24764 else
24765 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24766 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 +000024767 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 +000024768 $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 +000024769
John Criswell47fdd832003-07-14 16:52:07 +000024770 # Both c and cxx compiler support -rpath directly
24771 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24772 fi
24773 hardcode_libdir_separator_GCJ=:
24774 ;;
24775
John Criswell47fdd832003-07-14 16:52:07 +000024776 solaris*)
24777 no_undefined_flag_GCJ=' -z text'
24778 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024779 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024780 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024781 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24782 $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 +000024783 else
Reid Spencera773bd52006-08-04 18:18:08 +000024784 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024785 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24787 $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 +000024788 fi
24789 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24790 hardcode_shlibpath_var_GCJ=no
24791 case $host_os in
24792 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024793 *)
24794 # The compiler driver will combine linker options so we
24795 # cannot just pass the convience library names through
24796 # without $wl, iff we do not link with $LD.
24797 # Luckily, gcc supports the same syntax we need for Sun Studio.
24798 # Supported since Solaris 2.6 (maybe 2.5.1?)
24799 case $wlarc in
24800 '')
24801 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24802 *)
24803 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' ;;
24804 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024805 esac
24806 link_all_deplibs_GCJ=yes
24807 ;;
24808
24809 sunos4*)
24810 if test "x$host_vendor" = xsequent; then
24811 # Use $CC to link under sequent, because it throws in some extra .o
24812 # files that make .init and .fini sections work.
24813 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24814 else
24815 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24816 fi
24817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24818 hardcode_direct_GCJ=yes
24819 hardcode_minus_L_GCJ=yes
24820 hardcode_shlibpath_var_GCJ=no
24821 ;;
24822
24823 sysv4)
24824 case $host_vendor in
24825 sni)
24826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24827 hardcode_direct_GCJ=yes # is this really true???
24828 ;;
24829 siemens)
24830 ## LD is ld it makes a PLAMLIB
24831 ## CC just makes a GrossModule.
24832 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24833 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24834 hardcode_direct_GCJ=no
24835 ;;
24836 motorola)
24837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24838 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24839 ;;
24840 esac
24841 runpath_var='LD_RUN_PATH'
24842 hardcode_shlibpath_var_GCJ=no
24843 ;;
24844
24845 sysv4.3*)
24846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847 hardcode_shlibpath_var_GCJ=no
24848 export_dynamic_flag_spec_GCJ='-Bexport'
24849 ;;
24850
24851 sysv4*MP*)
24852 if test -d /usr/nec; then
24853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24854 hardcode_shlibpath_var_GCJ=no
24855 runpath_var=LD_RUN_PATH
24856 hardcode_runpath_var=yes
24857 ld_shlibs_GCJ=yes
24858 fi
24859 ;;
24860
Reid Spencera773bd52006-08-04 18:18:08 +000024861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24862 no_undefined_flag_GCJ='${wl}-z,text'
24863 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024864 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024865 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024866
John Criswell47fdd832003-07-14 16:52:07 +000024867 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024868 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24869 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 +000024870 else
Reid Spencera773bd52006-08-04 18:18:08 +000024871 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24872 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 +000024873 fi
John Criswell47fdd832003-07-14 16:52:07 +000024874 ;;
24875
Reid Spencera773bd52006-08-04 18:18:08 +000024876 sysv5* | sco3.2v5* | sco5v6*)
24877 # Note: We can NOT use -z defs as we might desire, because we do not
24878 # link with -lc, and that would cause any symbols used from libc to
24879 # always be unresolved, which means just about no library would
24880 # ever link correctly. If we're not using GNU ld we use -z text
24881 # though, which does catch some bad symbols but isn't as heavy-handed
24882 # as -z defs.
24883 no_undefined_flag_GCJ='${wl}-z,text'
24884 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24885 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024886 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024887 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24888 hardcode_libdir_separator_GCJ=':'
24889 link_all_deplibs_GCJ=yes
24890 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024891 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024892
24893 if test "$GCC" = yes; then
24894 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24895 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24896 else
24897 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24899 fi
John Criswell47fdd832003-07-14 16:52:07 +000024900 ;;
24901
24902 uts4*)
24903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24905 hardcode_shlibpath_var_GCJ=no
24906 ;;
24907
24908 *)
24909 ld_shlibs_GCJ=no
24910 ;;
24911 esac
24912 fi
24913
Reid Spencera773bd52006-08-04 18:18:08 +000024914{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24915echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024916test "$ld_shlibs_GCJ" = no && can_build_shared=no
24917
John Criswell47fdd832003-07-14 16:52:07 +000024918#
24919# Do we need to explicitly link libc?
24920#
24921case "x$archive_cmds_need_lc_GCJ" in
24922x|xyes)
24923 # Assume -lc should be added
24924 archive_cmds_need_lc_GCJ=yes
24925
24926 if test "$enable_shared" = yes && test "$GCC" = yes; then
24927 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024928 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024929 # FIXME: we may have to deal with multi-command sequences.
24930 ;;
24931 '$CC '*)
24932 # Test whether the compiler implicitly links with -lc since on some
24933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24934 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024935 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24936echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024937 $rm conftest*
24938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24939
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941 (eval $ac_compile) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } 2>conftest.err; then
24945 soname=conftest
24946 lib=conftest
24947 libobjs=conftest.$ac_objext
24948 deplibs=
24949 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024950 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024951 compiler_flags=-v
24952 linker_flags=-v
24953 verstring=
24954 output_objdir=.
24955 libname=conftest
24956 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24957 allow_undefined_flag_GCJ=
24958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24959 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24960 ac_status=$?
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }
24963 then
24964 archive_cmds_need_lc_GCJ=no
24965 else
24966 archive_cmds_need_lc_GCJ=yes
24967 fi
24968 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24969 else
24970 cat conftest.err 1>&5
24971 fi
24972 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024973 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24974echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024975 ;;
24976 esac
24977 fi
24978 ;;
24979esac
24980
Reid Spencera773bd52006-08-04 18:18:08 +000024981{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24982echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024983library_names_spec=
24984libname_spec='lib$name'
24985soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024986shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024987postinstall_cmds=
24988postuninstall_cmds=
24989finish_cmds=
24990finish_eval=
24991shlibpath_var=
24992shlibpath_overrides_runpath=unknown
24993version_type=none
24994dynamic_linker="$host_os ld.so"
24995sys_lib_dlsearch_path_spec="/lib /usr/lib"
24996if test "$GCC" = yes; then
24997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24999 # if the path contains ";" then we assume it to be the separator
25000 # otherwise default to the standard path separator (i.e. ":") - it is
25001 # assumed that no part of a normal pathname contains ";" but that should
25002 # okay in the real world where ";" in dirpaths is itself problematic.
25003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25004 else
25005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25006 fi
25007else
25008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25009fi
25010need_lib_prefix=unknown
25011hardcode_into_libs=no
25012
25013# when you set need_version to no, make sure it does not cause -set_version
25014# flags to be left without arguments
25015need_version=unknown
25016
25017case $host_os in
25018aix3*)
25019 version_type=linux
25020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25021 shlibpath_var=LIBPATH
25022
25023 # AIX 3 has no versioning support, so we append a major version to the name.
25024 soname_spec='${libname}${release}${shared_ext}$major'
25025 ;;
25026
25027aix4* | aix5*)
25028 version_type=linux
25029 need_lib_prefix=no
25030 need_version=no
25031 hardcode_into_libs=yes
25032 if test "$host_cpu" = ia64; then
25033 # AIX 5 supports IA64
25034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25035 shlibpath_var=LD_LIBRARY_PATH
25036 else
25037 # With GCC up to 2.95.x, collect2 would create an import file
25038 # for dependence libraries. The import file would start with
25039 # the line `#! .'. This would cause the generated library to
25040 # depend on `.', always an invalid library. This was fixed in
25041 # development snapshots of GCC prior to 3.0.
25042 case $host_os in
25043 aix4 | aix4.[01] | aix4.[01].*)
25044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25045 echo ' yes '
25046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25047 :
25048 else
25049 can_build_shared=no
25050 fi
25051 ;;
25052 esac
25053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25054 # soname into executable. Probably we can add versioning support to
25055 # collect2, so additional links can be useful in future.
25056 if test "$aix_use_runtimelinking" = yes; then
25057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25058 # instead of lib<name>.a to let people know that these are not
25059 # typical AIX shared libraries.
25060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25061 else
25062 # We preserve .a as extension for shared libraries through AIX4.2
25063 # and later when we are not doing run time linking.
25064 library_names_spec='${libname}${release}.a $libname.a'
25065 soname_spec='${libname}${release}${shared_ext}$major'
25066 fi
25067 shlibpath_var=LIBPATH
25068 fi
25069 ;;
25070
25071amigaos*)
25072 library_names_spec='$libname.ixlibrary $libname.a'
25073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025074 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 +000025075 ;;
25076
25077beos*)
25078 library_names_spec='${libname}${shared_ext}'
25079 dynamic_linker="$host_os ld.so"
25080 shlibpath_var=LIBRARY_PATH
25081 ;;
25082
Reid Spencer2706f8c2004-09-19 23:53:36 +000025083bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025084 version_type=linux
25085 need_version=no
25086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25087 soname_spec='${libname}${release}${shared_ext}$major'
25088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25089 shlibpath_var=LD_LIBRARY_PATH
25090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25092 # the default ld.so.conf also contains /usr/contrib/lib and
25093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25094 # libtool to hard-code these into programs
25095 ;;
25096
25097cygwin* | mingw* | pw32*)
25098 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025099 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025100 need_version=no
25101 need_lib_prefix=no
25102
25103 case $GCC,$host_os in
25104 yes,cygwin* | yes,mingw* | yes,pw32*)
25105 library_names_spec='$libname.dll.a'
25106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025107 postinstall_cmds='base_file=`basename \${file}`~
25108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25109 dldir=$destdir/`dirname \$dlpath`~
25110 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025111 $install_prog $dir/$dlname \$dldir/$dlname~
25112 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25114 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025115 $rm \$dlpath'
25116 shlibpath_overrides_runpath=yes
25117
25118 case $host_os in
25119 cygwin*)
25120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25121 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 +000025122 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025123 ;;
25124 mingw*)
25125 # MinGW DLLs use traditional 'lib' prefix
25126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25128 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25129 # It is most probably a Windows format PATH printed by
25130 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25131 # path with ; separators, and with drive letters. We can handle the
25132 # drive letters (cygwin fileutils understands them), so leave them,
25133 # especially as we might pass files found there to a mingw objdump,
25134 # which wouldn't understand a cygwinified path. Ahh.
25135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25136 else
25137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25138 fi
25139 ;;
25140 pw32*)
25141 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025142 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 +000025143 ;;
25144 esac
25145 ;;
25146
25147 *)
25148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25149 ;;
25150 esac
25151 dynamic_linker='Win32 ld.exe'
25152 # FIXME: first we should search . and the directory the executable is in
25153 shlibpath_var=PATH
25154 ;;
25155
25156darwin* | rhapsody*)
25157 dynamic_linker="$host_os dyld"
25158 version_type=darwin
25159 need_lib_prefix=no
25160 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025161 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025162 soname_spec='${libname}${release}${major}$shared_ext'
25163 shlibpath_overrides_runpath=yes
25164 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025165 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025166 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025167 if test "$GCC" = yes; then
25168 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"`
25169 else
25170 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025171 fi
25172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25173 ;;
25174
25175dgux*)
25176 version_type=linux
25177 need_lib_prefix=no
25178 need_version=no
25179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25180 soname_spec='${libname}${release}${shared_ext}$major'
25181 shlibpath_var=LD_LIBRARY_PATH
25182 ;;
25183
25184freebsd1*)
25185 dynamic_linker=no
25186 ;;
25187
Reid Spencer2706f8c2004-09-19 23:53:36 +000025188kfreebsd*-gnu)
25189 version_type=linux
25190 need_lib_prefix=no
25191 need_version=no
25192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25193 soname_spec='${libname}${release}${shared_ext}$major'
25194 shlibpath_var=LD_LIBRARY_PATH
25195 shlibpath_overrides_runpath=no
25196 hardcode_into_libs=yes
25197 dynamic_linker='GNU ld.so'
25198 ;;
25199
Reid Spencera773bd52006-08-04 18:18:08 +000025200freebsd* | dragonfly*)
25201 # DragonFly does not have aout. When/if they implement a new
25202 # versioning mechanism, adjust this.
25203 if test -x /usr/bin/objformat; then
25204 objformat=`/usr/bin/objformat`
25205 else
25206 case $host_os in
25207 freebsd[123]*) objformat=aout ;;
25208 *) objformat=elf ;;
25209 esac
25210 fi
John Criswell47fdd832003-07-14 16:52:07 +000025211 version_type=freebsd-$objformat
25212 case $version_type in
25213 freebsd-elf*)
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25215 need_version=no
25216 need_lib_prefix=no
25217 ;;
25218 freebsd-*)
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25220 need_version=yes
25221 ;;
25222 esac
25223 shlibpath_var=LD_LIBRARY_PATH
25224 case $host_os in
25225 freebsd2*)
25226 shlibpath_overrides_runpath=yes
25227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025228 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025229 shlibpath_overrides_runpath=yes
25230 hardcode_into_libs=yes
25231 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025232 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25233 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025234 shlibpath_overrides_runpath=no
25235 hardcode_into_libs=yes
25236 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025237 freebsd*) # from 4.6 on
25238 shlibpath_overrides_runpath=yes
25239 hardcode_into_libs=yes
25240 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025241 esac
25242 ;;
25243
25244gnu*)
25245 version_type=linux
25246 need_lib_prefix=no
25247 need_version=no
25248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25249 soname_spec='${libname}${release}${shared_ext}$major'
25250 shlibpath_var=LD_LIBRARY_PATH
25251 hardcode_into_libs=yes
25252 ;;
25253
25254hpux9* | hpux10* | hpux11*)
25255 # Give a soname corresponding to the major version so that dld.sl refuses to
25256 # link against other versions.
25257 version_type=sunos
25258 need_lib_prefix=no
25259 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025260 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025261 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025262 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025263 hardcode_into_libs=yes
25264 dynamic_linker="$host_os dld.so"
25265 shlibpath_var=LD_LIBRARY_PATH
25266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25268 soname_spec='${libname}${release}${shared_ext}$major'
25269 if test "X$HPUX_IA64_MODE" = X32; then
25270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25271 else
25272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25273 fi
25274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25275 ;;
25276 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025277 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025278 hardcode_into_libs=yes
25279 dynamic_linker="$host_os dld.sl"
25280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25283 soname_spec='${libname}${release}${shared_ext}$major'
25284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25286 ;;
25287 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025289 dynamic_linker="$host_os dld.sl"
25290 shlibpath_var=SHLIB_PATH
25291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25293 soname_spec='${libname}${release}${shared_ext}$major'
25294 ;;
25295 esac
25296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25297 postinstall_cmds='chmod 555 $lib'
25298 ;;
25299
Reid Spencera773bd52006-08-04 18:18:08 +000025300interix3*)
25301 version_type=linux
25302 need_lib_prefix=no
25303 need_version=no
25304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25305 soname_spec='${libname}${release}${shared_ext}$major'
25306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25307 shlibpath_var=LD_LIBRARY_PATH
25308 shlibpath_overrides_runpath=no
25309 hardcode_into_libs=yes
25310 ;;
25311
John Criswell47fdd832003-07-14 16:52:07 +000025312irix5* | irix6* | nonstopux*)
25313 case $host_os in
25314 nonstopux*) version_type=nonstopux ;;
25315 *)
25316 if test "$lt_cv_prog_gnu_ld" = yes; then
25317 version_type=linux
25318 else
25319 version_type=irix
25320 fi ;;
25321 esac
25322 need_lib_prefix=no
25323 need_version=no
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25326 case $host_os in
25327 irix5* | nonstopux*)
25328 libsuff= shlibsuff=
25329 ;;
25330 *)
25331 case $LD in # libtool.m4 will add one of these switches to LD
25332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25333 libsuff= shlibsuff= libmagic=32-bit;;
25334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25335 libsuff=32 shlibsuff=N32 libmagic=N32;;
25336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25338 *) libsuff= shlibsuff= libmagic=never-match;;
25339 esac
25340 ;;
25341 esac
25342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25343 shlibpath_overrides_runpath=no
25344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25346 hardcode_into_libs=yes
25347 ;;
25348
25349# No shared lib support for Linux oldld, aout, or coff.
25350linux*oldld* | linux*aout* | linux*coff*)
25351 dynamic_linker=no
25352 ;;
25353
25354# This must be Linux ELF.
25355linux*)
25356 version_type=linux
25357 need_lib_prefix=no
25358 need_version=no
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25362 shlibpath_var=LD_LIBRARY_PATH
25363 shlibpath_overrides_runpath=no
25364 # This implies no fast_install, which is unacceptable.
25365 # Some rework will be needed to allow for fast_install
25366 # before this can be enabled.
25367 hardcode_into_libs=yes
25368
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369 # Append ld.so.conf contents to the search path
25370 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025371 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 +000025372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25373 fi
25374
John Criswell47fdd832003-07-14 16:52:07 +000025375 # We used to test for /lib/ld.so.1 and disable shared libraries on
25376 # powerpc, because MkLinux only supported shared libraries with the
25377 # GNU dynamic linker. Since this was broken with cross compilers,
25378 # most powerpc-linux boxes support dynamic linking these days and
25379 # people can always --disable-shared, the test was removed, and we
25380 # assume the GNU/Linux dynamic linker is in use.
25381 dynamic_linker='GNU/Linux ld.so'
25382 ;;
25383
Reid Spencer2706f8c2004-09-19 23:53:36 +000025384knetbsd*-gnu)
25385 version_type=linux
25386 need_lib_prefix=no
25387 need_version=no
25388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25389 soname_spec='${libname}${release}${shared_ext}$major'
25390 shlibpath_var=LD_LIBRARY_PATH
25391 shlibpath_overrides_runpath=no
25392 hardcode_into_libs=yes
25393 dynamic_linker='GNU ld.so'
25394 ;;
25395
John Criswell47fdd832003-07-14 16:52:07 +000025396netbsd*)
25397 version_type=sunos
25398 need_lib_prefix=no
25399 need_version=no
25400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25403 dynamic_linker='NetBSD (a.out) ld.so'
25404 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025406 soname_spec='${libname}${release}${shared_ext}$major'
25407 dynamic_linker='NetBSD ld.elf_so'
25408 fi
25409 shlibpath_var=LD_LIBRARY_PATH
25410 shlibpath_overrides_runpath=yes
25411 hardcode_into_libs=yes
25412 ;;
25413
25414newsos6)
25415 version_type=linux
25416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417 shlibpath_var=LD_LIBRARY_PATH
25418 shlibpath_overrides_runpath=yes
25419 ;;
25420
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025422 version_type=linux
25423 need_lib_prefix=no
25424 need_version=no
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25426 soname_spec='${libname}${release}${shared_ext}$major'
25427 shlibpath_var=LD_LIBRARY_PATH
25428 shlibpath_overrides_runpath=yes
25429 ;;
25430
25431openbsd*)
25432 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025433 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025434 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25436 case $host_os in
25437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25438 *) need_version=no ;;
25439 esac
John Criswell47fdd832003-07-14 16:52:07 +000025440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25442 shlibpath_var=LD_LIBRARY_PATH
25443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25444 case $host_os in
25445 openbsd2.[89] | openbsd2.[89].*)
25446 shlibpath_overrides_runpath=no
25447 ;;
25448 *)
25449 shlibpath_overrides_runpath=yes
25450 ;;
25451 esac
25452 else
25453 shlibpath_overrides_runpath=yes
25454 fi
25455 ;;
25456
25457os2*)
25458 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025459 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025460 need_lib_prefix=no
25461 library_names_spec='$libname${shared_ext} $libname.a'
25462 dynamic_linker='OS/2 ld.exe'
25463 shlibpath_var=LIBPATH
25464 ;;
25465
25466osf3* | osf4* | osf5*)
25467 version_type=osf
25468 need_lib_prefix=no
25469 need_version=no
25470 soname_spec='${libname}${release}${shared_ext}$major'
25471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25472 shlibpath_var=LD_LIBRARY_PATH
25473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25475 ;;
25476
John Criswell47fdd832003-07-14 16:52:07 +000025477solaris*)
25478 version_type=linux
25479 need_lib_prefix=no
25480 need_version=no
25481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25482 soname_spec='${libname}${release}${shared_ext}$major'
25483 shlibpath_var=LD_LIBRARY_PATH
25484 shlibpath_overrides_runpath=yes
25485 hardcode_into_libs=yes
25486 # ldd complains unless libraries are executable
25487 postinstall_cmds='chmod +x $lib'
25488 ;;
25489
25490sunos4*)
25491 version_type=sunos
25492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25494 shlibpath_var=LD_LIBRARY_PATH
25495 shlibpath_overrides_runpath=yes
25496 if test "$with_gnu_ld" = yes; then
25497 need_lib_prefix=no
25498 fi
25499 need_version=yes
25500 ;;
25501
Reid Spencera773bd52006-08-04 18:18:08 +000025502sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025503 version_type=linux
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 case $host_vendor in
25508 sni)
25509 shlibpath_overrides_runpath=no
25510 need_lib_prefix=no
25511 export_dynamic_flag_spec='${wl}-Blargedynsym'
25512 runpath_var=LD_RUN_PATH
25513 ;;
25514 siemens)
25515 need_lib_prefix=no
25516 ;;
25517 motorola)
25518 need_lib_prefix=no
25519 need_version=no
25520 shlibpath_overrides_runpath=no
25521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25522 ;;
25523 esac
25524 ;;
25525
25526sysv4*MP*)
25527 if test -d /usr/nec ;then
25528 version_type=linux
25529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25530 soname_spec='$libname${shared_ext}.$major'
25531 shlibpath_var=LD_LIBRARY_PATH
25532 fi
25533 ;;
25534
Reid Spencera773bd52006-08-04 18:18:08 +000025535sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25536 version_type=freebsd-elf
25537 need_lib_prefix=no
25538 need_version=no
25539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25540 soname_spec='${libname}${release}${shared_ext}$major'
25541 shlibpath_var=LD_LIBRARY_PATH
25542 hardcode_into_libs=yes
25543 if test "$with_gnu_ld" = yes; then
25544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25545 shlibpath_overrides_runpath=no
25546 else
25547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25548 shlibpath_overrides_runpath=yes
25549 case $host_os in
25550 sco3.2v5*)
25551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25552 ;;
25553 esac
25554 fi
25555 sys_lib_dlsearch_path_spec='/usr/lib'
25556 ;;
25557
John Criswell47fdd832003-07-14 16:52:07 +000025558uts4*)
25559 version_type=linux
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 ;;
25564
25565*)
25566 dynamic_linker=no
25567 ;;
25568esac
Reid Spencera773bd52006-08-04 18:18:08 +000025569{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25570echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025571test "$dynamic_linker" = no && can_build_shared=no
25572
Reid Spencera773bd52006-08-04 18:18:08 +000025573variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25574if test "$GCC" = yes; then
25575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25576fi
25577
25578{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25579echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025580hardcode_action_GCJ=
25581if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25582 test -n "$runpath_var_GCJ" || \
25583 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25584
25585 # We can hardcode non-existant directories.
25586 if test "$hardcode_direct_GCJ" != no &&
25587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25588 # have to relink, otherwise we might link with an installed library
25589 # when we should be linking with a yet-to-be-installed one
25590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25591 test "$hardcode_minus_L_GCJ" != no; then
25592 # Linking always hardcodes the temporary library directory.
25593 hardcode_action_GCJ=relink
25594 else
25595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25596 hardcode_action_GCJ=immediate
25597 fi
25598else
25599 # We cannot hardcode anything, or else we can only hardcode existing
25600 # directories.
25601 hardcode_action_GCJ=unsupported
25602fi
Reid Spencera773bd52006-08-04 18:18:08 +000025603{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25604echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025605
25606if test "$hardcode_action_GCJ" = relink; then
25607 # Fast installation is not supported
25608 enable_fast_install=no
25609elif test "$shlibpath_overrides_runpath" = yes ||
25610 test "$enable_shared" = no; then
25611 # Fast installation is not necessary
25612 enable_fast_install=needless
25613fi
25614
John Criswell47fdd832003-07-14 16:52:07 +000025615
25616# The else clause should only fire when bootstrapping the
25617# libtool distribution, otherwise you forgot to ship ltmain.sh
25618# with your package, and you will get complaints that there are
25619# no rules to generate ltmain.sh.
25620if test -f "$ltmain"; then
25621 # See if we are running on zsh, and set the options which allow our commands through
25622 # without removal of \ escapes.
25623 if test -n "${ZSH_VERSION+set}" ; then
25624 setopt NO_GLOB_SUBST
25625 fi
25626 # Now quote all the things that may contain metacharacters while being
25627 # careful not to overquote the AC_SUBSTed values. We take copies of the
25628 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025629 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 +000025630 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25633 deplibs_check_method reload_flag reload_cmds need_locks \
25634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25635 lt_cv_sys_global_symbol_to_c_name_address \
25636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25637 old_postinstall_cmds old_postuninstall_cmds \
25638 compiler_GCJ \
25639 CC_GCJ \
25640 LD_GCJ \
25641 lt_prog_compiler_wl_GCJ \
25642 lt_prog_compiler_pic_GCJ \
25643 lt_prog_compiler_static_GCJ \
25644 lt_prog_compiler_no_builtin_flag_GCJ \
25645 export_dynamic_flag_spec_GCJ \
25646 thread_safe_flag_spec_GCJ \
25647 whole_archive_flag_spec_GCJ \
25648 enable_shared_with_static_runtimes_GCJ \
25649 old_archive_cmds_GCJ \
25650 old_archive_from_new_cmds_GCJ \
25651 predep_objects_GCJ \
25652 postdep_objects_GCJ \
25653 predeps_GCJ \
25654 postdeps_GCJ \
25655 compiler_lib_search_path_GCJ \
25656 archive_cmds_GCJ \
25657 archive_expsym_cmds_GCJ \
25658 postinstall_cmds_GCJ \
25659 postuninstall_cmds_GCJ \
25660 old_archive_from_expsyms_cmds_GCJ \
25661 allow_undefined_flag_GCJ \
25662 no_undefined_flag_GCJ \
25663 export_symbols_cmds_GCJ \
25664 hardcode_libdir_flag_spec_GCJ \
25665 hardcode_libdir_flag_spec_ld_GCJ \
25666 hardcode_libdir_separator_GCJ \
25667 hardcode_automatic_GCJ \
25668 module_cmds_GCJ \
25669 module_expsym_cmds_GCJ \
25670 lt_cv_prog_compiler_c_o_GCJ \
25671 exclude_expsyms_GCJ \
25672 include_expsyms_GCJ; do
25673
25674 case $var in
25675 old_archive_cmds_GCJ | \
25676 old_archive_from_new_cmds_GCJ | \
25677 archive_cmds_GCJ | \
25678 archive_expsym_cmds_GCJ | \
25679 module_cmds_GCJ | \
25680 module_expsym_cmds_GCJ | \
25681 old_archive_from_expsyms_cmds_GCJ | \
25682 export_symbols_cmds_GCJ | \
25683 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25684 postinstall_cmds | postuninstall_cmds | \
25685 old_postinstall_cmds | old_postuninstall_cmds | \
25686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25687 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025688 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 +000025689 ;;
25690 *)
25691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25692 ;;
25693 esac
25694 done
25695
25696 case $lt_echo in
25697 *'\$0 --fallback-echo"')
25698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25699 ;;
25700 esac
25701
25702cfgfile="$ofile"
25703
25704 cat <<__EOF__ >> "$cfgfile"
25705# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25706
25707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25708
25709# Shell to use when invoking shell scripts.
25710SHELL=$lt_SHELL
25711
25712# Whether or not to build shared libraries.
25713build_libtool_libs=$enable_shared
25714
25715# Whether or not to build static libraries.
25716build_old_libs=$enable_static
25717
25718# Whether or not to add -lc for building shared libraries.
25719build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25720
25721# Whether or not to disallow shared libs when runtime libs are static
25722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25723
25724# Whether or not to optimize for fast installation.
25725fast_install=$enable_fast_install
25726
25727# The host system.
25728host_alias=$host_alias
25729host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025730host_os=$host_os
25731
25732# The build system.
25733build_alias=$build_alias
25734build=$build
25735build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025736
25737# An echo program that does not interpret backslashes.
25738echo=$lt_echo
25739
25740# The archiver.
25741AR=$lt_AR
25742AR_FLAGS=$lt_AR_FLAGS
25743
25744# A C compiler.
25745LTCC=$lt_LTCC
25746
Reid Spencera773bd52006-08-04 18:18:08 +000025747# LTCC compiler flags.
25748LTCFLAGS=$lt_LTCFLAGS
25749
John Criswell47fdd832003-07-14 16:52:07 +000025750# A language-specific compiler.
25751CC=$lt_compiler_GCJ
25752
25753# Is the compiler the GNU C compiler?
25754with_gcc=$GCC_GCJ
25755
25756# An ERE matcher.
25757EGREP=$lt_EGREP
25758
25759# The linker used to build libraries.
25760LD=$lt_LD_GCJ
25761
25762# Whether we need hard or soft links.
25763LN_S=$lt_LN_S
25764
25765# A BSD-compatible nm program.
25766NM=$lt_NM
25767
25768# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025769STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025770
25771# Used to examine libraries when file_magic_cmd begins "file"
25772MAGIC_CMD=$MAGIC_CMD
25773
25774# Used on cygwin: DLL creation program.
25775DLLTOOL="$DLLTOOL"
25776
25777# Used on cygwin: object dumper.
25778OBJDUMP="$OBJDUMP"
25779
25780# Used on cygwin: assembler.
25781AS="$AS"
25782
25783# The name of the directory that contains temporary libtool files.
25784objdir=$objdir
25785
25786# How to create reloadable object files.
25787reload_flag=$lt_reload_flag
25788reload_cmds=$lt_reload_cmds
25789
25790# How to pass a linker flag through the compiler.
25791wl=$lt_lt_prog_compiler_wl_GCJ
25792
25793# Object file suffix (normally "o").
25794objext="$ac_objext"
25795
25796# Old archive suffix (normally "a").
25797libext="$libext"
25798
25799# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025800shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025801
25802# Executable file suffix (normally "").
25803exeext="$exeext"
25804
25805# Additional compiler flags for building library objects.
25806pic_flag=$lt_lt_prog_compiler_pic_GCJ
25807pic_mode=$pic_mode
25808
25809# What is the maximum length of a command?
25810max_cmd_len=$lt_cv_sys_max_cmd_len
25811
25812# Does compiler simultaneously support -c and -o options?
25813compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25814
Reid Spencera773bd52006-08-04 18:18:08 +000025815# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025816need_locks=$lt_need_locks
25817
25818# Do we need the lib prefix for modules?
25819need_lib_prefix=$need_lib_prefix
25820
25821# Do we need a version for libraries?
25822need_version=$need_version
25823
25824# Whether dlopen is supported.
25825dlopen_support=$enable_dlopen
25826
25827# Whether dlopen of programs is supported.
25828dlopen_self=$enable_dlopen_self
25829
25830# Whether dlopen of statically linked programs is supported.
25831dlopen_self_static=$enable_dlopen_self_static
25832
25833# Compiler flag to prevent dynamic linking.
25834link_static_flag=$lt_lt_prog_compiler_static_GCJ
25835
25836# Compiler flag to turn off builtin functions.
25837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25838
25839# Compiler flag to allow reflexive dlopens.
25840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25841
25842# Compiler flag to generate shared objects directly from archives.
25843whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25844
25845# Compiler flag to generate thread-safe objects.
25846thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25847
25848# Library versioning type.
25849version_type=$version_type
25850
25851# Format of library name prefix.
25852libname_spec=$lt_libname_spec
25853
25854# List of archive names. First name is the real one, the rest are links.
25855# The last name is the one that the linker finds with -lNAME.
25856library_names_spec=$lt_library_names_spec
25857
25858# The coded name of the library, if different from the real name.
25859soname_spec=$lt_soname_spec
25860
25861# Commands used to build and install an old-style archive.
25862RANLIB=$lt_RANLIB
25863old_archive_cmds=$lt_old_archive_cmds_GCJ
25864old_postinstall_cmds=$lt_old_postinstall_cmds
25865old_postuninstall_cmds=$lt_old_postuninstall_cmds
25866
25867# Create an old-style archive from a shared archive.
25868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25869
25870# Create a temporary old-style archive to link instead of a shared archive.
25871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25872
25873# Commands used to build and install a shared archive.
25874archive_cmds=$lt_archive_cmds_GCJ
25875archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25876postinstall_cmds=$lt_postinstall_cmds
25877postuninstall_cmds=$lt_postuninstall_cmds
25878
25879# Commands used to build a loadable module (assumed same as above if empty)
25880module_cmds=$lt_module_cmds_GCJ
25881module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25882
25883# Commands to strip libraries.
25884old_striplib=$lt_old_striplib
25885striplib=$lt_striplib
25886
25887# Dependencies to place before the objects being linked to create a
25888# shared library.
25889predep_objects=$lt_predep_objects_GCJ
25890
25891# Dependencies to place after the objects being linked to create a
25892# shared library.
25893postdep_objects=$lt_postdep_objects_GCJ
25894
25895# Dependencies to place before the objects being linked to create a
25896# shared library.
25897predeps=$lt_predeps_GCJ
25898
25899# Dependencies to place after the objects being linked to create a
25900# shared library.
25901postdeps=$lt_postdeps_GCJ
25902
25903# The library search path used internally by the compiler when linking
25904# a shared library.
25905compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25906
25907# Method to check whether dependent libraries are shared objects.
25908deplibs_check_method=$lt_deplibs_check_method
25909
25910# Command to use when deplibs_check_method == file_magic.
25911file_magic_cmd=$lt_file_magic_cmd
25912
25913# Flag that allows shared libraries with undefined symbols to be built.
25914allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25915
25916# Flag that forces no undefined symbols.
25917no_undefined_flag=$lt_no_undefined_flag_GCJ
25918
25919# Commands used to finish a libtool library installation in a directory.
25920finish_cmds=$lt_finish_cmds
25921
25922# Same as above, but a single script fragment to be evaled but not shown.
25923finish_eval=$lt_finish_eval
25924
25925# Take the output of nm and produce a listing of raw symbols and C names.
25926global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25927
25928# Transform the output of nm in a proper C declaration
25929global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25930
25931# Transform the output of nm in a C name address pair
25932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25933
25934# This is the shared library runtime path variable.
25935runpath_var=$runpath_var
25936
25937# This is the shared library path variable.
25938shlibpath_var=$shlibpath_var
25939
25940# Is shlibpath searched before the hard-coded library search path?
25941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25942
25943# How to hardcode a shared library path into an executable.
25944hardcode_action=$hardcode_action_GCJ
25945
25946# Whether we should hardcode library paths into libraries.
25947hardcode_into_libs=$hardcode_into_libs
25948
25949# Flag to hardcode \$libdir into a binary during linking.
25950# This must work even if \$libdir does not exist.
25951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25952
25953# If ld is used when linking, flag to hardcode \$libdir into
25954# a binary during linking. This must work even if \$libdir does
25955# not exist.
25956hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25957
25958# Whether we need a single -rpath flag with a separated argument.
25959hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25960
25961# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25962# resulting binary.
25963hardcode_direct=$hardcode_direct_GCJ
25964
25965# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25966# resulting binary.
25967hardcode_minus_L=$hardcode_minus_L_GCJ
25968
25969# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25970# the resulting binary.
25971hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25972
25973# Set to yes if building a shared library automatically hardcodes DIR into the library
25974# and all subsequent libraries and executables linked against it.
25975hardcode_automatic=$hardcode_automatic_GCJ
25976
25977# Variables whose values should be saved in libtool wrapper scripts and
25978# restored at relink time.
25979variables_saved_for_relink="$variables_saved_for_relink"
25980
25981# Whether libtool must link a program against all its dependency libraries.
25982link_all_deplibs=$link_all_deplibs_GCJ
25983
25984# Compile-time system search path for libraries
25985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25986
25987# Run-time system search path for libraries
25988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25989
25990# Fix the shell variable \$srcfile for the compiler.
25991fix_srcfile_path="$fix_srcfile_path_GCJ"
25992
25993# Set to yes if exported symbols are required.
25994always_export_symbols=$always_export_symbols_GCJ
25995
25996# The commands to list exported symbols.
25997export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25998
25999# The commands to extract the exported symbol list from a shared archive.
26000extract_expsyms_cmds=$lt_extract_expsyms_cmds
26001
26002# Symbols that should not be listed in the preloaded symbols.
26003exclude_expsyms=$lt_exclude_expsyms_GCJ
26004
26005# Symbols that must always be exported.
26006include_expsyms=$lt_include_expsyms_GCJ
26007
26008# ### END LIBTOOL TAG CONFIG: $tagname
26009
26010__EOF__
26011
26012
26013else
26014 # If there is no Makefile yet, we rely on a make rule to execute
26015 # `config.status --recheck' to rerun these tests and create the
26016 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26018 if test -f "$ltmain_in"; then
26019 test -f Makefile && make "$ltmain"
26020 fi
John Criswell47fdd832003-07-14 16:52:07 +000026021fi
26022
26023
26024ac_ext=c
26025ac_cpp='$CPP $CPPFLAGS'
26026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26028ac_compiler_gnu=$ac_cv_c_compiler_gnu
26029
26030CC="$lt_save_CC"
26031
26032 else
26033 tagname=""
26034 fi
26035 ;;
26036
26037 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026038 ac_ext=c
26039ac_cpp='$CPP $CPPFLAGS'
26040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26042ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026043
26044
26045# Source file extension for RC test sources.
26046ac_ext=rc
26047
26048# Object file extension for compiled RC test sources.
26049objext=o
26050objext_RC=$objext
26051
26052# Code to be used in simple compile tests
26053lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26054
26055# Code to be used in simple link tests
26056lt_simple_link_test_code="$lt_simple_compile_test_code"
26057
26058# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26059
26060# If no C compiler was specified, use CC.
26061LTCC=${LTCC-"$CC"}
26062
Reid Spencera773bd52006-08-04 18:18:08 +000026063# If no C compiler flags were specified, use CFLAGS.
26064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26065
John Criswell47fdd832003-07-14 16:52:07 +000026066# Allow CC to be a program name with arguments.
26067compiler=$CC
26068
26069
Reid Spencera773bd52006-08-04 18:18:08 +000026070# save warnings/boilerplate of simple test code
26071ac_outfile=conftest.$ac_objext
26072printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26074_lt_compiler_boilerplate=`cat conftest.err`
26075$rm conftest*
26076
26077ac_outfile=conftest.$ac_objext
26078printf "$lt_simple_link_test_code" >conftest.$ac_ext
26079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26080_lt_linker_boilerplate=`cat conftest.err`
26081$rm conftest*
26082
26083
John Criswell47fdd832003-07-14 16:52:07 +000026084# Allow CC to be a program name with arguments.
26085lt_save_CC="$CC"
26086CC=${RC-"windres"}
26087compiler=$CC
26088compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026089for cc_temp in $compiler""; do
26090 case $cc_temp in
26091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26093 \-*) ;;
26094 *) break;;
26095 esac
26096done
26097cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26098
John Criswell47fdd832003-07-14 16:52:07 +000026099lt_cv_prog_compiler_c_o_RC=yes
26100
26101# The else clause should only fire when bootstrapping the
26102# libtool distribution, otherwise you forgot to ship ltmain.sh
26103# with your package, and you will get complaints that there are
26104# no rules to generate ltmain.sh.
26105if test -f "$ltmain"; then
26106 # See if we are running on zsh, and set the options which allow our commands through
26107 # without removal of \ escapes.
26108 if test -n "${ZSH_VERSION+set}" ; then
26109 setopt NO_GLOB_SUBST
26110 fi
26111 # Now quote all the things that may contain metacharacters while being
26112 # careful not to overquote the AC_SUBSTed values. We take copies of the
26113 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026114 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 +000026115 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26118 deplibs_check_method reload_flag reload_cmds need_locks \
26119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26120 lt_cv_sys_global_symbol_to_c_name_address \
26121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26122 old_postinstall_cmds old_postuninstall_cmds \
26123 compiler_RC \
26124 CC_RC \
26125 LD_RC \
26126 lt_prog_compiler_wl_RC \
26127 lt_prog_compiler_pic_RC \
26128 lt_prog_compiler_static_RC \
26129 lt_prog_compiler_no_builtin_flag_RC \
26130 export_dynamic_flag_spec_RC \
26131 thread_safe_flag_spec_RC \
26132 whole_archive_flag_spec_RC \
26133 enable_shared_with_static_runtimes_RC \
26134 old_archive_cmds_RC \
26135 old_archive_from_new_cmds_RC \
26136 predep_objects_RC \
26137 postdep_objects_RC \
26138 predeps_RC \
26139 postdeps_RC \
26140 compiler_lib_search_path_RC \
26141 archive_cmds_RC \
26142 archive_expsym_cmds_RC \
26143 postinstall_cmds_RC \
26144 postuninstall_cmds_RC \
26145 old_archive_from_expsyms_cmds_RC \
26146 allow_undefined_flag_RC \
26147 no_undefined_flag_RC \
26148 export_symbols_cmds_RC \
26149 hardcode_libdir_flag_spec_RC \
26150 hardcode_libdir_flag_spec_ld_RC \
26151 hardcode_libdir_separator_RC \
26152 hardcode_automatic_RC \
26153 module_cmds_RC \
26154 module_expsym_cmds_RC \
26155 lt_cv_prog_compiler_c_o_RC \
26156 exclude_expsyms_RC \
26157 include_expsyms_RC; do
26158
26159 case $var in
26160 old_archive_cmds_RC | \
26161 old_archive_from_new_cmds_RC | \
26162 archive_cmds_RC | \
26163 archive_expsym_cmds_RC | \
26164 module_cmds_RC | \
26165 module_expsym_cmds_RC | \
26166 old_archive_from_expsyms_cmds_RC | \
26167 export_symbols_cmds_RC | \
26168 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26169 postinstall_cmds | postuninstall_cmds | \
26170 old_postinstall_cmds | old_postuninstall_cmds | \
26171 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26172 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026173 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 +000026174 ;;
26175 *)
26176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26177 ;;
26178 esac
26179 done
26180
26181 case $lt_echo in
26182 *'\$0 --fallback-echo"')
26183 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26184 ;;
26185 esac
26186
26187cfgfile="$ofile"
26188
26189 cat <<__EOF__ >> "$cfgfile"
26190# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26191
26192# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26193
26194# Shell to use when invoking shell scripts.
26195SHELL=$lt_SHELL
26196
26197# Whether or not to build shared libraries.
26198build_libtool_libs=$enable_shared
26199
26200# Whether or not to build static libraries.
26201build_old_libs=$enable_static
26202
26203# Whether or not to add -lc for building shared libraries.
26204build_libtool_need_lc=$archive_cmds_need_lc_RC
26205
26206# Whether or not to disallow shared libs when runtime libs are static
26207allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26208
26209# Whether or not to optimize for fast installation.
26210fast_install=$enable_fast_install
26211
26212# The host system.
26213host_alias=$host_alias
26214host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026215host_os=$host_os
26216
26217# The build system.
26218build_alias=$build_alias
26219build=$build
26220build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026221
26222# An echo program that does not interpret backslashes.
26223echo=$lt_echo
26224
26225# The archiver.
26226AR=$lt_AR
26227AR_FLAGS=$lt_AR_FLAGS
26228
26229# A C compiler.
26230LTCC=$lt_LTCC
26231
Reid Spencera773bd52006-08-04 18:18:08 +000026232# LTCC compiler flags.
26233LTCFLAGS=$lt_LTCFLAGS
26234
John Criswell47fdd832003-07-14 16:52:07 +000026235# A language-specific compiler.
26236CC=$lt_compiler_RC
26237
26238# Is the compiler the GNU C compiler?
26239with_gcc=$GCC_RC
26240
26241# An ERE matcher.
26242EGREP=$lt_EGREP
26243
26244# The linker used to build libraries.
26245LD=$lt_LD_RC
26246
26247# Whether we need hard or soft links.
26248LN_S=$lt_LN_S
26249
26250# A BSD-compatible nm program.
26251NM=$lt_NM
26252
26253# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026254STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026255
26256# Used to examine libraries when file_magic_cmd begins "file"
26257MAGIC_CMD=$MAGIC_CMD
26258
26259# Used on cygwin: DLL creation program.
26260DLLTOOL="$DLLTOOL"
26261
26262# Used on cygwin: object dumper.
26263OBJDUMP="$OBJDUMP"
26264
26265# Used on cygwin: assembler.
26266AS="$AS"
26267
26268# The name of the directory that contains temporary libtool files.
26269objdir=$objdir
26270
26271# How to create reloadable object files.
26272reload_flag=$lt_reload_flag
26273reload_cmds=$lt_reload_cmds
26274
26275# How to pass a linker flag through the compiler.
26276wl=$lt_lt_prog_compiler_wl_RC
26277
26278# Object file suffix (normally "o").
26279objext="$ac_objext"
26280
26281# Old archive suffix (normally "a").
26282libext="$libext"
26283
26284# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026285shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026286
26287# Executable file suffix (normally "").
26288exeext="$exeext"
26289
26290# Additional compiler flags for building library objects.
26291pic_flag=$lt_lt_prog_compiler_pic_RC
26292pic_mode=$pic_mode
26293
26294# What is the maximum length of a command?
26295max_cmd_len=$lt_cv_sys_max_cmd_len
26296
26297# Does compiler simultaneously support -c and -o options?
26298compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26299
Reid Spencera773bd52006-08-04 18:18:08 +000026300# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026301need_locks=$lt_need_locks
26302
26303# Do we need the lib prefix for modules?
26304need_lib_prefix=$need_lib_prefix
26305
26306# Do we need a version for libraries?
26307need_version=$need_version
26308
26309# Whether dlopen is supported.
26310dlopen_support=$enable_dlopen
26311
26312# Whether dlopen of programs is supported.
26313dlopen_self=$enable_dlopen_self
26314
26315# Whether dlopen of statically linked programs is supported.
26316dlopen_self_static=$enable_dlopen_self_static
26317
26318# Compiler flag to prevent dynamic linking.
26319link_static_flag=$lt_lt_prog_compiler_static_RC
26320
26321# Compiler flag to turn off builtin functions.
26322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26323
26324# Compiler flag to allow reflexive dlopens.
26325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26326
26327# Compiler flag to generate shared objects directly from archives.
26328whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26329
26330# Compiler flag to generate thread-safe objects.
26331thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26332
26333# Library versioning type.
26334version_type=$version_type
26335
26336# Format of library name prefix.
26337libname_spec=$lt_libname_spec
26338
26339# List of archive names. First name is the real one, the rest are links.
26340# The last name is the one that the linker finds with -lNAME.
26341library_names_spec=$lt_library_names_spec
26342
26343# The coded name of the library, if different from the real name.
26344soname_spec=$lt_soname_spec
26345
26346# Commands used to build and install an old-style archive.
26347RANLIB=$lt_RANLIB
26348old_archive_cmds=$lt_old_archive_cmds_RC
26349old_postinstall_cmds=$lt_old_postinstall_cmds
26350old_postuninstall_cmds=$lt_old_postuninstall_cmds
26351
26352# Create an old-style archive from a shared archive.
26353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26354
26355# Create a temporary old-style archive to link instead of a shared archive.
26356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26357
26358# Commands used to build and install a shared archive.
26359archive_cmds=$lt_archive_cmds_RC
26360archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26361postinstall_cmds=$lt_postinstall_cmds
26362postuninstall_cmds=$lt_postuninstall_cmds
26363
26364# Commands used to build a loadable module (assumed same as above if empty)
26365module_cmds=$lt_module_cmds_RC
26366module_expsym_cmds=$lt_module_expsym_cmds_RC
26367
26368# Commands to strip libraries.
26369old_striplib=$lt_old_striplib
26370striplib=$lt_striplib
26371
26372# Dependencies to place before the objects being linked to create a
26373# shared library.
26374predep_objects=$lt_predep_objects_RC
26375
26376# Dependencies to place after the objects being linked to create a
26377# shared library.
26378postdep_objects=$lt_postdep_objects_RC
26379
26380# Dependencies to place before the objects being linked to create a
26381# shared library.
26382predeps=$lt_predeps_RC
26383
26384# Dependencies to place after the objects being linked to create a
26385# shared library.
26386postdeps=$lt_postdeps_RC
26387
26388# The library search path used internally by the compiler when linking
26389# a shared library.
26390compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26391
26392# Method to check whether dependent libraries are shared objects.
26393deplibs_check_method=$lt_deplibs_check_method
26394
26395# Command to use when deplibs_check_method == file_magic.
26396file_magic_cmd=$lt_file_magic_cmd
26397
26398# Flag that allows shared libraries with undefined symbols to be built.
26399allow_undefined_flag=$lt_allow_undefined_flag_RC
26400
26401# Flag that forces no undefined symbols.
26402no_undefined_flag=$lt_no_undefined_flag_RC
26403
26404# Commands used to finish a libtool library installation in a directory.
26405finish_cmds=$lt_finish_cmds
26406
26407# Same as above, but a single script fragment to be evaled but not shown.
26408finish_eval=$lt_finish_eval
26409
26410# Take the output of nm and produce a listing of raw symbols and C names.
26411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26412
26413# Transform the output of nm in a proper C declaration
26414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26415
26416# Transform the output of nm in a C name address pair
26417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26418
26419# This is the shared library runtime path variable.
26420runpath_var=$runpath_var
26421
26422# This is the shared library path variable.
26423shlibpath_var=$shlibpath_var
26424
26425# Is shlibpath searched before the hard-coded library search path?
26426shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26427
26428# How to hardcode a shared library path into an executable.
26429hardcode_action=$hardcode_action_RC
26430
26431# Whether we should hardcode library paths into libraries.
26432hardcode_into_libs=$hardcode_into_libs
26433
26434# Flag to hardcode \$libdir into a binary during linking.
26435# This must work even if \$libdir does not exist.
26436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26437
26438# If ld is used when linking, flag to hardcode \$libdir into
26439# a binary during linking. This must work even if \$libdir does
26440# not exist.
26441hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26442
26443# Whether we need a single -rpath flag with a separated argument.
26444hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26445
26446# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26447# resulting binary.
26448hardcode_direct=$hardcode_direct_RC
26449
26450# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26451# resulting binary.
26452hardcode_minus_L=$hardcode_minus_L_RC
26453
26454# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26455# the resulting binary.
26456hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26457
26458# Set to yes if building a shared library automatically hardcodes DIR into the library
26459# and all subsequent libraries and executables linked against it.
26460hardcode_automatic=$hardcode_automatic_RC
26461
26462# Variables whose values should be saved in libtool wrapper scripts and
26463# restored at relink time.
26464variables_saved_for_relink="$variables_saved_for_relink"
26465
26466# Whether libtool must link a program against all its dependency libraries.
26467link_all_deplibs=$link_all_deplibs_RC
26468
26469# Compile-time system search path for libraries
26470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26471
26472# Run-time system search path for libraries
26473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26474
26475# Fix the shell variable \$srcfile for the compiler.
26476fix_srcfile_path="$fix_srcfile_path_RC"
26477
26478# Set to yes if exported symbols are required.
26479always_export_symbols=$always_export_symbols_RC
26480
26481# The commands to list exported symbols.
26482export_symbols_cmds=$lt_export_symbols_cmds_RC
26483
26484# The commands to extract the exported symbol list from a shared archive.
26485extract_expsyms_cmds=$lt_extract_expsyms_cmds
26486
26487# Symbols that should not be listed in the preloaded symbols.
26488exclude_expsyms=$lt_exclude_expsyms_RC
26489
26490# Symbols that must always be exported.
26491include_expsyms=$lt_include_expsyms_RC
26492
26493# ### END LIBTOOL TAG CONFIG: $tagname
26494
26495__EOF__
26496
26497
26498else
26499 # If there is no Makefile yet, we rely on a make rule to execute
26500 # `config.status --recheck' to rerun these tests and create the
26501 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26503 if test -f "$ltmain_in"; then
26504 test -f Makefile && make "$ltmain"
26505 fi
John Criswell47fdd832003-07-14 16:52:07 +000026506fi
26507
26508
26509ac_ext=c
26510ac_cpp='$CPP $CPPFLAGS'
26511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26513ac_compiler_gnu=$ac_cv_c_compiler_gnu
26514
26515CC="$lt_save_CC"
26516
26517 ;;
26518
26519 *)
26520 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26521echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26522 { (exit 1); exit 1; }; }
26523 ;;
26524 esac
26525
26526 # Append the new tag name to the list of available tags.
26527 if test -n "$tagname" ; then
26528 available_tags="$available_tags $tagname"
26529 fi
26530 fi
26531 done
26532 IFS="$lt_save_ifs"
26533
26534 # Now substitute the updated list of available tags.
26535 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26536 mv "${ofile}T" "$ofile"
26537 chmod +x "$ofile"
26538 else
26539 rm -f "${ofile}T"
26540 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26541echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26542 { (exit 1); exit 1; }; }
26543 fi
26544fi
John Criswell7a73b802003-06-30 21:59:07 +000026545
26546
26547
26548# This can be used to rebuild libtool when needed
26549LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26550
26551# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026552LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026553
26554# Prevent multiple expansion
26555
26556
26557
John Criswell47fdd832003-07-14 16:52:07 +000026558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026575
Reid Spencer582a23c2004-12-29 07:07:57 +000026576if test "$lt_cv_dlopen_self" = "yes" ; then
26577
26578cat >>confdefs.h <<\_ACEOF
26579#define CAN_DLOPEN_SELF 1
26580_ACEOF
26581
26582fi
26583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026584etags_version=`$ETAGS --version 2>&1`
26585case "$etags_version" in
26586 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26587 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26588 *) ETAGSFLAGS="" ;;
26589esac
26590ETAGSFLAGS=$ETAGSFLAGS
26591
26592
Reid Spencer7931a782004-12-27 06:15:02 +000026593if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026594 LLVMGCC="llvm-gcc${EXEEXT}"
26595 LLVMGXX="llvm-g++${EXEEXT}"
26596 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26597set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026600if test "${ac_cv_path_LLVMGCC+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26602else
26603 case $LLVMGCC in
26604 [\\/]* | ?:[\\/]*)
26605 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26606 ;;
26607 *)
26608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26609for as_dir in $PATH
26610do
26611 IFS=$as_save_IFS
26612 test -z "$as_dir" && as_dir=.
26613 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026614 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 +000026615 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26617 break 2
26618 fi
26619done
26620done
Reid Spencera773bd52006-08-04 18:18:08 +000026621IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026622
Reid Spencer59473af2004-12-25 07:31:29 +000026623 ;;
26624esac
26625fi
26626LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026627if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026628 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26629echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026630else
Reid Spencera773bd52006-08-04 18:18:08 +000026631 { echo "$as_me:$LINENO: result: no" >&5
26632echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026633fi
26634
Reid Spencera773bd52006-08-04 18:18:08 +000026635
Reid Spencerc84492c2005-06-02 22:34:49 +000026636 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26637set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026640if test "${ac_cv_path_LLVMGXX+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26642else
26643 case $LLVMGXX in
26644 [\\/]* | ?:[\\/]*)
26645 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26646 ;;
26647 *)
26648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649for as_dir in $PATH
26650do
26651 IFS=$as_save_IFS
26652 test -z "$as_dir" && as_dir=.
26653 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026654 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 +000026655 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26657 break 2
26658 fi
26659done
26660done
Reid Spencera773bd52006-08-04 18:18:08 +000026661IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026662
Reid Spencer59473af2004-12-25 07:31:29 +000026663 ;;
26664esac
26665fi
26666LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026667if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026668 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26669echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026670else
Reid Spencera773bd52006-08-04 18:18:08 +000026671 { echo "$as_me:$LINENO: result: no" >&5
26672echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026673fi
26674
Reid Spencera773bd52006-08-04 18:18:08 +000026675
Reid Spencer59473af2004-12-25 07:31:29 +000026676else
Reid Spencerc84492c2005-06-02 22:34:49 +000026677 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26678 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026679 LLVMGCC=$LLVMGCC
26680
26681 LLVMGXX=$LLVMGXX
26682
26683fi
26684
Reid Spencera773bd52006-08-04 18:18:08 +000026685{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26686echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026687
Reid Spencer86901802004-12-08 23:07:27 +000026688ICC=no
26689IXX=no
26690case $CC in
26691 icc*|icpc*)
26692 ICC=yes
26693 IXX=yes
26694 ;;
26695 *)
26696 ;;
26697esac
26698
Duraid Madina937c60a2006-02-15 07:57:42 +000026699if test "$GCC" != "yes" && test "$ICC" != "yes"
26700then
26701 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26702echo "$as_me: error: gcc|icc required but not found" >&2;}
26703 { (exit 1); exit 1; }; }
26704fi
26705
26706if test "$GXX" != "yes" && test "$IXX" != "yes"
26707then
26708 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26709echo "$as_me: error: g++|icc required but not found" >&2;}
26710 { (exit 1); exit 1; }; }
26711fi
26712
Reid Spencer86901802004-12-08 23:07:27 +000026713if test "$GCC" = "yes"
26714then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026715 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026716 if test "$gccmajor" -lt "3"
26717 then
26718 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026719echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26720 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026721 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026722fi
26723
26724if test -z "$llvm_cv_gnu_make_command"
26725then
26726 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26727echo "$as_me: error: GNU Make required but not found" >&2;}
26728 { (exit 1); exit 1; }; }
26729fi
26730
Reid Spencera773bd52006-08-04 18:18:08 +000026731{ echo "$as_me:$LINENO: result: ok" >&5
26732echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026733
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026734
John Criswell7a73b802003-06-30 21:59:07 +000026735
Reid Spencera773bd52006-08-04 18:18:08 +000026736{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26737echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026738if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26740else
26741 ac_check_lib_save_LIBS=$LIBS
26742LIBS="-lelf $LIBS"
26743cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026744/* confdefs.h. */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026749
Reid Spencera773bd52006-08-04 18:18:08 +000026750/* Override any GCC internal prototype to avoid an error.
26751 Use char because int might match the return type of a GCC
26752 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026753#ifdef __cplusplus
26754extern "C"
26755#endif
John Criswell7a73b802003-06-30 21:59:07 +000026756char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026757int
26758main ()
26759{
Reid Spencera773bd52006-08-04 18:18:08 +000026760return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026761 ;
26762 return 0;
26763}
26764_ACEOF
26765rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026766if { (ac_try="$ac_link"
26767case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26770esac
26771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026774 grep -v '^ *+' conftest.er1 >conftest.err
26775 rm -f conftest.er1
26776 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26780 { (case "(($ac_try" in
26781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782 *) ac_try_echo=$ac_try;;
26783esac
26784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026790 { (case "(($ac_try" in
26791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792 *) ac_try_echo=$ac_try;;
26793esac
26794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_cv_lib_elf_elf_begin=yes
26800else
26801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026802sed 's/^/| /' conftest.$ac_ext >&5
26803
Reid Spencera773bd52006-08-04 18:18:08 +000026804 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026805fi
Reid Spencera773bd52006-08-04 18:18:08 +000026806
26807rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026808 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026809LIBS=$ac_check_lib_save_LIBS
26810fi
Reid Spencera773bd52006-08-04 18:18:08 +000026811{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26812echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026813if test $ac_cv_lib_elf_elf_begin = yes; then
26814 cat >>confdefs.h <<_ACEOF
26815#define HAVE_LIBELF 1
26816_ACEOF
26817
26818 LIBS="-lelf $LIBS"
26819
26820fi
26821
26822
Reid Spencera773bd52006-08-04 18:18:08 +000026823{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26824echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026825if test "${ac_cv_lib_m_sin+set}" = set; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26827else
26828 ac_check_lib_save_LIBS=$LIBS
26829LIBS="-lm $LIBS"
26830cat >conftest.$ac_ext <<_ACEOF
26831/* confdefs.h. */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h. */
26836
Reid Spencera773bd52006-08-04 18:18:08 +000026837/* Override any GCC internal prototype to avoid an error.
26838 Use char because int might match the return type of a GCC
26839 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026840#ifdef __cplusplus
26841extern "C"
26842#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026843char sin ();
26844int
26845main ()
26846{
Reid Spencera773bd52006-08-04 18:18:08 +000026847return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026848 ;
26849 return 0;
26850}
26851_ACEOF
26852rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026853if { (ac_try="$ac_link"
26854case "(($ac_try" in
26855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856 *) ac_try_echo=$ac_try;;
26857esac
26858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026860 ac_status=$?
26861 grep -v '^ *+' conftest.er1 >conftest.err
26862 rm -f conftest.er1
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26867 { (case "(($ac_try" in
26868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26869 *) ac_try_echo=$ac_try;;
26870esac
26871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26872 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); }; } &&
26876 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026877 { (case "(($ac_try" in
26878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879 *) ac_try_echo=$ac_try;;
26880esac
26881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026883 ac_status=$?
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886 ac_cv_lib_m_sin=yes
26887else
26888 echo "$as_me: failed program was:" >&5
26889sed 's/^/| /' conftest.$ac_ext >&5
26890
Reid Spencera773bd52006-08-04 18:18:08 +000026891 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026892fi
Reid Spencera773bd52006-08-04 18:18:08 +000026893
26894rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026895 conftest$ac_exeext conftest.$ac_ext
26896LIBS=$ac_check_lib_save_LIBS
26897fi
Reid Spencera773bd52006-08-04 18:18:08 +000026898{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26899echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026900if test $ac_cv_lib_m_sin = yes; then
26901 cat >>confdefs.h <<_ACEOF
26902#define HAVE_LIBM 1
26903_ACEOF
26904
26905 LIBS="-lm $LIBS"
26906
26907fi
26908
Jeff Cohen28783c32007-01-12 18:22:38 +000026909if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026910
Reid Spencera773bd52006-08-04 18:18:08 +000026911{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26912echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026913if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-limagehlp $LIBS"
26918cat >conftest.$ac_ext <<_ACEOF
26919/* confdefs.h. */
26920_ACEOF
26921cat confdefs.h >>conftest.$ac_ext
26922cat >>conftest.$ac_ext <<_ACEOF
26923/* end confdefs.h. */
26924
Reid Spencer48fdf912006-06-01 19:03:21 +000026925
Reid Spencer484fc8e2006-06-01 16:55:59 +000026926int
26927main ()
26928{
Reid Spencera773bd52006-08-04 18:18:08 +000026929return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026930 ;
26931 return 0;
26932}
26933_ACEOF
26934rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026935if { (ac_try="$ac_link"
26936case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26939esac
26940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026942 ac_status=$?
26943 grep -v '^ *+' conftest.er1 >conftest.err
26944 rm -f conftest.er1
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26949 { (case "(($ac_try" in
26950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26952esac
26953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026955 ac_status=$?
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; } &&
26958 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026959 { (case "(($ac_try" in
26960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26961 *) ac_try_echo=$ac_try;;
26962esac
26963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26964 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026965 ac_status=$?
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026968 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026969else
26970 echo "$as_me: failed program was:" >&5
26971sed 's/^/| /' conftest.$ac_ext >&5
26972
Reid Spencera773bd52006-08-04 18:18:08 +000026973 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026974fi
Reid Spencera773bd52006-08-04 18:18:08 +000026975
26976rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026977 conftest$ac_exeext conftest.$ac_ext
26978LIBS=$ac_check_lib_save_LIBS
26979fi
Reid Spencera773bd52006-08-04 18:18:08 +000026980{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26981echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026982if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026983 cat >>confdefs.h <<_ACEOF
26984#define HAVE_LIBIMAGEHLP 1
26985_ACEOF
26986
26987 LIBS="-limagehlp $LIBS"
26988
26989fi
26990
26991
Reid Spencera773bd52006-08-04 18:18:08 +000026992{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26993echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026994if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026995 echo $ECHO_N "(cached) $ECHO_C" >&6
26996else
26997 ac_check_lib_save_LIBS=$LIBS
26998LIBS="-lpsapi $LIBS"
26999cat >conftest.$ac_ext <<_ACEOF
27000/* confdefs.h. */
27001_ACEOF
27002cat confdefs.h >>conftest.$ac_ext
27003cat >>conftest.$ac_ext <<_ACEOF
27004/* end confdefs.h. */
27005
Reid Spencer48fdf912006-06-01 19:03:21 +000027006
Reid Spencer484fc8e2006-06-01 16:55:59 +000027007int
27008main ()
27009{
Reid Spencera773bd52006-08-04 18:18:08 +000027010return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027011 ;
27012 return 0;
27013}
27014_ACEOF
27015rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027016if { (ac_try="$ac_link"
27017case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27020esac
27021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027023 ac_status=$?
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27030 { (case "(($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_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } &&
27039 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27043esac
27044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027049 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027050else
27051 echo "$as_me: failed program was:" >&5
27052sed 's/^/| /' conftest.$ac_ext >&5
27053
Reid Spencera773bd52006-08-04 18:18:08 +000027054 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027055fi
Reid Spencera773bd52006-08-04 18:18:08 +000027056
27057rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027058 conftest$ac_exeext conftest.$ac_ext
27059LIBS=$ac_check_lib_save_LIBS
27060fi
Reid Spencera773bd52006-08-04 18:18:08 +000027061{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27062echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027063if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027064 cat >>confdefs.h <<_ACEOF
27065#define HAVE_LIBPSAPI 1
27066_ACEOF
27067
27068 LIBS="-lpsapi $LIBS"
27069
27070fi
27071
27072fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027073
Reid Spencera773bd52006-08-04 18:18:08 +000027074{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27075echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027076if test "${ac_cv_search_lt_dlopen+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27078else
27079 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027080cat >conftest.$ac_ext <<_ACEOF
27081/* confdefs.h. */
27082_ACEOF
27083cat confdefs.h >>conftest.$ac_ext
27084cat >>conftest.$ac_ext <<_ACEOF
27085/* end confdefs.h. */
27086
Reid Spencera773bd52006-08-04 18:18:08 +000027087/* Override any GCC internal prototype to avoid an error.
27088 Use char because int might match the return type of a GCC
27089 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027090#ifdef __cplusplus
27091extern "C"
27092#endif
Reid Spencer17795972004-11-18 09:47:37 +000027093char lt_dlopen ();
27094int
27095main ()
27096{
Reid Spencera773bd52006-08-04 18:18:08 +000027097return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027098 ;
27099 return 0;
27100}
27101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027102for ac_lib in '' ltdl; do
27103 if test -z "$ac_lib"; then
27104 ac_res="none required"
27105 else
27106 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027108 fi
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110if { (ac_try="$ac_link"
27111case "(($ac_try" in
27112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27113 *) ac_try_echo=$ac_try;;
27114esac
27115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27116 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027117 ac_status=$?
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27124 { (case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27127esac
27128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027134 { (case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137esac
27138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027140 ac_status=$?
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027143 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027144else
27145 echo "$as_me: failed program was:" >&5
27146sed 's/^/| /' conftest.$ac_ext >&5
27147
Reid Spencera773bd52006-08-04 18:18:08 +000027148
Reid Spencer17795972004-11-18 09:47:37 +000027149fi
Reid Spencera773bd52006-08-04 18:18:08 +000027150
27151rm -f core conftest.err conftest.$ac_objext \
27152 conftest$ac_exeext
27153 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27154 break
Reid Spencer17795972004-11-18 09:47:37 +000027155fi
Reid Spencera773bd52006-08-04 18:18:08 +000027156done
27157if test "${ac_cv_search_lt_dlopen+set}" = set; then
27158 :
27159else
27160 ac_cv_search_lt_dlopen=no
27161fi
27162rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027163LIBS=$ac_func_search_save_LIBS
27164fi
Reid Spencera773bd52006-08-04 18:18:08 +000027165{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27166echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27167ac_res=$ac_cv_search_lt_dlopen
27168if test "$ac_res" != no; then
27169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027170
27171cat >>confdefs.h <<\_ACEOF
27172#define HAVE_LT_DLOPEN 1
27173_ACEOF
27174
27175else
27176 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27177 not be available" >&5
27178echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27179 not be available" >&2;}
27180fi
27181
27182
Reid Spencera773bd52006-08-04 18:18:08 +000027183{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27184echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027185if test "${ac_cv_search_dlopen+set}" = set; then
27186 echo $ECHO_N "(cached) $ECHO_C" >&6
27187else
27188 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027189cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027190/* confdefs.h. */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027195
Reid Spencera773bd52006-08-04 18:18:08 +000027196/* Override any GCC internal prototype to avoid an error.
27197 Use char because int might match the return type of a GCC
27198 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027199#ifdef __cplusplus
27200extern "C"
27201#endif
John Criswell7a73b802003-06-30 21:59:07 +000027202char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027203int
27204main ()
27205{
Reid Spencera773bd52006-08-04 18:18:08 +000027206return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027207 ;
27208 return 0;
27209}
27210_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027211for ac_lib in '' dl; do
27212 if test -z "$ac_lib"; then
27213 ac_res="none required"
27214 else
27215 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027217 fi
27218 rm -f conftest.$ac_objext conftest$ac_exeext
27219if { (ac_try="$ac_link"
27220case "(($ac_try" in
27221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27222 *) ac_try_echo=$ac_try;;
27223esac
27224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27225 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027226 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027227 grep -v '^ *+' conftest.er1 >conftest.err
27228 rm -f conftest.er1
27229 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27233 { (case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27236esac
27237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027239 ac_status=$?
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); }; } &&
27242 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027243 { (case "(($ac_try" in
27244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245 *) ac_try_echo=$ac_try;;
27246esac
27247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027252 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027253else
27254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027255sed 's/^/| /' conftest.$ac_ext >&5
27256
Reid Spencera773bd52006-08-04 18:18:08 +000027257
John Criswell7a73b802003-06-30 21:59:07 +000027258fi
Reid Spencera773bd52006-08-04 18:18:08 +000027259
27260rm -f core conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext
27262 if test "${ac_cv_search_dlopen+set}" = set; then
27263 break
John Criswell7a73b802003-06-30 21:59:07 +000027264fi
Reid Spencera773bd52006-08-04 18:18:08 +000027265done
27266if test "${ac_cv_search_dlopen+set}" = set; then
27267 :
27268else
27269 ac_cv_search_dlopen=no
27270fi
27271rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027272LIBS=$ac_func_search_save_LIBS
27273fi
Reid Spencera773bd52006-08-04 18:18:08 +000027274{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27275echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27276ac_res=$ac_cv_search_dlopen
27277if test "$ac_res" != no; then
27278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027279
27280cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027281#define HAVE_DLOPEN 1
27282_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027283
27284else
Brian Gaekec45be042003-10-07 06:01:34 +000027285 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27286echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027287fi
27288
27289
Reid Spencera773bd52006-08-04 18:18:08 +000027290{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27291echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027292if test "${ac_cv_search_mallinfo+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027296cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027297/* confdefs.h. */
27298_ACEOF
27299cat confdefs.h >>conftest.$ac_ext
27300cat >>conftest.$ac_ext <<_ACEOF
27301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027302
Reid Spencera773bd52006-08-04 18:18:08 +000027303/* Override any GCC internal prototype to avoid an error.
27304 Use char because int might match the return type of a GCC
27305 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027306#ifdef __cplusplus
27307extern "C"
27308#endif
John Criswell7a73b802003-06-30 21:59:07 +000027309char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027310int
27311main ()
27312{
Reid Spencera773bd52006-08-04 18:18:08 +000027313return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027314 ;
27315 return 0;
27316}
27317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027318for ac_lib in '' malloc; do
27319 if test -z "$ac_lib"; then
27320 ac_res="none required"
27321 else
27322 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027324 fi
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326if { (ac_try="$ac_link"
27327case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330esac
27331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027334 grep -v '^ *+' conftest.er1 >conftest.err
27335 rm -f conftest.er1
27336 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27340 { (case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343esac
27344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; } &&
27349 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027350 { (case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27353esac
27354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027356 ac_status=$?
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027359 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027360else
27361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027362sed 's/^/| /' conftest.$ac_ext >&5
27363
Reid Spencera773bd52006-08-04 18:18:08 +000027364
John Criswell7a73b802003-06-30 21:59:07 +000027365fi
Reid Spencera773bd52006-08-04 18:18:08 +000027366
27367rm -f core conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext
27369 if test "${ac_cv_search_mallinfo+set}" = set; then
27370 break
John Criswell7a73b802003-06-30 21:59:07 +000027371fi
Reid Spencera773bd52006-08-04 18:18:08 +000027372done
27373if test "${ac_cv_search_mallinfo+set}" = set; then
27374 :
27375else
27376 ac_cv_search_mallinfo=no
27377fi
27378rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027379LIBS=$ac_func_search_save_LIBS
27380fi
Reid Spencera773bd52006-08-04 18:18:08 +000027381{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27382echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27383ac_res=$ac_cv_search_mallinfo
27384if test "$ac_res" != no; then
27385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027386
27387cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027388#define HAVE_MALLINFO 1
27389_ACEOF
27390
27391fi
27392
27393
Reid Spencer0a262ba2005-08-24 10:07:20 +000027394if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027395
Reid Spencera773bd52006-08-04 18:18:08 +000027396{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27397echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027398if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27400else
27401 ac_check_lib_save_LIBS=$LIBS
27402LIBS="-lpthread $LIBS"
27403cat >conftest.$ac_ext <<_ACEOF
27404/* confdefs.h. */
27405_ACEOF
27406cat confdefs.h >>conftest.$ac_ext
27407cat >>conftest.$ac_ext <<_ACEOF
27408/* end confdefs.h. */
27409
Reid Spencera773bd52006-08-04 18:18:08 +000027410/* Override any GCC internal prototype to avoid an error.
27411 Use char because int might match the return type of a GCC
27412 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027413#ifdef __cplusplus
27414extern "C"
27415#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027416char pthread_mutex_init ();
27417int
27418main ()
27419{
Reid Spencera773bd52006-08-04 18:18:08 +000027420return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027421 ;
27422 return 0;
27423}
27424_ACEOF
27425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027426if { (ac_try="$ac_link"
27427case "(($ac_try" in
27428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429 *) ac_try_echo=$ac_try;;
27430esac
27431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027433 ac_status=$?
27434 grep -v '^ *+' conftest.er1 >conftest.err
27435 rm -f conftest.er1
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27440 { (case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27443esac
27444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027446 ac_status=$?
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; } &&
27449 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027450 { (case "(($ac_try" in
27451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452 *) ac_try_echo=$ac_try;;
27453esac
27454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027456 ac_status=$?
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); }; }; then
27459 ac_cv_lib_pthread_pthread_mutex_init=yes
27460else
27461 echo "$as_me: failed program was:" >&5
27462sed 's/^/| /' conftest.$ac_ext >&5
27463
Reid Spencera773bd52006-08-04 18:18:08 +000027464 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027465fi
Reid Spencera773bd52006-08-04 18:18:08 +000027466
27467rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027468 conftest$ac_exeext conftest.$ac_ext
27469LIBS=$ac_check_lib_save_LIBS
27470fi
Reid Spencera773bd52006-08-04 18:18:08 +000027471{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27472echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027473if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27474 cat >>confdefs.h <<_ACEOF
27475#define HAVE_LIBPTHREAD 1
27476_ACEOF
27477
27478 LIBS="-lpthread $LIBS"
27479
27480fi
27481
Reid Spencera773bd52006-08-04 18:18:08 +000027482 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27483echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027484if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27485 echo $ECHO_N "(cached) $ECHO_C" >&6
27486else
27487 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027488cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027489/* confdefs.h. */
27490_ACEOF
27491cat confdefs.h >>conftest.$ac_ext
27492cat >>conftest.$ac_ext <<_ACEOF
27493/* end confdefs.h. */
27494
Reid Spencera773bd52006-08-04 18:18:08 +000027495/* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027498#ifdef __cplusplus
27499extern "C"
27500#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027501char pthread_mutex_lock ();
27502int
27503main ()
27504{
Reid Spencera773bd52006-08-04 18:18:08 +000027505return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027506 ;
27507 return 0;
27508}
27509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027510for ac_lib in '' pthread; do
27511 if test -z "$ac_lib"; then
27512 ac_res="none required"
27513 else
27514 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027516 fi
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518if { (ac_try="$ac_link"
27519case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522esac
27523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027526 grep -v '^ *+' conftest.er1 >conftest.err
27527 rm -f conftest.er1
27528 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532 { (case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27535esac
27536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027538 ac_status=$?
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; } &&
27541 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027551 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027552else
27553 echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
Reid Spencera773bd52006-08-04 18:18:08 +000027556
Brian Gaeke5f268f72003-12-05 19:29:01 +000027557fi
Reid Spencera773bd52006-08-04 18:18:08 +000027558
27559rm -f core conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext
27561 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27562 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027563fi
Reid Spencera773bd52006-08-04 18:18:08 +000027564done
27565if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27566 :
27567else
27568 ac_cv_search_pthread_mutex_lock=no
27569fi
27570rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027571LIBS=$ac_func_search_save_LIBS
27572fi
Reid Spencera773bd52006-08-04 18:18:08 +000027573{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27574echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27575ac_res=$ac_cv_search_pthread_mutex_lock
27576if test "$ac_res" != no; then
27577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027578
John Criswell40468462004-09-24 21:19:06 +000027579cat >>confdefs.h <<\_ACEOF
27580#define HAVE_PTHREAD_MUTEX_LOCK 1
27581_ACEOF
27582
27583fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027584
Reid Spencer0a262ba2005-08-24 10:07:20 +000027585fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027586
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027587
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027588# Check whether --with-udis86 was given.
27589if test "${with_udis86+set}" = set; then
27590 withval=$with_udis86;
27591 USE_UDIS86=1
27592
27593 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027594 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027595 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27596 esac
27597
27598{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27599echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27600if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27602else
27603 ac_check_lib_save_LIBS=$LIBS
27604LIBS="-ludis86 $LIBS"
27605cat >conftest.$ac_ext <<_ACEOF
27606/* confdefs.h. */
27607_ACEOF
27608cat confdefs.h >>conftest.$ac_ext
27609cat >>conftest.$ac_ext <<_ACEOF
27610/* end confdefs.h. */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char ud_init ();
27619int
27620main ()
27621{
27622return ud_init ();
27623 ;
27624 return 0;
27625}
27626_ACEOF
27627rm -f conftest.$ac_objext conftest$ac_exeext
27628if { (ac_try="$ac_link"
27629case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632esac
27633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_link") 2>conftest.er1
27635 ac_status=$?
27636 grep -v '^ *+' conftest.er1 >conftest.err
27637 rm -f conftest.er1
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } &&
27641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645esac
27646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest$ac_exeext'
27652 { (case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_try") 2>&5
27658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ac_cv_lib_udis86_ud_init=yes
27662else
27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 ac_cv_lib_udis86_ud_init=no
27667fi
27668
27669rm -f core conftest.err conftest.$ac_objext \
27670 conftest$ac_exeext conftest.$ac_ext
27671LIBS=$ac_check_lib_save_LIBS
27672fi
27673{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27674echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27675if test $ac_cv_lib_udis86_ud_init = yes; then
27676 cat >>confdefs.h <<_ACEOF
27677#define HAVE_LIBUDIS86 1
27678_ACEOF
27679
27680 LIBS="-ludis86 $LIBS"
27681
27682else
27683
27684 echo "Error! You need to have libudis86 around."
27685 exit -1
27686
27687fi
27688
27689
27690else
27691 USE_UDIS86=0
27692
27693fi
27694
27695
27696cat >>confdefs.h <<_ACEOF
27697#define USE_UDIS86 $USE_UDIS86
27698_ACEOF
27699
27700
27701
Reid Spencer59473af2004-12-25 07:31:29 +000027702
27703
27704
27705
27706
27707ac_header_dirent=no
27708for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27709 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027710{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27711echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 cat >conftest.$ac_ext <<_ACEOF
27716/* confdefs.h. */
27717_ACEOF
27718cat confdefs.h >>conftest.$ac_ext
27719cat >>conftest.$ac_ext <<_ACEOF
27720/* end confdefs.h. */
27721#include <sys/types.h>
27722#include <$ac_hdr>
27723
27724int
27725main ()
27726{
27727if ((DIR *) 0)
27728return 0;
27729 ;
27730 return 0;
27731}
27732_ACEOF
27733rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027734if { (ac_try="$ac_compile"
27735case "(($ac_try" in
27736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27737 *) ac_try_echo=$ac_try;;
27738esac
27739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27740 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027741 ac_status=$?
27742 grep -v '^ *+' conftest.er1 >conftest.err
27743 rm -f conftest.er1
27744 cat conftest.err >&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27748 { (case "(($ac_try" in
27749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750 *) ac_try_echo=$ac_try;;
27751esac
27752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27753 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027754 ac_status=$?
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; } &&
27757 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027758 { (case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27761esac
27762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027764 ac_status=$?
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; }; then
27767 eval "$as_ac_Header=yes"
27768else
27769 echo "$as_me: failed program was:" >&5
27770sed 's/^/| /' conftest.$ac_ext >&5
27771
Reid Spencera773bd52006-08-04 18:18:08 +000027772 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027773fi
Reid Spencera773bd52006-08-04 18:18:08 +000027774
27775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027776fi
Reid Spencera773bd52006-08-04 18:18:08 +000027777ac_res=`eval echo '${'$as_ac_Header'}'`
27778 { echo "$as_me:$LINENO: result: $ac_res" >&5
27779echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027780if test `eval echo '${'$as_ac_Header'}'` = yes; then
27781 cat >>confdefs.h <<_ACEOF
27782#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27783_ACEOF
27784
27785ac_header_dirent=$ac_hdr; break
27786fi
27787
27788done
27789# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27790if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027791 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27792echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027793if test "${ac_cv_search_opendir+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795else
27796 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027797cat >conftest.$ac_ext <<_ACEOF
27798/* confdefs.h. */
27799_ACEOF
27800cat confdefs.h >>conftest.$ac_ext
27801cat >>conftest.$ac_ext <<_ACEOF
27802/* end confdefs.h. */
27803
Reid Spencera773bd52006-08-04 18:18:08 +000027804/* Override any GCC internal prototype to avoid an error.
27805 Use char because int might match the return type of a GCC
27806 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027807#ifdef __cplusplus
27808extern "C"
27809#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027810char opendir ();
27811int
27812main ()
27813{
Reid Spencera773bd52006-08-04 18:18:08 +000027814return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027815 ;
27816 return 0;
27817}
27818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027819for ac_lib in '' dir; do
27820 if test -z "$ac_lib"; then
27821 ac_res="none required"
27822 else
27823 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027825 fi
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827if { (ac_try="$ac_link"
27828case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27831esac
27832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027834 ac_status=$?
27835 grep -v '^ *+' conftest.er1 >conftest.err
27836 rm -f conftest.er1
27837 cat conftest.err >&5
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27844esac
27845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; } &&
27850 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027851 { (case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27854esac
27855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027860 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
Reid Spencera773bd52006-08-04 18:18:08 +000027865
Reid Spencer59473af2004-12-25 07:31:29 +000027866fi
Reid Spencera773bd52006-08-04 18:18:08 +000027867
27868rm -f core conftest.err conftest.$ac_objext \
27869 conftest$ac_exeext
27870 if test "${ac_cv_search_opendir+set}" = set; then
27871 break
Reid Spencer59473af2004-12-25 07:31:29 +000027872fi
Reid Spencera773bd52006-08-04 18:18:08 +000027873done
27874if test "${ac_cv_search_opendir+set}" = set; then
27875 :
27876else
27877 ac_cv_search_opendir=no
27878fi
27879rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027880LIBS=$ac_func_search_save_LIBS
27881fi
Reid Spencera773bd52006-08-04 18:18:08 +000027882{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27883echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27884ac_res=$ac_cv_search_opendir
27885if test "$ac_res" != no; then
27886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027887
27888fi
27889
27890else
Reid Spencera773bd52006-08-04 18:18:08 +000027891 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27892echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027893if test "${ac_cv_search_opendir+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27895else
27896 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027897cat >conftest.$ac_ext <<_ACEOF
27898/* confdefs.h. */
27899_ACEOF
27900cat confdefs.h >>conftest.$ac_ext
27901cat >>conftest.$ac_ext <<_ACEOF
27902/* end confdefs.h. */
27903
Reid Spencera773bd52006-08-04 18:18:08 +000027904/* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027907#ifdef __cplusplus
27908extern "C"
27909#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027910char opendir ();
27911int
27912main ()
27913{
Reid Spencera773bd52006-08-04 18:18:08 +000027914return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027915 ;
27916 return 0;
27917}
27918_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027919for ac_lib in '' x; do
27920 if test -z "$ac_lib"; then
27921 ac_res="none required"
27922 else
27923 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027925 fi
27926 rm -f conftest.$ac_objext conftest$ac_exeext
27927if { (ac_try="$ac_link"
27928case "(($ac_try" in
27929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930 *) ac_try_echo=$ac_try;;
27931esac
27932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027934 ac_status=$?
27935 grep -v '^ *+' conftest.er1 >conftest.err
27936 rm -f conftest.er1
27937 cat conftest.err >&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27941 { (case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27944esac
27945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; } &&
27950 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027951 { (case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27954esac
27955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027960 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027961else
27962 echo "$as_me: failed program was:" >&5
27963sed 's/^/| /' conftest.$ac_ext >&5
27964
Reid Spencera773bd52006-08-04 18:18:08 +000027965
Reid Spencer59473af2004-12-25 07:31:29 +000027966fi
Reid Spencera773bd52006-08-04 18:18:08 +000027967
27968rm -f core conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext
27970 if test "${ac_cv_search_opendir+set}" = set; then
27971 break
Reid Spencer59473af2004-12-25 07:31:29 +000027972fi
Reid Spencera773bd52006-08-04 18:18:08 +000027973done
27974if test "${ac_cv_search_opendir+set}" = set; then
27975 :
27976else
27977 ac_cv_search_opendir=no
27978fi
27979rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027980LIBS=$ac_func_search_save_LIBS
27981fi
Reid Spencera773bd52006-08-04 18:18:08 +000027982{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27983echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27984ac_res=$ac_cv_search_opendir
27985if test "$ac_res" != no; then
27986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027987
27988fi
27989
27990fi
27991
Reid Spencera773bd52006-08-04 18:18:08 +000027992{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27993echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027994if test "${ac_cv_header_mmap_anon+set}" = set; then
27995 echo $ECHO_N "(cached) $ECHO_C" >&6
27996else
27997 ac_ext=c
27998ac_cpp='$CPP $CPPFLAGS'
27999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28001ac_compiler_gnu=$ac_cv_c_compiler_gnu
28002
28003 cat >conftest.$ac_ext <<_ACEOF
28004/* confdefs.h. */
28005_ACEOF
28006cat confdefs.h >>conftest.$ac_ext
28007cat >>conftest.$ac_ext <<_ACEOF
28008/* end confdefs.h. */
28009#include <sys/mman.h>
28010#include <unistd.h>
28011#include <fcntl.h>
28012int
28013main ()
28014{
28015mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28016 ;
28017 return 0;
28018}
28019_ACEOF
28020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028021if { (ac_try="$ac_compile"
28022case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28025esac
28026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028028 ac_status=$?
28029 grep -v '^ *+' conftest.er1 >conftest.err
28030 rm -f conftest.er1
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28035 { (case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038esac
28039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; } &&
28044 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28048esac
28049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_cv_header_mmap_anon=yes
28055else
28056 echo "$as_me: failed program was:" >&5
28057sed 's/^/| /' conftest.$ac_ext >&5
28058
Reid Spencera773bd52006-08-04 18:18:08 +000028059 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028060fi
Reid Spencera773bd52006-08-04 18:18:08 +000028061
28062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028063 ac_ext=c
28064ac_cpp='$CPP $CPPFLAGS'
28065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067ac_compiler_gnu=$ac_cv_c_compiler_gnu
28068
28069
28070fi
Reid Spencera773bd52006-08-04 18:18:08 +000028071{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28072echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028073if test "$ac_cv_header_mmap_anon" = yes; then
28074
28075cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028076#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028077_ACEOF
28078
28079fi
28080
Reid Spencera773bd52006-08-04 18:18:08 +000028081{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28082echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028083if test "${ac_cv_header_stat_broken+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085else
28086 cat >conftest.$ac_ext <<_ACEOF
28087/* confdefs.h. */
28088_ACEOF
28089cat confdefs.h >>conftest.$ac_ext
28090cat >>conftest.$ac_ext <<_ACEOF
28091/* end confdefs.h. */
28092#include <sys/types.h>
28093#include <sys/stat.h>
28094
Reid Spencera773bd52006-08-04 18:18:08 +000028095#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028096# if S_ISBLK (S_IFDIR)
28097You lose.
28098# endif
28099#endif
28100
Reid Spencera773bd52006-08-04 18:18:08 +000028101#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028102# if S_ISBLK (S_IFCHR)
28103You lose.
28104# endif
28105#endif
28106
Reid Spencera773bd52006-08-04 18:18:08 +000028107#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028108# if S_ISLNK (S_IFREG)
28109You lose.
28110# endif
28111#endif
28112
Reid Spencera773bd52006-08-04 18:18:08 +000028113#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028114# if S_ISSOCK (S_IFREG)
28115You lose.
28116# endif
28117#endif
28118
28119_ACEOF
28120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28121 $EGREP "You lose" >/dev/null 2>&1; then
28122 ac_cv_header_stat_broken=yes
28123else
28124 ac_cv_header_stat_broken=no
28125fi
28126rm -f conftest*
28127
28128fi
Reid Spencera773bd52006-08-04 18:18:08 +000028129{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28130echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028131if test $ac_cv_header_stat_broken = yes; then
28132
28133cat >>confdefs.h <<\_ACEOF
28134#define STAT_MACROS_BROKEN 1
28135_ACEOF
28136
28137fi
28138
Reid Spencera773bd52006-08-04 18:18:08 +000028139{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28140echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028141if test "${ac_cv_header_stdc+set}" = set; then
28142 echo $ECHO_N "(cached) $ECHO_C" >&6
28143else
28144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028145/* confdefs.h. */
28146_ACEOF
28147cat confdefs.h >>conftest.$ac_ext
28148cat >>conftest.$ac_ext <<_ACEOF
28149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028150#include <stdlib.h>
28151#include <stdarg.h>
28152#include <string.h>
28153#include <float.h>
28154
John Criswell0c38eaf2003-09-10 15:17:25 +000028155int
28156main ()
28157{
28158
28159 ;
28160 return 0;
28161}
John Criswell7a73b802003-06-30 21:59:07 +000028162_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028163rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028164if { (ac_try="$ac_compile"
28165case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028176 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28181esac
28182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028184 ac_status=$?
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; } &&
28187 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028188 { (case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28191esac
28192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028197 ac_cv_header_stdc=yes
28198else
28199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028200sed 's/^/| /' conftest.$ac_ext >&5
28201
Reid Spencera773bd52006-08-04 18:18:08 +000028202 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028203fi
Reid Spencera773bd52006-08-04 18:18:08 +000028204
28205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028206
28207if test $ac_cv_header_stdc = yes; then
28208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028210/* confdefs.h. */
28211_ACEOF
28212cat confdefs.h >>conftest.$ac_ext
28213cat >>conftest.$ac_ext <<_ACEOF
28214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028215#include <string.h>
28216
28217_ACEOF
28218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028219 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028220 :
28221else
28222 ac_cv_header_stdc=no
28223fi
28224rm -f conftest*
28225
28226fi
28227
28228if test $ac_cv_header_stdc = yes; then
28229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28230 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028231/* confdefs.h. */
28232_ACEOF
28233cat confdefs.h >>conftest.$ac_ext
28234cat >>conftest.$ac_ext <<_ACEOF
28235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028236#include <stdlib.h>
28237
28238_ACEOF
28239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028240 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028241 :
28242else
28243 ac_cv_header_stdc=no
28244fi
28245rm -f conftest*
28246
28247fi
28248
28249if test $ac_cv_header_stdc = yes; then
28250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28251 if test "$cross_compiling" = yes; then
28252 :
28253else
28254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028260#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028261#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028262#if ((' ' & 0x0FF) == 0x020)
28263# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28264# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28265#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028266# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028267 (('a' <= (c) && (c) <= 'i') \
28268 || ('j' <= (c) && (c) <= 'r') \
28269 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28271#endif
28272
28273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28274int
28275main ()
28276{
28277 int i;
28278 for (i = 0; i < 256; i++)
28279 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028280 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028281 return 2;
28282 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028283}
28284_ACEOF
28285rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028286if { (ac_try="$ac_link"
28287case "(($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_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028296 { (case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28299esac
28300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 :
28306else
28307 echo "$as_me: program exited with status $ac_status" >&5
28308echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028309sed 's/^/| /' conftest.$ac_ext >&5
28310
John Criswell7a73b802003-06-30 21:59:07 +000028311( exit $ac_status )
28312ac_cv_header_stdc=no
28313fi
Reid Spencera773bd52006-08-04 18:18:08 +000028314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28315fi
28316
28317
John Criswell7a73b802003-06-30 21:59:07 +000028318fi
28319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28321echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028322if test $ac_cv_header_stdc = yes; then
28323
28324cat >>confdefs.h <<\_ACEOF
28325#define STDC_HEADERS 1
28326_ACEOF
28327
28328fi
28329
Reid Spencera773bd52006-08-04 18:18:08 +000028330{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28331echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028332if test "${ac_cv_header_sys_wait_h+set}" = set; then
28333 echo $ECHO_N "(cached) $ECHO_C" >&6
28334else
28335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028336/* confdefs.h. */
28337_ACEOF
28338cat confdefs.h >>conftest.$ac_ext
28339cat >>conftest.$ac_ext <<_ACEOF
28340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028341#include <sys/types.h>
28342#include <sys/wait.h>
28343#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028344# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028345#endif
28346#ifndef WIFEXITED
28347# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28348#endif
28349
John Criswell7a73b802003-06-30 21:59:07 +000028350int
28351main ()
28352{
28353 int s;
28354 wait (&s);
28355 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028361if { (ac_try="$ac_compile"
28362case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365esac
28366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28367 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28375 { (case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378esac
28379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; } &&
28384 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028385 { (case "(($ac_try" in
28386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387 *) ac_try_echo=$ac_try;;
28388esac
28389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; }; then
28394 ac_cv_header_sys_wait_h=yes
28395else
28396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028397sed 's/^/| /' conftest.$ac_ext >&5
28398
Reid Spencera773bd52006-08-04 18:18:08 +000028399 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028400fi
Reid Spencera773bd52006-08-04 18:18:08 +000028401
28402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028403fi
Reid Spencera773bd52006-08-04 18:18:08 +000028404{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28405echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028406if test $ac_cv_header_sys_wait_h = yes; then
28407
28408cat >>confdefs.h <<\_ACEOF
28409#define HAVE_SYS_WAIT_H 1
28410_ACEOF
28411
28412fi
28413
Reid Spencera773bd52006-08-04 18:18:08 +000028414{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28415echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028416if test "${ac_cv_header_time+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28418else
28419 cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028425#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028426#include <sys/time.h>
28427#include <time.h>
28428
28429int
28430main ()
28431{
28432if ((struct tm *) 0)
28433return 0;
28434 ;
28435 return 0;
28436}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028437_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028438rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028439if { (ac_try="$ac_compile"
28440case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028451 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28453 { (case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28466esac
28467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028473else
28474 echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
Reid Spencera773bd52006-08-04 18:18:08 +000028477 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028478fi
Reid Spencera773bd52006-08-04 18:18:08 +000028479
28480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028481fi
Reid Spencera773bd52006-08-04 18:18:08 +000028482{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28483echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028484if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028485
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028486cat >>confdefs.h <<\_ACEOF
28487#define TIME_WITH_SYS_TIME 1
28488_ACEOF
28489
28490fi
28491
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028492
Reid Spencer59473af2004-12-25 07:31:29 +000028493
28494
28495
28496
28497
28498
28499for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28500do
28501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028506 echo $ECHO_N "(cached) $ECHO_C" >&6
28507fi
Reid Spencera773bd52006-08-04 18:18:08 +000028508ac_res=`eval echo '${'$as_ac_Header'}'`
28509 { echo "$as_me:$LINENO: result: $ac_res" >&5
28510echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028511else
28512 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028513{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028515cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028516/* confdefs.h. */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028521$ac_includes_default
28522#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028523_ACEOF
28524rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028525if { (ac_try="$ac_compile"
28526case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28529esac
28530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028532 ac_status=$?
28533 grep -v '^ *+' conftest.er1 >conftest.err
28534 rm -f conftest.er1
28535 cat conftest.err >&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28539 { (case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28542esac
28543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; } &&
28548 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028549 { (case "(($ac_try" in
28550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551 *) ac_try_echo=$ac_try;;
28552esac
28553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28554 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028558 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028559else
28560 echo "$as_me: failed program was:" >&5
28561sed 's/^/| /' conftest.$ac_ext >&5
28562
Reid Spencera773bd52006-08-04 18:18:08 +000028563 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028564fi
Reid Spencera773bd52006-08-04 18:18:08 +000028565
28566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28568echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028569
Reid Spencer59473af2004-12-25 07:31:29 +000028570# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579#include <$ac_header>
28580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028581if { (ac_try="$ac_cpp conftest.$ac_ext"
28582case "(($ac_try" in
28583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584 *) ac_try_echo=$ac_try;;
28585esac
28586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028588 ac_status=$?
28589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } >/dev/null; then
28594 if test -s conftest.err; then
28595 ac_cpp_err=$ac_c_preproc_warn_flag
28596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28597 else
28598 ac_cpp_err=
28599 fi
28600else
28601 ac_cpp_err=yes
28602fi
28603if test -z "$ac_cpp_err"; then
28604 ac_header_preproc=yes
28605else
28606 echo "$as_me: failed program was:" >&5
28607sed 's/^/| /' conftest.$ac_ext >&5
28608
28609 ac_header_preproc=no
28610fi
Reid Spencera773bd52006-08-04 18:18:08 +000028611
Reid Spencer59473af2004-12-25 07:31:29 +000028612rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28614echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028615
28616# So? What about this header?
28617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28618 yes:no: )
28619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28623 ac_header_preproc=yes
28624 ;;
28625 no:yes:* )
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028638 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028639## ----------------------------------- ##
28640## Report this to llvmbugs@cs.uiuc.edu ##
28641## ----------------------------------- ##
28642_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028643 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028644 ;;
28645esac
Reid Spencera773bd52006-08-04 18:18:08 +000028646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651 eval "$as_ac_Header=\$ac_header_preproc"
28652fi
Reid Spencera773bd52006-08-04 18:18:08 +000028653ac_res=`eval echo '${'$as_ac_Header'}'`
28654 { echo "$as_me:$LINENO: result: $ac_res" >&5
28655echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028656
28657fi
Reid Spencer59473af2004-12-25 07:31:29 +000028658if test `eval echo '${'$as_ac_Header'}'` = yes; then
28659 cat >>confdefs.h <<_ACEOF
28660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028662
28663fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028664
Reid Spencer59473af2004-12-25 07:31:29 +000028665done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028666
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667
28668
Reid Spencer59473af2004-12-25 07:31:29 +000028669
28670
28671
28672
Reid Spencercdb08a32006-06-05 16:11:07 +000028673for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028674do
28675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028680 echo $ECHO_N "(cached) $ECHO_C" >&6
28681fi
Reid Spencera773bd52006-08-04 18:18:08 +000028682ac_res=`eval echo '${'$as_ac_Header'}'`
28683 { echo "$as_me:$LINENO: result: $ac_res" >&5
28684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028685else
28686 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028687{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028689cat >conftest.$ac_ext <<_ACEOF
28690/* confdefs.h. */
28691_ACEOF
28692cat confdefs.h >>conftest.$ac_ext
28693cat >>conftest.$ac_ext <<_ACEOF
28694/* end confdefs.h. */
28695$ac_includes_default
28696#include <$ac_header>
28697_ACEOF
28698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028699if { (ac_try="$ac_compile"
28700case "(($ac_try" in
28701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702 *) ac_try_echo=$ac_try;;
28703esac
28704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028706 ac_status=$?
28707 grep -v '^ *+' conftest.er1 >conftest.err
28708 rm -f conftest.er1
28709 cat conftest.err >&5
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28713 { (case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28716esac
28717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028723 { (case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028729 ac_status=$?
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; }; then
28732 ac_header_compiler=yes
28733else
28734 echo "$as_me: failed program was:" >&5
28735sed 's/^/| /' conftest.$ac_ext >&5
28736
Reid Spencera773bd52006-08-04 18:18:08 +000028737 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028738fi
Reid Spencera773bd52006-08-04 18:18:08 +000028739
28740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28742echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028743
28744# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028745{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028747cat >conftest.$ac_ext <<_ACEOF
28748/* confdefs.h. */
28749_ACEOF
28750cat confdefs.h >>conftest.$ac_ext
28751cat >>conftest.$ac_ext <<_ACEOF
28752/* end confdefs.h. */
28753#include <$ac_header>
28754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028755if { (ac_try="$ac_cpp conftest.$ac_ext"
28756case "(($ac_try" in
28757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758 *) ac_try_echo=$ac_try;;
28759esac
28760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028762 ac_status=$?
28763 grep -v '^ *+' conftest.er1 >conftest.err
28764 rm -f conftest.er1
28765 cat conftest.err >&5
28766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); } >/dev/null; then
28768 if test -s conftest.err; then
28769 ac_cpp_err=$ac_c_preproc_warn_flag
28770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28771 else
28772 ac_cpp_err=
28773 fi
28774else
28775 ac_cpp_err=yes
28776fi
28777if test -z "$ac_cpp_err"; then
28778 ac_header_preproc=yes
28779else
28780 echo "$as_me: failed program was:" >&5
28781sed 's/^/| /' conftest.$ac_ext >&5
28782
28783 ac_header_preproc=no
28784fi
Reid Spencera773bd52006-08-04 18:18:08 +000028785
Reid Spencer59473af2004-12-25 07:31:29 +000028786rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28788echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028789
28790# So? What about this header?
28791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28792 yes:no: )
28793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28797 ac_header_preproc=yes
28798 ;;
28799 no:yes:* )
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028812 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028813## ----------------------------------- ##
28814## Report this to llvmbugs@cs.uiuc.edu ##
28815## ----------------------------------- ##
28816_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028817 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028818 ;;
28819esac
Reid Spencera773bd52006-08-04 18:18:08 +000028820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028823 echo $ECHO_N "(cached) $ECHO_C" >&6
28824else
28825 eval "$as_ac_Header=\$ac_header_preproc"
28826fi
Reid Spencera773bd52006-08-04 18:18:08 +000028827ac_res=`eval echo '${'$as_ac_Header'}'`
28828 { echo "$as_me:$LINENO: result: $ac_res" >&5
28829echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028830
28831fi
28832if test `eval echo '${'$as_ac_Header'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28835_ACEOF
28836
28837fi
28838
28839done
28840
28841
28842
28843
28844
28845
Reid Spencercdb08a32006-06-05 16:11:07 +000028846for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028847do
28848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028853 echo $ECHO_N "(cached) $ECHO_C" >&6
28854fi
Reid Spencera773bd52006-08-04 18:18:08 +000028855ac_res=`eval echo '${'$as_ac_Header'}'`
28856 { echo "$as_me:$LINENO: result: $ac_res" >&5
28857echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028858else
28859 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028860{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028862cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028863/* confdefs.h. */
28864_ACEOF
28865cat confdefs.h >>conftest.$ac_ext
28866cat >>conftest.$ac_ext <<_ACEOF
28867/* end confdefs.h. */
28868$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028869#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028870_ACEOF
28871rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028872if { (ac_try="$ac_compile"
28873case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28876esac
28877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028880 grep -v '^ *+' conftest.er1 >conftest.err
28881 rm -f conftest.er1
28882 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28886 { (case "(($ac_try" in
28887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28889esac
28890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028892 ac_status=$?
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; } &&
28895 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028896 { (case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28899esac
28900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; }; then
28905 ac_header_compiler=yes
28906else
28907 echo "$as_me: failed program was:" >&5
28908sed 's/^/| /' conftest.$ac_ext >&5
28909
Reid Spencera773bd52006-08-04 18:18:08 +000028910 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028911fi
Reid Spencera773bd52006-08-04 18:18:08 +000028912
28913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28915echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028916
28917# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028918{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028920cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028921/* confdefs.h. */
28922_ACEOF
28923cat confdefs.h >>conftest.$ac_ext
28924cat >>conftest.$ac_ext <<_ACEOF
28925/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028926#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028928if { (ac_try="$ac_cpp conftest.$ac_ext"
28929case "(($ac_try" in
28930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931 *) ac_try_echo=$ac_try;;
28932esac
28933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028935 ac_status=$?
28936 grep -v '^ *+' conftest.er1 >conftest.err
28937 rm -f conftest.er1
28938 cat conftest.err >&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } >/dev/null; then
28941 if test -s conftest.err; then
28942 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028944 else
28945 ac_cpp_err=
28946 fi
28947else
28948 ac_cpp_err=yes
28949fi
28950if test -z "$ac_cpp_err"; then
28951 ac_header_preproc=yes
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956 ac_header_preproc=no
28957fi
Reid Spencera773bd52006-08-04 18:18:08 +000028958
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028959rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028960{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28961echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028962
28963# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28965 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028970 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028971 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028972 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028985 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028986## ----------------------------------- ##
28987## Report this to llvmbugs@cs.uiuc.edu ##
28988## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028989_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028990 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028991 ;;
28992esac
Reid Spencera773bd52006-08-04 18:18:08 +000028993{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028996 echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028998 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028999fi
Reid Spencera773bd52006-08-04 18:18:08 +000029000ac_res=`eval echo '${'$as_ac_Header'}'`
29001 { echo "$as_me:$LINENO: result: $ac_res" >&5
29002echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029003
29004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029005if test `eval echo '${'$as_ac_Header'}'` = yes; then
29006 cat >>confdefs.h <<_ACEOF
29007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029008_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029009
29010fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029011
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029012done
29013
John Criswell7ed43ad2004-07-19 16:12:29 +000029014
Reid Spencercdb08a32006-06-05 16:11:07 +000029015
Reid Spencera6d990a2006-09-14 06:17:21 +000029016
29017for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029018do
29019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029024 echo $ECHO_N "(cached) $ECHO_C" >&6
29025fi
Reid Spencera773bd52006-08-04 18:18:08 +000029026ac_res=`eval echo '${'$as_ac_Header'}'`
29027 { echo "$as_me:$LINENO: result: $ac_res" >&5
29028echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029029else
29030 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029033cat >conftest.$ac_ext <<_ACEOF
29034/* confdefs.h. */
29035_ACEOF
29036cat confdefs.h >>conftest.$ac_ext
29037cat >>conftest.$ac_ext <<_ACEOF
29038/* end confdefs.h. */
29039$ac_includes_default
29040#include <$ac_header>
29041_ACEOF
29042rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029043if { (ac_try="$ac_compile"
29044case "(($ac_try" in
29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046 *) ac_try_echo=$ac_try;;
29047esac
29048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029050 ac_status=$?
29051 grep -v '^ *+' conftest.er1 >conftest.err
29052 rm -f conftest.er1
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29057 { (case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29060esac
29061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; } &&
29066 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029067 { (case "(($ac_try" in
29068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069 *) ac_try_echo=$ac_try;;
29070esac
29071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29072 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 ac_header_compiler=yes
29077else
29078 echo "$as_me: failed program was:" >&5
29079sed 's/^/| /' conftest.$ac_ext >&5
29080
Reid Spencera773bd52006-08-04 18:18:08 +000029081 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029082fi
Reid Spencera773bd52006-08-04 18:18:08 +000029083
29084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29085{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29086echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029087
29088# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029089{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029091cat >conftest.$ac_ext <<_ACEOF
29092/* confdefs.h. */
29093_ACEOF
29094cat confdefs.h >>conftest.$ac_ext
29095cat >>conftest.$ac_ext <<_ACEOF
29096/* end confdefs.h. */
29097#include <$ac_header>
29098_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029099if { (ac_try="$ac_cpp conftest.$ac_ext"
29100case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29103esac
29104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029106 ac_status=$?
29107 grep -v '^ *+' conftest.er1 >conftest.err
29108 rm -f conftest.er1
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } >/dev/null; then
29112 if test -s conftest.err; then
29113 ac_cpp_err=$ac_c_preproc_warn_flag
29114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29115 else
29116 ac_cpp_err=
29117 fi
29118else
29119 ac_cpp_err=yes
29120fi
29121if test -z "$ac_cpp_err"; then
29122 ac_header_preproc=yes
29123else
29124 echo "$as_me: failed program was:" >&5
29125sed 's/^/| /' conftest.$ac_ext >&5
29126
29127 ac_header_preproc=no
29128fi
Reid Spencera773bd52006-08-04 18:18:08 +000029129
Chris Lattner0b142592005-11-14 06:57:34 +000029130rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29132echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029133
29134# So? What about this header?
29135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29136 yes:no: )
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29141 ac_header_preproc=yes
29142 ;;
29143 no:yes:* )
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029156 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029157## ----------------------------------- ##
29158## Report this to llvmbugs@cs.uiuc.edu ##
29159## ----------------------------------- ##
29160_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029161 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029162 ;;
29163esac
Reid Spencera773bd52006-08-04 18:18:08 +000029164{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029167 echo $ECHO_N "(cached) $ECHO_C" >&6
29168else
29169 eval "$as_ac_Header=\$ac_header_preproc"
29170fi
Reid Spencera773bd52006-08-04 18:18:08 +000029171ac_res=`eval echo '${'$as_ac_Header'}'`
29172 { echo "$as_me:$LINENO: result: $ac_res" >&5
29173echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029174
29175fi
29176if test `eval echo '${'$as_ac_Header'}'` = yes; then
29177 cat >>confdefs.h <<_ACEOF
29178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29179_ACEOF
29180
29181fi
29182
29183done
29184
Reid Spencer0a262ba2005-08-24 10:07:20 +000029185if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029186 if test "${ac_cv_header_pthread_h+set}" = set; then
29187 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29188echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29189if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029190 echo $ECHO_N "(cached) $ECHO_C" >&6
29191fi
Reid Spencer1000b732006-12-01 00:37:14 +000029192{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29193echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029194else
29195 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029196{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29197echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029198cat >conftest.$ac_ext <<_ACEOF
29199/* confdefs.h. */
29200_ACEOF
29201cat confdefs.h >>conftest.$ac_ext
29202cat >>conftest.$ac_ext <<_ACEOF
29203/* end confdefs.h. */
29204$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029205#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029206_ACEOF
29207rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029208if { (ac_try="$ac_compile"
29209case "(($ac_try" in
29210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211 *) ac_try_echo=$ac_try;;
29212esac
29213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029215 ac_status=$?
29216 grep -v '^ *+' conftest.er1 >conftest.err
29217 rm -f conftest.er1
29218 cat conftest.err >&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29222 { (case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29225esac
29226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029228 ac_status=$?
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; } &&
29231 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029232 { (case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29235esac
29236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_header_compiler=yes
29242else
29243 echo "$as_me: failed program was:" >&5
29244sed 's/^/| /' conftest.$ac_ext >&5
29245
Reid Spencera773bd52006-08-04 18:18:08 +000029246 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029247fi
Reid Spencera773bd52006-08-04 18:18:08 +000029248
29249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29251echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029252
29253# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029254{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29255echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029256cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029262#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029263_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029264if { (ac_try="$ac_cpp conftest.$ac_ext"
29265case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29268esac
29269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029271 ac_status=$?
29272 grep -v '^ *+' conftest.er1 >conftest.err
29273 rm -f conftest.er1
29274 cat conftest.err >&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } >/dev/null; then
29277 if test -s conftest.err; then
29278 ac_cpp_err=$ac_c_preproc_warn_flag
29279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29280 else
29281 ac_cpp_err=
29282 fi
29283else
29284 ac_cpp_err=yes
29285fi
29286if test -z "$ac_cpp_err"; then
29287 ac_header_preproc=yes
29288else
29289 echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292 ac_header_preproc=no
29293fi
Reid Spencera773bd52006-08-04 18:18:08 +000029294
Reid Spencer0a262ba2005-08-24 10:07:20 +000029295rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29297echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029298
29299# So? What about this header?
29300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29301 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029302 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29303echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29304 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29305echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029306 ac_header_preproc=yes
29307 ;;
29308 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029309 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29310echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29311 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29312echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29314echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29316echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29318echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29320echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029321 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029322## ----------------------------------- ##
29323## Report this to llvmbugs@cs.uiuc.edu ##
29324## ----------------------------------- ##
29325_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029326 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029327 ;;
29328esac
Reid Spencer1000b732006-12-01 00:37:14 +000029329{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29330echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29331if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029332 echo $ECHO_N "(cached) $ECHO_C" >&6
29333else
Reid Spencer1000b732006-12-01 00:37:14 +000029334 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029335fi
Reid Spencer1000b732006-12-01 00:37:14 +000029336{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29337echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029338
29339fi
Reid Spencer1000b732006-12-01 00:37:14 +000029340if test $ac_cv_header_pthread_h = yes; then
29341 HAVE_PTHREAD=1
29342
29343else
29344 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029345
29346fi
29347
Reid Spencer1000b732006-12-01 00:37:14 +000029348
29349else
29350 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029351
29352fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029353
29354
Reid Spencerb2ed05262006-11-03 18:04:08 +000029355
29356 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29357echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29358if test "${ac_cv_huge_val_sanity+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29360else
29361
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029362 ac_ext=cpp
29363ac_cpp='$CXXCPP $CPPFLAGS'
29364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029367
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029368 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029369 if test "$cross_compiling" = yes; then
29370 ac_cv_huge_val_sanity=yes
29371else
29372 cat >conftest.$ac_ext <<_ACEOF
29373/* confdefs.h. */
29374_ACEOF
29375cat confdefs.h >>conftest.$ac_ext
29376cat >>conftest.$ac_ext <<_ACEOF
29377/* end confdefs.h. */
29378#include <math.h>
29379int
29380main ()
29381{
29382double x = HUGE_VAL; return x != x;
29383 ;
29384 return 0;
29385}
29386_ACEOF
29387rm -f conftest$ac_exeext
29388if { (ac_try="$ac_link"
29389case "(($ac_try" in
29390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391 *) ac_try_echo=$ac_try;;
29392esac
29393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29394 (eval "$ac_link") 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29398 { (case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29401esac
29402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_try") 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_huge_val_sanity=yes
29408else
29409 echo "$as_me: program exited with status $ac_status" >&5
29410echo "$as_me: failed program was:" >&5
29411sed 's/^/| /' conftest.$ac_ext >&5
29412
29413( exit $ac_status )
29414ac_cv_huge_val_sanity=no
29415fi
29416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29417fi
29418
29419
29420 ac_ext=c
29421ac_cpp='$CPP $CPPFLAGS'
29422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426
29427fi
29428{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29429echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29430 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29431
29432
Reid Spencera773bd52006-08-04 18:18:08 +000029433{ echo "$as_me:$LINENO: checking for pid_t" >&5
29434echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029435if test "${ac_cv_type_pid_t+set}" = set; then
29436 echo $ECHO_N "(cached) $ECHO_C" >&6
29437else
29438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029439/* confdefs.h. */
29440_ACEOF
29441cat confdefs.h >>conftest.$ac_ext
29442cat >>conftest.$ac_ext <<_ACEOF
29443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029444$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029445typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029446int
29447main ()
29448{
Reid Spencera773bd52006-08-04 18:18:08 +000029449if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029450 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029451if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029452 return 0;
29453 ;
29454 return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029458if { (ac_try="$ac_compile"
29459case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29462esac
29463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029466 grep -v '^ *+' conftest.er1 >conftest.err
29467 rm -f conftest.er1
29468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29472 { (case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475esac
29476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029478 ac_status=$?
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029482 { (case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29485esac
29486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 ac_cv_type_pid_t=yes
29492else
29493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029494sed 's/^/| /' conftest.$ac_ext >&5
29495
Reid Spencera773bd52006-08-04 18:18:08 +000029496 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029497fi
Reid Spencera773bd52006-08-04 18:18:08 +000029498
29499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029500fi
Reid Spencera773bd52006-08-04 18:18:08 +000029501{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29502echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029503if test $ac_cv_type_pid_t = yes; then
29504 :
29505else
29506
29507cat >>confdefs.h <<_ACEOF
29508#define pid_t int
29509_ACEOF
29510
29511fi
29512
Reid Spencera773bd52006-08-04 18:18:08 +000029513{ echo "$as_me:$LINENO: checking for size_t" >&5
29514echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029515if test "${ac_cv_type_size_t+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029519/* confdefs.h. */
29520_ACEOF
29521cat confdefs.h >>conftest.$ac_ext
29522cat >>conftest.$ac_ext <<_ACEOF
29523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029524$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029525typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029526int
29527main ()
29528{
Reid Spencera773bd52006-08-04 18:18:08 +000029529if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029530 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029531if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029532 return 0;
29533 ;
29534 return 0;
29535}
29536_ACEOF
29537rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029538if { (ac_try="$ac_compile"
29539case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029546 grep -v '^ *+' conftest.er1 >conftest.err
29547 rm -f conftest.er1
29548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555esac
29556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029562 { (case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29565esac
29566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ac_cv_type_size_t=yes
29572else
29573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029574sed 's/^/| /' conftest.$ac_ext >&5
29575
Reid Spencera773bd52006-08-04 18:18:08 +000029576 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029577fi
Reid Spencera773bd52006-08-04 18:18:08 +000029578
29579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029580fi
Reid Spencera773bd52006-08-04 18:18:08 +000029581{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29582echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029583if test $ac_cv_type_size_t = yes; then
29584 :
29585else
29586
29587cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029588#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029589_ACEOF
29590
29591fi
29592
Reid Spencera773bd52006-08-04 18:18:08 +000029593{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29594echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029595if test "${ac_cv_type_signal+set}" = set; then
29596 echo $ECHO_N "(cached) $ECHO_C" >&6
29597else
29598 cat >conftest.$ac_ext <<_ACEOF
29599/* confdefs.h. */
29600_ACEOF
29601cat confdefs.h >>conftest.$ac_ext
29602cat >>conftest.$ac_ext <<_ACEOF
29603/* end confdefs.h. */
29604#include <sys/types.h>
29605#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029606
29607int
29608main ()
29609{
Reid Spencera773bd52006-08-04 18:18:08 +000029610return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029611 ;
29612 return 0;
29613}
29614_ACEOF
29615rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029616if { (ac_try="$ac_compile"
29617case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29620esac
29621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029623 ac_status=$?
29624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29630 { (case "(($ac_try" in
29631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632 *) ac_try_echo=$ac_try;;
29633esac
29634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; } &&
29639 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029640 { (case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029646 ac_status=$?
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029649 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029650else
29651 echo "$as_me: failed program was:" >&5
29652sed 's/^/| /' conftest.$ac_ext >&5
29653
Reid Spencera773bd52006-08-04 18:18:08 +000029654 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029655fi
Reid Spencera773bd52006-08-04 18:18:08 +000029656
29657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029658fi
Reid Spencera773bd52006-08-04 18:18:08 +000029659{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29660echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029661
29662cat >>confdefs.h <<_ACEOF
29663#define RETSIGTYPE $ac_cv_type_signal
29664_ACEOF
29665
29666
Reid Spencera773bd52006-08-04 18:18:08 +000029667{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29668echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029669if test "${ac_cv_struct_tm+set}" = set; then
29670 echo $ECHO_N "(cached) $ECHO_C" >&6
29671else
29672 cat >conftest.$ac_ext <<_ACEOF
29673/* confdefs.h. */
29674_ACEOF
29675cat confdefs.h >>conftest.$ac_ext
29676cat >>conftest.$ac_ext <<_ACEOF
29677/* end confdefs.h. */
29678#include <sys/types.h>
29679#include <time.h>
29680
29681int
29682main ()
29683{
29684struct tm *tp; tp->tm_sec;
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029690if { (ac_try="$ac_compile"
29691case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29694esac
29695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029697 ac_status=$?
29698 grep -v '^ *+' conftest.er1 >conftest.err
29699 rm -f conftest.er1
29700 cat conftest.err >&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29704 { (case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29707esac
29708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; } &&
29713 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029714 { (case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29717esac
29718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29719 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723 ac_cv_struct_tm=time.h
29724else
29725 echo "$as_me: failed program was:" >&5
29726sed 's/^/| /' conftest.$ac_ext >&5
29727
Reid Spencera773bd52006-08-04 18:18:08 +000029728 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029729fi
Reid Spencera773bd52006-08-04 18:18:08 +000029730
29731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029732fi
Reid Spencera773bd52006-08-04 18:18:08 +000029733{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29734echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029735if test $ac_cv_struct_tm = sys/time.h; then
29736
29737cat >>confdefs.h <<\_ACEOF
29738#define TM_IN_SYS_TIME 1
29739_ACEOF
29740
29741fi
29742
Reid Spencera773bd52006-08-04 18:18:08 +000029743{ echo "$as_me:$LINENO: checking for int64_t" >&5
29744echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029745if test "${ac_cv_type_int64_t+set}" = set; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
29747else
29748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029754$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029755typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029756int
29757main ()
29758{
Reid Spencera773bd52006-08-04 18:18:08 +000029759if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029760 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029761if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029762 return 0;
29763 ;
29764 return 0;
29765}
29766_ACEOF
29767rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029768if { (ac_try="$ac_compile"
29769case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772esac
29773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785esac
29786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029792 { (case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29795esac
29796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 ac_cv_type_int64_t=yes
29802else
29803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029804sed 's/^/| /' conftest.$ac_ext >&5
29805
Reid Spencera773bd52006-08-04 18:18:08 +000029806 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029807fi
Reid Spencera773bd52006-08-04 18:18:08 +000029808
29809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029810fi
Reid Spencera773bd52006-08-04 18:18:08 +000029811{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29812echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029813if test $ac_cv_type_int64_t = yes; then
29814
29815cat >>confdefs.h <<_ACEOF
29816#define HAVE_INT64_T 1
29817_ACEOF
29818
29819
29820else
29821 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29822echo "$as_me: error: Type int64_t required but not found" >&2;}
29823 { (exit 1); exit 1; }; }
29824fi
29825
Reid Spencera773bd52006-08-04 18:18:08 +000029826{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29827echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029828if test "${ac_cv_type_uint64_t+set}" = set; then
29829 echo $ECHO_N "(cached) $ECHO_C" >&6
29830else
29831 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029832/* confdefs.h. */
29833_ACEOF
29834cat confdefs.h >>conftest.$ac_ext
29835cat >>conftest.$ac_ext <<_ACEOF
29836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029837$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029838typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029839int
29840main ()
29841{
Reid Spencera773bd52006-08-04 18:18:08 +000029842if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029843 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029844if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029845 return 0;
29846 ;
29847 return 0;
29848}
29849_ACEOF
29850rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029851if { (ac_try="$ac_compile"
29852case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855esac
29856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029859 grep -v '^ *+' conftest.er1 >conftest.err
29860 rm -f conftest.er1
29861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29865 { (case "(($ac_try" in
29866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29867 *) ac_try_echo=$ac_try;;
29868esac
29869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29870 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029875 { (case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29878esac
29879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29884 ac_cv_type_uint64_t=yes
29885else
29886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029887sed 's/^/| /' conftest.$ac_ext >&5
29888
Reid Spencera773bd52006-08-04 18:18:08 +000029889 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029890fi
Reid Spencera773bd52006-08-04 18:18:08 +000029891
29892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029893fi
Reid Spencera773bd52006-08-04 18:18:08 +000029894{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29895echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029896if test $ac_cv_type_uint64_t = yes; then
29897
29898cat >>confdefs.h <<_ACEOF
29899#define HAVE_UINT64_T 1
29900_ACEOF
29901
29902
29903else
Reid Spencera773bd52006-08-04 18:18:08 +000029904 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29905echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029906if test "${ac_cv_type_u_int64_t+set}" = set; then
29907 echo $ECHO_N "(cached) $ECHO_C" >&6
29908else
29909 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029910/* confdefs.h. */
29911_ACEOF
29912cat confdefs.h >>conftest.$ac_ext
29913cat >>conftest.$ac_ext <<_ACEOF
29914/* end confdefs.h. */
29915$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029916typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029917int
29918main ()
29919{
Reid Spencera773bd52006-08-04 18:18:08 +000029920if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029921 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029922if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029923 return 0;
29924 ;
29925 return 0;
29926}
29927_ACEOF
29928rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029929if { (ac_try="$ac_compile"
29930case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29933esac
29934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29935 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029936 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029937 grep -v '^ *+' conftest.er1 >conftest.err
29938 rm -f conftest.er1
29939 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29943 { (case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29946esac
29947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; } &&
29952 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029953 { (case "(($ac_try" in
29954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955 *) ac_try_echo=$ac_try;;
29956esac
29957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029959 ac_status=$?
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); }; }; then
29962 ac_cv_type_u_int64_t=yes
29963else
29964 echo "$as_me: failed program was:" >&5
29965sed 's/^/| /' conftest.$ac_ext >&5
29966
Reid Spencera773bd52006-08-04 18:18:08 +000029967 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029968fi
Reid Spencera773bd52006-08-04 18:18:08 +000029969
29970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029971fi
Reid Spencera773bd52006-08-04 18:18:08 +000029972{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29973echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029974if test $ac_cv_type_u_int64_t = yes; then
29975
29976cat >>confdefs.h <<_ACEOF
29977#define HAVE_U_INT64_T 1
29978_ACEOF
29979
29980
Misha Brukmanceca9042004-09-02 23:02:30 +000029981else
29982 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29983echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29984 { (exit 1); exit 1; }; }
29985fi
29986
John Criswell679ff312004-09-02 18:44:44 +000029987fi
29988
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029989
29990
29991
29992
29993
29994
29995
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029996
29997
Reid Spencerdf3be822006-01-23 08:15:53 +000029998for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029999do
30000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030001{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30003if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030004 echo $ECHO_N "(cached) $ECHO_C" >&6
30005else
30006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030007/* confdefs.h. */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30014#define $ac_func innocuous_$ac_func
30015
30016/* System header to define __stub macros and hopefully few prototypes,
30017 which can conflict with char $ac_func (); below.
30018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30019 <limits.h> exists even on freestanding compilers. */
30020
30021#ifdef __STDC__
30022# include <limits.h>
30023#else
30024# include <assert.h>
30025#endif
30026
30027#undef $ac_func
30028
Reid Spencera773bd52006-08-04 18:18:08 +000030029/* Override any GCC internal prototype to avoid an error.
30030 Use char because int might match the return type of a GCC
30031 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030032#ifdef __cplusplus
30033extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030034#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030035char $ac_func ();
30036/* The GNU C library defines this for functions which it implements
30037 to always fail with ENOSYS. Some functions are actually named
30038 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030039#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030040choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041#endif
John Criswell7a73b802003-06-30 21:59:07 +000030042
John Criswell7a73b802003-06-30 21:59:07 +000030043int
30044main ()
30045{
Reid Spencera773bd52006-08-04 18:18:08 +000030046return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030047 ;
30048 return 0;
30049}
30050_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030051rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030052if { (ac_try="$ac_link"
30053case "(($ac_try" in
30054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055 *) ac_try_echo=$ac_try;;
30056esac
30057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 grep -v '^ *+' conftest.er1 >conftest.err
30061 rm -f conftest.er1
30062 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30066 { (case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030075 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030076 { (case "(($ac_try" in
30077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30078 *) ac_try_echo=$ac_try;;
30079esac
30080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30081 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030082 ac_status=$?
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030085 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030086else
30087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030088sed 's/^/| /' conftest.$ac_ext >&5
30089
Reid Spencera773bd52006-08-04 18:18:08 +000030090 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030091fi
Reid Spencera773bd52006-08-04 18:18:08 +000030092
30093rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030094 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030095fi
Reid Spencera773bd52006-08-04 18:18:08 +000030096ac_res=`eval echo '${'$as_ac_var'}'`
30097 { echo "$as_me:$LINENO: result: $ac_res" >&5
30098echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030099if test `eval echo '${'$as_ac_var'}'` = yes; then
30100 cat >>confdefs.h <<_ACEOF
30101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030102_ACEOF
30103
30104fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030105done
John Criswell7a73b802003-06-30 21:59:07 +000030106
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030107
30108
30109
Reid Spencer6af3d262004-12-15 04:01:48 +000030110
30111
Reid Spencer59473af2004-12-25 07:31:29 +000030112
Reid Spencerdf3be822006-01-23 08:15:53 +000030113for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
30114do
30115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120else
30121 cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30129#define $ac_func innocuous_$ac_func
30130
30131/* System header to define __stub macros and hopefully few prototypes,
30132 which can conflict with char $ac_func (); below.
30133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30134 <limits.h> exists even on freestanding compilers. */
30135
30136#ifdef __STDC__
30137# include <limits.h>
30138#else
30139# include <assert.h>
30140#endif
30141
30142#undef $ac_func
30143
Reid Spencera773bd52006-08-04 18:18:08 +000030144/* Override any GCC internal prototype to avoid an error.
30145 Use char because int might match the return type of a GCC
30146 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030147#ifdef __cplusplus
30148extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030149#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030150char $ac_func ();
30151/* The GNU C library defines this for functions which it implements
30152 to always fail with ENOSYS. Some functions are actually named
30153 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030154#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030155choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030156#endif
30157
30158int
30159main ()
30160{
Reid Spencera773bd52006-08-04 18:18:08 +000030161return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030162 ;
30163 return 0;
30164}
30165_ACEOF
30166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030167if { (ac_try="$ac_link"
30168case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030174 ac_status=$?
30175 grep -v '^ *+' conftest.er1 >conftest.err
30176 rm -f conftest.er1
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30184esac
30185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 eval "$as_ac_var=yes"
30201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
Reid Spencera773bd52006-08-04 18:18:08 +000030205 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030206fi
Reid Spencera773bd52006-08-04 18:18:08 +000030207
30208rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030209 conftest$ac_exeext conftest.$ac_ext
30210fi
Reid Spencera773bd52006-08-04 18:18:08 +000030211ac_res=`eval echo '${'$as_ac_var'}'`
30212 { echo "$as_me:$LINENO: result: $ac_res" >&5
30213echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030214if test `eval echo '${'$as_ac_var'}'` = yes; then
30215 cat >>confdefs.h <<_ACEOF
30216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30217_ACEOF
30218
30219fi
30220done
30221
30222
30223
30224
30225
30226
30227
30228
30229for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030230do
30231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030232{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30234if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030235 echo $ECHO_N "(cached) $ECHO_C" >&6
30236else
30237 cat >conftest.$ac_ext <<_ACEOF
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30245#define $ac_func innocuous_$ac_func
30246
30247/* System header to define __stub macros and hopefully few prototypes,
30248 which can conflict with char $ac_func (); below.
30249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30250 <limits.h> exists even on freestanding compilers. */
30251
30252#ifdef __STDC__
30253# include <limits.h>
30254#else
30255# include <assert.h>
30256#endif
30257
30258#undef $ac_func
30259
Reid Spencera773bd52006-08-04 18:18:08 +000030260/* Override any GCC internal prototype to avoid an error.
30261 Use char because int might match the return type of a GCC
30262 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030263#ifdef __cplusplus
30264extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030265#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030266char $ac_func ();
30267/* The GNU C library defines this for functions which it implements
30268 to always fail with ENOSYS. Some functions are actually named
30269 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030270#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030271choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030272#endif
30273
30274int
30275main ()
30276{
Reid Spencera773bd52006-08-04 18:18:08 +000030277return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030278 ;
30279 return 0;
30280}
30281_ACEOF
30282rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030283if { (ac_try="$ac_link"
30284case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030290 ac_status=$?
30291 grep -v '^ *+' conftest.er1 >conftest.err
30292 rm -f conftest.er1
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300esac
30301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; } &&
30306 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030307 { (case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30310esac
30311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 eval "$as_ac_var=yes"
30317else
30318 echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
Reid Spencera773bd52006-08-04 18:18:08 +000030321 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030322fi
Reid Spencera773bd52006-08-04 18:18:08 +000030323
30324rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030325 conftest$ac_exeext conftest.$ac_ext
30326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327ac_res=`eval echo '${'$as_ac_var'}'`
30328 { echo "$as_me:$LINENO: result: $ac_res" >&5
30329echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030330if test `eval echo '${'$as_ac_var'}'` = yes; then
30331 cat >>confdefs.h <<_ACEOF
30332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30333_ACEOF
30334
30335fi
30336done
30337
30338
Reid Spencerba46ca32004-12-31 05:49:15 +000030339
30340
Chris Lattner0b142592005-11-14 06:57:34 +000030341
Chris Lattner511f11d2005-11-14 07:25:50 +000030342for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030343do
30344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30358#define $ac_func innocuous_$ac_func
30359
30360/* System header to define __stub macros and hopefully few prototypes,
30361 which can conflict with char $ac_func (); below.
30362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30363 <limits.h> exists even on freestanding compilers. */
30364
30365#ifdef __STDC__
30366# include <limits.h>
30367#else
30368# include <assert.h>
30369#endif
30370
30371#undef $ac_func
30372
Reid Spencera773bd52006-08-04 18:18:08 +000030373/* Override any GCC internal prototype to avoid an error.
30374 Use char because int might match the return type of a GCC
30375 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030376#ifdef __cplusplus
30377extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030378#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030379char $ac_func ();
30380/* The GNU C library defines this for functions which it implements
30381 to always fail with ENOSYS. Some functions are actually named
30382 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030383#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030384choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030385#endif
John Criswell7a73b802003-06-30 21:59:07 +000030386
John Criswell7a73b802003-06-30 21:59:07 +000030387int
30388main ()
30389{
Reid Spencera773bd52006-08-04 18:18:08 +000030390return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030391 ;
30392 return 0;
30393}
30394_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030395rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030396if { (ac_try="$ac_link"
30397case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30400esac
30401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030404 grep -v '^ *+' conftest.er1 >conftest.err
30405 rm -f conftest.er1
30406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30413esac
30414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030419 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30423esac
30424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030429 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030430else
30431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030432sed 's/^/| /' conftest.$ac_ext >&5
30433
Reid Spencera773bd52006-08-04 18:18:08 +000030434 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030435fi
Reid Spencera773bd52006-08-04 18:18:08 +000030436
30437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030439fi
Reid Spencera773bd52006-08-04 18:18:08 +000030440ac_res=`eval echo '${'$as_ac_var'}'`
30441 { echo "$as_me:$LINENO: result: $ac_res" >&5
30442echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030443if test `eval echo '${'$as_ac_var'}'` = yes; then
30444 cat >>confdefs.h <<_ACEOF
30445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030446_ACEOF
30447
30448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449done
John Criswell7a73b802003-06-30 21:59:07 +000030450
Reid Spencercdb08a32006-06-05 16:11:07 +000030451
30452
30453
30454
Reid Spencerafa22e22006-12-10 23:29:19 +000030455for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030456do
30457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
30463 cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30471#define $ac_func innocuous_$ac_func
30472
30473/* System header to define __stub macros and hopefully few prototypes,
30474 which can conflict with char $ac_func (); below.
30475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30476 <limits.h> exists even on freestanding compilers. */
30477
30478#ifdef __STDC__
30479# include <limits.h>
30480#else
30481# include <assert.h>
30482#endif
30483
30484#undef $ac_func
30485
Reid Spencera773bd52006-08-04 18:18:08 +000030486/* Override any GCC internal prototype to avoid an error.
30487 Use char because int might match the return type of a GCC
30488 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030489#ifdef __cplusplus
30490extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030491#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030492char $ac_func ();
30493/* The GNU C library defines this for functions which it implements
30494 to always fail with ENOSYS. Some functions are actually named
30495 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030496#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030497choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030498#endif
30499
30500int
30501main ()
30502{
Reid Spencera773bd52006-08-04 18:18:08 +000030503return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030504 ;
30505 return 0;
30506}
30507_ACEOF
30508rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030509if { (ac_try="$ac_link"
30510case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30513esac
30514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030516 ac_status=$?
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30526esac
30527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030533 { (case "(($ac_try" in
30534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535 *) ac_try_echo=$ac_try;;
30536esac
30537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542 eval "$as_ac_var=yes"
30543else
30544 echo "$as_me: failed program was:" >&5
30545sed 's/^/| /' conftest.$ac_ext >&5
30546
Reid Spencera773bd52006-08-04 18:18:08 +000030547 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030548fi
Reid Spencera773bd52006-08-04 18:18:08 +000030549
30550rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030551 conftest$ac_exeext conftest.$ac_ext
30552fi
Reid Spencera773bd52006-08-04 18:18:08 +000030553ac_res=`eval echo '${'$as_ac_var'}'`
30554 { echo "$as_me:$LINENO: result: $ac_res" >&5
30555echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030556if test `eval echo '${'$as_ac_var'}'` = yes; then
30557 cat >>confdefs.h <<_ACEOF
30558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30559_ACEOF
30560
30561fi
30562done
30563
Reid Spencera773bd52006-08-04 18:18:08 +000030564{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30565echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030566if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030569 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030570ac_cpp='$CPP $CPPFLAGS'
30571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30573ac_compiler_gnu=$ac_cv_c_compiler_gnu
30574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030575 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030576 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030577else
30578 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030579
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030580 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030585
John Criswella0137d32003-10-13 16:22:01 +000030586#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030587#include <stdlib.h>
30588
John Criswella0137d32003-10-13 16:22:01 +000030589int
30590main ()
30591{
30592
Reid Spencer2706f8c2004-09-19 23:53:36 +000030593volatile double A, B;
30594char Buffer[100];
30595A = 1;
30596A /= 10.0;
30597sprintf(Buffer, "%a", A);
30598B = atof(Buffer);
30599if (A != B)
30600 return (1);
30601if (A != 0x1.999999999999ap-4)
30602 return (1);
30603return (0);
John Criswella0137d32003-10-13 16:22:01 +000030604 ;
30605 return 0;
30606}
30607_ACEOF
30608rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030609if { (ac_try="$ac_link"
30610case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613esac
30614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030619 { (case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30622esac
30623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030628 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030629else
30630 echo "$as_me: program exited with status $ac_status" >&5
30631echo "$as_me: failed program was:" >&5
30632sed 's/^/| /' conftest.$ac_ext >&5
30633
30634( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030635llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030636fi
Reid Spencera773bd52006-08-04 18:18:08 +000030637rm -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 +000030638fi
Reid Spencera773bd52006-08-04 18:18:08 +000030639
30640
Reid Spencer2706f8c2004-09-19 23:53:36 +000030641 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030642ac_cpp='$CPP $CPPFLAGS'
30643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30645ac_compiler_gnu=$ac_cv_c_compiler_gnu
30646
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030647fi
Reid Spencera773bd52006-08-04 18:18:08 +000030648{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30649echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030650 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030651
30652cat >>confdefs.h <<\_ACEOF
30653#define HAVE_PRINTF_A 1
30654_ACEOF
30655
Reid Spencer2706f8c2004-09-19 23:53:36 +000030656 fi
John Criswella0137d32003-10-13 16:22:01 +000030657
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030658# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30659# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030660{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30661echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030663 echo $ECHO_N "(cached) $ECHO_C" >&6
30664else
John Criswell0021c312004-02-13 21:57:29 +000030665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030666/* confdefs.h. */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030671#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030672int
30673main ()
30674{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030675char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030676 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030677 ;
30678 return 0;
30679}
30680_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030681rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030682if { (ac_try="$ac_link"
30683case "(($ac_try" in
30684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30685 *) ac_try_echo=$ac_try;;
30686esac
30687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30688 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030690 grep -v '^ *+' conftest.er1 >conftest.err
30691 rm -f conftest.er1
30692 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30696 { (case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30699esac
30700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030702 ac_status=$?
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030705 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030706 { (case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30709esac
30710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030715 ac_cv_working_alloca_h=yes
30716else
30717 echo "$as_me: failed program was:" >&5
30718sed 's/^/| /' conftest.$ac_ext >&5
30719
Reid Spencera773bd52006-08-04 18:18:08 +000030720 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030721fi
Reid Spencera773bd52006-08-04 18:18:08 +000030722
30723rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030724 conftest$ac_exeext conftest.$ac_ext
30725fi
Reid Spencera773bd52006-08-04 18:18:08 +000030726{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30727echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030728if test $ac_cv_working_alloca_h = yes; then
30729
30730cat >>confdefs.h <<\_ACEOF
30731#define HAVE_ALLOCA_H 1
30732_ACEOF
30733
30734fi
30735
Reid Spencera773bd52006-08-04 18:18:08 +000030736{ echo "$as_me:$LINENO: checking for alloca" >&5
30737echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030738if test "${ac_cv_func_alloca_works+set}" = set; then
30739 echo $ECHO_N "(cached) $ECHO_C" >&6
30740else
30741 cat >conftest.$ac_ext <<_ACEOF
30742/* confdefs.h. */
30743_ACEOF
30744cat confdefs.h >>conftest.$ac_ext
30745cat >>conftest.$ac_ext <<_ACEOF
30746/* end confdefs.h. */
30747#ifdef __GNUC__
30748# define alloca __builtin_alloca
30749#else
30750# ifdef _MSC_VER
30751# include <malloc.h>
30752# define alloca _alloca
30753# else
30754# if HAVE_ALLOCA_H
30755# include <alloca.h>
30756# else
30757# ifdef _AIX
30758 #pragma alloca
30759# else
30760# ifndef alloca /* predefined by HP cc +Olibcalls */
30761char *alloca ();
30762# endif
30763# endif
30764# endif
30765# endif
30766#endif
30767
30768int
30769main ()
30770{
30771char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030772 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030773 ;
30774 return 0;
30775}
30776_ACEOF
30777rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030778if { (ac_try="$ac_link"
30779case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30782esac
30783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785 ac_status=$?
30786 grep -v '^ *+' conftest.er1 >conftest.err
30787 rm -f conftest.er1
30788 cat conftest.err >&5
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30792 { (case "(($ac_try" in
30793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794 *) ac_try_echo=$ac_try;;
30795esac
30796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; } &&
30801 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030802 { (case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30805esac
30806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030808 ac_status=$?
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); }; }; then
30811 ac_cv_func_alloca_works=yes
30812else
30813 echo "$as_me: failed program was:" >&5
30814sed 's/^/| /' conftest.$ac_ext >&5
30815
Reid Spencera773bd52006-08-04 18:18:08 +000030816 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030817fi
Reid Spencera773bd52006-08-04 18:18:08 +000030818
30819rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030820 conftest$ac_exeext conftest.$ac_ext
30821fi
Reid Spencera773bd52006-08-04 18:18:08 +000030822{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030824
30825if test $ac_cv_func_alloca_works = yes; then
30826
30827cat >>confdefs.h <<\_ACEOF
30828#define HAVE_ALLOCA 1
30829_ACEOF
30830
30831else
30832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30833# that cause trouble. Some versions do not even contain alloca or
30834# contain a buggy version. If you still want to use their alloca,
30835# use ar to extract alloca.o from them instead of compiling alloca.c.
30836
Reid Spencera773bd52006-08-04 18:18:08 +000030837ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030838
30839cat >>confdefs.h <<\_ACEOF
30840#define C_ALLOCA 1
30841_ACEOF
30842
30843
Reid Spencera773bd52006-08-04 18:18:08 +000030844{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030846if test "${ac_cv_os_cray+set}" = set; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030855#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030856webecray
30857#else
30858wenotbecray
30859#endif
30860
30861_ACEOF
30862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30863 $EGREP "webecray" >/dev/null 2>&1; then
30864 ac_cv_os_cray=yes
30865else
30866 ac_cv_os_cray=no
30867fi
30868rm -f conftest*
30869
30870fi
Reid Spencera773bd52006-08-04 18:18:08 +000030871{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30872echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030873if test $ac_cv_os_cray = yes; then
30874 for ac_func in _getb67 GETB67 getb67; do
30875 as_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 Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +000030907#ifdef __cplusplus
30908extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030909#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +000030915choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030916#endif
30917
30918int
30919main ()
30920{
Reid Spencera773bd52006-08-04 18:18:08 +000030921return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +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
30939 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030940 { 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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030951 { (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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 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 Spencer5e1d9a52004-11-25 04:51:04 +000030966fi
Reid Spencera773bd52006-08-04 18:18:08 +000030967
30968rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +000030974if test `eval echo '${'$as_ac_var'}'` = yes; then
30975
30976cat >>confdefs.h <<_ACEOF
30977#define CRAY_STACKSEG_END $ac_func
30978_ACEOF
30979
30980 break
30981fi
30982
30983 done
30984fi
30985
Reid Spencera773bd52006-08-04 18:18:08 +000030986{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30987echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030988if test "${ac_cv_c_stack_direction+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30990else
30991 if test "$cross_compiling" = yes; then
30992 ac_cv_c_stack_direction=0
30993else
30994 cat >conftest.$ac_ext <<_ACEOF
30995/* confdefs.h. */
30996_ACEOF
30997cat confdefs.h >>conftest.$ac_ext
30998cat >>conftest.$ac_ext <<_ACEOF
30999/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031000$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031001int
31002find_stack_direction ()
31003{
31004 static char *addr = 0;
31005 auto char dummy;
31006 if (addr == 0)
31007 {
31008 addr = &dummy;
31009 return find_stack_direction ();
31010 }
John Criswell0021c312004-02-13 21:57:29 +000031011 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031012 return (&dummy > addr) ? 1 : -1;
31013}
John Criswell0021c312004-02-13 21:57:29 +000031014
John Criswell0021c312004-02-13 21:57:29 +000031015int
31016main ()
31017{
Reid Spencera773bd52006-08-04 18:18:08 +000031018 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031019}
31020_ACEOF
31021rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031022if { (ac_try="$ac_link"
31023case "(($ac_try" in
31024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025 *) ac_try_echo=$ac_try;;
31026esac
31027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031032 { (case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31035esac
31036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031041 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031042else
31043 echo "$as_me: program exited with status $ac_status" >&5
31044echo "$as_me: failed program was:" >&5
31045sed 's/^/| /' conftest.$ac_ext >&5
31046
31047( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031048ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031049fi
Reid Spencera773bd52006-08-04 18:18:08 +000031050rm -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 +000031051fi
Reid Spencera773bd52006-08-04 18:18:08 +000031052
31053
John Criswell0021c312004-02-13 21:57:29 +000031054fi
Reid Spencera773bd52006-08-04 18:18:08 +000031055{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31056echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031057
31058cat >>confdefs.h <<_ACEOF
31059#define STACK_DIRECTION $ac_cv_c_stack_direction
31060_ACEOF
31061
31062
John Criswell0021c312004-02-13 21:57:29 +000031063fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031064
31065
Reid Spencera773bd52006-08-04 18:18:08 +000031066{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31067echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031068if test "${ac_cv_func_rand48+set}" = set; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
31070else
Reid Spencera773bd52006-08-04 18:18:08 +000031071 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031072ac_cpp='$CXXCPP $CPPFLAGS'
31073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31076
31077 cat >conftest.$ac_ext <<_ACEOF
31078/* confdefs.h. */
31079_ACEOF
31080cat confdefs.h >>conftest.$ac_ext
31081cat >>conftest.$ac_ext <<_ACEOF
31082/* end confdefs.h. */
31083#include <stdlib.h>
31084int
31085main ()
31086{
31087srand48(0);lrand48();drand48();
31088 ;
31089 return 0;
31090}
31091_ACEOF
31092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031093if { (ac_try="$ac_compile"
31094case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031100 ac_status=$?
31101 grep -v '^ *+' conftest.er1 >conftest.err
31102 rm -f conftest.er1
31103 cat conftest.err >&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31107 { (case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31110esac
31111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031123 ac_status=$?
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_cv_func_rand48=yes
31127else
31128 echo "$as_me: failed program was:" >&5
31129sed 's/^/| /' conftest.$ac_ext >&5
31130
Reid Spencera773bd52006-08-04 18:18:08 +000031131 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031132fi
Reid Spencera773bd52006-08-04 18:18:08 +000031133
31134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031135 ac_ext=c
31136ac_cpp='$CPP $CPPFLAGS'
31137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31139ac_compiler_gnu=$ac_cv_c_compiler_gnu
31140
31141fi
Reid Spencera773bd52006-08-04 18:18:08 +000031142{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31143echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031144
31145if test "$ac_cv_func_rand48" = "yes" ; then
31146
31147cat >>confdefs.h <<\_ACEOF
31148#define HAVE_RAND48 1
31149_ACEOF
31150
31151fi
John Criswell0021c312004-02-13 21:57:29 +000031152
31153
Reid Spencera773bd52006-08-04 18:18:08 +000031154{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31155echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031156if test "${ac_cv_cxx_namespaces+set}" = set; then
31157 echo $ECHO_N "(cached) $ECHO_C" >&6
31158else
Reid Spencera773bd52006-08-04 18:18:08 +000031159 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031160ac_cpp='$CXXCPP $CPPFLAGS'
31161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31164
31165 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031166/* confdefs.h. */
31167_ACEOF
31168cat confdefs.h >>conftest.$ac_ext
31169cat >>conftest.$ac_ext <<_ACEOF
31170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031171namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031172int
31173main ()
31174{
31175using namespace Outer::Inner; return i;
31176 ;
31177 return 0;
31178}
31179_ACEOF
31180rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031181if { (ac_try="$ac_compile"
31182case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31185esac
31186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031189 grep -v '^ *+' conftest.er1 >conftest.err
31190 rm -f conftest.er1
31191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31195 { (case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31198esac
31199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031201 ac_status=$?
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; } &&
31204 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031205 { (case "(($ac_try" in
31206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31207 *) ac_try_echo=$ac_try;;
31208esac
31209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31210 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_cxx_namespaces=yes
31215else
31216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031217sed 's/^/| /' conftest.$ac_ext >&5
31218
Reid Spencera773bd52006-08-04 18:18:08 +000031219 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031220fi
Reid Spencera773bd52006-08-04 18:18:08 +000031221
31222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031223 ac_ext=c
31224ac_cpp='$CPP $CPPFLAGS'
31225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227ac_compiler_gnu=$ac_cv_c_compiler_gnu
31228
31229
31230fi
Reid Spencera773bd52006-08-04 18:18:08 +000031231{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31232echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031233if test "$ac_cv_cxx_namespaces" = yes; then
31234
31235cat >>confdefs.h <<\_ACEOF
31236#define HAVE_NAMESPACES
31237_ACEOF
31238
31239fi
31240
Reid Spencera773bd52006-08-04 18:18:08 +000031241{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31242echo $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 +000031243if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031244 echo $ECHO_N "(cached) $ECHO_C" >&6
31245else
31246
Reid Spencera773bd52006-08-04 18:18:08 +000031247 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031248ac_cpp='$CXXCPP $CPPFLAGS'
31249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31252
31253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031259#include <ext/hash_map>
31260#ifdef HAVE_NAMESPACES
31261using namespace std;
31262#endif
John Criswell7a73b802003-06-30 21:59:07 +000031263int
31264main ()
31265{
Brian Gaeke90583492003-11-10 03:06:28 +000031266hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031267 ;
31268 return 0;
31269}
31270_ACEOF
31271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031272if { (ac_try="$ac_compile"
31273case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031280 grep -v '^ *+' conftest.er1 >conftest.err
31281 rm -f conftest.er1
31282 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31286 { (case "(($ac_try" in
31287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31288 *) ac_try_echo=$ac_try;;
31289esac
31290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31291 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031292 ac_status=$?
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); }; } &&
31295 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031296 { (case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31299esac
31300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031302 ac_status=$?
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031305 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031306else
31307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031308sed 's/^/| /' conftest.$ac_ext >&5
31309
Reid Spencera773bd52006-08-04 18:18:08 +000031310 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031311fi
Reid Spencera773bd52006-08-04 18:18:08 +000031312
31313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031314 ac_ext=c
31315ac_cpp='$CPP $CPPFLAGS'
31316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31318ac_compiler_gnu=$ac_cv_c_compiler_gnu
31319
John Criswell7a73b802003-06-30 21:59:07 +000031320fi
Reid Spencera773bd52006-08-04 18:18:08 +000031321{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31322echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031323 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31324 then
John Criswell9f011862004-09-24 18:28:00 +000031325
31326cat >>confdefs.h <<\_ACEOF
31327#define HAVE_STD_EXT_HASH_MAP 1
31328_ACEOF
31329
31330 else
31331
31332cat >>confdefs.h <<\_ACEOF
31333#define HAVE_STD_EXT_HASH_MAP 0
31334_ACEOF
31335
Brian Gaeke90583492003-11-10 03:06:28 +000031336 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031337
Reid Spencera773bd52006-08-04 18:18:08 +000031338 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31339echo $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 +000031340if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31341 echo $ECHO_N "(cached) $ECHO_C" >&6
31342else
31343
Reid Spencera773bd52006-08-04 18:18:08 +000031344 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031345ac_cpp='$CXXCPP $CPPFLAGS'
31346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31349
31350 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031351/* confdefs.h. */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h. */
31356#include <ext/hash_map>
31357#ifdef HAVE_NAMESPACES
31358using namespace __gnu_cxx;
31359#endif
31360int
31361main ()
31362{
31363hash_map<int,int> t;
31364 ;
31365 return 0;
31366}
31367_ACEOF
31368rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031369if { (ac_try="$ac_compile"
31370case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31373esac
31374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; } &&
31392 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031393 { (case "(($ac_try" in
31394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395 *) ac_try_echo=$ac_try;;
31396esac
31397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 ac_cv_cxx_have_gnu_ext_hash_map=yes
31403else
31404 echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
Reid Spencera773bd52006-08-04 18:18:08 +000031407 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031408fi
Reid Spencera773bd52006-08-04 18:18:08 +000031409
31410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031411 ac_ext=c
31412ac_cpp='$CPP $CPPFLAGS'
31413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31415ac_compiler_gnu=$ac_cv_c_compiler_gnu
31416
31417fi
Reid Spencera773bd52006-08-04 18:18:08 +000031418{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31419echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031420 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31421 then
John Criswell9f011862004-09-24 18:28:00 +000031422
31423cat >>confdefs.h <<\_ACEOF
31424#define HAVE_GNU_EXT_HASH_MAP 1
31425_ACEOF
31426
31427 else
31428
31429cat >>confdefs.h <<\_ACEOF
31430#define HAVE_GNU_EXT_HASH_MAP 0
31431_ACEOF
31432
Brian Gaeke90583492003-11-10 03:06:28 +000031433 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031434
Reid Spencera773bd52006-08-04 18:18:08 +000031435 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31436echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031437if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31439else
John Criswell7a73b802003-06-30 21:59:07 +000031440
Reid Spencera773bd52006-08-04 18:18:08 +000031441 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031442ac_cpp='$CXXCPP $CPPFLAGS'
31443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31446
31447 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031448/* confdefs.h. */
31449_ACEOF
31450cat confdefs.h >>conftest.$ac_ext
31451cat >>conftest.$ac_ext <<_ACEOF
31452/* end confdefs.h. */
31453#include <hash_map>
31454int
31455main ()
31456{
31457hash_map<int,int> t;
31458 ;
31459 return 0;
31460}
31461_ACEOF
31462rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031463if { (ac_try="$ac_compile"
31464case "(($ac_try" in
31465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466 *) ac_try_echo=$ac_try;;
31467esac
31468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31477 { (case "(($ac_try" in
31478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479 *) ac_try_echo=$ac_try;;
31480esac
31481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031483 ac_status=$?
31484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); }; } &&
31486 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031487 { (case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
31496 ac_cv_cxx_have_global_hash_map=yes
31497else
31498 echo "$as_me: failed program was:" >&5
31499sed 's/^/| /' conftest.$ac_ext >&5
31500
Reid Spencera773bd52006-08-04 18:18:08 +000031501 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031502fi
Reid Spencera773bd52006-08-04 18:18:08 +000031503
31504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031505 ac_ext=c
31506ac_cpp='$CPP $CPPFLAGS'
31507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31509ac_compiler_gnu=$ac_cv_c_compiler_gnu
31510
31511fi
Reid Spencera773bd52006-08-04 18:18:08 +000031512{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31513echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031514 if test "$ac_cv_cxx_have_global_hash_map" = yes
31515 then
John Criswell9f011862004-09-24 18:28:00 +000031516
31517cat >>confdefs.h <<\_ACEOF
31518#define HAVE_GLOBAL_HASH_MAP 1
31519_ACEOF
31520
31521 else
31522
31523cat >>confdefs.h <<\_ACEOF
31524#define HAVE_GLOBAL_HASH_MAP 0
31525_ACEOF
31526
Brian Gaeke90583492003-11-10 03:06:28 +000031527 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031528
Reid Spencera773bd52006-08-04 18:18:08 +000031529{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31530echo $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 +000031531if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031532 echo $ECHO_N "(cached) $ECHO_C" >&6
31533else
31534
Reid Spencera773bd52006-08-04 18:18:08 +000031535 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031536ac_cpp='$CXXCPP $CPPFLAGS'
31537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31540
31541 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031542/* confdefs.h. */
31543_ACEOF
31544cat confdefs.h >>conftest.$ac_ext
31545cat >>conftest.$ac_ext <<_ACEOF
31546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031547#include <ext/hash_set>
31548#ifdef HAVE_NAMESPACES
31549using namespace std;
31550#endif
John Criswell7a73b802003-06-30 21:59:07 +000031551int
31552main ()
31553{
Brian Gaeke90583492003-11-10 03:06:28 +000031554hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031555 ;
31556 return 0;
31557}
31558_ACEOF
31559rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031560if { (ac_try="$ac_compile"
31561case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31564esac
31565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031568 grep -v '^ *+' conftest.er1 >conftest.err
31569 rm -f conftest.er1
31570 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31574 { (case "(($ac_try" in
31575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576 *) ac_try_echo=$ac_try;;
31577esac
31578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031580 ac_status=$?
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); }; } &&
31583 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031584 { (case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31587esac
31588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031590 ac_status=$?
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031593 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031594else
31595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031596sed 's/^/| /' conftest.$ac_ext >&5
31597
Reid Spencera773bd52006-08-04 18:18:08 +000031598 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031599fi
Reid Spencera773bd52006-08-04 18:18:08 +000031600
31601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031602 ac_ext=c
31603ac_cpp='$CPP $CPPFLAGS'
31604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31606ac_compiler_gnu=$ac_cv_c_compiler_gnu
31607
31608fi
Reid Spencera773bd52006-08-04 18:18:08 +000031609{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31610echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031611 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31612 then
John Criswell9f011862004-09-24 18:28:00 +000031613
31614cat >>confdefs.h <<\_ACEOF
31615#define HAVE_STD_EXT_HASH_SET 1
31616_ACEOF
31617
31618 else
31619
31620cat >>confdefs.h <<\_ACEOF
31621#define HAVE_STD_EXT_HASH_SET 0
31622_ACEOF
31623
Brian Gaeke90583492003-11-10 03:06:28 +000031624 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031625
Reid Spencera773bd52006-08-04 18:18:08 +000031626 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31627echo $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 +000031628if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31630else
31631
Reid Spencera773bd52006-08-04 18:18:08 +000031632 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031633ac_cpp='$CXXCPP $CPPFLAGS'
31634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31637
John Criswell7a73b802003-06-30 21:59:07 +000031638 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031639/* confdefs.h. */
31640_ACEOF
31641cat confdefs.h >>conftest.$ac_ext
31642cat >>conftest.$ac_ext <<_ACEOF
31643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031644#include <ext/hash_set>
31645#ifdef HAVE_NAMESPACES
31646using namespace __gnu_cxx;
31647#endif
John Criswell7a73b802003-06-30 21:59:07 +000031648int
31649main ()
31650{
Brian Gaeke90583492003-11-10 03:06:28 +000031651hash_set<int> t;
31652 ;
31653 return 0;
31654}
31655_ACEOF
31656rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031657if { (ac_try="$ac_compile"
31658case "(($ac_try" in
31659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660 *) ac_try_echo=$ac_try;;
31661esac
31662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031665 grep -v '^ *+' conftest.er1 >conftest.err
31666 rm -f conftest.er1
31667 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31671 { (case "(($ac_try" in
31672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673 *) ac_try_echo=$ac_try;;
31674esac
31675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031677 ac_status=$?
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; } &&
31680 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031681 { (case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684esac
31685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; }; then
31690 ac_cv_cxx_have_gnu_ext_hash_set=yes
31691else
31692 echo "$as_me: failed program was:" >&5
31693sed 's/^/| /' conftest.$ac_ext >&5
31694
Reid Spencera773bd52006-08-04 18:18:08 +000031695 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031696fi
Reid Spencera773bd52006-08-04 18:18:08 +000031697
31698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031699 ac_ext=c
31700ac_cpp='$CPP $CPPFLAGS'
31701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31703ac_compiler_gnu=$ac_cv_c_compiler_gnu
31704
31705fi
Reid Spencera773bd52006-08-04 18:18:08 +000031706{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31707echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031708 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31709 then
John Criswell9f011862004-09-24 18:28:00 +000031710
31711cat >>confdefs.h <<\_ACEOF
31712#define HAVE_GNU_EXT_HASH_SET 1
31713_ACEOF
31714
31715 else
31716
31717cat >>confdefs.h <<\_ACEOF
31718#define HAVE_GNU_EXT_HASH_SET 0
31719_ACEOF
31720
Brian Gaeke90583492003-11-10 03:06:28 +000031721 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031722
Reid Spencera773bd52006-08-04 18:18:08 +000031723 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31724echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031725if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31727else
31728
Reid Spencera773bd52006-08-04 18:18:08 +000031729 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031730ac_cpp='$CXXCPP $CPPFLAGS'
31731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31734
31735 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031736/* confdefs.h. */
31737_ACEOF
31738cat confdefs.h >>conftest.$ac_ext
31739cat >>conftest.$ac_ext <<_ACEOF
31740/* end confdefs.h. */
31741#include <hash_set>
31742int
31743main ()
31744{
John Criswell7a73b802003-06-30 21:59:07 +000031745hash_set<int> t; return 0;
31746 ;
31747 return 0;
31748}
31749_ACEOF
31750rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031751if { (ac_try="$ac_compile"
31752case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755esac
31756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31765 { (case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31768esac
31769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031771 ac_status=$?
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; } &&
31774 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031775 { (case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778esac
31779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031784 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031785else
31786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031787sed 's/^/| /' conftest.$ac_ext >&5
31788
Reid Spencera773bd52006-08-04 18:18:08 +000031789 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031790fi
Reid Spencera773bd52006-08-04 18:18:08 +000031791
31792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031793 ac_ext=c
31794ac_cpp='$CPP $CPPFLAGS'
31795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31797ac_compiler_gnu=$ac_cv_c_compiler_gnu
31798
John Criswell7a73b802003-06-30 21:59:07 +000031799fi
Reid Spencera773bd52006-08-04 18:18:08 +000031800{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31801echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031802 if test "$ac_cv_cxx_have_global_hash_set" = yes
31803 then
John Criswell9f011862004-09-24 18:28:00 +000031804
31805cat >>confdefs.h <<\_ACEOF
31806#define HAVE_GLOBAL_HASH_SET 1
31807_ACEOF
31808
31809 else
31810
31811cat >>confdefs.h <<\_ACEOF
31812#define HAVE_GLOBAL_HASH_SET 0
31813_ACEOF
31814
Brian Gaeke90583492003-11-10 03:06:28 +000031815 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031816
Reid Spencera773bd52006-08-04 18:18:08 +000031817{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31818echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031819if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31820 echo $ECHO_N "(cached) $ECHO_C" >&6
31821else
31822
Reid Spencera773bd52006-08-04 18:18:08 +000031823 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031824ac_cpp='$CXXCPP $CPPFLAGS'
31825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31828
31829 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031830/* confdefs.h. */
31831_ACEOF
31832cat confdefs.h >>conftest.$ac_ext
31833cat >>conftest.$ac_ext <<_ACEOF
31834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031835#include <iterator>
31836#ifdef HAVE_NAMESPACES
31837using namespace std;
31838#endif
John Criswell7a73b802003-06-30 21:59:07 +000031839int
31840main ()
31841{
31842iterator<int,int,int> t; return 0;
31843 ;
31844 return 0;
31845}
31846_ACEOF
31847rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031848if { (ac_try="$ac_compile"
31849case "(($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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031855 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031856 grep -v '^ *+' conftest.er1 >conftest.err
31857 rm -f conftest.er1
31858 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31862 { (case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31865esac
31866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; } &&
31871 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031872 { (case "(($ac_try" in
31873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874 *) ac_try_echo=$ac_try;;
31875esac
31876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31877 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031878 ac_status=$?
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); }; }; then
31881 ac_cv_cxx_have_std_iterator=yes
31882else
31883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031884sed 's/^/| /' conftest.$ac_ext >&5
31885
Reid Spencera773bd52006-08-04 18:18:08 +000031886 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031887fi
Reid Spencera773bd52006-08-04 18:18:08 +000031888
31889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031890 ac_ext=c
31891ac_cpp='$CPP $CPPFLAGS'
31892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31894ac_compiler_gnu=$ac_cv_c_compiler_gnu
31895
31896
31897fi
Reid Spencera773bd52006-08-04 18:18:08 +000031898{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31899echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031900if test "$ac_cv_cxx_have_std_iterator" = yes
31901then
John Criswell40468462004-09-24 21:19:06 +000031902
31903cat >>confdefs.h <<\_ACEOF
31904#define HAVE_STD_ITERATOR 1
31905_ACEOF
31906
31907else
31908
31909cat >>confdefs.h <<\_ACEOF
31910#define HAVE_STD_ITERATOR 0
31911_ACEOF
31912
John Criswell7a73b802003-06-30 21:59:07 +000031913fi
31914
Reid Spencera773bd52006-08-04 18:18:08 +000031915{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31916echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031917if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31918 echo $ECHO_N "(cached) $ECHO_C" >&6
31919else
31920
Reid Spencera773bd52006-08-04 18:18:08 +000031921 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031922ac_cpp='$CXXCPP $CPPFLAGS'
31923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31926
31927 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031928/* confdefs.h. */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031933#include <iterator>
31934#ifdef HAVE_NAMESPACES
31935using namespace std;
31936#endif
John Criswell7a73b802003-06-30 21:59:07 +000031937int
31938main ()
31939{
John Criswellc78022e2003-07-29 19:11:58 +000031940bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031941 ;
31942 return 0;
31943}
31944_ACEOF
31945rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031946if { (ac_try="$ac_compile"
31947case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31950esac
31951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031953 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031954 grep -v '^ *+' conftest.er1 >conftest.err
31955 rm -f conftest.er1
31956 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31960 { (case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963esac
31964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031966 ac_status=$?
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; } &&
31969 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31973esac
31974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; }; then
31979 ac_cv_cxx_have_bi_iterator=yes
31980else
31981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031982sed 's/^/| /' conftest.$ac_ext >&5
31983
Reid Spencera773bd52006-08-04 18:18:08 +000031984 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031985fi
Reid Spencera773bd52006-08-04 18:18:08 +000031986
31987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031988 ac_ext=c
31989ac_cpp='$CPP $CPPFLAGS'
31990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992ac_compiler_gnu=$ac_cv_c_compiler_gnu
31993
31994
31995fi
Reid Spencera773bd52006-08-04 18:18:08 +000031996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31997echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031998if test "$ac_cv_cxx_have_bi_iterator" = yes
31999then
John Criswell40468462004-09-24 21:19:06 +000032000
32001cat >>confdefs.h <<\_ACEOF
32002#define HAVE_BI_ITERATOR 1
32003_ACEOF
32004
32005else
32006
32007cat >>confdefs.h <<\_ACEOF
32008#define HAVE_BI_ITERATOR 0
32009_ACEOF
32010
John Criswell7a73b802003-06-30 21:59:07 +000032011fi
32012
Reid Spencera773bd52006-08-04 18:18:08 +000032013{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32014echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032015if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32017else
32018
Reid Spencera773bd52006-08-04 18:18:08 +000032019 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032020ac_cpp='$CXXCPP $CPPFLAGS'
32021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32024
32025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032026/* confdefs.h. */
32027_ACEOF
32028cat confdefs.h >>conftest.$ac_ext
32029cat >>conftest.$ac_ext <<_ACEOF
32030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032031#include <iterator>
32032#ifdef HAVE_NAMESPACES
32033using namespace std;
32034#endif
John Criswell7a73b802003-06-30 21:59:07 +000032035int
32036main ()
32037{
John Criswellc78022e2003-07-29 19:11:58 +000032038forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032039 ;
32040 return 0;
32041}
32042_ACEOF
32043rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032044if { (ac_try="$ac_compile"
32045case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058 { (case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32061esac
32062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; }; then
32077 ac_cv_cxx_have_fwd_iterator=yes
32078else
32079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032080sed 's/^/| /' conftest.$ac_ext >&5
32081
Reid Spencera773bd52006-08-04 18:18:08 +000032082 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032083fi
Reid Spencera773bd52006-08-04 18:18:08 +000032084
32085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032086 ac_ext=c
32087ac_cpp='$CPP $CPPFLAGS'
32088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090ac_compiler_gnu=$ac_cv_c_compiler_gnu
32091
32092
32093fi
Reid Spencera773bd52006-08-04 18:18:08 +000032094{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32095echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032096if test "$ac_cv_cxx_have_fwd_iterator" = yes
32097then
John Criswell40468462004-09-24 21:19:06 +000032098
32099cat >>confdefs.h <<\_ACEOF
32100#define HAVE_FWD_ITERATOR 1
32101_ACEOF
32102
32103else
32104
32105cat >>confdefs.h <<\_ACEOF
32106#define HAVE_FWD_ITERATOR 0
32107_ACEOF
32108
John Criswell7a73b802003-06-30 21:59:07 +000032109fi
32110
32111
Reid Spencera773bd52006-08-04 18:18:08 +000032112{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32113echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032114if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32115 echo $ECHO_N "(cached) $ECHO_C" >&6
32116else
Reid Spencera773bd52006-08-04 18:18:08 +000032117 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032118ac_cpp='$CXXCPP $CPPFLAGS'
32119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32122
Reid Spencerabec8f92004-10-27 23:03:44 +000032123 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032124/* confdefs.h. */
32125_ACEOF
32126cat confdefs.h >>conftest.$ac_ext
32127cat >>conftest.$ac_ext <<_ACEOF
32128/* end confdefs.h. */
32129#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032130int
32131main ()
32132{
32133float f; isnan(f);
32134 ;
32135 return 0;
32136}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032137_ACEOF
32138rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032139if { (ac_try="$ac_compile"
32140case "(($ac_try" in
32141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142 *) ac_try_echo=$ac_try;;
32143esac
32144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32153 { (case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32156esac
32157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032159 ac_status=$?
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); }; } &&
32162 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032163 { (case "(($ac_try" in
32164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165 *) ac_try_echo=$ac_try;;
32166esac
32167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032169 ac_status=$?
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); }; }; then
32172 ac_cv_func_isnan_in_math_h=yes
32173else
32174 echo "$as_me: failed program was:" >&5
32175sed 's/^/| /' conftest.$ac_ext >&5
32176
Reid Spencera773bd52006-08-04 18:18:08 +000032177 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032178fi
Reid Spencera773bd52006-08-04 18:18:08 +000032179
32180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032181 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032182ac_cpp='$CPP $CPPFLAGS'
32183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32185ac_compiler_gnu=$ac_cv_c_compiler_gnu
32186
32187fi
Reid Spencera773bd52006-08-04 18:18:08 +000032188{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32189echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032190
32191
32192if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032193
32194cat >>confdefs.h <<\_ACEOF
32195#define HAVE_ISNAN_IN_MATH_H 1
32196_ACEOF
32197
Reid Spencerabec8f92004-10-27 23:03:44 +000032198fi
32199
Reid Spencera773bd52006-08-04 18:18:08 +000032200{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32201echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032202if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32204else
Reid Spencera773bd52006-08-04 18:18:08 +000032205 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032206ac_cpp='$CXXCPP $CPPFLAGS'
32207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32210
Reid Spencerabec8f92004-10-27 23:03:44 +000032211 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>conftest.$ac_ext <<_ACEOF
32216/* end confdefs.h. */
32217#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032218int
32219main ()
32220{
32221float f; isnan(f);
32222 ;
32223 return 0;
32224}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032225_ACEOF
32226rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032227if { (ac_try="$ac_compile"
32228case "(($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_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032234 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32241 { (case "(($ac_try" in
32242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243 *) ac_try_echo=$ac_try;;
32244esac
32245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; } &&
32250 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032251 { (case "(($ac_try" in
32252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 *) ac_try_echo=$ac_try;;
32254esac
32255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; }; then
32260 ac_cv_func_isnan_in_cmath=yes
32261else
32262 echo "$as_me: failed program was:" >&5
32263sed 's/^/| /' conftest.$ac_ext >&5
32264
Reid Spencera773bd52006-08-04 18:18:08 +000032265 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032266fi
Reid Spencera773bd52006-08-04 18:18:08 +000032267
32268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032269 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032270ac_cpp='$CPP $CPPFLAGS'
32271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273ac_compiler_gnu=$ac_cv_c_compiler_gnu
32274
32275fi
Reid Spencera773bd52006-08-04 18:18:08 +000032276{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32277echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032278
32279if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032280
32281cat >>confdefs.h <<\_ACEOF
32282#define HAVE_ISNAN_IN_CMATH 1
32283_ACEOF
32284
Reid Spencerabec8f92004-10-27 23:03:44 +000032285fi
32286
Reid Spencera773bd52006-08-04 18:18:08 +000032287{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32288echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032289if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32290 echo $ECHO_N "(cached) $ECHO_C" >&6
32291else
Reid Spencera773bd52006-08-04 18:18:08 +000032292 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032293ac_cpp='$CXXCPP $CPPFLAGS'
32294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32297
Reid Spencerabec8f92004-10-27 23:03:44 +000032298 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032299/* confdefs.h. */
32300_ACEOF
32301cat confdefs.h >>conftest.$ac_ext
32302cat >>conftest.$ac_ext <<_ACEOF
32303/* end confdefs.h. */
32304#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032305int
32306main ()
32307{
32308float f; std::isnan(f);
32309 ;
32310 return 0;
32311}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032312_ACEOF
32313rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032314if { (ac_try="$ac_compile"
32315case "(($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_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032322 grep -v '^ *+' conftest.er1 >conftest.err
32323 rm -f conftest.er1
32324 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32328 { (case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32331esac
32332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032334 ac_status=$?
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; } &&
32337 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032338 { (case "(($ac_try" in
32339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340 *) ac_try_echo=$ac_try;;
32341esac
32342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; }; then
32347 ac_cv_func_std_isnan_in_cmath=yes
32348else
32349 echo "$as_me: failed program was:" >&5
32350sed 's/^/| /' conftest.$ac_ext >&5
32351
Reid Spencera773bd52006-08-04 18:18:08 +000032352 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032353fi
Reid Spencera773bd52006-08-04 18:18:08 +000032354
32355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032356 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032357ac_cpp='$CPP $CPPFLAGS'
32358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32360ac_compiler_gnu=$ac_cv_c_compiler_gnu
32361
32362fi
Reid Spencera773bd52006-08-04 18:18:08 +000032363{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32364echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032365
32366if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032367
32368cat >>confdefs.h <<\_ACEOF
32369#define HAVE_STD_ISNAN_IN_CMATH 1
32370_ACEOF
32371
Reid Spencerabec8f92004-10-27 23:03:44 +000032372fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032373
32374
Reid Spencera773bd52006-08-04 18:18:08 +000032375{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32376echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032377if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379else
Reid Spencera773bd52006-08-04 18:18:08 +000032380 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032381ac_cpp='$CXXCPP $CPPFLAGS'
32382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32385
Reid Spencerabec8f92004-10-27 23:03:44 +000032386 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032387/* confdefs.h. */
32388_ACEOF
32389cat confdefs.h >>conftest.$ac_ext
32390cat >>conftest.$ac_ext <<_ACEOF
32391/* end confdefs.h. */
32392#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032393int
32394main ()
32395{
32396float f; isinf(f);
32397 ;
32398 return 0;
32399}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032400_ACEOF
32401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032402if { (ac_try="$ac_compile"
32403case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32406esac
32407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032410 grep -v '^ *+' conftest.er1 >conftest.err
32411 rm -f conftest.er1
32412 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32416 { (case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32419esac
32420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; } &&
32425 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032426 { (case "(($ac_try" in
32427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428 *) ac_try_echo=$ac_try;;
32429esac
32430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 ac_cv_func_isinf_in_math_h=yes
32436else
32437 echo "$as_me: failed program was:" >&5
32438sed 's/^/| /' conftest.$ac_ext >&5
32439
Reid Spencera773bd52006-08-04 18:18:08 +000032440 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032441fi
Reid Spencera773bd52006-08-04 18:18:08 +000032442
32443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032444 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032445ac_cpp='$CPP $CPPFLAGS'
32446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32448ac_compiler_gnu=$ac_cv_c_compiler_gnu
32449
32450fi
Reid Spencera773bd52006-08-04 18:18:08 +000032451{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32452echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032453
32454if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032455
32456cat >>confdefs.h <<\_ACEOF
32457#define HAVE_ISINF_IN_MATH_H 1
32458_ACEOF
32459
Reid Spencerabec8f92004-10-27 23:03:44 +000032460fi
32461
Reid Spencera773bd52006-08-04 18:18:08 +000032462{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32463echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032464if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466else
Reid Spencera773bd52006-08-04 18:18:08 +000032467 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +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
Reid Spencerabec8f92004-10-27 23:03:44 +000032473 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
32479#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032480int
32481main ()
32482{
32483float f; isinf(f);
32484 ;
32485 return 0;
32486}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032487_ACEOF
32488rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032489if { (ac_try="$ac_compile"
32490case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32493esac
32494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032497 grep -v '^ *+' conftest.er1 >conftest.err
32498 rm -f conftest.er1
32499 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32506esac
32507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32516esac
32517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 ac_cv_func_isinf_in_cmath=yes
32523else
32524 echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
Reid Spencera773bd52006-08-04 18:18:08 +000032527 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032528fi
Reid Spencera773bd52006-08-04 18:18:08 +000032529
32530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032531 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032532ac_cpp='$CPP $CPPFLAGS'
32533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536
32537fi
Reid Spencera773bd52006-08-04 18:18:08 +000032538{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32539echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032540
32541if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032542
32543cat >>confdefs.h <<\_ACEOF
32544#define HAVE_ISINF_IN_CMATH 1
32545_ACEOF
32546
Reid Spencerabec8f92004-10-27 23:03:44 +000032547fi
32548
Reid Spencera773bd52006-08-04 18:18:08 +000032549{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32550echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032551if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32552 echo $ECHO_N "(cached) $ECHO_C" >&6
32553else
Reid Spencera773bd52006-08-04 18:18:08 +000032554 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032555ac_cpp='$CXXCPP $CPPFLAGS'
32556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559
Reid Spencerabec8f92004-10-27 23:03:44 +000032560 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032561/* confdefs.h. */
32562_ACEOF
32563cat confdefs.h >>conftest.$ac_ext
32564cat >>conftest.$ac_ext <<_ACEOF
32565/* end confdefs.h. */
32566#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032567int
32568main ()
32569{
32570float f; std::isinf(f)}
32571 ;
32572 return 0;
32573}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032574_ACEOF
32575rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032576if { (ac_try="$ac_compile"
32577case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32580esac
32581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032584 grep -v '^ *+' conftest.er1 >conftest.err
32585 rm -f conftest.er1
32586 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32590 { (case "(($ac_try" in
32591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592 *) ac_try_echo=$ac_try;;
32593esac
32594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; } &&
32599 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; }; then
32609 ac_cv_func_std_isinf_in_cmath=yes
32610else
32611 echo "$as_me: failed program was:" >&5
32612sed 's/^/| /' conftest.$ac_ext >&5
32613
Reid Spencera773bd52006-08-04 18:18:08 +000032614 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032615fi
Reid Spencera773bd52006-08-04 18:18:08 +000032616
32617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032618 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032619ac_cpp='$CPP $CPPFLAGS'
32620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623
32624fi
Reid Spencera773bd52006-08-04 18:18:08 +000032625{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32626echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032627
32628if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032629
32630cat >>confdefs.h <<\_ACEOF
32631#define HAVE_STD_ISINF_IN_CMATH 1
32632_ACEOF
32633
Reid Spencerabec8f92004-10-27 23:03:44 +000032634fi
32635
Reid Spencera773bd52006-08-04 18:18:08 +000032636{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32637echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032638if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32640else
Reid Spencera773bd52006-08-04 18:18:08 +000032641 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032642ac_cpp='$CXXCPP $CPPFLAGS'
32643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32646
Reid Spencerabec8f92004-10-27 23:03:44 +000032647 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032648/* confdefs.h. */
32649_ACEOF
32650cat confdefs.h >>conftest.$ac_ext
32651cat >>conftest.$ac_ext <<_ACEOF
32652/* end confdefs.h. */
32653#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032654int
32655main ()
32656{
32657float f; finite(f);
32658 ;
32659 return 0;
32660}
Brian Gaeked59a6472004-07-21 03:33:58 +000032661_ACEOF
32662rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032663if { (ac_try="$ac_compile"
32664case "(($ac_try" in
32665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666 *) ac_try_echo=$ac_try;;
32667esac
32668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32669 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032670 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032671 grep -v '^ *+' conftest.er1 >conftest.err
32672 rm -f conftest.er1
32673 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32677 { (case "(($ac_try" in
32678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32680esac
32681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032687 { (case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32690esac
32691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; }; then
32696 ac_cv_func_finite_in_ieeefp_h=yes
32697else
32698 echo "$as_me: failed program was:" >&5
32699sed 's/^/| /' conftest.$ac_ext >&5
32700
Reid Spencera773bd52006-08-04 18:18:08 +000032701 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032702fi
Reid Spencera773bd52006-08-04 18:18:08 +000032703
32704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032705 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032706ac_cpp='$CPP $CPPFLAGS'
32707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32709ac_compiler_gnu=$ac_cv_c_compiler_gnu
32710
32711fi
Reid Spencera773bd52006-08-04 18:18:08 +000032712{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32713echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032714
Brian Gaeke6802b552004-10-28 05:06:45 +000032715if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032716
32717cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032718#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032719_ACEOF
32720
Reid Spencerabec8f92004-10-27 23:03:44 +000032721fi
32722
32723
32724
Reid Spencer30fe5262007-01-20 07:48:49 +000032725if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032726
32727
32728for ac_header in stdlib.h unistd.h
32729do
32730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032735 echo $ECHO_N "(cached) $ECHO_C" >&6
32736fi
Reid Spencera773bd52006-08-04 18:18:08 +000032737ac_res=`eval echo '${'$as_ac_Header'}'`
32738 { echo "$as_me:$LINENO: result: $ac_res" >&5
32739echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032740else
32741 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032744cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032745/* confdefs.h. */
32746_ACEOF
32747cat confdefs.h >>conftest.$ac_ext
32748cat >>conftest.$ac_ext <<_ACEOF
32749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032750$ac_includes_default
32751#include <$ac_header>
32752_ACEOF
32753rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032754if { (ac_try="$ac_compile"
32755case "(($ac_try" in
32756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32757 *) ac_try_echo=$ac_try;;
32758esac
32759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32760 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032762 grep -v '^ *+' conftest.er1 >conftest.err
32763 rm -f conftest.er1
32764 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32768 { (case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32771esac
32772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032774 ac_status=$?
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); }; } &&
32777 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032778 { (case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32781esac
32782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; }; then
32787 ac_header_compiler=yes
32788else
32789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032790sed 's/^/| /' conftest.$ac_ext >&5
32791
Reid Spencera773bd52006-08-04 18:18:08 +000032792 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032793fi
Reid Spencera773bd52006-08-04 18:18:08 +000032794
32795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32797echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032798
32799# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032802cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032808#include <$ac_header>
32809_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032810if { (ac_try="$ac_cpp conftest.$ac_ext"
32811case "(($ac_try" in
32812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 *) ac_try_echo=$ac_try;;
32814esac
32815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032817 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032818 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032819 rm -f conftest.er1
32820 cat conftest.err >&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } >/dev/null; then
32823 if test -s conftest.err; then
32824 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032826 else
32827 ac_cpp_err=
32828 fi
32829else
32830 ac_cpp_err=yes
32831fi
32832if test -z "$ac_cpp_err"; then
32833 ac_header_preproc=yes
32834else
32835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032836sed 's/^/| /' conftest.$ac_ext >&5
32837
John Criswell7a73b802003-06-30 21:59:07 +000032838 ac_header_preproc=no
32839fi
Reid Spencera773bd52006-08-04 18:18:08 +000032840
John Criswell7a73b802003-06-30 21:59:07 +000032841rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32843echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032844
32845# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32847 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32852 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032853 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032854 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032867 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032868## ----------------------------------- ##
32869## Report this to llvmbugs@cs.uiuc.edu ##
32870## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032871_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032872 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032873 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032874esac
Reid Spencera773bd52006-08-04 18:18:08 +000032875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032878 echo $ECHO_N "(cached) $ECHO_C" >&6
32879else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032880 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032881fi
Reid Spencera773bd52006-08-04 18:18:08 +000032882ac_res=`eval echo '${'$as_ac_Header'}'`
32883 { echo "$as_me:$LINENO: result: $ac_res" >&5
32884echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032885
32886fi
32887if test `eval echo '${'$as_ac_Header'}'` = yes; then
32888 cat >>confdefs.h <<_ACEOF
32889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32890_ACEOF
32891
32892fi
32893
32894done
32895
32896
32897for ac_func in getpagesize
32898do
32899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032900{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32902if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032903 echo $ECHO_N "(cached) $ECHO_C" >&6
32904else
32905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032906/* confdefs.h. */
32907_ACEOF
32908cat confdefs.h >>conftest.$ac_ext
32909cat >>conftest.$ac_ext <<_ACEOF
32910/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32913#define $ac_func innocuous_$ac_func
32914
John Criswell7a73b802003-06-30 21:59:07 +000032915/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032916 which can conflict with char $ac_func (); below.
32917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32918 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032919
John Criswell0c38eaf2003-09-10 15:17:25 +000032920#ifdef __STDC__
32921# include <limits.h>
32922#else
32923# include <assert.h>
32924#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032925
32926#undef $ac_func
32927
Reid Spencera773bd52006-08-04 18:18:08 +000032928/* Override any GCC internal prototype to avoid an error.
32929 Use char because int might match the return type of a GCC
32930 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032931#ifdef __cplusplus
32932extern "C"
32933#endif
John Criswell7a73b802003-06-30 21:59:07 +000032934char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032935/* The GNU C library defines this for functions which it implements
32936 to always fail with ENOSYS. Some functions are actually named
32937 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032938#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032939choke me
John Criswell7a73b802003-06-30 21:59:07 +000032940#endif
32941
John Criswell0c38eaf2003-09-10 15:17:25 +000032942int
32943main ()
32944{
Reid Spencera773bd52006-08-04 18:18:08 +000032945return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032946 ;
32947 return 0;
32948}
32949_ACEOF
32950rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032951if { (ac_try="$ac_link"
32952case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32955esac
32956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032975 { (case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32978esac
32979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032981 ac_status=$?
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984 eval "$as_ac_var=yes"
32985else
32986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032987sed 's/^/| /' conftest.$ac_ext >&5
32988
Reid Spencera773bd52006-08-04 18:18:08 +000032989 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032990fi
Reid Spencera773bd52006-08-04 18:18:08 +000032991
32992rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032993 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032994fi
Reid Spencera773bd52006-08-04 18:18:08 +000032995ac_res=`eval echo '${'$as_ac_var'}'`
32996 { echo "$as_me:$LINENO: result: $ac_res" >&5
32997echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032998if test `eval echo '${'$as_ac_var'}'` = yes; then
32999 cat >>confdefs.h <<_ACEOF
33000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33001_ACEOF
33002
33003fi
33004done
33005
Reid Spencera773bd52006-08-04 18:18:08 +000033006{ echo "$as_me:$LINENO: checking for working mmap" >&5
33007echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033008if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33009 echo $ECHO_N "(cached) $ECHO_C" >&6
33010else
33011 if test "$cross_compiling" = yes; then
33012 ac_cv_func_mmap_fixed_mapped=no
33013else
33014 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033015/* confdefs.h. */
33016_ACEOF
33017cat confdefs.h >>conftest.$ac_ext
33018cat >>conftest.$ac_ext <<_ACEOF
33019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033020$ac_includes_default
33021/* malloc might have been renamed as rpl_malloc. */
33022#undef malloc
33023
33024/* Thanks to Mike Haertel and Jim Avera for this test.
33025 Here is a matrix of mmap possibilities:
33026 mmap private not fixed
33027 mmap private fixed at somewhere currently unmapped
33028 mmap private fixed at somewhere already mapped
33029 mmap shared not fixed
33030 mmap shared fixed at somewhere currently unmapped
33031 mmap shared fixed at somewhere already mapped
33032 For private mappings, we should verify that changes cannot be read()
33033 back from the file, nor mmap's back from the file at a different
33034 address. (There have been systems where private was not correctly
33035 implemented like the infamous i386 svr4.0, and systems where the
33036 VM page cache was not coherent with the file system buffer cache
33037 like early versions of FreeBSD and possibly contemporary NetBSD.)
33038 For shared mappings, we should conversely verify that changes get
33039 propagated back to all the places they're supposed to be.
33040
33041 Grep wants private fixed already mapped.
33042 The main things grep needs to know about mmap are:
33043 * does it exist and is it safe to write into the mmap'd area
33044 * how to use it (BSD variants) */
33045
33046#include <fcntl.h>
33047#include <sys/mman.h>
33048
33049#if !STDC_HEADERS && !HAVE_STDLIB_H
33050char *malloc ();
33051#endif
33052
33053/* This mess was copied from the GNU getpagesize.h. */
33054#if !HAVE_GETPAGESIZE
33055/* Assume that all systems that can run configure have sys/param.h. */
33056# if !HAVE_SYS_PARAM_H
33057# define HAVE_SYS_PARAM_H 1
33058# endif
33059
33060# ifdef _SC_PAGESIZE
33061# define getpagesize() sysconf(_SC_PAGESIZE)
33062# else /* no _SC_PAGESIZE */
33063# if HAVE_SYS_PARAM_H
33064# include <sys/param.h>
33065# ifdef EXEC_PAGESIZE
33066# define getpagesize() EXEC_PAGESIZE
33067# else /* no EXEC_PAGESIZE */
33068# ifdef NBPG
33069# define getpagesize() NBPG * CLSIZE
33070# ifndef CLSIZE
33071# define CLSIZE 1
33072# endif /* no CLSIZE */
33073# else /* no NBPG */
33074# ifdef NBPC
33075# define getpagesize() NBPC
33076# else /* no NBPC */
33077# ifdef PAGESIZE
33078# define getpagesize() PAGESIZE
33079# endif /* PAGESIZE */
33080# endif /* no NBPC */
33081# endif /* no NBPG */
33082# endif /* no EXEC_PAGESIZE */
33083# else /* no HAVE_SYS_PARAM_H */
33084# define getpagesize() 8192 /* punt totally */
33085# endif /* no HAVE_SYS_PARAM_H */
33086# endif /* no _SC_PAGESIZE */
33087
33088#endif /* no HAVE_GETPAGESIZE */
33089
33090int
33091main ()
33092{
33093 char *data, *data2, *data3;
33094 int i, pagesize;
33095 int fd;
33096
33097 pagesize = getpagesize ();
33098
33099 /* First, make a file with some known garbage in it. */
33100 data = (char *) malloc (pagesize);
33101 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033102 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033103 for (i = 0; i < pagesize; ++i)
33104 *(data + i) = rand ();
33105 umask (0);
33106 fd = creat ("conftest.mmap", 0600);
33107 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033108 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033109 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033110 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033111 close (fd);
33112
33113 /* Next, try to mmap the file at a fixed address which already has
33114 something else allocated at it. If we can, also make sure that
33115 we see the same garbage. */
33116 fd = open ("conftest.mmap", O_RDWR);
33117 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033118 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033119 data2 = (char *) malloc (2 * pagesize);
33120 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033121 return 1;
33122 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033123 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033125 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033126 for (i = 0; i < pagesize; ++i)
33127 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033128 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033129
33130 /* Finally, make sure that changes to the mapped area do not
33131 percolate back to the file as seen by read(). (This is a bug on
33132 some variants of i386 svr4.0.) */
33133 for (i = 0; i < pagesize; ++i)
33134 *(data2 + i) = *(data2 + i) + 1;
33135 data3 = (char *) malloc (pagesize);
33136 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033137 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033138 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033139 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033140 for (i = 0; i < pagesize; ++i)
33141 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033142 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033143 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033144 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033145}
33146_ACEOF
33147rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033148if { (ac_try="$ac_link"
33149case "(($ac_try" in
33150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151 *) ac_try_echo=$ac_try;;
33152esac
33153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033155 ac_status=$?
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_func_mmap_fixed_mapped=yes
33168else
33169 echo "$as_me: program exited with status $ac_status" >&5
33170echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033171sed 's/^/| /' conftest.$ac_ext >&5
33172
John Criswell7a73b802003-06-30 21:59:07 +000033173( exit $ac_status )
33174ac_cv_func_mmap_fixed_mapped=no
33175fi
Reid Spencera773bd52006-08-04 18:18:08 +000033176rm -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 +000033177fi
Reid Spencera773bd52006-08-04 18:18:08 +000033178
33179
John Criswell7a73b802003-06-30 21:59:07 +000033180fi
Reid Spencera773bd52006-08-04 18:18:08 +000033181{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33182echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033183if test $ac_cv_func_mmap_fixed_mapped = yes; then
33184
33185cat >>confdefs.h <<\_ACEOF
33186#define HAVE_MMAP 1
33187_ACEOF
33188
33189fi
33190rm -f conftest.mmap
33191
Reid Spencer30fe5262007-01-20 07:48:49 +000033192 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033193echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033194if test "${ac_cv_func_mmap_file+set}" = set; then
33195 echo $ECHO_N "(cached) $ECHO_C" >&6
33196else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033197 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033198ac_cpp='$CPP $CPPFLAGS'
33199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33201ac_compiler_gnu=$ac_cv_c_compiler_gnu
33202
33203 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033204 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033205else
33206 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033207
Reid Spencer777ce172004-09-20 04:09:56 +000033208 /* confdefs.h. */
33209_ACEOF
33210cat confdefs.h >>conftest.$ac_ext
33211cat >>conftest.$ac_ext <<_ACEOF
33212/* end confdefs.h. */
33213
John Criswell7a73b802003-06-30 21:59:07 +000033214#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033215#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033216#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033217
33218int
33219main ()
33220{
John Criswell7a73b802003-06-30 21:59:07 +000033221
33222 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033223 fd = creat ("foo",0777);
33224 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33225 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033226 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033227 ;
33228 return 0;
33229}
John Criswell7a73b802003-06-30 21:59:07 +000033230_ACEOF
33231rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033232if { (ac_try="$ac_link"
33233case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33236esac
33237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033242 { (case "(($ac_try" in
33243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 *) ac_try_echo=$ac_try;;
33245esac
33246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 ac_cv_func_mmap_file=yes
33252else
33253 echo "$as_me: program exited with status $ac_status" >&5
33254echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033255sed 's/^/| /' conftest.$ac_ext >&5
33256
John Criswell7a73b802003-06-30 21:59:07 +000033257( exit $ac_status )
33258ac_cv_func_mmap_file=no
33259fi
Reid Spencera773bd52006-08-04 18:18:08 +000033260rm -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 +000033261fi
Reid Spencera773bd52006-08-04 18:18:08 +000033262
33263
John Criswell7a73b802003-06-30 21:59:07 +000033264 ac_ext=c
33265ac_cpp='$CPP $CPPFLAGS'
33266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33268ac_compiler_gnu=$ac_cv_c_compiler_gnu
33269
33270
33271fi
Reid Spencera773bd52006-08-04 18:18:08 +000033272{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33273echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033274if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033275
33276cat >>confdefs.h <<\_ACEOF
33277#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033278_ACEOF
33279
33280 MMAP_FILE=yes
33281
33282fi
33283
Reid Spencer30fe5262007-01-20 07:48:49 +000033284 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033285echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033286if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33288else
Reid Spencer582a23c2004-12-29 07:07:57 +000033289 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033290 ac_cv_need_dev_zero_for_mmap=yes
33291 else
33292 ac_cv_need_dev_zero_for_mmap=no
33293 fi
33294
33295fi
Reid Spencera773bd52006-08-04 18:18:08 +000033296{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33297echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033298if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33299
33300cat >>confdefs.h <<\_ACEOF
33301#define NEED_DEV_ZERO_FOR_MMAP 1
33302_ACEOF
33303
33304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033305
Reid Spencer30fe5262007-01-20 07:48:49 +000033306 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33307 then
33308 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033309echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033310 fi
33311 if test "$ac_cv_func_mmap_file" = "no"
33312 then
33313 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033314echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033315 fi
John Criswellb13092b2003-07-22 21:00:24 +000033316fi
John Criswell7a73b802003-06-30 21:59:07 +000033317
33318
Reid Spencera773bd52006-08-04 18:18:08 +000033319{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33320echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033321if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33323else
33324 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033325if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033326 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033327 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033328 if test $? -eq 0 ; then
33329 llvm_cv_llvmgcc_sanity="yes"
33330 fi
33331 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033332fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033333fi
Reid Spencera773bd52006-08-04 18:18:08 +000033334{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33335echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033336
33337if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033338 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033339 LLVMCC1=$llvmcc1path
33340
Reid Spencer502935f2004-12-22 05:56:56 +000033341 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033342 LLVMCC1PLUS=$llvmcc1pluspath
33343
Reid Spencer502935f2004-12-22 05:56:56 +000033344 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33345 LLVMGCCDIR=$llvmgccdir
33346
Reid Spencer282d8c12006-12-21 22:55:41 +000033347 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33348 LLVMGCCLIBEXEC=$llvmgcclibexec
33349
Reid Spencerb5d75b82006-05-09 00:31:01 +000033350 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033351 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33352 LLVMGCC_VERSION=$llvmgccversion
33353
33354 LLVMGCC_MAJVERS=$llvmgccmajvers
33355
Brian Gaekef3b24102003-11-16 18:38:14 +000033356fi
33357
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033358SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033359
33360
Reid Spencere9de0912004-08-20 09:03:57 +000033361# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033362# information into substitutions that will end up in Makefile.config.in
33363# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033364if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033365 prefix="/usr/local"
33366fi
Reid Spencere9de0912004-08-20 09:03:57 +000033367eval LLVM_PREFIX="${prefix}";
33368eval LLVM_BINDIR="${prefix}/bin";
33369eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033370eval LLVM_DATADIR="${prefix}/share/llvm";
33371eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33372eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033373eval LLVM_INCLUDEDIR="${prefix}/include";
33374eval LLVM_INFODIR="${prefix}/info";
33375eval LLVM_MANDIR="${prefix}/man";
33376LLVM_CONFIGTIME=`date`
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033388# Place the various directores into the config.h file as #defines so that we
33389# can know about the installation paths within LLVM.
33390
Reid Spencere9de0912004-08-20 09:03:57 +000033391cat >>confdefs.h <<_ACEOF
33392#define LLVM_PREFIX "$LLVM_PREFIX"
33393_ACEOF
33394
33395
33396cat >>confdefs.h <<_ACEOF
33397#define LLVM_BINDIR "$LLVM_BINDIR"
33398_ACEOF
33399
33400
33401cat >>confdefs.h <<_ACEOF
33402#define LLVM_LIBDIR "$LLVM_LIBDIR"
33403_ACEOF
33404
33405
33406cat >>confdefs.h <<_ACEOF
33407#define LLVM_DATADIR "$LLVM_DATADIR"
33408_ACEOF
33409
33410
33411cat >>confdefs.h <<_ACEOF
33412#define LLVM_DATADIR "$LLVM_DOCSDIR"
33413_ACEOF
33414
33415
33416cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033417#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033418_ACEOF
33419
33420
33421cat >>confdefs.h <<_ACEOF
33422#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33423_ACEOF
33424
33425
33426cat >>confdefs.h <<_ACEOF
33427#define LLVM_INFODIR "$LLVM_INFODIR"
33428_ACEOF
33429
33430
33431cat >>confdefs.h <<_ACEOF
33432#define LLVM_MANDIR "$LLVM_MANDIR"
33433_ACEOF
33434
33435
33436cat >>confdefs.h <<_ACEOF
33437#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33438_ACEOF
33439
33440
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033441
Reid Spencera773bd52006-08-04 18:18:08 +000033442ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033443
Reid Spencera773bd52006-08-04 18:18:08 +000033444ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033445
Reid Spencera773bd52006-08-04 18:18:08 +000033446ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033447
Reid Spencera773bd52006-08-04 18:18:08 +000033448ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033449
Reid Spencera773bd52006-08-04 18:18:08 +000033450ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033451
33452
Reid Spencera773bd52006-08-04 18:18:08 +000033453ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033454
33455
Reid Spencerea949cf2006-08-16 00:45:38 +000033456ac_config_files="$ac_config_files llvm.spec"
33457
33458
Reid Spencera773bd52006-08-04 18:18:08 +000033459ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033460
33461
Reid Spencera773bd52006-08-04 18:18:08 +000033462ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033463
33464
Reid Spencera773bd52006-08-04 18:18:08 +000033465ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033466
Reid Spencera773bd52006-08-04 18:18:08 +000033467ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033468
33469
Reid Spencera773bd52006-08-04 18:18:08 +000033470ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033471
33472
Reid Spencera773bd52006-08-04 18:18:08 +000033473ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033474
33475
Reid Spencera773bd52006-08-04 18:18:08 +000033476ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033477
33478
Reid Spencer8b2e1412006-11-17 03:32:33 +000033479ac_config_commands="$ac_config_commands runtime/Makefile"
33480
33481
Reid Spencera773bd52006-08-04 18:18:08 +000033482ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033483
33484
Reid Spencera773bd52006-08-04 18:18:08 +000033485ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033486
33487
Reid Spencera773bd52006-08-04 18:18:08 +000033488ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033489
33490
Reid Spencera773bd52006-08-04 18:18:08 +000033491ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033492
33493
Reid Spencera773bd52006-08-04 18:18:08 +000033494ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033495
33496
33497
John Criswell7a73b802003-06-30 21:59:07 +000033498cat >confcache <<\_ACEOF
33499# This file is a shell script that caches the results of configure
33500# tests run on this system so they can be shared between configure
33501# scripts and configure runs, see configure's option --config-cache.
33502# It is not useful on other systems. If it contains results you don't
33503# want to keep, you may remove or edit it.
33504#
33505# config.status only pays attention to the cache file if you give it
33506# the --recheck option to rerun configure.
33507#
John Criswell0c38eaf2003-09-10 15:17:25 +000033508# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033509# loading this file, other *unset* `ac_cv_foo' will be assigned the
33510# following values.
33511
33512_ACEOF
33513
33514# The following way of writing the cache mishandles newlines in values,
33515# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033516# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033517# Ultrix sh set writes to stderr and can't be redirected directly,
33518# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033519(
33520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33521 eval ac_val=\$$ac_var
33522 case $ac_val in #(
33523 *${as_nl}*)
33524 case $ac_var in #(
33525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33526echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33527 esac
33528 case $ac_var in #(
33529 _ | IFS | as_nl) ;; #(
33530 *) $as_unset $ac_var ;;
33531 esac ;;
33532 esac
33533 done
33534
John Criswell7a73b802003-06-30 21:59:07 +000033535 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33537 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033538 # `set' does not quote correctly, so add quotes (double-quote
33539 # substitution turns \\\\ into \\, and sed turns \\ into \).
33540 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033541 "s/'/'\\\\''/g;
33542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033543 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033544 *)
33545 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033548 esac |
33549 sort
33550) |
John Criswell7a73b802003-06-30 21:59:07 +000033551 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033552 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033553 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033554 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33556 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33558 :end' >>confcache
33559if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33560 if test -w "$cache_file"; then
33561 test "x$cache_file" != "x/dev/null" &&
33562 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33563echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033564 cat confcache >$cache_file
33565 else
Reid Spencera773bd52006-08-04 18:18:08 +000033566 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33567echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033568 fi
33569fi
33570rm -f confcache
33571
33572test "x$prefix" = xNONE && prefix=$ac_default_prefix
33573# Let make expand exec_prefix.
33574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33575
John Criswell7a73b802003-06-30 21:59:07 +000033576DEFS=-DHAVE_CONFIG_H
33577
John Criswell0c38eaf2003-09-10 15:17:25 +000033578ac_libobjs=
33579ac_ltlibobjs=
33580for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33581 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33583 ac_i=`echo "$ac_i" | sed "$ac_script"`
33584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33585 # will be set to the directory where LIBOBJS objects are built.
33586 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33587 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033588done
33589LIBOBJS=$ac_libobjs
33590
33591LTLIBOBJS=$ac_ltlibobjs
33592
33593
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033594if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33595 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33596Usually this means the macro was only invoked conditionally." >&5
33597echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33598Usually this means the macro was only invoked conditionally." >&2;}
33599 { (exit 1); exit 1; }; }
33600fi
33601if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33602 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33603Usually this means the macro was only invoked conditionally." >&5
33604echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33605Usually this means the macro was only invoked conditionally." >&2;}
33606 { (exit 1); exit 1; }; }
33607fi
John Criswell7a73b802003-06-30 21:59:07 +000033608
33609: ${CONFIG_STATUS=./config.status}
33610ac_clean_files_save=$ac_clean_files
33611ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33612{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33613echo "$as_me: creating $CONFIG_STATUS" >&6;}
33614cat >$CONFIG_STATUS <<_ACEOF
33615#! $SHELL
33616# Generated by $as_me.
33617# Run this file to recreate the current configuration.
33618# Compiler output produced by configure, useful for debugging
33619# configure, is in config.log if it exists.
33620
33621debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033622ac_cs_recheck=false
33623ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033624SHELL=\${CONFIG_SHELL-$SHELL}
33625_ACEOF
33626
33627cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033628## --------------------- ##
33629## M4sh Initialization. ##
33630## --------------------- ##
33631
33632# Be Bourne compatible
33633if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33634 emulate sh
33635 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033636 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33637 # is contrary to our usage. Disable this feature.
33638 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033639 setopt NO_GLOB_SUBST
33640else
33641 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033642fi
Reid Spencera773bd52006-08-04 18:18:08 +000033643BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033644DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033645
John Criswell7a73b802003-06-30 21:59:07 +000033646
Reid Spencera773bd52006-08-04 18:18:08 +000033647# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033648# Avoid depending upon Character Ranges.
33649as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33650as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33651as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33652as_cr_digits='0123456789'
33653as_cr_alnum=$as_cr_Letters$as_cr_digits
33654
33655# The user is always right.
33656if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033657 echo "#! /bin/sh" >conf$$.sh
33658 echo "exit 0" >>conf$$.sh
33659 chmod +x conf$$.sh
33660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033661 PATH_SEPARATOR=';'
33662 else
33663 PATH_SEPARATOR=:
33664 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033665 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033666fi
33667
Reid Spencera773bd52006-08-04 18:18:08 +000033668# Support unset when possible.
33669if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33670 as_unset=unset
33671else
33672 as_unset=false
33673fi
John Criswell7a73b802003-06-30 21:59:07 +000033674
Reid Spencera773bd52006-08-04 18:18:08 +000033675
33676# IFS
33677# We need space, tab and new line, in precisely that order. Quoting is
33678# there to prevent editors from complaining about space-tab.
33679# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33680# splitting by setting IFS to empty value.)
33681as_nl='
33682'
33683IFS=" "" $as_nl"
33684
33685# Find who we are. Look in the path if we contain no directory separator.
33686case $0 in
33687 *[\\/]* ) as_myself=$0 ;;
33688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033689for as_dir in $PATH
33690do
33691 IFS=$as_save_IFS
33692 test -z "$as_dir" && as_dir=.
33693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33694done
Reid Spencera773bd52006-08-04 18:18:08 +000033695IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033696
Reid Spencera773bd52006-08-04 18:18:08 +000033697 ;;
33698esac
33699# We did not find ourselves, most probably we were run as `sh COMMAND'
33700# in which case we are not to be found in the path.
33701if test "x$as_myself" = x; then
33702 as_myself=$0
33703fi
33704if test ! -f "$as_myself"; then
33705 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33706 { (exit 1); exit 1; }
33707fi
33708
33709# Work around bugs in pre-3.0 UWIN ksh.
33710for as_var in ENV MAIL MAILPATH
33711do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33712done
33713PS1='$ '
33714PS2='> '
33715PS4='+ '
33716
33717# NLS nuisances.
33718for as_var in \
33719 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33720 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33721 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033722do
Reid Spencera773bd52006-08-04 18:18:08 +000033723 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33724 eval $as_var=C; export $as_var
33725 else
33726 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33727 fi
33728done
33729
33730# Required to use basename.
33731if expr a : '\(a\)' >/dev/null 2>&1 &&
33732 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33733 as_expr=expr
33734else
33735 as_expr=false
33736fi
33737
33738if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33739 as_basename=basename
33740else
33741 as_basename=false
33742fi
33743
33744
33745# Name of the executable.
33746as_me=`$as_basename -- "$0" ||
33747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33748 X"$0" : 'X\(//\)$' \| \
33749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33750echo X/"$0" |
33751 sed '/^.*\/\([^/][^/]*\)\/*$/{
33752 s//\1/
33753 q
33754 }
33755 /^X\/\(\/\/\)$/{
33756 s//\1/
33757 q
33758 }
33759 /^X\/\(\/\).*/{
33760 s//\1/
33761 q
33762 }
33763 s/.*/./; q'`
33764
33765# CDPATH.
33766$as_unset CDPATH
33767
33768
33769
John Criswell7a73b802003-06-30 21:59:07 +000033770 as_lineno_1=$LINENO
33771 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033772 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033773 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033774
33775 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33776 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033777 # line-number line after each line using $LINENO; the second 'sed'
33778 # does the real work. The second script uses 'N' to pair each
33779 # line-number line with the line containing $LINENO, and appends
33780 # trailing '-' during substitution so that $LINENO is not a special
33781 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033782 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033783 # scripts with optimization help from Paolo Bonzini. Blame Lee
33784 # E. McMahon (1931-1989) for sed's syntax. :-)
33785 sed -n '
33786 p
33787 /[$]LINENO/=
33788 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033789 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033790 s/[$]LINENO.*/&-/
33791 t lineno
33792 b
33793 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033794 N
Reid Spencera773bd52006-08-04 18:18:08 +000033795 :loop
33796 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033797 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033798 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033799 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033800 chmod +x "$as_me.lineno" ||
33801 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033802 { (exit 1); exit 1; }; }
33803
33804 # Don't try to exec as it changes $[0], causing all sort of problems
33805 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033806 # original and so on. Autoconf is especially sensitive to this).
33807 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033808 # Exit status is that of the last command.
33809 exit
33810}
33811
33812
Reid Spencera773bd52006-08-04 18:18:08 +000033813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33814 as_dirname=dirname
33815else
33816 as_dirname=false
33817fi
33818
33819ECHO_C= ECHO_N= ECHO_T=
33820case `echo -n x` in
33821-n*)
33822 case `echo 'x\c'` in
33823 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33824 *) ECHO_C='\c';;
33825 esac;;
33826*)
33827 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033828esac
33829
Reid Spencera773bd52006-08-04 18:18:08 +000033830if expr a : '\(a\)' >/dev/null 2>&1 &&
33831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033832 as_expr=expr
33833else
33834 as_expr=false
33835fi
33836
33837rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033838if test -d conf$$.dir; then
33839 rm -f conf$$.dir/conf$$.file
33840else
33841 rm -f conf$$.dir
33842 mkdir conf$$.dir
33843fi
John Criswell7a73b802003-06-30 21:59:07 +000033844echo >conf$$.file
33845if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033846 as_ln_s='ln -s'
33847 # ... but there are two gotchas:
33848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33850 # In both cases, we have to default to `cp -p'.
33851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033852 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033853elif ln conf$$.file conf$$ 2>/dev/null; then
33854 as_ln_s=ln
33855else
33856 as_ln_s='cp -p'
33857fi
Reid Spencera773bd52006-08-04 18:18:08 +000033858rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33859rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033860
John Criswell0c38eaf2003-09-10 15:17:25 +000033861if mkdir -p . 2>/dev/null; then
33862 as_mkdir_p=:
33863else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033864 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033865 as_mkdir_p=false
33866fi
33867
Reid Spencera773bd52006-08-04 18:18:08 +000033868# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33869# systems may use methods other than mode bits to determine executability.
33870cat >conf$$.file <<_ASEOF
33871#! /bin/sh
33872exit 0
33873_ASEOF
33874chmod +x conf$$.file
33875if test -x conf$$.file >/dev/null 2>&1; then
33876 as_executable_p="test -x"
33877else
33878 as_executable_p=:
33879fi
33880rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033881
33882# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033883as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033884
33885# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033886as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033887
33888
John Criswell7a73b802003-06-30 21:59:07 +000033889exec 6>&1
33890
Reid Spencera773bd52006-08-04 18:18:08 +000033891# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033892# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033893# values after options handling.
33894ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033895This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033896generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033897
33898 CONFIG_FILES = $CONFIG_FILES
33899 CONFIG_HEADERS = $CONFIG_HEADERS
33900 CONFIG_LINKS = $CONFIG_LINKS
33901 CONFIG_COMMANDS = $CONFIG_COMMANDS
33902 $ $0 $@
33903
Reid Spencera773bd52006-08-04 18:18:08 +000033904on `(hostname || uname -n) 2>/dev/null | sed 1q`
33905"
33906
John Criswell7a73b802003-06-30 21:59:07 +000033907_ACEOF
33908
Reid Spencera773bd52006-08-04 18:18:08 +000033909cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033910# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033911config_files="$ac_config_files"
33912config_headers="$ac_config_headers"
33913config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033914
Reid Spencera773bd52006-08-04 18:18:08 +000033915_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033916
33917cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033918ac_cs_usage="\
33919\`$as_me' instantiates files from templates according to the
33920current configuration.
33921
33922Usage: $0 [OPTIONS] [FILE]...
33923
33924 -h, --help print this help, then exit
33925 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033926 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033927 -d, --debug don't remove temporary files
33928 --recheck update $as_me by reconfiguring in the same conditions
33929 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033930 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033931 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033932 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033933
33934Configuration files:
33935$config_files
33936
33937Configuration headers:
33938$config_headers
33939
John Criswellc764fbc2003-09-06 15:17:13 +000033940Configuration commands:
33941$config_commands
33942
John Criswell7a73b802003-06-30 21:59:07 +000033943Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033944
Reid Spencera773bd52006-08-04 18:18:08 +000033945_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033946cat >>$CONFIG_STATUS <<_ACEOF
33947ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033948llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033949configured by $0, generated by GNU Autoconf 2.60,
33950 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033951
Reid Spencera773bd52006-08-04 18:18:08 +000033952Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033953This config.status script is free software; the Free Software Foundation
33954gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033955
33956ac_pwd='$ac_pwd'
33957srcdir='$srcdir'
33958INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033959_ACEOF
33960
33961cat >>$CONFIG_STATUS <<\_ACEOF
33962# If no file are specified by the user, then we need to provide default
33963# value. By we need to know if files were specified by the user.
33964ac_need_defaults=:
33965while test $# != 0
33966do
33967 case $1 in
33968 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33970 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033971 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033972 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033973 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033974 ac_option=$1
33975 ac_optarg=$2
33976 ac_shift=shift
33977 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033978 esac
33979
John Criswell0c38eaf2003-09-10 15:17:25 +000033980 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033981 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33983 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33985 echo "$ac_cs_version"; exit ;;
33986 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033987 debug=: ;;
33988 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033989 $ac_shift
33990 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033991 ac_need_defaults=false;;
33992 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033993 $ac_shift
33994 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033995 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033996 --he | --h)
33997 # Conflict between --help and --header
33998 { echo "$as_me: error: ambiguous option: $1
33999Try \`$0 --help' for more information." >&2
34000 { (exit 1); exit 1; }; };;
34001 --help | --hel | -h )
34002 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34005 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034006
34007 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034008 -*) { echo "$as_me: error: unrecognized option: $1
34009Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034010 { (exit 1); exit 1; }; } ;;
34011
Reid Spencera773bd52006-08-04 18:18:08 +000034012 *) ac_config_targets="$ac_config_targets $1"
34013 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034014
34015 esac
34016 shift
34017done
34018
John Criswell0c38eaf2003-09-10 15:17:25 +000034019ac_configure_extra_args=
34020
34021if $ac_cs_silent; then
34022 exec 6>/dev/null
34023 ac_configure_extra_args="$ac_configure_extra_args --silent"
34024fi
34025
34026_ACEOF
34027cat >>$CONFIG_STATUS <<_ACEOF
34028if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034029 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34030 CONFIG_SHELL=$SHELL
34031 export CONFIG_SHELL
34032 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034033fi
34034
John Criswell7a73b802003-06-30 21:59:07 +000034035_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034036cat >>$CONFIG_STATUS <<\_ACEOF
34037exec 5>>config.log
34038{
34039 echo
34040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34041## Running $as_me. ##
34042_ASBOX
34043 echo "$ac_log"
34044} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034045
Reid Spencera773bd52006-08-04 18:18:08 +000034046_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034047cat >>$CONFIG_STATUS <<_ACEOF
34048#
Reid Spencera773bd52006-08-04 18:18:08 +000034049# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034050#
Reid Spencerc0682832005-02-24 19:05:19 +000034051llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034052
34053_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034054
John Criswell7a73b802003-06-30 21:59:07 +000034055cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034056
34057# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034058for ac_config_target in $ac_config_targets
34059do
Reid Spencera773bd52006-08-04 18:18:08 +000034060 case $ac_config_target in
34061 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34062 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34063 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34064 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34065 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34066 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034067 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034068 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34069 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34070 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34071 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34072 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34073 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34074 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034075 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034076 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34077 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34078 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34079 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34080 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34081
John Criswell7a73b802003-06-30 21:59:07 +000034082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34083echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34084 { (exit 1); exit 1; }; };;
34085 esac
34086done
34087
Reid Spencera773bd52006-08-04 18:18:08 +000034088
John Criswell7a73b802003-06-30 21:59:07 +000034089# If the user did not use the arguments to specify the items to instantiate,
34090# then the envvar interface is used. Set only those that are not.
34091# We use the long form for the default assignment because of an extremely
34092# bizarre bug on SunOS 4.1.3.
34093if $ac_need_defaults; then
34094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034097fi
34098
John Criswell0c38eaf2003-09-10 15:17:25 +000034099# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034100# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034101# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034102# Hook for its removal unless debugging.
34103# Note that there is a small window in which the directory will not be cleaned:
34104# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034105$debug ||
34106{
Reid Spencera773bd52006-08-04 18:18:08 +000034107 tmp=
34108 trap 'exit_status=$?
34109 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34110' 0
John Criswell7a73b802003-06-30 21:59:07 +000034111 trap '{ (exit 1); exit 1; }' 1 2 13 15
34112}
John Criswell7a73b802003-06-30 21:59:07 +000034113# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034114
John Criswell7a73b802003-06-30 21:59:07 +000034115{
Reid Spencera773bd52006-08-04 18:18:08 +000034116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034117 test -n "$tmp" && test -d "$tmp"
34118} ||
34119{
Reid Spencera773bd52006-08-04 18:18:08 +000034120 tmp=./conf$$-$RANDOM
34121 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034122} ||
34123{
John Criswell0c38eaf2003-09-10 15:17:25 +000034124 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034125 { (exit 1); exit 1; }
34126}
34127
John Criswell7a73b802003-06-30 21:59:07 +000034128#
Reid Spencera773bd52006-08-04 18:18:08 +000034129# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034130#
34131
34132# No need to generate the scripts if there are no CONFIG_FILES.
34133# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034134if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034135
34136_ACEOF
34137
Reid Spencera773bd52006-08-04 18:18:08 +000034138
34139
34140ac_delim='%!_!# '
34141for ac_last_try in false false false false false :; do
34142 cat >conf$$subs.sed <<_ACEOF
34143SHELL!$SHELL$ac_delim
34144PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34145PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34146PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34147PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34148PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34149PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34150exec_prefix!$exec_prefix$ac_delim
34151prefix!$prefix$ac_delim
34152program_transform_name!$program_transform_name$ac_delim
34153bindir!$bindir$ac_delim
34154sbindir!$sbindir$ac_delim
34155libexecdir!$libexecdir$ac_delim
34156datarootdir!$datarootdir$ac_delim
34157datadir!$datadir$ac_delim
34158sysconfdir!$sysconfdir$ac_delim
34159sharedstatedir!$sharedstatedir$ac_delim
34160localstatedir!$localstatedir$ac_delim
34161includedir!$includedir$ac_delim
34162oldincludedir!$oldincludedir$ac_delim
34163docdir!$docdir$ac_delim
34164infodir!$infodir$ac_delim
34165htmldir!$htmldir$ac_delim
34166dvidir!$dvidir$ac_delim
34167pdfdir!$pdfdir$ac_delim
34168psdir!$psdir$ac_delim
34169libdir!$libdir$ac_delim
34170localedir!$localedir$ac_delim
34171mandir!$mandir$ac_delim
34172DEFS!$DEFS$ac_delim
34173ECHO_C!$ECHO_C$ac_delim
34174ECHO_N!$ECHO_N$ac_delim
34175ECHO_T!$ECHO_T$ac_delim
34176LIBS!$LIBS$ac_delim
34177build_alias!$build_alias$ac_delim
34178host_alias!$host_alias$ac_delim
34179target_alias!$target_alias$ac_delim
34180LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34181subdirs!$subdirs$ac_delim
34182build!$build$ac_delim
34183build_cpu!$build_cpu$ac_delim
34184build_vendor!$build_vendor$ac_delim
34185build_os!$build_os$ac_delim
34186host!$host$ac_delim
34187host_cpu!$host_cpu$ac_delim
34188host_vendor!$host_vendor$ac_delim
34189host_os!$host_os$ac_delim
34190target!$target$ac_delim
34191target_cpu!$target_cpu$ac_delim
34192target_vendor!$target_vendor$ac_delim
34193target_os!$target_os$ac_delim
34194OS!$OS$ac_delim
34195LINKALL!$LINKALL$ac_delim
34196NOLINKALL!$NOLINKALL$ac_delim
34197LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34198LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34199ARCH!$ARCH$ac_delim
34200ENDIAN!$ENDIAN$ac_delim
34201CC!$CC$ac_delim
34202CFLAGS!$CFLAGS$ac_delim
34203LDFLAGS!$LDFLAGS$ac_delim
34204CPPFLAGS!$CPPFLAGS$ac_delim
34205ac_ct_CC!$ac_ct_CC$ac_delim
34206EXEEXT!$EXEEXT$ac_delim
34207OBJEXT!$OBJEXT$ac_delim
34208CPP!$CPP$ac_delim
34209GREP!$GREP$ac_delim
34210EGREP!$EGREP$ac_delim
34211LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34212BUILD_CC!$BUILD_CC$ac_delim
34213BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34214CVSBUILD!$CVSBUILD$ac_delim
34215ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34216DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034217DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034218JIT!$JIT$ac_delim
34219TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34220ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34221ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034222ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034223TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034224ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034225EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34226CXX!$CXX$ac_delim
34227CXXFLAGS!$CXXFLAGS$ac_delim
34228ac_ct_CXX!$ac_ct_CXX$ac_delim
34229LEX!$LEX$ac_delim
34230LEXLIB!$LEXLIB$ac_delim
34231LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34232FLEX!$FLEX$ac_delim
34233YACC!$YACC$ac_delim
34234YFLAGS!$YFLAGS$ac_delim
34235BISON!$BISON$ac_delim
34236NM!$NM$ac_delim
34237ifGNUmake!$ifGNUmake$ac_delim
34238LN_S!$LN_S$ac_delim
34239CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034240_ACEOF
34241
34242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34243 break
34244 elif $ac_last_try; then
34245 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34246echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34247 { (exit 1); exit 1; }; }
34248 else
34249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034250 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034251done
34252
34253ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34254if test -n "$ac_eof"; then
34255 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34256 ac_eof=`expr $ac_eof + 1`
34257fi
34258
34259cat >>$CONFIG_STATUS <<_ACEOF
34260cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34262_ACEOF
34263sed '
34264s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34265s/^/s,@/; s/!/@,|#_!!_#|/
34266:n
34267t n
34268s/'"$ac_delim"'$/,g/; t
34269s/$/\\/; p
34270N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34271' >>$CONFIG_STATUS <conf$$subs.sed
34272rm -f conf$$subs.sed
34273cat >>$CONFIG_STATUS <<_ACEOF
34274CEOF$ac_eof
34275_ACEOF
34276
34277
34278ac_delim='%!_!# '
34279for ac_last_try in false false false false false :; do
34280 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034281CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034282DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034283FIND!$FIND$ac_delim
34284MKDIR!$MKDIR$ac_delim
34285MV!$MV$ac_delim
34286RANLIB!$RANLIB$ac_delim
34287RM!$RM$ac_delim
34288SED!$SED$ac_delim
34289TAR!$TAR$ac_delim
34290BINPWD!$BINPWD$ac_delim
34291GRAPHVIZ!$GRAPHVIZ$ac_delim
34292DOT!$DOT$ac_delim
34293GV!$GV$ac_delim
34294DOTTY!$DOTTY$ac_delim
34295PERL!$PERL$ac_delim
34296HAVE_PERL!$HAVE_PERL$ac_delim
34297INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34298INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34299INSTALL_DATA!$INSTALL_DATA$ac_delim
34300BZIP2!$BZIP2$ac_delim
34301DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034302GROFF!$GROFF$ac_delim
34303GZIP!$GZIP$ac_delim
34304POD2HTML!$POD2HTML$ac_delim
34305POD2MAN!$POD2MAN$ac_delim
34306RUNTEST!$RUNTEST$ac_delim
34307TCLSH!$TCLSH$ac_delim
34308ZIP!$ZIP$ac_delim
34309INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34310INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34311CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34312CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34313LIBADD_DL!$LIBADD_DL$ac_delim
34314ECHO!$ECHO$ac_delim
34315AR!$AR$ac_delim
34316STRIP!$STRIP$ac_delim
34317CXXCPP!$CXXCPP$ac_delim
34318F77!$F77$ac_delim
34319FFLAGS!$FFLAGS$ac_delim
34320ac_ct_F77!$ac_ct_F77$ac_delim
34321LIBTOOL!$LIBTOOL$ac_delim
34322ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34323LLVMGCC!$LLVMGCC$ac_delim
34324LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034325USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034326HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034327HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034328ALLOCA!$ALLOCA$ac_delim
34329MMAP_FILE!$MMAP_FILE$ac_delim
34330LLVMCC1!$LLVMCC1$ac_delim
34331LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34332LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034333LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034334LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34335LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34336SHLIBEXT!$SHLIBEXT$ac_delim
34337LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34338LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34339LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34340LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34341LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34342LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34343LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34344LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34345LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34346LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34347LIBOBJS!$LIBOBJS$ac_delim
34348LTLIBOBJS!$LTLIBOBJS$ac_delim
34349_ACEOF
34350
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034351 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
Reid Spencera773bd52006-08-04 18:18:08 +000034352 break
34353 elif $ac_last_try; then
34354 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34355echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34356 { (exit 1); exit 1; }; }
34357 else
34358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34359 fi
34360done
34361
34362ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34363if test -n "$ac_eof"; then
34364 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34365 ac_eof=`expr $ac_eof + 1`
34366fi
34367
34368cat >>$CONFIG_STATUS <<_ACEOF
34369cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34370/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34371_ACEOF
34372sed '
34373s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34374s/^/s,@/; s/!/@,|#_!!_#|/
34375:n
34376t n
34377s/'"$ac_delim"'$/,g/; t
34378s/$/\\/; p
34379N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34380' >>$CONFIG_STATUS <conf$$subs.sed
34381rm -f conf$$subs.sed
34382cat >>$CONFIG_STATUS <<_ACEOF
34383:end
34384s/|#_!!_#|//g
34385CEOF$ac_eof
34386_ACEOF
34387
34388
34389# VPATH may cause trouble with some makes, so we remove $(srcdir),
34390# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34391# trailing colons and then remove the whole line if VPATH becomes empty
34392# (actually we leave an empty line to preserve line numbers).
34393if test "x$srcdir" = x.; then
34394 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34395s/:*\$(srcdir):*/:/
34396s/:*\${srcdir}:*/:/
34397s/:*@srcdir@:*/:/
34398s/^\([^=]*=[ ]*\):*/\1/
34399s/:*$//
34400s/^[^=]*=[ ]*$//
34401}'
34402fi
34403
34404cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034405fi # test -n "$CONFIG_FILES"
34406
Reid Spencera773bd52006-08-04 18:18:08 +000034407
34408for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34409do
34410 case $ac_tag in
34411 :[FHLC]) ac_mode=$ac_tag; continue;;
34412 esac
34413 case $ac_mode$ac_tag in
34414 :[FHL]*:*);;
34415 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34416echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34417 { (exit 1); exit 1; }; };;
34418 :[FH]-) ac_tag=-:-;;
34419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34420 esac
34421 ac_save_IFS=$IFS
34422 IFS=:
34423 set x $ac_tag
34424 IFS=$ac_save_IFS
34425 shift
34426 ac_file=$1
34427 shift
34428
34429 case $ac_mode in
34430 :L) ac_source=$1;;
34431 :[FH])
34432 ac_file_inputs=
34433 for ac_f
34434 do
34435 case $ac_f in
34436 -) ac_f="$tmp/stdin";;
34437 *) # Look for the file first in the build tree, then in the source tree
34438 # (if the path is not absolute). The absolute path cannot be DOS-style,
34439 # because $ac_f cannot contain `:'.
34440 test -f "$ac_f" ||
34441 case $ac_f in
34442 [\\/$]*) false;;
34443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34444 esac ||
34445 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34446echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34447 { (exit 1); exit 1; }; };;
34448 esac
34449 ac_file_inputs="$ac_file_inputs $ac_f"
34450 done
34451
34452 # Let's still pretend it is `configure' which instantiates (i.e., don't
34453 # use $as_me), people would be surprised to read:
34454 # /* config.h. Generated by config.status. */
34455 configure_input="Generated from "`IFS=:
34456 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34457 if test x"$ac_file" != x-; then
34458 configure_input="$ac_file. $configure_input"
34459 { echo "$as_me:$LINENO: creating $ac_file" >&5
34460echo "$as_me: creating $ac_file" >&6;}
34461 fi
34462
34463 case $ac_tag in
34464 *:-:* | *:-) cat >"$tmp/stdin";;
34465 esac
34466 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034467 esac
34468
Reid Spencera773bd52006-08-04 18:18:08 +000034469 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034470$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034471 X"$ac_file" : 'X\(//\)[^/]' \| \
34472 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034474echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34476 s//\1/
34477 q
34478 }
34479 /^X\(\/\/\)[^/].*/{
34480 s//\1/
34481 q
34482 }
34483 /^X\(\/\/\)$/{
34484 s//\1/
34485 q
34486 }
34487 /^X\(\/\).*/{
34488 s//\1/
34489 q
34490 }
34491 s/.*/./; q'`
34492 { as_dir="$ac_dir"
34493 case $as_dir in #(
34494 -*) as_dir=./$as_dir;;
34495 esac
34496 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034497 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034498 while :; do
34499 case $as_dir in #(
34500 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34501 *) as_qdir=$as_dir;;
34502 esac
34503 as_dirs="'$as_qdir' $as_dirs"
34504 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034506 X"$as_dir" : 'X\(//\)[^/]' \| \
34507 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034509echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34511 s//\1/
34512 q
34513 }
34514 /^X\(\/\/\)[^/].*/{
34515 s//\1/
34516 q
34517 }
34518 /^X\(\/\/\)$/{
34519 s//\1/
34520 q
34521 }
34522 /^X\(\/\).*/{
34523 s//\1/
34524 q
34525 }
34526 s/.*/./; q'`
34527 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034528 done
Reid Spencera773bd52006-08-04 18:18:08 +000034529 test -z "$as_dirs" || eval "mkdir $as_dirs"
34530 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34531echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034532 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034533 ac_builddir=.
34534
Reid Spencera773bd52006-08-04 18:18:08 +000034535case "$ac_dir" in
34536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34537*)
John Criswell7a73b802003-06-30 21:59:07 +000034538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034539 # A ".." for each directory in $ac_dir_suffix.
34540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34541 case $ac_top_builddir_sub in
34542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34544 esac ;;
34545esac
34546ac_abs_top_builddir=$ac_pwd
34547ac_abs_builddir=$ac_pwd$ac_dir_suffix
34548# for backward compatibility:
34549ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034550
34551case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034552 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034553 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034554 ac_top_srcdir=$ac_top_builddir_sub
34555 ac_abs_top_srcdir=$ac_pwd ;;
34556 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034557 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034558 ac_top_srcdir=$srcdir
34559 ac_abs_top_srcdir=$srcdir ;;
34560 *) # Relative name.
34561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34562 ac_top_srcdir=$ac_top_build_prefix$srcdir
34563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034564esac
Reid Spencera773bd52006-08-04 18:18:08 +000034565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034566
John Criswell7a73b802003-06-30 21:59:07 +000034567
Reid Spencera773bd52006-08-04 18:18:08 +000034568 case $ac_mode in
34569 :F)
34570 #
34571 # CONFIG_FILE
34572 #
John Criswell7a73b802003-06-30 21:59:07 +000034573
34574 case $INSTALL in
34575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034577 esac
John Criswell7a73b802003-06-30 21:59:07 +000034578_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034579
34580cat >>$CONFIG_STATUS <<\_ACEOF
34581# If the template does not know about datarootdir, expand it.
34582# FIXME: This hack should be removed a few years after 2.60.
34583ac_datarootdir_hack=; ac_datarootdir_seen=
34584
34585case `sed -n '/datarootdir/ {
34586 p
34587 q
34588}
34589/@datadir@/p
34590/@docdir@/p
34591/@infodir@/p
34592/@localedir@/p
34593/@mandir@/p
34594' $ac_file_inputs` in
34595*datarootdir*) ac_datarootdir_seen=yes;;
34596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34597 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34598echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34599_ACEOF
34600cat >>$CONFIG_STATUS <<_ACEOF
34601 ac_datarootdir_hack='
34602 s&@datadir@&$datadir&g
34603 s&@docdir@&$docdir&g
34604 s&@infodir@&$infodir&g
34605 s&@localedir@&$localedir&g
34606 s&@mandir@&$mandir&g
34607 s&\\\${datarootdir}&$datarootdir&g' ;;
34608esac
34609_ACEOF
34610
34611# Neutralize VPATH when `$srcdir' = `.'.
34612# Shell code in configure.ac might set extrasub.
34613# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034614cat >>$CONFIG_STATUS <<_ACEOF
34615 sed "$ac_vpsub
34616$extrasub
34617_ACEOF
34618cat >>$CONFIG_STATUS <<\_ACEOF
34619:t
34620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034621s&@configure_input@&$configure_input&;t t
34622s&@top_builddir@&$ac_top_builddir_sub&;t t
34623s&@srcdir@&$ac_srcdir&;t t
34624s&@abs_srcdir@&$ac_abs_srcdir&;t t
34625s&@top_srcdir@&$ac_top_srcdir&;t t
34626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34627s&@builddir@&$ac_builddir&;t t
34628s&@abs_builddir@&$ac_abs_builddir&;t t
34629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34630s&@INSTALL@&$ac_INSTALL&;t t
34631$ac_datarootdir_hack
34632" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034633
Reid Spencera773bd52006-08-04 18:18:08 +000034634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34637 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34638which seems to be undefined. Please make sure it is defined." >&5
34639echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34640which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034641
Reid Spencera773bd52006-08-04 18:18:08 +000034642 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034643 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034644 -) cat "$tmp/out"; rm -f "$tmp/out";;
34645 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034646 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034647 ;;
34648 :H)
34649 #
34650 # CONFIG_HEADER
34651 #
John Criswell7a73b802003-06-30 21:59:07 +000034652_ACEOF
34653
Reid Spencera773bd52006-08-04 18:18:08 +000034654# Transform confdefs.h into a sed script `conftest.defines', that
34655# substitutes the proper values into config.h.in to produce config.h.
34656rm -f conftest.defines conftest.tail
34657# First, append a space to every undef/define line, to ease matching.
34658echo 's/$/ /' >conftest.defines
34659# Then, protect against being on the right side of a sed subst, or in
34660# an unquoted here document, in config.status. If some macros were
34661# called several times there might be several #defines for the same
34662# symbol, which is useless. But do not sort them, since the last
34663# AC_DEFINE must be honored.
34664ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34665# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34666# NAME is the cpp macro being defined, VALUE is the value it is being given.
34667# PARAMS is the parameter list in the macro definition--in most cases, it's
34668# just an empty string.
34669ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34670ac_dB='\\)[ (].*,\\1define\\2'
34671ac_dC=' '
34672ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034673
Reid Spencera773bd52006-08-04 18:18:08 +000034674uniq confdefs.h |
34675 sed -n '
34676 t rset
34677 :rset
34678 s/^[ ]*#[ ]*define[ ][ ]*//
34679 t ok
34680 d
34681 :ok
34682 s/[\\&,]/\\&/g
34683 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34684 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34685 ' >>conftest.defines
34686
34687# Remove the space that was appended to ease matching.
34688# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034689# example, in the case of _POSIX_SOURCE, which is predefined and required
34690# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034691# (The regexp can be short, since the line contains either #define or #undef.)
34692echo 's/ $//
34693s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034694
Reid Spencera773bd52006-08-04 18:18:08 +000034695# Break up conftest.defines:
34696ac_max_sed_lines=50
34697
34698# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34699# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34700# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34701# et cetera.
34702ac_in='$ac_file_inputs'
34703ac_out='"$tmp/out1"'
34704ac_nxt='"$tmp/out2"'
34705
34706while :
John Criswell7a73b802003-06-30 21:59:07 +000034707do
Reid Spencera773bd52006-08-04 18:18:08 +000034708 # Write a here document:
34709 cat >>$CONFIG_STATUS <<_ACEOF
34710 # First, check the format of the line:
34711 cat >"\$tmp/defines.sed" <<\\CEOF
34712/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34713/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34714b
34715:def
34716_ACEOF
34717 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034718 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034719 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34720 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34721 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34722 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034723 rm -f conftest.defines
34724 mv conftest.tail conftest.defines
34725done
Reid Spencera773bd52006-08-04 18:18:08 +000034726rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034727
Reid Spencera773bd52006-08-04 18:18:08 +000034728echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034729cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034730 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034731 echo "/* $configure_input */" >"$tmp/config.h"
34732 cat "$ac_result" >>"$tmp/config.h"
34733 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34735echo "$as_me: $ac_file is unchanged" >&6;}
34736 else
John Criswell7a73b802003-06-30 21:59:07 +000034737 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034738 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034739 fi
34740 else
Reid Spencera773bd52006-08-04 18:18:08 +000034741 echo "/* $configure_input */"
34742 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034743 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034744 rm -f "$tmp/out12"
34745 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034746
Reid Spencera773bd52006-08-04 18:18:08 +000034747 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34748echo "$as_me: executing $ac_file commands" >&6;}
34749 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034750 esac
John Criswell7a73b802003-06-30 21:59:07 +000034751
Reid Spencera773bd52006-08-04 18:18:08 +000034752
34753 case $ac_file$ac_mode in
34754 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34755 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34756 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34757 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34758 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34759 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34760 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34761 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034762 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034764 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34766 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34768 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34770 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34772 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34773 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34774
34775 esac
34776done # for ac_tag
34777
John Criswell7a73b802003-06-30 21:59:07 +000034778
34779{ (exit 0); exit 0; }
34780_ACEOF
34781chmod +x $CONFIG_STATUS
34782ac_clean_files=$ac_clean_files_save
34783
34784
34785# configure is writing to config.log, and then calls config.status.
34786# config.status does its own redirection, appending to config.log.
34787# Unfortunately, on DOS this fails, as config.log is still kept open
34788# by configure, so config.status won't be able to write to it; its
34789# output is simply discarded. So we exec the FD to /dev/null,
34790# effectively closing config.log, so it can be properly (re)opened and
34791# appended to by config.status. When coming back to configure, we
34792# need to make the FD available again.
34793if test "$no_create" != yes; then
34794 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034795 ac_config_status_args=
34796 test "$silent" = yes &&
34797 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034798 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034800 exec 5>>config.log
34801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34802 # would make configure fail if this is the last instruction.
34803 $ac_cs_success || { (exit 1); exit 1; }
34804fi
34805
John Criswell12399a12003-09-30 15:55:44 +000034806#
34807# CONFIG_SUBDIRS section.
34808#
34809if test "$no_recursion" != yes; then
34810
34811 # Remove --cache-file and --srcdir arguments so they do not pile up.
34812 ac_sub_configure_args=
34813 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034814 eval "set x $ac_configure_args"
34815 shift
34816 for ac_arg
34817 do
John Criswell12399a12003-09-30 15:55:44 +000034818 if test -n "$ac_prev"; then
34819 ac_prev=
34820 continue
34821 fi
34822 case $ac_arg in
34823 -cache-file | --cache-file | --cache-fil | --cache-fi \
34824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34825 ac_prev=cache_file ;;
34826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34828 | --c=*)
34829 ;;
34830 --config-cache | -C)
34831 ;;
34832 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34833 ac_prev=srcdir ;;
34834 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34835 ;;
34836 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34837 ac_prev=prefix ;;
34838 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034840 *)
34841 case $ac_arg in
34842 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34843 esac
34844 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034845 esac
34846 done
34847
34848 # Always prepend --prefix to ensure using the same prefix
34849 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034850 ac_arg="--prefix=$prefix"
34851 case $ac_arg in
34852 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34853 esac
34854 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034855
34856 ac_popdir=`pwd`
34857 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34858
34859 # Do not complain, so a configure script can configure whichever
34860 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034861 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034862
Reid Spencera773bd52006-08-04 18:18:08 +000034863 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34864 echo "$as_me:$LINENO: $ac_msg" >&5
34865 echo "$ac_msg" >&6
34866 { as_dir="$ac_dir"
34867 case $as_dir in #(
34868 -*) as_dir=./$as_dir;;
34869 esac
34870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034871 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034872 while :; do
34873 case $as_dir in #(
34874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34875 *) as_qdir=$as_dir;;
34876 esac
34877 as_dirs="'$as_qdir' $as_dirs"
34878 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034880 X"$as_dir" : 'X\(//\)[^/]' \| \
34881 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034883echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34885 s//\1/
34886 q
34887 }
34888 /^X\(\/\/\)[^/].*/{
34889 s//\1/
34890 q
34891 }
34892 /^X\(\/\/\)$/{
34893 s//\1/
34894 q
34895 }
34896 /^X\(\/\).*/{
34897 s//\1/
34898 q
34899 }
34900 s/.*/./; q'`
34901 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034902 done
Reid Spencera773bd52006-08-04 18:18:08 +000034903 test -z "$as_dirs" || eval "mkdir $as_dirs"
34904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34905echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034906 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034907 ac_builddir=.
34908
Reid Spencera773bd52006-08-04 18:18:08 +000034909case "$ac_dir" in
34910.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34911*)
John Criswell12399a12003-09-30 15:55:44 +000034912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034913 # A ".." for each directory in $ac_dir_suffix.
34914 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34915 case $ac_top_builddir_sub in
34916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34918 esac ;;
34919esac
34920ac_abs_top_builddir=$ac_pwd
34921ac_abs_builddir=$ac_pwd$ac_dir_suffix
34922# for backward compatibility:
34923ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034924
34925case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034926 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034927 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034928 ac_top_srcdir=$ac_top_builddir_sub
34929 ac_abs_top_srcdir=$ac_pwd ;;
34930 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034931 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034932 ac_top_srcdir=$srcdir
34933 ac_abs_top_srcdir=$srcdir ;;
34934 *) # Relative name.
34935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34936 ac_top_srcdir=$ac_top_build_prefix$srcdir
34937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034938esac
Reid Spencera773bd52006-08-04 18:18:08 +000034939ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034940
34941
Reid Spencera773bd52006-08-04 18:18:08 +000034942 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034943
34944 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034945 if test -f "$ac_srcdir/configure.gnu"; then
34946 ac_sub_configure=$ac_srcdir/configure.gnu
34947 elif test -f "$ac_srcdir/configure"; then
34948 ac_sub_configure=$ac_srcdir/configure
34949 elif test -f "$ac_srcdir/configure.in"; then
34950 # This should be Cygnus configure.
34951 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034952 else
34953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34954echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34955 ac_sub_configure=
34956 fi
34957
34958 # The recursion is here.
34959 if test -n "$ac_sub_configure"; then
34960 # Make the cache file name correct relative to the subdirectory.
34961 case $cache_file in
34962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034963 *) # Relative name.
34964 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034965 esac
34966
Reid Spencera773bd52006-08-04 18:18:08 +000034967 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34968echo "$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 +000034969 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034970 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34971 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034973echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34974 { (exit 1); exit 1; }; }
34975 fi
34976
Reid Spencera773bd52006-08-04 18:18:08 +000034977 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034978 done
34979fi
34980
Brian Gaekef3b24102003-11-16 18:38:14 +000034981