blob: 61378672a454cd45bb9821f1652b750e0f48aede [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#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 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 Spencer1000b732006-12-01 00:37:14 +0000900HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000901HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000902ALLOCA
903MMAP_FILE
904LLVMCC1
905LLVMCC1PLUS
906LLVMGCCDIR
907LLVMGCC_VERSION
908LLVMGCC_MAJVERS
909SHLIBEXT
910LLVM_PREFIX
911LLVM_BINDIR
912LLVM_LIBDIR
913LLVM_DATADIR
914LLVM_DOCSDIR
915LLVM_ETCDIR
916LLVM_INCLUDEDIR
917LLVM_INFODIR
918LLVM_MANDIR
919LLVM_CONFIGTIME
920LIBOBJS
921LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000922ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000923 ac_precious_vars='build_alias
924host_alias
925target_alias
926CC
927CFLAGS
928LDFLAGS
929CPPFLAGS
930CPP
931CXX
932CXXFLAGS
933CCC
934YACC
935YFLAGS
936CXXCPP
937F77
938FFLAGS'
939ac_subdirs_all='projects/sample
940projects/Stacker
941projects/privbracket
942projects/llvm-test
943projects/llvm-reopt
944projects/llvm-gcc
945projects/llvm-java
946projects/llvm-tv
947projects/llvm-poolalloc
948projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000949
950# Initialize some variables set by options.
951ac_init_help=
952ac_init_version=false
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000975# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000984includedir='${prefix}/include'
985oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987infodir='${datarootdir}/info'
988htmldir='${docdir}'
989dvidir='${docdir}'
990pdfdir='${docdir}'
991psdir='${docdir}'
992libdir='${exec_prefix}/lib'
993localedir='${datarootdir}/locale'
994mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000995
996ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000997ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000998for ac_option
999do
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001002 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001003 ac_prev=
1004 continue
1005 fi
1006
Reid Spencera773bd52006-08-04 18:18:08 +00001007 case $ac_option in
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *) ac_optarg=yes ;;
1010 esac
John Criswell7a73b802003-06-30 21:59:07 +00001011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
Reid Spencera773bd52006-08-04 18:18:08 +00001014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
Reid Spencera773bd52006-08-04 18:18:08 +00001038 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001039 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001041 datadir=$ac_optarg ;;
1042
Reid Spencera773bd52006-08-04 18:18:08 +00001043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
John Criswell7a73b802003-06-30 21:59:07 +00001050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001057 eval enable_$ac_feature=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001076 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001077
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1086
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1090
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1097
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1102
Reid Spencera773bd52006-08-04 18:18:08 +00001103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1108
John Criswell7a73b802003-06-30 21:59:07 +00001109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1115
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1120
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1125
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1132
Reid Spencera773bd52006-08-04 18:18:08 +00001133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1137
John Criswell7a73b802003-06-30 21:59:07 +00001138 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001139 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001143 localstatedir=$ac_optarg ;;
1144
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1149
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1153
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1156 no_create=yes ;;
1157
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1161
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1170
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1175
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1182
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1189
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1206
Reid Spencera773bd52006-08-04 18:18:08 +00001207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1211
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1216
John Criswell7a73b802003-06-30 21:59:07 +00001217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1220
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1226
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1237
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1242
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1247
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1254
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1259
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1262
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1265
1266 -with-* | --with-*)
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001273 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001274
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001282 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1301
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001313 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001314 export $ac_envvar ;;
1315
1316 *)
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1331fi
1332
Reid Spencera773bd52006-08-04 18:18:08 +00001333# Be sure to have absolute directory names.
1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001338do
Reid Spencera773bd52006-08-04 18:18:08 +00001339 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001340 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001343 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
Reid Spencera773bd52006-08-04 18:18:08 +00001372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1380
1381
John Criswell7a73b802003-06-30 21:59:07 +00001382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001387$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001391echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001409 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001410 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001411 srcdir=..
1412 fi
1413else
1414 ac_srcdir_defaulted=no
1415fi
Reid Spencera773bd52006-08-04 18:18:08 +00001416if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001419 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001420fi
Reid Spencera773bd52006-08-04 18:18:08 +00001421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001424 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
John Criswell7a73b802003-06-30 21:59:07 +00001442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001450\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
John Criswell7a73b802003-06-30 21:59:07 +00001470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001503_ACEOF
1504
1505 cat <<\_ACEOF
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001516 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001517 esac
1518 cat <<\_ACEOF
1519
1520Optional Features:
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001523 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001524 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001525 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001527 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001528 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001529 --enable-pic Build LLVM with Position Independent Code (default
1530 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001531 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001532 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001533 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1534 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001535 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001536 --enable-shared[=PKGS] build shared libraries
1537 [default=enable_shared_default]
1538 --enable-static[=PKGS] build static libraries
1539 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001540 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001541 optimize for fast installation
1542 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001543 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001544
1545Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001548 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1549 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001550 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001551 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1554 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001556
1557Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558 CC C compiler command
1559 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001564 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 CXX C++ compiler command
1566 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001567 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1568 the first program found out of: `bison -y', `byacc', `yacc'.
1569 YFLAGS The list of arguments that will be passed by default to $YACC.
1570 This script will default YFLAGS to the empty string to avoid a
1571 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001572 CXXCPP C++ preprocessor
1573 F77 Fortran 77 compiler command
1574 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
1579Report bugs to <llvmbugs@cs.uiuc.edu>.
1580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001581ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001587 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001588 ac_builddir=.
1589
Reid Spencera773bd52006-08-04 18:18:08 +00001590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
John Criswell7a73b802003-06-30 21:59:07 +00001593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001605
1606case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001607 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001608 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001619esac
Reid Spencera773bd52006-08-04 18:18:08 +00001620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001621
Reid Spencera773bd52006-08-04 18:18:08 +00001622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001630 else
1631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001634 done
1635fi
1636
Reid Spencera773bd52006-08-04 18:18:08 +00001637test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001638if $ac_init_version; then
1639 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001640llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001641generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001642
Reid Spencera773bd52006-08-04 18:18:08 +00001643Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001647
John Criswellc0c186d2005-11-08 21:11:33 +00001648Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001649_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001650 exit
John Criswell7a73b802003-06-30 21:59:07 +00001651fi
Reid Spencera773bd52006-08-04 18:18:08 +00001652cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001653This file contains any messages produced by compilers while
1654running configure, to aid debugging if configure makes a mistake.
1655
Tanya Lattner01d3e382006-11-14 00:59:52 +00001656It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001657generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001658
1659 $ $0 $@
1660
1661_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001662exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001663{
1664cat <<_ASUNAME
1665## --------- ##
1666## Platform. ##
1667## --------- ##
1668
1669hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677
1678/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001681/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001682/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685
1686_ASUNAME
1687
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 echo "PATH: $as_dir"
1694done
Reid Spencera773bd52006-08-04 18:18:08 +00001695IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001696
1697} >&5
1698
1699cat >&5 <<_ACEOF
1700
1701
1702## ----------- ##
1703## Core tests. ##
1704## ----------- ##
1705
1706_ACEOF
1707
1708
1709# Keep a trace of the command line.
1710# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001711# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001712# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001713# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001714ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001715ac_configure_args0=
1716ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001717ac_must_keep_next=false
1718for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001719do
John Criswell0c38eaf2003-09-10 15:17:25 +00001720 for ac_arg
1721 do
1722 case $ac_arg in
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1726 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001727 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 esac
1730 case $ac_pass in
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 2)
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001735 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001737 case $ac_arg in
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 esac
1745 ;;
1746 -* ) ac_must_keep_next=true ;;
1747 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001749 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ;;
1751 esac
1752 done
John Criswell7a73b802003-06-30 21:59:07 +00001753done
John Criswell0c38eaf2003-09-10 15:17:25 +00001754$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755$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 +00001756
1757# When interrupted or exit'd, cleanup temporary files, and complete
1758# config.log. We remove comments because anyway the quotes in there
1759# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001760# WARNING: Use '\'' to represent an apostrophe within the trap.
1761# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001762trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1764 {
1765 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767 cat <<\_ASBOX
1768## ---------------- ##
1769## Cache variables. ##
1770## ---------------- ##
1771_ASBOX
1772 echo
1773 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001774(
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in #(
1778 *${as_nl}*)
1779 case $ac_var in #(
1780 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 esac
1783 case $ac_var in #(
1784 _ | IFS | as_nl) ;; #(
1785 *) $as_unset $ac_var ;;
1786 esac ;;
1787 esac
1788 done
John Criswell7a73b802003-06-30 21:59:07 +00001789 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001792 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001796 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001798 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001799 esac |
1800 sort
1801)
John Criswell7a73b802003-06-30 21:59:07 +00001802 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001803
1804 cat <<\_ASBOX
1805## ----------------- ##
1806## Output variables. ##
1807## ----------------- ##
1808_ASBOX
1809 echo
1810 for ac_var in $ac_subst_vars
1811 do
Reid Spencera773bd52006-08-04 18:18:08 +00001812 eval ac_val=\$$ac_var
1813 case $ac_val in
1814 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 esac
1816 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 done | sort
1818 echo
1819
1820 if test -n "$ac_subst_files"; then
1821 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001822## ------------------- ##
1823## File substitutions. ##
1824## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001825_ASBOX
1826 echo
1827 for ac_var in $ac_subst_files
1828 do
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001834 done | sort
1835 echo
1836 fi
1837
John Criswell7a73b802003-06-30 21:59:07 +00001838 if test -s confdefs.h; then
1839 cat <<\_ASBOX
1840## ----------- ##
1841## confdefs.h. ##
1842## ----------- ##
1843_ASBOX
1844 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001845 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001846 echo
1847 fi
1848 test "$ac_signal" != 0 &&
1849 echo "$as_me: caught signal $ac_signal"
1850 echo "$as_me: exit $exit_status"
1851 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001854 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001855' 0
John Criswell7a73b802003-06-30 21:59:07 +00001856for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858done
1859ac_signal=0
1860
1861# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001862rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001863
1864# Predefined preprocessor variables.
1865
1866cat >>confdefs.h <<_ACEOF
1867#define PACKAGE_NAME "$PACKAGE_NAME"
1868_ACEOF
1869
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_VERSION "$PACKAGE_VERSION"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_STRING "$PACKAGE_STRING"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888_ACEOF
1889
1890
1891# Let the site file select an alternate cache file if it wants to.
1892# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001893if test -n "$CONFIG_SITE"; then
1894 set x "$CONFIG_SITE"
1895elif test "x$prefix" != xNONE; then
1896 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897else
1898 set x "$ac_default_prefix/share/config.site" \
1899 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001900fi
Reid Spencera773bd52006-08-04 18:18:08 +00001901shift
1902for ac_site_file
1903do
John Criswell7a73b802003-06-30 21:59:07 +00001904 if test -r "$ac_site_file"; then
1905 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906echo "$as_me: loading site script $ac_site_file" >&6;}
1907 sed 's/^/| /' "$ac_site_file" >&5
1908 . "$ac_site_file"
1909 fi
1910done
1911
1912if test -r "$cache_file"; then
1913 # Some versions of bash will fail to source /dev/null (special
1914 # files actually), so we avoid doing that.
1915 if test -f "$cache_file"; then
1916 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917echo "$as_me: loading cache $cache_file" >&6;}
1918 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001921 esac
1922 fi
1923else
1924 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925echo "$as_me: creating cache $cache_file" >&6;}
1926 >$cache_file
1927fi
1928
1929# Check that the precious variables saved in the cache have kept the same
1930# value.
1931ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001932for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001937 case $ac_old_set,$ac_new_set in
1938 set,)
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,set)
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,);;
1947 *)
1948 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001949 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001950echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001951 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001952echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001953 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001954echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001955 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001956 fi;;
1957 esac
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1960 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001961 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001962 *) ac_arg=$ac_var=$ac_new_val ;;
1963 esac
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 esac
1968 fi
1969done
1970if $ac_cache_corrupted; then
1971 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
1976fi
1977
Reid Spencera773bd52006-08-04 18:18:08 +00001978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
John Criswell7a73b802003-06-30 21:59:07 +00002002ac_ext=c
2003ac_cpp='$CPP $CPPFLAGS'
2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
Misha Brukman19098e52005-05-12 22:15:34 +00002010LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011
2012
2013
2014
2015
2016
2017
John Criswell7a73b802003-06-30 21:59:07 +00002018ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002019for ac_dir in autoconf "$srcdir"/autoconf; do
2020 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2023 break
Reid Spencera773bd52006-08-04 18:18:08 +00002024 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2027 break
Reid Spencera773bd52006-08-04 18:18:08 +00002028 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 break
2032 fi
2033done
2034if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002035 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2036echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002037 { (exit 1); exit 1; }; }
2038fi
Reid Spencera773bd52006-08-04 18:18:08 +00002039
2040# These three variables are undocumented and unsupported,
2041# and are intended to be withdrawn in a future Autoconf release.
2042# They can cause serious problems if a builder's source tree is in a directory
2043# whose full name contains unusual characters.
2044ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047
John Criswell7a73b802003-06-30 21:59:07 +00002048
John Criswell392aaa32003-07-22 19:18:09 +00002049
Reid Spencer2706f8c2004-09-19 23:53:36 +00002050if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2052 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002053echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2054 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055 fi
John Criswell93e1c722003-09-15 17:04:06 +00002056fi
2057
John Criswell33a911a2003-11-25 20:36:46 +00002058for i in `ls ${srcdir}/projects`
2059do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002060 if test -d ${srcdir}/projects/${i} ; then
2061 case ${i} in
2062 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002063 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002065 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002067 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002069 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002071 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072;;
Reid Spencera773bd52006-08-04 18:18:08 +00002073 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002075 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002076 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002077 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002079 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002080 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002081 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002082 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002084 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2085echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002086 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 esac
John Criswell33a911a2003-11-25 20:36:46 +00002088 fi
2089done
John Criswell559a6c12003-09-30 16:31:48 +00002090
John Criswell7a73b802003-06-30 21:59:07 +00002091
2092# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002093$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002096 { (exit 1); exit 1; }; }
2097
Reid Spencera773bd52006-08-04 18:18:08 +00002098{ echo "$as_me:$LINENO: checking build system type" >&5
2099echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002100if test "${ac_cv_build+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
Reid Spencera773bd52006-08-04 18:18:08 +00002103 ac_build_alias=$build_alias
2104test "x$ac_build_alias" = x &&
2105 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002107 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002110ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002113 { (exit 1); exit 1; }; }
2114
2115fi
Reid Spencera773bd52006-08-04 18:18:08 +00002116{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117echo "${ECHO_T}$ac_cv_build" >&6; }
2118case $ac_cv_build in
2119*-*-*) ;;
2120*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121echo "$as_me: error: invalid value of canonical build" >&2;}
2122 { (exit 1); exit 1; }; };;
2123esac
John Criswell7a73b802003-06-30 21:59:07 +00002124build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002125ac_save_IFS=$IFS; IFS='-'
2126set x $ac_cv_build
2127shift
2128build_cpu=$1
2129build_vendor=$2
2130shift; shift
2131# Remember, the first character of IFS is used to create $*,
2132# except with old shells:
2133build_os=$*
2134IFS=$ac_save_IFS
2135case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002136
2137
Reid Spencera773bd52006-08-04 18:18:08 +00002138{ echo "$as_me:$LINENO: checking host system type" >&5
2139echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002140if test "${ac_cv_host+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
Reid Spencera773bd52006-08-04 18:18:08 +00002143 if test "x$host_alias" = x; then
2144 ac_cv_host=$ac_cv_build
2145else
2146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002150fi
John Criswell7a73b802003-06-30 21:59:07 +00002151
2152fi
Reid Spencera773bd52006-08-04 18:18:08 +00002153{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154echo "${ECHO_T}$ac_cv_host" >&6; }
2155case $ac_cv_host in
2156*-*-*) ;;
2157*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158echo "$as_me: error: invalid value of canonical host" >&2;}
2159 { (exit 1); exit 1; }; };;
2160esac
John Criswell7a73b802003-06-30 21:59:07 +00002161host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_host
2164shift
2165host_cpu=$1
2166host_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170host_os=$*
2171IFS=$ac_save_IFS
2172case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002173
2174
Reid Spencera773bd52006-08-04 18:18:08 +00002175{ echo "$as_me:$LINENO: checking target system type" >&5
2176echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002177if test "${ac_cv_target+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
Reid Spencera773bd52006-08-04 18:18:08 +00002180 if test "x$target_alias" = x; then
2181 ac_cv_target=$ac_cv_host
2182else
2183 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002187fi
John Criswell7a73b802003-06-30 21:59:07 +00002188
2189fi
Reid Spencera773bd52006-08-04 18:18:08 +00002190{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191echo "${ECHO_T}$ac_cv_target" >&6; }
2192case $ac_cv_target in
2193*-*-*) ;;
2194*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195echo "$as_me: error: invalid value of canonical target" >&2;}
2196 { (exit 1); exit 1; }; };;
2197esac
John Criswell7a73b802003-06-30 21:59:07 +00002198target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_target
2201shift
2202target_cpu=$1
2203target_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207target_os=$*
2208IFS=$ac_save_IFS
2209case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002210
2211
2212# The aliases save the names the user supplied, while $host etc.
2213# will get canonicalized.
2214test -n "$target_alias" &&
2215 test "$program_prefix$program_suffix$program_transform_name" = \
2216 NONENONEs,x,x, &&
2217 program_prefix=${target_alias}-
2218
Reid Spencera773bd52006-08-04 18:18:08 +00002219{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2220echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002224 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 llvm_cv_os_type="AIX"
2229 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002230 *-*-irix*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="IRIX"
2234 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002235 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 llvm_cv_os_type="Cygwin"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,-all_load"
2242 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 llvm_cv_os_type="Darwin"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="FreeBSD"
2249 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002250 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002253 llvm_cv_os_type="OpenBSD"
2254 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002255 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002258 llvm_cv_os_type="HP-UX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Interix"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Linux"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,-z,allextract"
2272 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="SunOS"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 llvm_cv_os_type="Win32"
2279 llvm_cv_platform_type="Win32" ;;
2280 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 llvm_cv_os_type="MingW"
2284 llvm_cv_platform_type="Win32" ;;
2285 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option=""
2287 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="Unknown"
2289 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002290esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002291fi
Reid Spencera773bd52006-08-04 18:18:08 +00002292{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002294
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295if test "$llvm_cv_os_type" = "Unknown" ; then
2296 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2297echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002298 { (exit 1); exit 1; }; }
2299fi
2300
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002302
2303
Reid Spencera773bd52006-08-04 18:18:08 +00002304LINKALL=$llvm_cv_link_all_option
2305
2306NOLINKALL=$llvm_cv_no_link_all_option
2307
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309case $llvm_cv_platform_type in
2310 Unix)
2311
2312cat >>confdefs.h <<\_ACEOF
2313#define LLVM_ON_UNIX 1
2314_ACEOF
2315
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002316 LLVM_ON_UNIX=1
2317
2318 LLVM_ON_WIN32=0
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 ;;
2321 Win32)
2322
2323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_WIN32 1
2325_ACEOF
2326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=0
2328
2329 LLVM_ON_WIN32=1
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332esac
2333
Reid Spencera773bd52006-08-04 18:18:08 +00002334{ echo "$as_me:$LINENO: checking target architecture" >&5
2335echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336if test "${llvm_cv_target_arch+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002340 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002341 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002342 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2343 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002344 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002345 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002346 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002347esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348fi
Reid Spencera773bd52006-08-04 18:18:08 +00002349{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2350echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002351
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352if test "$llvm_cv_target_arch" = "Unknown" ; then
2353 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2354echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2355fi
John Criswell76595452003-07-01 22:07:39 +00002356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002357ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002358
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002365if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002382 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 +00002383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387done
2388done
Reid Spencera773bd52006-08-04 18:18:08 +00002389IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390
2391fi
2392fi
2393CC=$ac_cv_prog_CC
2394if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002395 { echo "$as_me:$LINENO: result: $CC" >&5
2396echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397else
Reid Spencera773bd52006-08-04 18:18:08 +00002398 { echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400fi
2401
Reid Spencera773bd52006-08-04 18:18:08 +00002402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403fi
2404if test -z "$ac_cv_prog_CC"; then
2405 ac_ct_CC=$CC
2406 # Extract the first word of "gcc", so it can be a program name with args.
2407set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 ac_cv_prog_ac_ct_CC="gcc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427done
2428done
Reid Spencera773bd52006-08-04 18:18:08 +00002429IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430
2431fi
2432fi
2433ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002435 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: no" >&5
2439echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440fi
2441
Reid Spencera773bd52006-08-04 18:18:08 +00002442 if test "x$ac_ct_CC" = x; then
2443 CC=""
2444 else
2445 case $cross_compiling:$ac_tool_warned in
2446yes:)
2447{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2448whose name does not start with the host triplet. If you think this
2449configuration is useful to you, please write to autoconf@gnu.org." >&5
2450echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2451whose name does not start with the host triplet. If you think this
2452configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2453ac_tool_warned=yes ;;
2454esac
2455 CC=$ac_ct_CC
2456 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457else
2458 CC="$ac_cv_prog_CC"
2459fi
2460
2461if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002462 if test -n "$ac_tool_prefix"; then
2463 # 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 +00002464set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002479 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 +00002480 ac_cv_prog_CC="${ac_tool_prefix}cc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
Reid Spencera773bd52006-08-04 18:18:08 +00002486IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002492 { echo "$as_me:$LINENO: result: $CC" >&5
2493echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
Reid Spencera773bd52006-08-04 18:18:08 +00002495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497fi
2498
Reid Spencera773bd52006-08-04 18:18:08 +00002499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501fi
2502if test -z "$CC"; then
2503 # Extract the first word of "cc", so it can be a program name with args.
2504set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507if test "${ac_cv_prog_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
2513 ac_prog_rejected=no
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002520 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 +00002521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522 ac_prog_rejected=yes
2523 continue
2524 fi
2525 ac_cv_prog_CC="cc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
2530done
Reid Spencera773bd52006-08-04 18:18:08 +00002531IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532
2533if test $ac_prog_rejected = yes; then
2534 # We found a bogon in the path, so make sure we never use it.
2535 set dummy $ac_cv_prog_CC
2536 shift
2537 if test $# != 0; then
2538 # We chose a different compiler from the bogus one.
2539 # However, it has the same basename, so the bogon will be chosen
2540 # first if we set CC to just the basename; use the full file name.
2541 shift
2542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543 fi
2544fi
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002549 { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551else
Reid Spencera773bd52006-08-04 18:18:08 +00002552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554fi
2555
Reid Spencera773bd52006-08-04 18:18:08 +00002556
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002560 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002561 do
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002578 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 +00002579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583done
2584done
Reid Spencera773bd52006-08-04 18:18:08 +00002585IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002586
2587fi
2588fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 { echo "$as_me:$LINENO: result: $CC" >&5
2592echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencera773bd52006-08-04 18:18:08 +00002594 { echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002596fi
2597
Reid Spencera773bd52006-08-04 18:18:08 +00002598
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002600 done
2601fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test -z "$CC"; then
2603 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002604 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002605do
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002622 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 +00002623 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628done
Reid Spencera773bd52006-08-04 18:18:08 +00002629IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002630
2631fi
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002635 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002640fi
2641
Reid Spencera773bd52006-08-04 18:18:08 +00002642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002644done
John Criswell7a73b802003-06-30 21:59:07 +00002645
Reid Spencera773bd52006-08-04 18:18:08 +00002646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650yes:)
2651{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652whose name does not start with the host triplet. If you think this
2653configuration is useful to you, please write to autoconf@gnu.org." >&5
2654echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655whose name does not start with the host triplet. If you think this
2656configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657ac_tool_warned=yes ;;
2658esac
2659 CC=$ac_ct_CC
2660 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661fi
2662
John Criswell7a73b802003-06-30 21:59:07 +00002663fi
2664
2665
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2667See \`config.log' for more details." >&5
2668echo "$as_me: error: no acceptable C compiler found in \$PATH
2669See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }
2671
John Criswell7a73b802003-06-30 21:59:07 +00002672# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002673echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002674ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002675{ (ac_try="$ac_compiler --version >&5"
2676case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679esac
2680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002685{ (ac_try="$ac_compiler -v >&5"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002695{ (ac_try="$ac_compiler -V >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705
2706cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002712
John Criswell7a73b802003-06-30 21:59:07 +00002713int
2714main ()
2715{
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002722ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002723# Try to create an executable without -o first, disregard a.out.
2724# It will help us diagnose broken compilers, and finding out an intuition
2725# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002726{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002728ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002729#
2730# List of possible output files, starting from the most likely.
2731# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2732# only as a last resort. b.out is created by i960 compilers.
2733ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2734#
2735# The IRIX 6 linker writes into existing files which may not be
2736# executable, retaining their permissions. Remove them first so a
2737# subsequent execution test works.
2738ac_rmfiles=
2739for ac_file in $ac_files
2740do
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744 esac
2745done
2746rm -f $ac_rmfiles
2747
2748if { (ac_try="$ac_link_default"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760# in a Makefile. We should not override ac_cv_exeext if it was cached,
2761# so that the user can short-circuit this test for compilers unknown to
2762# Autoconf.
2763for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002764do
2765 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002766 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002768 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002769 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002770 # We found the default executable, but exeext='' is most
2771 # certainly right.
2772 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002773 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 then :; else
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 fi
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2782 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002783 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002784 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002785 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002786 esac
2787done
Reid Spencera773bd52006-08-04 18:18:08 +00002788test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
John Criswell7a73b802003-06-30 21:59:07 +00002790else
2791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002792sed 's/^/| /' conftest.$ac_ext >&5
2793
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002794{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002795See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002796echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002797See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002798 { (exit 77); exit 77; }; }
2799fi
2800
2801ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002802{ echo "$as_me:$LINENO: result: $ac_file" >&5
2803echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002804
Reid Spencera773bd52006-08-04 18:18:08 +00002805# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002806# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002807{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2808echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002809# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2810# If not cross compiling, check that we can run a simple program.
2811if test "$cross_compiling" != yes; then
2812 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 cross_compiling=no
2823 else
2824 if test "$cross_compiling" = maybe; then
2825 cross_compiling=yes
2826 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002828If you meant to cross compile, use \`--host'.
2829See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002830echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002831If you meant to cross compile, use \`--host'.
2832See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002833 { (exit 1); exit 1; }; }
2834 fi
2835 fi
2836fi
Reid Spencera773bd52006-08-04 18:18:08 +00002837{ echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002839
John Criswell0c38eaf2003-09-10 15:17:25 +00002840rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002841ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002842# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002843# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002844{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2845echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2846{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2847echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002848
Reid Spencera773bd52006-08-04 18:18:08 +00002849{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2850echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2851if { (ac_try="$ac_link"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; then
2861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2862# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2863# work properly (i.e., refer to `conftest.exe'), while it won't with
2864# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002865for ac_file in conftest.exe conftest conftest.*; do
2866 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002867 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002870 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002871 * ) break;;
2872 esac
2873done
2874else
John Criswell0c38eaf2003-09-10 15:17:25 +00002875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2878See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002879 { (exit 1); exit 1; }; }
2880fi
2881
2882rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002883{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2884echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002885
2886rm -f conftest.$ac_ext
2887EXEEXT=$ac_cv_exeext
2888ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2890echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891if test "${ac_cv_objext+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002895/* confdefs.h. */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002900
John Criswell7a73b802003-06-30 21:59:07 +00002901int
2902main ()
2903{
2904
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002910if { (ac_try="$ac_compile"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002920 for ac_file in conftest.o conftest.obj conftest.*; do
2921 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002922 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925 break;;
2926 esac
2927done
2928else
2929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2933See \`config.log' for more details." >&5
2934echo "$as_me: error: cannot compute suffix of object files: cannot compile
2935See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002936 { (exit 1); exit 1; }; }
2937fi
2938
2939rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940fi
Reid Spencera773bd52006-08-04 18:18:08 +00002941{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002943OBJEXT=$ac_cv_objext
2944ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002945{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002947if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002956
John Criswell7a73b802003-06-30 21:59:07 +00002957int
2958main ()
2959{
2960#ifndef __GNUC__
2961 choke me
2962#endif
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002969if { (ac_try="$ac_compile"
2970case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 ac_compiler_gnu=yes
3003else
3004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003005sed 's/^/| /' conftest.$ac_ext >&5
3006
Reid Spencera773bd52006-08-04 18:18:08 +00003007 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003008fi
Reid Spencera773bd52006-08-04 18:18:08 +00003009
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003011ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003012
3013fi
Reid Spencera773bd52006-08-04 18:18:08 +00003014{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003016GCC=`test $ac_compiler_gnu = yes && echo yes`
3017ac_test_CFLAGS=${CFLAGS+set}
3018ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003019{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003021if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
Reid Spencera773bd52006-08-04 18:18:08 +00003024 ac_save_c_werror_flag=$ac_c_werror_flag
3025 ac_c_werror_flag=yes
3026 ac_cv_prog_cc_g=no
3027 CFLAGS="-g"
3028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003034
John Criswell7a73b802003-06-30 21:59:07 +00003035int
3036main ()
3037{
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003078else
3079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003080sed 's/^/| /' conftest.$ac_ext >&5
3081
Reid Spencera773bd52006-08-04 18:18:08 +00003082 CFLAGS=""
3083 cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089
3090int
3091main ()
3092{
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
3099if { (ac_try="$ac_compile"
3100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 :
3133else
3134 echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 ac_c_werror_flag=$ac_save_c_werror_flag
3138 CFLAGS="-g"
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
3145
3146int
3147main ()
3148{
3149
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (ac_try="$ac_compile"
3156case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_cv_prog_cc_g=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
John Criswell7a73b802003-06-30 21:59:07 +00003194fi
Reid Spencera773bd52006-08-04 18:18:08 +00003195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003197fi
Reid Spencera773bd52006-08-04 18:18:08 +00003198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3204fi
3205{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003212 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003214 fi
3215else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003218 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003220 fi
3221fi
Reid Spencera773bd52006-08-04 18:18:08 +00003222{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
Reid Spencera773bd52006-08-04 18:18:08 +00003227 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228ac_save_CC=$CC
3229cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#include <stdarg.h>
3236#include <stdio.h>
3237#include <sys/types.h>
3238#include <sys/stat.h>
3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240struct buf { int x; };
3241FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242static char *e (p, i)
3243 char **p;
3244 int i;
3245{
3246 return p[i];
3247}
3248static char *f (char * (*g) (char **, int), char **p, ...)
3249{
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3256}
3257
3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003261 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003264 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
Reid Spencera773bd52006-08-04 18:18:08 +00003267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269#define FOO(x) 'x'
3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272int test (int i, double x);
3273struct s1 {int (*f) (int a);};
3274struct s2 {int (*f) (double a);};
3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276int argc;
3277char **argv;
3278int
3279main ()
3280{
3281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 ;
3283 return 0;
3284}
3285_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288do
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003324 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
Reid Spencera773bd52006-08-04 18:18:08 +00003329
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331
3332rm -f core conftest.err conftest.$ac_objext
3333 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334done
Reid Spencera773bd52006-08-04 18:18:08 +00003335rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336CC=$ac_save_CC
3337
3338fi
Reid Spencera773bd52006-08-04 18:18:08 +00003339# AC_CACHE_VAL
3340case "x$ac_cv_prog_cc_c89" in
3341 x)
3342 { echo "$as_me:$LINENO: result: none needed" >&5
3343echo "${ECHO_T}none needed" >&6; } ;;
3344 xno)
3345 { echo "$as_me:$LINENO: result: unsupported" >&5
3346echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003348 CC="$CC $ac_cv_prog_cc_c89"
3349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3350echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351esac
3352
John Criswell0c38eaf2003-09-10 15:17:25 +00003353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359
3360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003366{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368# On Suns, sometimes $CPP names a directory.
3369if test -n "$CPP" && test -d "$CPP"; then
3370 CPP=
3371fi
3372if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378 do
3379 ac_preproc_ok=false
3380for ac_c_preproc_warn_flag in '' yes
3381do
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#ifdef __STDC__
3395# include <limits.h>
3396#else
3397# include <assert.h>
3398#endif
3399 Syntax error
3400_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 else
3418 ac_cpp_err=
3419 fi
3420else
3421 ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
3424 :
3425else
3426 echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 # Broken: fails on valid input.
3430continue
3431fi
Reid Spencera773bd52006-08-04 18:18:08 +00003432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433rm -f conftest.err conftest.$ac_ext
3434
Reid Spencera773bd52006-08-04 18:18:08 +00003435 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436 # can be detected and how.
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443#include <ac_nonexistent.h>
3444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003445if { (ac_try="$ac_cpp conftest.$ac_ext"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 else
3462 ac_cpp_err=
3463 fi
3464else
3465 ac_cpp_err=yes
3466fi
3467if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3469continue
3470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 # Passes both tests.
3475ac_preproc_ok=:
3476break
3477fi
Reid Spencera773bd52006-08-04 18:18:08 +00003478
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479rm -f conftest.err conftest.$ac_ext
3480
3481done
3482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483rm -f conftest.err conftest.$ac_ext
3484if $ac_preproc_ok; then
3485 break
3486fi
3487
3488 done
3489 ac_cv_prog_CPP=$CPP
3490
3491fi
3492 CPP=$ac_cv_prog_CPP
3493else
3494 ac_cv_prog_CPP=$CPP
3495fi
Reid Spencera773bd52006-08-04 18:18:08 +00003496{ echo "$as_me:$LINENO: result: $CPP" >&5
3497echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498ac_preproc_ok=false
3499for ac_c_preproc_warn_flag in '' yes
3500do
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
3518 Syntax error
3519_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003520if { (ac_try="$ac_cpp conftest.$ac_ext"
3521case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524esac
3525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 else
3537 ac_cpp_err=
3538 fi
3539else
3540 ac_cpp_err=yes
3541fi
3542if test -z "$ac_cpp_err"; then
3543 :
3544else
3545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 # Broken: fails on valid input.
3549continue
3550fi
Reid Spencera773bd52006-08-04 18:18:08 +00003551
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552rm -f conftest.err conftest.$ac_ext
3553
Reid Spencera773bd52006-08-04 18:18:08 +00003554 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555 # can be detected and how.
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562#include <ac_nonexistent.h>
3563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003564if { (ac_try="$ac_cpp conftest.$ac_ext"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 else
3581 ac_cpp_err=
3582 fi
3583else
3584 ac_cpp_err=yes
3585fi
3586if test -z "$ac_cpp_err"; then
3587 # Broken: success on invalid input.
3588continue
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 # Passes both tests.
3594ac_preproc_ok=:
3595break
3596fi
Reid Spencera773bd52006-08-04 18:18:08 +00003597
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598rm -f conftest.err conftest.$ac_ext
3599
3600done
3601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602rm -f conftest.err conftest.$ac_ext
3603if $ac_preproc_ok; then
3604 :
3605else
3606 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607See \`config.log' for more details." >&5
3608echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609See \`config.log' for more details." >&2;}
3610 { (exit 1); exit 1; }; }
3611fi
3612
John Criswell7a73b802003-06-30 21:59:07 +00003613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
John Criswell7a73b802003-06-30 21:59:07 +00003619
Reid Spencera773bd52006-08-04 18:18:08 +00003620{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003622if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
Reid Spencera773bd52006-08-04 18:18:08 +00003625 # Extract the first word of "grep ggrep" to use in msg output
3626if test -z "$GREP"; then
3627set dummy grep ggrep; ac_prog_name=$2
3628if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
Reid Spencera773bd52006-08-04 18:18:08 +00003631 ac_path_GREP_found=false
3632# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003638 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003639 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642 # Check for GNU ac_path_GREP and select it if it is found.
3643 # Check for GNU $ac_path_GREP
3644case `"$ac_path_GREP" --version 2>&1` in
3645*GNU*)
3646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647*)
3648 ac_count=0
3649 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650 while :
3651 do
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 echo 'GREP' >> "conftest.nl"
3656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_GREP="$ac_path_GREP"
3662 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003663 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3666 done
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668esac
3669
3670
3671 $ac_path_GREP_found && break 3
3672 done
3673done
3674
3675done
3676IFS=$as_save_IFS
3677
3678
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679fi
Reid Spencera773bd52006-08-04 18:18:08 +00003680
3681GREP="$ac_cv_path_GREP"
3682if test -z "$GREP"; then
3683 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685 { (exit 1); exit 1; }; }
3686fi
3687
3688else
3689 ac_cv_path_GREP=$GREP
3690fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691
John Criswell7a73b802003-06-30 21:59:07 +00003692
Reid Spencera773bd52006-08-04 18:18:08 +00003693fi
3694{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696 GREP="$ac_cv_path_GREP"
3697
3698
3699{ echo "$as_me:$LINENO: checking for egrep" >&5
3700echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705 then ac_cv_path_EGREP="$GREP -E"
3706 else
3707 # Extract the first word of "egrep" to use in msg output
3708if test -z "$EGREP"; then
3709set dummy egrep; ac_prog_name=$2
3710if test "${ac_cv_path_EGREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 ac_path_EGREP_found=false
3714# Loop through the user's path and test for each of PROGNAME-LIST
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_prog in egrep; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724 # Check for GNU ac_path_EGREP and select it if it is found.
3725 # Check for GNU $ac_path_EGREP
3726case `"$ac_path_EGREP" --version 2>&1` in
3727*GNU*)
3728 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729*)
3730 ac_count=0
3731 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3732 while :
3733 do
3734 cat "conftest.in" "conftest.in" >"conftest.tmp"
3735 mv "conftest.tmp" "conftest.in"
3736 cp "conftest.in" "conftest.nl"
3737 echo 'EGREP' >> "conftest.nl"
3738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740 ac_count=`expr $ac_count + 1`
3741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742 # Best one so far, save it but keep looking for a better one
3743 ac_cv_path_EGREP="$ac_path_EGREP"
3744 ac_path_EGREP_max=$ac_count
3745 fi
3746 # 10*(2^10) chars as input seems more than enough
3747 test $ac_count -gt 10 && break
3748 done
3749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750esac
3751
3752
3753 $ac_path_EGREP_found && break 3
3754 done
3755done
3756
3757done
3758IFS=$as_save_IFS
3759
3760
3761fi
3762
3763EGREP="$ac_cv_path_EGREP"
3764if test -z "$EGREP"; then
3765 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767 { (exit 1); exit 1; }; }
3768fi
3769
3770else
3771 ac_cv_path_EGREP=$EGREP
3772fi
3773
3774
3775 fi
3776fi
3777{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779 EGREP="$ac_cv_path_EGREP"
3780
3781
3782{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003784if test "${ac_cv_header_stdc+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003788/* confdefs.h. */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003793#include <stdlib.h>
3794#include <stdarg.h>
3795#include <string.h>
3796#include <float.h>
3797
John Criswell0c38eaf2003-09-10 15:17:25 +00003798int
3799main ()
3800{
3801
3802 ;
3803 return 0;
3804}
John Criswell7a73b802003-06-30 21:59:07 +00003805_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003806rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003807if { (ac_try="$ac_compile"
3808case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003819 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3821 { (case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824esac
3825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834esac
3835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003840 ac_cv_header_stdc=yes
3841else
3842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003843sed 's/^/| /' conftest.$ac_ext >&5
3844
Reid Spencera773bd52006-08-04 18:18:08 +00003845 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003846fi
Reid Spencera773bd52006-08-04 18:18:08 +00003847
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003849
3850if test $ac_cv_header_stdc = yes; then
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003853/* confdefs.h. */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003858#include <string.h>
3859
3860_ACEOF
3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003862 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003863 :
3864else
3865 ac_cv_header_stdc=no
3866fi
3867rm -f conftest*
3868
3869fi
3870
3871if test $ac_cv_header_stdc = yes; then
3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003879#include <stdlib.h>
3880
3881_ACEOF
3882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003883 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003884 :
3885else
3886 ac_cv_header_stdc=no
3887fi
3888rm -f conftest*
3889
3890fi
3891
3892if test $ac_cv_header_stdc = yes; then
3893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894 if test "$cross_compiling" = yes; then
3895 :
3896else
3897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003903#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003904#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003905#if ((' ' & 0x0FF) == 0x020)
3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003909# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914#endif
3915
3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917int
3918main ()
3919{
3920 int i;
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003923 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003924 return 2;
3925 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003926}
3927_ACEOF
3928rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003929if { (ac_try="$ac_link"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003939 { (case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 :
3949else
3950 echo "$as_me: program exited with status $ac_status" >&5
3951echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003952sed 's/^/| /' conftest.$ac_ext >&5
3953
John Criswell7a73b802003-06-30 21:59:07 +00003954( exit $ac_status )
3955ac_cv_header_stdc=no
3956fi
Reid Spencera773bd52006-08-04 18:18:08 +00003957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3958fi
3959
3960
John Criswell7a73b802003-06-30 21:59:07 +00003961fi
3962fi
Reid Spencera773bd52006-08-04 18:18:08 +00003963{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3964echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003965if test $ac_cv_header_stdc = yes; then
3966
3967cat >>confdefs.h <<\_ACEOF
3968#define STDC_HEADERS 1
3969_ACEOF
3970
3971fi
3972
Reid Spencera773bd52006-08-04 18:18:08 +00003973# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3984 inttypes.h stdint.h unistd.h
3985do
3986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992 cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h. */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h. */
3998$ac_includes_default
3999
4000#include <$ac_header>
4001_ACEOF
4002rm -f conftest.$ac_objext
4003if { (ac_try="$ac_compile"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017 { (case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020esac
4021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_try") 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 eval "$as_ac_Header=yes"
4037else
4038 echo "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 eval "$as_ac_Header=no"
4042fi
4043
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045fi
4046ac_res=`eval echo '${'$as_ac_Header'}'`
4047 { echo "$as_me:$LINENO: result: $ac_res" >&5
4048echo "${ECHO_T}$ac_res" >&6; }
4049if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052_ACEOF
4053
4054fi
4055
4056done
4057
4058
4059{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4060echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4061if test "${ac_cv_c_bigendian+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064 # See if sys/param.h defines the BYTE_ORDER macro.
4065cat >conftest.$ac_ext <<_ACEOF
4066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
4071#include <sys/types.h>
4072#include <sys/param.h>
4073
4074int
4075main ()
4076{
4077#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4078 bogus endian macros
4079#endif
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (ac_try="$ac_compile"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100 { (case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_try") 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 # It does; now see whether it defined to BIG_ENDIAN or not.
4120cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126#include <sys/types.h>
4127#include <sys/param.h>
4128
4129int
4130main ()
4131{
4132#if BYTE_ORDER != BIG_ENDIAN
4133 not big endian
4134#endif
4135
4136 ;
4137 return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext
4141if { (ac_try="$ac_compile"
4142case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest.$ac_objext'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_c_bigendian=yes
4175else
4176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ac_cv_c_bigendian=no
4180fi
4181
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183else
4184 echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 # It does not; compile a test program.
4188if test "$cross_compiling" = yes; then
4189 # try to guess the endianness by grepping values into an object file
4190 ac_cv_c_bigendian=unknown
4191 cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
4197short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4198short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4199void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4200short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4201short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4203int
4204main ()
4205{
4206 _ascii (); _ebcdic ();
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4246 ac_cv_c_bigendian=yes
4247fi
4248if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4249 if test "$ac_cv_c_bigendian" = unknown; then
4250 ac_cv_c_bigendian=no
4251 else
4252 # finding both strings is unlikely to happen, but who knows?
4253 ac_cv_c_bigendian=unknown
4254 fi
4255fi
4256else
4257 echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4260
4261fi
4262
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264else
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271$ac_includes_default
4272int
4273main ()
4274{
4275
4276 /* Are we little or big endian? From Harbison&Steele. */
4277 union
4278 {
4279 long int l;
4280 char c[sizeof (long int)];
4281 } u;
4282 u.l = 1;
4283 return u.c[sizeof (long int) - 1] == 1;
4284
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest$ac_exeext
4290if { (ac_try="$ac_link"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_c_bigendian=no
4310else
4311 echo "$as_me: program exited with status $ac_status" >&5
4312echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315( exit $ac_status )
4316ac_cv_c_bigendian=yes
4317fi
4318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4319fi
4320
4321
4322fi
4323
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325fi
4326{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4327echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4328case $ac_cv_c_bigendian in
4329 yes)
4330 ENDIAN=big
4331 ;;
4332 no)
4333 ENDIAN=little
4334 ;;
4335 *)
4336 { { echo "$as_me:$LINENO: error: unknown endianness
4337presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4338echo "$as_me: error: unknown endianness
4339presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4340 { (exit 1); exit 1; }; } ;;
4341esac
4342
4343
4344if test "$cross_compiling" = yes; then
4345 LLVM_CROSS_COMPILING=1
4346
4347
4348{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4349echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4350if test "${ac_cv_build_exeext+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4354 ac_cv_build_exeext=.exe
4355else
4356 ac_build_prefix=${build_alias}-
4357
4358 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4359set dummy ${ac_build_prefix}gcc; ac_word=$2
4360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 if test -n "$BUILD_CC"; then
4366 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
4380done
4381IFS=$as_save_IFS
4382
4383fi
4384fi
4385BUILD_CC=$ac_cv_prog_BUILD_CC
4386if test -n "$BUILD_CC"; then
4387 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4388echo "${ECHO_T}$BUILD_CC" >&6; }
4389else
4390 { echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6; }
4392fi
4393
4394
4395 if test -z "$BUILD_CC"; then
4396 # Extract the first word of "gcc", so it can be a program name with args.
4397set dummy gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CC="gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "cc", so it can be a program name with args.
4435set dummy cc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444 ac_prog_rejected=no
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4453 ac_prog_rejected=yes
4454 continue
4455 fi
4456 ac_cv_prog_BUILD_CC="cc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464if test $ac_prog_rejected = yes; then
4465 # We found a bogon in the path, so make sure we never use it.
4466 set dummy $ac_cv_prog_BUILD_CC
4467 shift
4468 if test $# != 0; then
4469 # We chose a different compiler from the bogus one.
4470 # However, it has the same basename, so the bogon will be chosen
4471 # first if we set BUILD_CC to just the basename; use the full file name.
4472 shift
4473 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474 fi
4475fi
4476fi
4477fi
4478BUILD_CC=$ac_cv_prog_BUILD_CC
4479if test -n "$BUILD_CC"; then
4480 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4481echo "${ECHO_T}$BUILD_CC" >&6; }
4482else
4483 { echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6; }
4485fi
4486
4487
4488 fi
4489 fi
4490 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4491echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4492 { (exit 1); exit 1; }; }
4493 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4494 rm -f conftest*
4495 echo 'int main () { return 0; }' > conftest.$ac_ext
4496 ac_cv_build_exeext=
4497 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4498 (eval $ac_build_link) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; then
4502 for file in conftest.*; do
4503 case $file in
4504 *.c | *.o | *.obj) ;;
4505 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4506 esac
4507 done
4508 else
4509 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4510echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4511 { (exit 1); exit 1; }; }
4512 fi
4513 rm -f conftest*
4514 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4515fi
4516fi
4517
4518BUILD_EXEEXT=""
4519test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4520{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4521echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4522ac_build_exeext=$BUILD_EXEEXT
4523
4524else
4525 LLVM_CROSS_COMPILING=0
4526
4527fi
4528
4529if test -d "CVS" -o -d "${srcdir}/CVS"; then
4530 cvsbuild="yes"
4531 optimize="no"
4532 CVSBUILD=CVSBUILD=1
4533
4534else
4535 cvsbuild="no"
4536 optimize="yes"
4537fi
4538
4539
4540# Check whether --enable-optimized was given.
4541if test "${enable_optimized+set}" = set; then
4542 enableval=$enable_optimized;
4543else
4544 enableval=$optimize
4545fi
4546
4547if test ${enableval} = "no" ; then
4548 ENABLE_OPTIMIZED=
4549
4550else
4551 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4552
4553fi
4554
4555# Check whether --enable-assertions was given.
4556if test "${enable_assertions+set}" = set; then
4557 enableval=$enable_assertions;
4558else
4559 enableval="yes"
4560fi
4561
4562if test ${enableval} = "yes" ; then
4563 DISABLE_ASSERTIONS=
4564
4565else
4566 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4567
4568fi
4569
Reid Spencer8b2e1412006-11-17 03:32:33 +00004570# Check whether --enable-debug-runtime was given.
4571if test "${enable_debug_runtime+set}" = set; then
4572 enableval=$enable_debug_runtime;
4573else
4574 enableval=no
4575fi
4576
4577if test ${enableval} = "no" ; then
4578 DEBUG_RUNTIME=
4579
4580else
4581 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4582
4583fi
4584
Reid Spencera773bd52006-08-04 18:18:08 +00004585# Check whether --enable-jit was given.
4586if test "${enable_jit+set}" = set; then
4587 enableval=$enable_jit;
4588else
4589 enableval=default
4590fi
4591
4592if test ${enableval} = "no"
4593then
4594 JIT=
4595
4596else
4597 case "$llvm_cv_target_arch" in
4598 x86) TARGET_HAS_JIT=1
4599 ;;
4600 Sparc) TARGET_HAS_JIT=1
4601 ;;
4602 PowerPC) TARGET_HAS_JIT=1
4603 ;;
4604 x86_64) TARGET_HAS_JIT=0
4605 ;;
4606 Alpha) TARGET_HAS_JIT=1
4607 ;;
4608 IA64) TARGET_HAS_JIT=0
4609 ;;
4610 *) TARGET_HAS_JIT=0
4611 ;;
4612 esac
4613fi
4614
4615# Check whether --enable-doxygen was given.
4616if test "${enable_doxygen+set}" = set; then
4617 enableval=$enable_doxygen;
4618else
4619 enableval=default
4620fi
4621
4622case "$enableval" in
4623 yes) ENABLE_DOXYGEN=1
4624 ;;
4625 no) ENABLE_DOXYGEN=0
4626 ;;
4627 default) ENABLE_DOXYGEN=0
4628 ;;
4629 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4630echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4631 { (exit 1); exit 1; }; } ;;
4632esac
4633
4634# Check whether --enable-threads was given.
4635if test "${enable_threads+set}" = set; then
4636 enableval=$enable_threads;
4637else
Reid Spencer65c5d752006-11-05 17:08:18 +00004638 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004639fi
4640
4641case "$enableval" in
4642 yes) ENABLE_THREADS=1
4643 ;;
4644 no) ENABLE_THREADS=0
4645 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004646 default) ENABLE_THREADS=1
4647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4649echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4650 { (exit 1); exit 1; }; } ;;
4651esac
4652
4653cat >>confdefs.h <<_ACEOF
4654#define ENABLE_THREADS $ENABLE_THREADS
4655_ACEOF
4656
4657
Reid Spencer89b0d992006-12-16 22:07:52 +00004658# Check whether --enable-pic was given.
4659if test "${enable_pic+set}" = set; then
4660 enableval=$enable_pic;
4661else
4662 enableval=default
4663fi
4664
4665case "$enableval" in
4666 yes) ENABLE_PIC=1
4667 ;;
4668 no) ENABLE_PIC=0
4669 ;;
4670 default) ENABLE_PIC=0
4671 ;;
4672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4673echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4675esac
4676
4677cat >>confdefs.h <<_ACEOF
4678#define ENABLE_PIC $ENABLE_PIC
4679_ACEOF
4680
4681
Reid Spencera773bd52006-08-04 18:18:08 +00004682TARGETS_TO_BUILD=""
4683# Check whether --enable-targets was given.
4684if test "${enable_targets+set}" = set; then
4685 enableval=$enable_targets;
4686else
4687 enableval=all
4688fi
4689
4690case "$enableval" in
4691 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4692 host-only)
4693 case "$llvm_cv_target_arch" in
4694 x86) TARGETS_TO_BUILD="X86" ;;
4695 x86_64) TARGETS_TO_BUILD="X86" ;;
4696 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4697 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4698 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4699 IA64) TARGETS_TO_BUILD="IA64" ;;
4700 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4701echo "$as_me: error: Can not set target to build" >&2;}
4702 { (exit 1); exit 1; }; } ;;
4703 esac
4704 ;;
4705 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4706 case "$a_target" in
4707 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4708 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4710 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4711 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4712 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4713 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4714echo "$as_me: error: Unrecognized target $a_target" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4716 esac
4717 done
4718 ;;
4719esac
4720TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4721TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4722
4723
Reid Spencer65c5d752006-11-05 17:08:18 +00004724# Check whether --enable-cbe-printf-a was given.
4725if test "${enable_cbe_printf_a+set}" = set; then
4726 enableval=$enable_cbe_printf_a;
4727else
4728 enableval=default
4729fi
4730
4731case "$enableval" in
4732 yes) ENABLE_CBE_PRINTF_A=1
4733 ;;
4734 no) ENABLE_CBE_PRINTF_A=0
4735 ;;
4736 default) ENABLE_CBE_PRINTF_A=1
4737 ;;
4738 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4739echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4740 { (exit 1); exit 1; }; } ;;
4741esac
4742
4743cat >>confdefs.h <<_ACEOF
4744#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4745_ACEOF
4746
4747
Reid Spencera773bd52006-08-04 18:18:08 +00004748
4749# Check whether --with-llvmgccdir was given.
4750if test "${with_llvmgccdir+set}" = set; then
4751 withval=$with_llvmgccdir;
4752else
4753 withval=default
4754fi
4755
4756case "$withval" in
4757 default) WITH_LLVMGCCDIR=default ;;
4758 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4759 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4760echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4761 { (exit 1); exit 1; }; } ;;
4762esac
4763
4764
4765# Check whether --with-extra-options was given.
4766if test "${with_extra_options+set}" = set; then
4767 withval=$with_extra_options;
4768else
4769 withval=default
4770fi
4771
4772case "$withval" in
4773 default) EXTRA_OPTIONS= ;;
4774 *) EXTRA_OPTIONS=$withval ;;
4775esac
4776EXTRA_OPTIONS=$EXTRA_OPTIONS
4777
4778
4779
4780ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4786echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4787# On Suns, sometimes $CPP names a directory.
4788if test -n "$CPP" && test -d "$CPP"; then
4789 CPP=
4790fi
4791if test -z "$CPP"; then
4792 if test "${ac_cv_prog_CPP+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 # Double quotes because CPP needs to be expanded
4796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797 do
4798 ac_preproc_ok=false
4799for ac_c_preproc_warn_flag in '' yes
4800do
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813#ifdef __STDC__
4814# include <limits.h>
4815#else
4816# include <assert.h>
4817#endif
4818 Syntax error
4819_ACEOF
4820if { (ac_try="$ac_cpp conftest.$ac_ext"
4821case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824esac
4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null; then
4833 if test -s conftest.err; then
4834 ac_cpp_err=$ac_c_preproc_warn_flag
4835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4836 else
4837 ac_cpp_err=
4838 fi
4839else
4840 ac_cpp_err=yes
4841fi
4842if test -z "$ac_cpp_err"; then
4843 :
4844else
4845 echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 # Broken: fails on valid input.
4849continue
4850fi
4851
4852rm -f conftest.err conftest.$ac_ext
4853
4854 # OK, works on sane cases. Now check whether nonexistent headers
4855 # can be detected and how.
4856 cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#include <ac_nonexistent.h>
4863_ACEOF
4864if { (ac_try="$ac_cpp conftest.$ac_ext"
4865case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868esac
4869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880 else
4881 ac_cpp_err=
4882 fi
4883else
4884 ac_cpp_err=yes
4885fi
4886if test -z "$ac_cpp_err"; then
4887 # Broken: success on invalid input.
4888continue
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Passes both tests.
4894ac_preproc_ok=:
4895break
4896fi
4897
4898rm -f conftest.err conftest.$ac_ext
4899
4900done
4901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902rm -f conftest.err conftest.$ac_ext
4903if $ac_preproc_ok; then
4904 break
4905fi
4906
4907 done
4908 ac_cv_prog_CPP=$CPP
4909
4910fi
4911 CPP=$ac_cv_prog_CPP
4912else
4913 ac_cv_prog_CPP=$CPP
4914fi
4915{ echo "$as_me:$LINENO: result: $CPP" >&5
4916echo "${ECHO_T}$CPP" >&6; }
4917ac_preproc_ok=false
4918for ac_c_preproc_warn_flag in '' yes
4919do
4920 # Use a header file that comes with gcc, so configuring glibc
4921 # with a fresh cross-compiler works.
4922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 # <limits.h> exists even on freestanding compilers.
4924 # On the NeXT, cc -E runs the code through the compiler's parser,
4925 # not just through cpp. "Syntax error" is here to catch this case.
4926 cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932#ifdef __STDC__
4933# include <limits.h>
4934#else
4935# include <assert.h>
4936#endif
4937 Syntax error
4938_ACEOF
4939if { (ac_try="$ac_cpp conftest.$ac_ext"
4940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
4944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_c_preproc_warn_flag
4954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4955 else
4956 ac_cpp_err=
4957 fi
4958else
4959 ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null; then
4996 if test -s conftest.err; then
4997 ac_cpp_err=$ac_c_preproc_warn_flag
4998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4999 else
5000 ac_cpp_err=
5001 fi
5002else
5003 ac_cpp_err=yes
5004fi
5005if test -z "$ac_cpp_err"; then
5006 # Broken: success on invalid input.
5007continue
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 # Passes both tests.
5013ac_preproc_ok=:
5014break
5015fi
5016
5017rm -f conftest.err conftest.$ac_ext
5018
5019done
5020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021rm -f conftest.err conftest.$ac_ext
5022if $ac_preproc_ok; then
5023 :
5024else
5025 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5026See \`config.log' for more details." >&5
5027echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5028See \`config.log' for more details." >&2;}
5029 { (exit 1); exit 1; }; }
5030fi
5031
5032ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038ac_ext=c
5039ac_cpp='$CPP $CPPFLAGS'
5040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043if test -n "$ac_tool_prefix"; then
5044 for ac_prog in gcc
5045 do
5046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050if test "${ac_cv_prog_CC+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053 if test -n "$CC"; then
5054 ac_cv_prog_CC="$CC" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067done
5068done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073CC=$ac_cv_prog_CC
5074if test -n "$CC"; then
5075 { echo "$as_me:$LINENO: result: $CC" >&5
5076echo "${ECHO_T}$CC" >&6; }
5077else
5078 { echo "$as_me:$LINENO: result: no" >&5
5079echo "${ECHO_T}no" >&6; }
5080fi
5081
5082
5083 test -n "$CC" && break
5084 done
5085fi
5086if test -z "$CC"; then
5087 ac_ct_CC=$CC
5088 for ac_prog in gcc
5089do
5090 # Extract the first word of "$ac_prog", so it can be a program name with args.
5091set dummy $ac_prog; ac_word=$2
5092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097 if test -n "$ac_ct_CC"; then
5098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_ac_ct_CC="$ac_prog"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111done
5112done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117ac_ct_CC=$ac_cv_prog_ac_ct_CC
5118if test -n "$ac_ct_CC"; then
5119 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5120echo "${ECHO_T}$ac_ct_CC" >&6; }
5121else
5122 { echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6; }
5124fi
5125
5126
5127 test -n "$ac_ct_CC" && break
5128done
5129
5130 if test "x$ac_ct_CC" = x; then
5131 CC=""
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5136whose name does not start with the host triplet. If you think this
5137configuration is useful to you, please write to autoconf@gnu.org." >&5
5138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5139whose name does not start with the host triplet. If you think this
5140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5141ac_tool_warned=yes ;;
5142esac
5143 CC=$ac_ct_CC
5144 fi
5145fi
5146
5147
5148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5149See \`config.log' for more details." >&5
5150echo "$as_me: error: no acceptable C compiler found in \$PATH
5151See \`config.log' for more details." >&2;}
5152 { (exit 1); exit 1; }; }
5153
5154# Provide some information about the compiler.
5155echo "$as_me:$LINENO: checking for C compiler version" >&5
5156ac_compiler=`set X $ac_compile; echo $2`
5157{ (ac_try="$ac_compiler --version >&5"
5158case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161esac
5162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_compiler --version >&5") 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5167{ (ac_try="$ac_compiler -v >&5"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_compiler -v >&5") 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }
5177{ (ac_try="$ac_compiler -V >&5"
5178case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compiler -V >&5") 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }
5187
5188{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5189echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5190if test "${ac_cv_c_compiler_gnu+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h. */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h. */
5199
5200int
5201main ()
5202{
5203#ifndef __GNUC__
5204 choke me
5205#endif
5206
5207 ;
5208 return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext
5212if { (ac_try="$ac_compile"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compile") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239esac
5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_try") 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_compiler_gnu=yes
5246else
5247 echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_compiler_gnu=no
5251fi
5252
5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255
5256fi
5257{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259GCC=`test $ac_compiler_gnu = yes && echo yes`
5260ac_test_CFLAGS=${CFLAGS+set}
5261ac_save_CFLAGS=$CFLAGS
5262{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264if test "${ac_cv_prog_cc_g+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267 ac_save_c_werror_flag=$ac_c_werror_flag
5268 ac_c_werror_flag=yes
5269 ac_cv_prog_cc_g=no
5270 CFLAGS="-g"
5271 cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
5277
5278int
5279main ()
5280{
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (ac_try="$ac_compile"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_compile") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301 { (case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_try") 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_try") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_prog_cc_g=yes
5321else
5322 echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 CFLAGS=""
5326 cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332
5333int
5334main ()
5335{
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 :
5376else
5377 echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 ac_c_werror_flag=$ac_save_c_werror_flag
5381 CFLAGS="-g"
5382 cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h. */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h. */
5388
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_try") 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_prog_cc_g=yes
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436
5437fi
5438
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 ac_c_werror_flag=$ac_save_c_werror_flag
5447fi
5448{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5450if test "$ac_test_CFLAGS" = set; then
5451 CFLAGS=$ac_save_CFLAGS
5452elif test $ac_cv_prog_cc_g = yes; then
5453 if test "$GCC" = yes; then
5454 CFLAGS="-g -O2"
5455 else
5456 CFLAGS="-g"
5457 fi
5458else
5459 if test "$GCC" = yes; then
5460 CFLAGS="-O2"
5461 else
5462 CFLAGS=
5463 fi
5464fi
5465{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5466echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5467if test "${ac_cv_prog_cc_c89+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 ac_cv_prog_cc_c89=no
5471ac_save_CC=$CC
5472cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478#include <stdarg.h>
5479#include <stdio.h>
5480#include <sys/types.h>
5481#include <sys/stat.h>
5482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5483struct buf { int x; };
5484FILE * (*rcsopen) (struct buf *, struct stat *, int);
5485static char *e (p, i)
5486 char **p;
5487 int i;
5488{
5489 return p[i];
5490}
5491static char *f (char * (*g) (char **, int), char **p, ...)
5492{
5493 char *s;
5494 va_list v;
5495 va_start (v,p);
5496 s = g (p, va_arg (v,int));
5497 va_end (v);
5498 return s;
5499}
5500
5501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5502 function prototypes and stuff, but not '\xHH' hex character constants.
5503 These don't provoke an error unfortunately, instead are silently treated
5504 as 'x'. The following induces an error, until -std is added to get
5505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5506 array size at least. It's necessary to write '\x00'==0 to get something
5507 that's true only with -std. */
5508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5509
5510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5511 inside strings and character constants. */
5512#define FOO(x) 'x'
5513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5514
5515int test (int i, double x);
5516struct s1 {int (*f) (int a);};
5517struct s2 {int (*f) (double a);};
5518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5519int argc;
5520char **argv;
5521int
5522main ()
5523{
5524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5525 ;
5526 return 0;
5527}
5528_ACEOF
5529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5531do
5532 CC="$ac_save_CC $ac_arg"
5533 rm -f conftest.$ac_objext
5534if { (ac_try="$ac_compile"
5535case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548 { (case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_try") 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_prog_cc_c89=$ac_arg
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572
5573fi
5574
5575rm -f core conftest.err conftest.$ac_objext
5576 test "x$ac_cv_prog_cc_c89" != "xno" && break
5577done
5578rm -f conftest.$ac_ext
5579CC=$ac_save_CC
5580
5581fi
5582# AC_CACHE_VAL
5583case "x$ac_cv_prog_cc_c89" in
5584 x)
5585 { echo "$as_me:$LINENO: result: none needed" >&5
5586echo "${ECHO_T}none needed" >&6; } ;;
5587 xno)
5588 { echo "$as_me:$LINENO: result: unsupported" >&5
5589echo "${ECHO_T}unsupported" >&6; } ;;
5590 *)
5591 CC="$CC $ac_cv_prog_cc_c89"
5592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5593echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5594esac
5595
5596
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603ac_ext=cpp
5604ac_cpp='$CXXCPP $CPPFLAGS'
5605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608if test -z "$CXX"; then
5609 if test -n "$CCC"; then
5610 CXX=$CCC
5611 else
5612 if test -n "$ac_tool_prefix"; then
5613 for ac_prog in g++
5614 do
5615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619if test "${ac_cv_prog_CXX+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 if test -n "$CXX"; then
5623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636done
5637done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642CXX=$ac_cv_prog_CXX
5643if test -n "$CXX"; then
5644 { echo "$as_me:$LINENO: result: $CXX" >&5
5645echo "${ECHO_T}$CXX" >&6; }
5646else
5647 { echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6; }
5649fi
5650
5651
5652 test -n "$CXX" && break
5653 done
5654fi
5655if test -z "$CXX"; then
5656 ac_ct_CXX=$CXX
5657 for ac_prog in g++
5658do
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660set dummy $ac_prog; ac_word=$2
5661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666 if test -n "$ac_ct_CXX"; then
5667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_ac_ct_CXX="$ac_prog"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5687if test -n "$ac_ct_CXX"; then
5688 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5689echo "${ECHO_T}$ac_ct_CXX" >&6; }
5690else
5691 { echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6; }
5693fi
5694
5695
5696 test -n "$ac_ct_CXX" && break
5697done
5698
5699 if test "x$ac_ct_CXX" = x; then
5700 CXX="g++"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703yes:)
5704{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5705whose name does not start with the host triplet. If you think this
5706configuration is useful to you, please write to autoconf@gnu.org." >&5
5707echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5708whose name does not start with the host triplet. If you think this
5709configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5710ac_tool_warned=yes ;;
5711esac
5712 CXX=$ac_ct_CXX
5713 fi
5714fi
5715
5716 fi
5717fi
5718# Provide some information about the compiler.
5719echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5720ac_compiler=`set X $ac_compile; echo $2`
5721{ (ac_try="$ac_compiler --version >&5"
5722case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compiler --version >&5") 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5731{ (ac_try="$ac_compiler -v >&5"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compiler -v >&5") 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }
5741{ (ac_try="$ac_compiler -V >&5"
5742case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_compiler -V >&5") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }
5751
5752{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5753echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763
5764int
5765main ()
5766{
5767#ifndef __GNUC__
5768 choke me
5769#endif
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5790 { (case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_try") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_compiler_gnu=yes
5810else
5811 echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 ac_compiler_gnu=no
5815fi
5816
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5819
5820fi
5821{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5822echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5823GXX=`test $ac_compiler_gnu = yes && echo yes`
5824ac_test_CXXFLAGS=${CXXFLAGS+set}
5825ac_save_CXXFLAGS=$CXXFLAGS
5826{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5827echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5828if test "${ac_cv_prog_cxx_g+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5832 ac_cxx_werror_flag=yes
5833 ac_cv_prog_cxx_g=no
5834 CXXFLAGS="-g"
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841
5842int
5843main ()
5844{
5845
5846 ;
5847 return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext
5851if { (ac_try="$ac_compile"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5865 { (case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_prog_cxx_g=yes
5885else
5886 echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 CXXFLAGS=""
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896
5897int
5898main ()
5899{
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 :
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5945 CXXFLAGS="-g"
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952
5953int
5954main ()
5955{
5956
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961rm -f conftest.$ac_objext
5962if { (ac_try="$ac_compile"
5963case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966esac
5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_prog_cxx_g=yes
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000
6001fi
6002
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6011fi
6012{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6013echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6014if test "$ac_test_CXXFLAGS" = set; then
6015 CXXFLAGS=$ac_save_CXXFLAGS
6016elif test $ac_cv_prog_cxx_g = yes; then
6017 if test "$GXX" = yes; then
6018 CXXFLAGS="-g -O2"
6019 else
6020 CXXFLAGS="-g"
6021 fi
6022else
6023 if test "$GXX" = yes; then
6024 CXXFLAGS="-O2"
6025 else
6026 CXXFLAGS=
6027 fi
6028fi
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035{ echo "$as_me:$LINENO: checking " >&5
6036echo $ECHO_N "checking ... $ECHO_C" >&6; }
6037if test "${ac_cv_has_flex+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 for ac_prog in flex lex
6041do
6042 # Extract the first word of "$ac_prog", so it can be a program name with args.
6043set dummy $ac_prog; ac_word=$2
6044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_LEX+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049 if test -n "$LEX"; then
6050 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_LEX="$ac_prog"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063done
6064done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069LEX=$ac_cv_prog_LEX
6070if test -n "$LEX"; then
6071 { echo "$as_me:$LINENO: result: $LEX" >&5
6072echo "${ECHO_T}$LEX" >&6; }
6073else
6074 { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
6076fi
6077
6078
6079 test -n "$LEX" && break
6080done
6081test -n "$LEX" || LEX=":"
6082
6083if test -z "$LEXLIB"
6084then
6085 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6086echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6087if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090 ac_check_lib_save_LIBS=$LIBS
6091LIBS="-lfl $LIBS"
6092cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099/* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6102#ifdef __cplusplus
6103extern "C"
6104#endif
6105char yywrap ();
6106int
6107main ()
6108{
6109return yywrap ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6129 { (case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132esac
6133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_try") 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_try") 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_lib_fl_yywrap=yes
6149else
6150 echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 ac_cv_lib_fl_yywrap=no
6154fi
6155
6156rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158LIBS=$ac_check_lib_save_LIBS
6159fi
6160{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6161echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6162if test $ac_cv_lib_fl_yywrap = yes; then
6163 LEXLIB="-lfl"
6164else
6165 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6166echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6167if test "${ac_cv_lib_l_yywrap+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170 ac_check_lib_save_LIBS=$LIBS
6171LIBS="-ll $LIBS"
6172cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178
6179/* Override any GCC internal prototype to avoid an error.
6180 Use char because int might match the return type of a GCC
6181 builtin and then its argument prototype would still apply. */
6182#ifdef __cplusplus
6183extern "C"
6184#endif
6185char yywrap ();
6186int
6187main ()
6188{
6189return yywrap ();
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194rm -f conftest.$ac_objext conftest$ac_exeext
6195if { (ac_try="$ac_link"
6196case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
6200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_try") 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_try") 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_lib_l_yywrap=yes
6229else
6230 echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 ac_cv_lib_l_yywrap=no
6234fi
6235
6236rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238LIBS=$ac_check_lib_save_LIBS
6239fi
6240{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6241echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6242if test $ac_cv_lib_l_yywrap = yes; then
6243 LEXLIB="-ll"
6244fi
6245
6246fi
6247
6248fi
6249
6250if test "x$LEX" != "x:"; then
6251 { echo "$as_me:$LINENO: checking lex output file root" >&5
6252echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6253if test "${ac_cv_prog_lex_root+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 # The minimal lex program is just a single line: %%. But some broken lexes
6257# (Solaris, I think it was) want two %% lines, so accommodate them.
6258cat >conftest.l <<_ACEOF
6259%%
6260%%
6261_ACEOF
6262{ (ac_try="$LEX conftest.l"
6263case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
6267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$LEX conftest.l") 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }
6272if test -f lex.yy.c; then
6273 ac_cv_prog_lex_root=lex.yy
6274elif test -f lexyy.c; then
6275 ac_cv_prog_lex_root=lexyy
6276else
6277 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6278echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6279 { (exit 1); exit 1; }; }
6280fi
6281fi
6282{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6283echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6284rm -f conftest.l
6285LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6286
6287{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6288echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6289if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292 # POSIX says lex can declare yytext either as a pointer or an array; the
6293# default is implementation-dependent. Figure out which it is, since
6294# not all implementations provide the %pointer and %array declarations.
6295ac_cv_prog_lex_yytext_pointer=no
6296echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6297ac_save_LIBS=$LIBS
6298LIBS="$LIBS $LEXLIB"
6299cat >conftest.$ac_ext <<_ACEOF
6300`cat $LEX_OUTPUT_ROOT.c`
6301_ACEOF
6302rm -f conftest.$ac_objext conftest$ac_exeext
6303if { (ac_try="$ac_link"
6304case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_link") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_try") 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest$ac_exeext'
6327 { (case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_try") 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_prog_lex_yytext_pointer=yes
6337else
6338 echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341
6342fi
6343
6344rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6346LIBS=$ac_save_LIBS
6347rm -f "${LEX_OUTPUT_ROOT}.c"
6348
6349fi
6350{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6351echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6352if test $ac_cv_prog_lex_yytext_pointer = yes; then
6353
6354cat >>confdefs.h <<\_ACEOF
6355#define YYTEXT_POINTER 1
6356_ACEOF
6357
6358fi
6359
6360fi
6361
6362fi
6363{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6364echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6365if test "$LEX" != "flex"; then
6366 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6367echo "$as_me: error: flex not found but required" >&2;}
6368 { (exit 1); exit 1; }; }
6369else
6370 FLEX=flex
6371
6372fi
6373
6374{ echo "$as_me:$LINENO: checking " >&5
6375echo $ECHO_N "checking ... $ECHO_C" >&6; }
6376if test "${llvm_cv_has_bison+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379 for ac_prog in 'bison -y' byacc
6380do
6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
6382set dummy $ac_prog; ac_word=$2
6383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_prog_YACC+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388 if test -n "$YACC"; then
6389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_YACC="$ac_prog"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402done
6403done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408YACC=$ac_cv_prog_YACC
6409if test -n "$YACC"; then
6410 { echo "$as_me:$LINENO: result: $YACC" >&5
6411echo "${ECHO_T}$YACC" >&6; }
6412else
6413 { echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6; }
6415fi
6416
6417
6418 test -n "$YACC" && break
6419done
6420test -n "$YACC" || YACC="yacc"
6421
6422fi
6423{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6424echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6425if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006426
6427 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6428echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006429else
6430 BISON=bison
6431
6432fi
6433
6434{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6435echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6436if test "${lt_cv_path_NM+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439 if test -n "$NM"; then
6440 # Let the user override the test.
6441 lt_cv_path_NM="$NM"
6442else
6443 lt_nm_to_check="${ac_tool_prefix}nm"
6444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6445 lt_nm_to_check="$lt_nm_to_check nm"
6446 fi
6447 for lt_tmp_nm in $lt_nm_to_check; do
6448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6450 IFS="$lt_save_ifs"
6451 test -z "$ac_dir" && ac_dir=.
6452 tmp_nm="$ac_dir/$lt_tmp_nm"
6453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6454 # Check to see if the nm accepts a BSD-compat flag.
6455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6456 # nm: unknown option "B" ignored
6457 # Tru64's nm complains that /dev/null is an invalid object file
6458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6459 */dev/null* | *'Invalid file or object type'*)
6460 lt_cv_path_NM="$tmp_nm -B"
6461 break
6462 ;;
6463 *)
6464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6465 */dev/null*)
6466 lt_cv_path_NM="$tmp_nm -p"
6467 break
6468 ;;
6469 *)
6470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6471 continue # so that we can try to find one that supports BSD flags
6472 ;;
6473 esac
6474 ;;
6475 esac
6476 fi
6477 done
6478 IFS="$lt_save_ifs"
6479 done
6480 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6481fi
6482fi
6483{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6484echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6485NM="$lt_cv_path_NM"
6486
6487
6488
6489{ echo "$as_me:$LINENO: checking for GNU make" >&5
6490echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6491if test "${llvm_cv_gnu_make_command+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 llvm_cv_gnu_make_command=''
6495 for a in "$MAKE" make gmake gnumake ; do
6496 if test -z "$a" ; then continue ; fi ;
6497 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6498 then
6499 llvm_cv_gnu_make_command=$a ;
6500 break;
6501 fi
6502 done
6503fi
6504{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6505echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6506 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6507 ifGNUmake='' ;
6508 else
6509 ifGNUmake='#' ;
6510 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6511echo "${ECHO_T}\"Not found\"" >&6; };
6512 fi
6513
6514
6515{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6516echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6517LN_S=$as_ln_s
6518if test "$LN_S" = "ln -s"; then
6519 { echo "$as_me:$LINENO: result: yes" >&5
6520echo "${ECHO_T}yes" >&6; }
6521else
6522 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6523echo "${ECHO_T}no, using $LN_S" >&6; }
6524fi
6525
6526# Extract the first word of "cmp", so it can be a program name with args.
6527set dummy cmp; ac_word=$2
6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530if test "${ac_cv_path_CMP+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533 case $CMP in
6534 [\\/]* | ?:[\\/]*)
6535 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6536 ;;
6537 *)
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550done
6551IFS=$as_save_IFS
6552
6553 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6554 ;;
6555esac
6556fi
6557CMP=$ac_cv_path_CMP
6558if test -n "$CMP"; then
6559 { echo "$as_me:$LINENO: result: $CMP" >&5
6560echo "${ECHO_T}$CMP" >&6; }
6561else
6562 { echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6; }
6564fi
6565
6566
6567# Extract the first word of "cp", so it can be a program name with args.
6568set dummy cp; ac_word=$2
6569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571if test "${ac_cv_path_CP+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 case $CP in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6577 ;;
6578 *)
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591done
6592IFS=$as_save_IFS
6593
6594 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6595 ;;
6596esac
6597fi
6598CP=$ac_cv_path_CP
6599if test -n "$CP"; then
6600 { echo "$as_me:$LINENO: result: $CP" >&5
6601echo "${ECHO_T}$CP" >&6; }
6602else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607
6608# Extract the first word of "date", so it can be a program name with args.
6609set dummy date; ac_word=$2
6610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612if test "${ac_cv_path_DATE+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615 case $DATE in
6616 [\\/]* | ?:[\\/]*)
6617 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6618 ;;
6619 *)
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631done
6632done
6633IFS=$as_save_IFS
6634
6635 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6636 ;;
6637esac
6638fi
6639DATE=$ac_cv_path_DATE
6640if test -n "$DATE"; then
6641 { echo "$as_me:$LINENO: result: $DATE" >&5
6642echo "${ECHO_T}$DATE" >&6; }
6643else
6644 { echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6; }
6646fi
6647
6648
6649# Extract the first word of "find", so it can be a program name with args.
6650set dummy find; ac_word=$2
6651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653if test "${ac_cv_path_FIND+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656 case $FIND in
6657 [\\/]* | ?:[\\/]*)
6658 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6659 ;;
6660 *)
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672done
6673done
6674IFS=$as_save_IFS
6675
6676 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6677 ;;
6678esac
6679fi
6680FIND=$ac_cv_path_FIND
6681if test -n "$FIND"; then
6682 { echo "$as_me:$LINENO: result: $FIND" >&5
6683echo "${ECHO_T}$FIND" >&6; }
6684else
6685 { echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6; }
6687fi
6688
6689
6690# Extract the first word of "grep", so it can be a program name with args.
6691set dummy grep; ac_word=$2
6692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694if test "${ac_cv_path_GREP+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 case $GREP in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6700 ;;
6701 *)
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6718 ;;
6719esac
6720fi
6721GREP=$ac_cv_path_GREP
6722if test -n "$GREP"; then
6723 { echo "$as_me:$LINENO: result: $GREP" >&5
6724echo "${ECHO_T}$GREP" >&6; }
6725else
6726 { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
6728fi
6729
6730
6731# Extract the first word of "mkdir", so it can be a program name with args.
6732set dummy mkdir; ac_word=$2
6733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735if test "${ac_cv_path_MKDIR+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738 case $MKDIR in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755done
6756IFS=$as_save_IFS
6757
6758 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6759 ;;
6760esac
6761fi
6762MKDIR=$ac_cv_path_MKDIR
6763if test -n "$MKDIR"; then
6764 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6765echo "${ECHO_T}$MKDIR" >&6; }
6766else
6767 { echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6; }
6769fi
6770
6771
6772# Extract the first word of "mv", so it can be a program name with args.
6773set dummy mv; ac_word=$2
6774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_MV+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779 case $MV in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796done
6797IFS=$as_save_IFS
6798
6799 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6800 ;;
6801esac
6802fi
6803MV=$ac_cv_path_MV
6804if test -n "$MV"; then
6805 { echo "$as_me:$LINENO: result: $MV" >&5
6806echo "${ECHO_T}$MV" >&6; }
6807else
6808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
6810fi
6811
6812
6813if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_prog_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 if test -n "$RANLIB"; then
6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841RANLIB=$ac_cv_prog_RANLIB
6842if test -n "$RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6844echo "${ECHO_T}$RANLIB" >&6; }
6845else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_RANLIB"; then
6853 ac_ct_RANLIB=$RANLIB
6854 # Extract the first word of "ranlib", so it can be a program name with args.
6855set dummy ranlib; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$ac_ct_RANLIB"; then
6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_RANLIB="ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882if test -n "$ac_ct_RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6884echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890 if test "x$ac_ct_RANLIB" = x; then
6891 RANLIB=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896whose name does not start with the host triplet. If you think this
6897configuration is useful to you, please write to autoconf@gnu.org." >&5
6898echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899whose name does not start with the host triplet. If you think this
6900configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901ac_tool_warned=yes ;;
6902esac
6903 RANLIB=$ac_ct_RANLIB
6904 fi
6905else
6906 RANLIB="$ac_cv_prog_RANLIB"
6907fi
6908
6909# Extract the first word of "rm", so it can be a program name with args.
6910set dummy rm; ac_word=$2
6911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_RM+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916 case $RM in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933done
6934IFS=$as_save_IFS
6935
6936 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6937 ;;
6938esac
6939fi
6940RM=$ac_cv_path_RM
6941if test -n "$RM"; then
6942 { echo "$as_me:$LINENO: result: $RM" >&5
6943echo "${ECHO_T}$RM" >&6; }
6944else
6945 { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
6947fi
6948
6949
6950# Extract the first word of "sed", so it can be a program name with args.
6951set dummy sed; ac_word=$2
6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954if test "${ac_cv_path_SED+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957 case $SED in
6958 [\\/]* | ?:[\\/]*)
6959 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6960 ;;
6961 *)
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6978 ;;
6979esac
6980fi
6981SED=$ac_cv_path_SED
6982if test -n "$SED"; then
6983 { echo "$as_me:$LINENO: result: $SED" >&5
6984echo "${ECHO_T}$SED" >&6; }
6985else
6986 { echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6; }
6988fi
6989
6990
6991# Extract the first word of "tar", so it can be a program name with args.
6992set dummy tar; ac_word=$2
6993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995if test "${ac_cv_path_TAR+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 case $TAR in
6999 [\\/]* | ?:[\\/]*)
7000 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7001 ;;
7002 *)
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015done
7016IFS=$as_save_IFS
7017
7018 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7019 ;;
7020esac
7021fi
7022TAR=$ac_cv_path_TAR
7023if test -n "$TAR"; then
7024 { echo "$as_me:$LINENO: result: $TAR" >&5
7025echo "${ECHO_T}$TAR" >&6; }
7026else
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029fi
7030
7031
7032# Extract the first word of "pwd", so it can be a program name with args.
7033set dummy pwd; ac_word=$2
7034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036if test "${ac_cv_path_BINPWD+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039 case $BINPWD in
7040 [\\/]* | ?:[\\/]*)
7041 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7042 ;;
7043 *)
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055done
7056done
7057IFS=$as_save_IFS
7058
7059 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7060 ;;
7061esac
7062fi
7063BINPWD=$ac_cv_path_BINPWD
7064if test -n "$BINPWD"; then
7065 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7066echo "${ECHO_T}$BINPWD" >&6; }
7067else
7068 { echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6; }
7070fi
7071
7072
7073
7074# Extract the first word of "Graphviz", so it can be a program name with args.
7075set dummy Graphviz; ac_word=$2
7076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 case $GRAPHVIZ in
7082 [\\/]* | ?:[\\/]*)
7083 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7084 ;;
7085 *)
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098done
7099IFS=$as_save_IFS
7100
7101 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7102 ;;
7103esac
7104fi
7105GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7106if test -n "$GRAPHVIZ"; then
7107 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7108echo "${ECHO_T}$GRAPHVIZ" >&6; }
7109else
7110 { echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
7112fi
7113
7114
7115if test "$GRAPHVIZ" != "echo Graphviz" ; then
7116
7117cat >>confdefs.h <<\_ACEOF
7118#define HAVE_GRAPHVIZ 1
7119_ACEOF
7120
7121 if test "$llvm_cv_os_type" == "MingW" ; then
7122 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7123 fi
7124
7125cat >>confdefs.h <<_ACEOF
7126#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7127_ACEOF
7128
7129fi
7130# Extract the first word of "dot", so it can be a program name with args.
7131set dummy dot; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_path_DOT+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 case $DOT in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7158 ;;
7159esac
7160fi
7161DOT=$ac_cv_path_DOT
7162if test -n "$DOT"; then
7163 { echo "$as_me:$LINENO: result: $DOT" >&5
7164echo "${ECHO_T}$DOT" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171if test "$DOT" != "echo dot" ; then
7172
7173cat >>confdefs.h <<\_ACEOF
7174#define HAVE_DOT 1
7175_ACEOF
7176
7177 if test "$llvm_cv_os_type" == "MingW" ; then
7178 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7179 fi
7180
7181cat >>confdefs.h <<_ACEOF
7182#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7183_ACEOF
7184
7185fi
7186for ac_prog in gv gsview32
7187do
7188 # Extract the first word of "$ac_prog", so it can be a program name with args.
7189set dummy $ac_prog; ac_word=$2
7190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192if test "${ac_cv_path_GV+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 case $GV in
7196 [\\/]* | ?:[\\/]*)
7197 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7198 ;;
7199 *)
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212done
7213IFS=$as_save_IFS
7214
7215 ;;
7216esac
7217fi
7218GV=$ac_cv_path_GV
7219if test -n "$GV"; then
7220 { echo "$as_me:$LINENO: result: $GV" >&5
7221echo "${ECHO_T}$GV" >&6; }
7222else
7223 { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
7225fi
7226
7227
7228 test -n "$GV" && break
7229done
7230test -n "$GV" || GV="echo gv"
7231
7232if test "$GV" != "echo gv" ; then
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define HAVE_GV 1
7236_ACEOF
7237
7238 if test "$llvm_cv_os_type" == "MingW" ; then
7239 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7240 fi
7241
7242cat >>confdefs.h <<_ACEOF
7243#define LLVM_PATH_GV "$GV${EXEEXT}"
7244_ACEOF
7245
7246fi
7247# Extract the first word of "dotty", so it can be a program name with args.
7248set dummy dotty; ac_word=$2
7249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251if test "${ac_cv_path_DOTTY+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254 case $DOTTY in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7257 ;;
7258 *)
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272IFS=$as_save_IFS
7273
7274 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7275 ;;
7276esac
7277fi
7278DOTTY=$ac_cv_path_DOTTY
7279if test -n "$DOTTY"; then
7280 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7281echo "${ECHO_T}$DOTTY" >&6; }
7282else
7283 { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
7285fi
7286
7287
7288if test "$DOTTY" != "echo dotty" ; then
7289
7290cat >>confdefs.h <<\_ACEOF
7291#define HAVE_DOTTY 1
7292_ACEOF
7293
7294 if test "$llvm_cv_os_type" == "MingW" ; then
7295 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7296 fi
7297
7298cat >>confdefs.h <<_ACEOF
7299#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7300_ACEOF
7301
7302fi
7303
7304
7305# Extract the first word of "perl", so it can be a program name with args.
7306set dummy perl; ac_word=$2
7307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309if test "${ac_cv_path_PERL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 case $PERL in
7313 [\\/]* | ?:[\\/]*)
7314 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7315 ;;
7316 *)
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329done
7330IFS=$as_save_IFS
7331
7332 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7333 ;;
7334esac
7335fi
7336PERL=$ac_cv_path_PERL
7337if test -n "$PERL"; then
7338 { echo "$as_me:$LINENO: result: $PERL" >&5
7339echo "${ECHO_T}$PERL" >&6; }
7340else
7341 { echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6; }
7343fi
7344
7345
7346if test "$PERL" != "none"; then
7347 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7348echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7349 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7350 { echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6; }
7352 else
7353 PERL=none
7354 { echo "$as_me:$LINENO: result: not found" >&5
7355echo "${ECHO_T}not found" >&6; }
7356 fi
7357fi
7358
7359
7360if test x"$PERL" = xnone; then
7361 HAVE_PERL=0
7362
7363else
7364 HAVE_PERL=1
7365
7366fi
7367
7368# Find a good install program. We prefer a C program (faster),
7369# so one script is as good as another. But avoid the broken or
7370# incompatible versions:
7371# SysV /etc/install, /usr/sbin/install
7372# SunOS /usr/etc/install
7373# IRIX /sbin/install
7374# AIX /bin/install
7375# AmigaOS /C/install, which installs bootblocks on floppy discs
7376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7379# OS/2's system install, which has a completely different semantic
7380# ./install, which can be erroneously created by make from ./install.sh.
7381{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7382echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7383if test -z "$INSTALL"; then
7384if test "${ac_cv_path_install+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 # Account for people who put trailing slashes in PATH elements.
7393case $as_dir/ in
7394 ./ | .// | /cC/* | \
7395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7397 /usr/ucb/* ) ;;
7398 *)
7399 # OSF1 and SCO ODT 3.0 have their own names for install.
7400 # Don't use installbsd from OSF since it installs stuff as root
7401 # by default.
7402 for ac_prog in ginstall scoinst install; do
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7405 if test $ac_prog = install &&
7406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7407 # AIX install. It has an incompatible calling convention.
7408 :
7409 elif test $ac_prog = install &&
7410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7411 # program-specific install script used by HP pwplus--don't use.
7412 :
7413 else
7414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7415 break 3
7416 fi
7417 fi
7418 done
7419 done
7420 ;;
7421esac
7422done
7423IFS=$as_save_IFS
7424
7425
7426fi
7427 if test "${ac_cv_path_install+set}" = set; then
7428 INSTALL=$ac_cv_path_install
7429 else
7430 # As a last resort, use the slow shell script. Don't cache a
7431 # value for INSTALL within a source directory, because that will
7432 # break other packages using the cache if that directory is
7433 # removed, or if the value is a relative name.
7434 INSTALL=$ac_install_sh
7435 fi
7436fi
7437{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7438echo "${ECHO_T}$INSTALL" >&6; }
7439
7440# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7441# It thinks the first close brace ends the variable substitution.
7442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7443
7444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7445
7446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7447
7448
7449# Extract the first word of "bzip2", so it can be a program name with args.
7450set dummy bzip2; ac_word=$2
7451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453if test "${ac_cv_path_BZIP2+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 case $BZIP2 in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472done
7473done
7474IFS=$as_save_IFS
7475
7476 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7477 ;;
7478esac
7479fi
7480BZIP2=$ac_cv_path_BZIP2
7481if test -n "$BZIP2"; then
7482 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7483echo "${ECHO_T}$BZIP2" >&6; }
7484else
7485 { echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6; }
7487fi
7488
7489
7490# Extract the first word of "doxygen", so it can be a program name with args.
7491set dummy doxygen; ac_word=$2
7492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497 case $DOXYGEN in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500 ;;
7501 *)
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514done
7515IFS=$as_save_IFS
7516
7517 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7518 ;;
7519esac
7520fi
7521DOXYGEN=$ac_cv_path_DOXYGEN
7522if test -n "$DOXYGEN"; then
7523 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7524echo "${ECHO_T}$DOXYGEN" >&6; }
7525else
7526 { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
Reid Spencera773bd52006-08-04 18:18:08 +00007531# Extract the first word of "groff", so it can be a program name with args.
7532set dummy groff; ac_word=$2
7533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_GROFF+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538 case $GROFF in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555done
7556IFS=$as_save_IFS
7557
7558 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7559 ;;
7560esac
7561fi
7562GROFF=$ac_cv_path_GROFF
7563if test -n "$GROFF"; then
7564 { echo "$as_me:$LINENO: result: $GROFF" >&5
7565echo "${ECHO_T}$GROFF" >&6; }
7566else
7567 { echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6; }
7569fi
7570
7571
7572# Extract the first word of "gzip", so it can be a program name with args.
7573set dummy gzip; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_GZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579 case $GZIP in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7600 ;;
7601esac
7602fi
7603GZIP=$ac_cv_path_GZIP
7604if test -n "$GZIP"; then
7605 { echo "$as_me:$LINENO: result: $GZIP" >&5
7606echo "${ECHO_T}$GZIP" >&6; }
7607else
7608 { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
7610fi
7611
7612
7613# Extract the first word of "pod2html", so it can be a program name with args.
7614set dummy pod2html; ac_word=$2
7615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617if test "${ac_cv_path_POD2HTML+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619else
7620 case $POD2HTML in
7621 [\\/]* | ?:[\\/]*)
7622 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7623 ;;
7624 *)
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
7638IFS=$as_save_IFS
7639
7640 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7641 ;;
7642esac
7643fi
7644POD2HTML=$ac_cv_path_POD2HTML
7645if test -n "$POD2HTML"; then
7646 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7647echo "${ECHO_T}$POD2HTML" >&6; }
7648else
7649 { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
7651fi
7652
7653
7654# Extract the first word of "pod2man", so it can be a program name with args.
7655set dummy pod2man; ac_word=$2
7656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658if test "${ac_cv_path_POD2MAN+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661 case $POD2MAN in
7662 [\\/]* | ?:[\\/]*)
7663 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7664 ;;
7665 *)
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677done
7678done
7679IFS=$as_save_IFS
7680
7681 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7682 ;;
7683esac
7684fi
7685POD2MAN=$ac_cv_path_POD2MAN
7686if test -n "$POD2MAN"; then
7687 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7688echo "${ECHO_T}$POD2MAN" >&6; }
7689else
7690 { echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6; }
7692fi
7693
7694
7695# Extract the first word of "runtest", so it can be a program name with args.
7696set dummy runtest; ac_word=$2
7697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699if test "${ac_cv_path_RUNTEST+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702 case $RUNTEST in
7703 [\\/]* | ?:[\\/]*)
7704 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7705 ;;
7706 *)
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720IFS=$as_save_IFS
7721
7722 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7723 ;;
7724esac
7725fi
7726RUNTEST=$ac_cv_path_RUNTEST
7727if test -n "$RUNTEST"; then
7728 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7729echo "${ECHO_T}$RUNTEST" >&6; }
7730else
7731 { echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6; }
7733fi
7734
7735
7736
7737no_itcl=true
7738{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7739echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7740
7741# Check whether --with-tclinclude was given.
7742if test "${with_tclinclude+set}" = set; then
7743 withval=$with_tclinclude; with_tclinclude=${withval}
7744else
7745 with_tclinclude=''
7746fi
7747
7748if test "${ac_cv_path_tclsh+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751
7752if test x"${with_tclinclude}" != x ; then
7753 if test -f ${with_tclinclude}/tclsh ; then
7754 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7755 elif test -f ${with_tclinclude}/src/tclsh ; then
7756 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7757 else
7758 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7759echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7760 { (exit 1); exit 1; }; }
7761 fi
7762fi
7763
7764if test x"${ac_cv_path_tclsh}" = x ; then
7765 { echo "$as_me:$LINENO: result: none" >&5
7766echo "${ECHO_T}none" >&6; }
7767 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
7768do
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770set dummy $ac_prog; ac_word=$2
7771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_TCLSH+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 case $TCLSH in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7779 ;;
7780 *)
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793done
7794IFS=$as_save_IFS
7795
7796 ;;
7797esac
7798fi
7799TCLSH=$ac_cv_path_TCLSH
7800if test -n "$TCLSH"; then
7801 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7802echo "${ECHO_T}$TCLSH" >&6; }
7803else
7804 { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
7809 test -n "$TCLSH" && break
7810done
7811
7812 if test x"${TCLSH}" = x ; then
7813 ac_cv_path_tclsh='';
7814 else
7815 ac_cv_path_tclsh="${TCLSH}";
7816 fi
7817else
7818 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7819echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7820 TCLSH="${ac_cv_path_tclsh}"
7821
7822fi
7823
7824fi
7825
7826# Extract the first word of "zip", so it can be a program name with args.
7827set dummy zip; ac_word=$2
7828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830if test "${ac_cv_path_ZIP+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833 case $ZIP in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7836 ;;
7837 *)
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849done
7850done
7851IFS=$as_save_IFS
7852
7853 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7854 ;;
7855esac
7856fi
7857ZIP=$ac_cv_path_ZIP
7858if test -n "$ZIP"; then
7859 { echo "$as_me:$LINENO: result: $ZIP" >&5
7860echo "${ECHO_T}$ZIP" >&6; }
7861else
7862 { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
7864fi
7865
7866
7867
7868{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7869echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7870if test "${llvm_cv_link_use_r+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 ac_ext=c
7874ac_cpp='$CPP $CPPFLAGS'
7875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879 oldcflags="$CFLAGS"
7880 CFLAGS="$CFLAGS -Wl,-R."
7881 cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
7887
7888int
7889main ()
7890{
7891int main() { return 0; }
7892 ;
7893 return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (ac_try="$ac_link"
7898case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901esac
7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_link") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7911 { (case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_try") 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest$ac_exeext'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 llvm_cv_link_use_r=yes
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 llvm_cv_link_use_r=no
7936fi
7937
7938rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 CFLAGS="$oldcflags"
7941 ac_ext=c
7942ac_cpp='$CPP $CPPFLAGS'
7943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947
7948fi
7949{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7950echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7951if test "$llvm_cv_link_use_r" = yes ; then
7952
7953cat >>confdefs.h <<\_ACEOF
7954#define HAVE_LINK_R 1
7955_ACEOF
7956
7957 fi
7958
7959
7960
7961
7962{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7963echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7964if test "${ac_cv_c_const+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 cat >conftest.$ac_ext <<_ACEOF
7968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
7973
7974int
7975main ()
7976{
7977/* FIXME: Include the comments suggested by Paul. */
7978#ifndef __cplusplus
7979 /* Ultrix mips cc rejects this. */
7980 typedef int charset[2];
7981 const charset x;
7982 /* SunOS 4.1.1 cc rejects this. */
7983 char const *const *ccp;
7984 char **p;
7985 /* NEC SVR4.0.2 mips cc rejects this. */
7986 struct point {int x, y;};
7987 static struct point const zero = {0,0};
7988 /* AIX XL C 1.02.0.0 rejects this.
7989 It does not let you subtract one const X* pointer from another in
7990 an arm of an if-expression whose if-part is not a constant
7991 expression */
7992 const char *g = "string";
7993 ccp = &g + (g ? g-g : 0);
7994 /* HPUX 7.0 cc rejects these. */
7995 ++ccp;
7996 p = (char**) ccp;
7997 ccp = (char const *const *) p;
7998 { /* SCO 3.2v4 cc rejects this. */
7999 char *t;
8000 char const *s = 0 ? (char *) 0 : (char const *) 0;
8001
8002 *t++ = 0;
8003 if (s) return 0;
8004 }
8005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8006 int x[] = {25, 17};
8007 const int *foo = &x[0];
8008 ++foo;
8009 }
8010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8011 typedef const int *iptr;
8012 iptr p = 0;
8013 ++p;
8014 }
8015 { /* AIX XL C 1.02.0.0 rejects this saying
8016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8017 struct s { int j; const int *ap[3]; };
8018 struct s *b; b->j = 5;
8019 }
8020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8021 const int foo = 10;
8022 if (!foo) return 0;
8023 }
8024 return !x[0] && !zero.x;
8025#endif
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (ac_try="$ac_compile"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_c_const=yes
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_cv_c_const=no
8071fi
8072
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8076echo "${ECHO_T}$ac_cv_c_const" >&6; }
8077if test $ac_cv_c_const = no; then
8078
8079cat >>confdefs.h <<\_ACEOF
8080#define const
8081_ACEOF
8082
8083fi
8084
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008085
8086
8087
8088
8089
8090ac_header_dirent=no
8091for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8092 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008093{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8094echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098 cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104#include <sys/types.h>
8105#include <$ac_hdr>
8106
8107int
8108main ()
8109{
8110if ((DIR *) 0)
8111return 0;
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008117if { (ac_try="$ac_compile"
8118case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 eval "$as_ac_Header=yes"
8151else
8152 echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
Reid Spencera773bd52006-08-04 18:18:08 +00008155 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008156fi
Reid Spencera773bd52006-08-04 18:18:08 +00008157
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159fi
Reid Spencera773bd52006-08-04 18:18:08 +00008160ac_res=`eval echo '${'$as_ac_Header'}'`
8161 { echo "$as_me:$LINENO: result: $ac_res" >&5
8162echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008163if test `eval echo '${'$as_ac_Header'}'` = yes; then
8164 cat >>confdefs.h <<_ACEOF
8165#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8166_ACEOF
8167
8168ac_header_dirent=$ac_hdr; break
8169fi
8170
8171done
8172# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8173if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008174 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8175echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176if test "${ac_cv_search_opendir+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h. */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h. */
8186
Reid Spencera773bd52006-08-04 18:18:08 +00008187/* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190#ifdef __cplusplus
8191extern "C"
8192#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193char opendir ();
8194int
8195main ()
8196{
Reid Spencera773bd52006-08-04 18:18:08 +00008197return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008198 ;
8199 return 0;
8200}
8201_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008202for ac_lib in '' dir; do
8203 if test -z "$ac_lib"; then
8204 ac_res="none required"
8205 else
8206 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008208 fi
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (ac_try="$ac_link"
8211case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008243 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008248
8249fi
8250
Reid Spencera773bd52006-08-04 18:18:08 +00008251rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext
8253 if test "${ac_cv_search_opendir+set}" = set; then
8254 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008255fi
John Criswell7a73b802003-06-30 21:59:07 +00008256done
Reid Spencera773bd52006-08-04 18:18:08 +00008257if test "${ac_cv_search_opendir+set}" = set; then
8258 :
8259else
8260 ac_cv_search_opendir=no
8261fi
8262rm conftest.$ac_ext
8263LIBS=$ac_func_search_save_LIBS
8264fi
8265{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8266echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8267ac_res=$ac_cv_search_opendir
8268if test "$ac_res" != no; then
8269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008270
Reid Spencera773bd52006-08-04 18:18:08 +00008271fi
8272
8273else
8274 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8275echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8276if test "${ac_cv_search_opendir+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279 ac_func_search_save_LIBS=$LIBS
8280cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
8286
8287/* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
8290#ifdef __cplusplus
8291extern "C"
8292#endif
8293char opendir ();
8294int
8295main ()
8296{
8297return opendir ();
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302for ac_lib in '' x; do
8303 if test -z "$ac_lib"; then
8304 ac_res="none required"
8305 else
8306 ac_res=-l$ac_lib
8307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8308 fi
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (ac_try="$ac_link"
8311case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_search_opendir=$ac_res
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348
8349fi
8350
8351rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext
8353 if test "${ac_cv_search_opendir+set}" = set; then
8354 break
8355fi
8356done
8357if test "${ac_cv_search_opendir+set}" = set; then
8358 :
8359else
8360 ac_cv_search_opendir=no
8361fi
8362rm conftest.$ac_ext
8363LIBS=$ac_func_search_save_LIBS
8364fi
8365{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8366echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8367ac_res=$ac_cv_search_opendir
8368if test "$ac_res" != no; then
8369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8370
8371fi
8372
8373fi
John Criswell7a73b802003-06-30 21:59:07 +00008374
8375
8376for ac_header in dlfcn.h
8377do
8378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008383 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008384fi
Reid Spencera773bd52006-08-04 18:18:08 +00008385ac_res=`eval echo '${'$as_ac_Header'}'`
8386 { echo "$as_me:$LINENO: result: $ac_res" >&5
8387echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008388else
Brian Gaeke0a621332004-09-08 20:38:05 +00008389 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008390{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008392cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008398$ac_includes_default
8399#include <$ac_header>
8400_ACEOF
8401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008426 { (case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008435 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008436else
8437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008438sed 's/^/| /' conftest.$ac_ext >&5
8439
Reid Spencera773bd52006-08-04 18:18:08 +00008440 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008441fi
Reid Spencera773bd52006-08-04 18:18:08 +00008442
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008446
8447# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008448{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008450cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h. */
8456#include <$ac_header>
8457_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008458if { (ac_try="$ac_cpp conftest.$ac_ext"
8459case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } >/dev/null; then
8471 if test -s conftest.err; then
8472 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008474 else
8475 ac_cpp_err=
8476 fi
8477else
8478 ac_cpp_err=yes
8479fi
8480if test -z "$ac_cpp_err"; then
8481 ac_header_preproc=yes
8482else
8483 echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 ac_header_preproc=no
8487fi
Reid Spencera773bd52006-08-04 18:18:08 +00008488
Brian Gaeke0a621332004-09-08 20:38:05 +00008489rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008492
8493# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8495 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8500 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008501 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008502 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008515 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008516## ----------------------------------- ##
8517## Report this to llvmbugs@cs.uiuc.edu ##
8518## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008519_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008520 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008521 ;;
8522esac
Reid Spencera773bd52006-08-04 18:18:08 +00008523{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008528 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008529fi
Reid Spencera773bd52006-08-04 18:18:08 +00008530ac_res=`eval echo '${'$as_ac_Header'}'`
8531 { echo "$as_me:$LINENO: result: $ac_res" >&5
8532echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008533
8534fi
John Criswell7a73b802003-06-30 21:59:07 +00008535if test `eval echo '${'$as_ac_Header'}'` = yes; then
8536 cat >>confdefs.h <<_ACEOF
8537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538_ACEOF
8539
8540fi
8541
8542done
8543
Reid Spencera773bd52006-08-04 18:18:08 +00008544# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008545if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008546 enableval=$enable_ltdl_install;
8547fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008548
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008549
8550
8551
8552if test x"${enable_ltdl_install-no}" != xno; then
8553 INSTALL_LTDL_TRUE=
8554 INSTALL_LTDL_FALSE='#'
8555else
8556 INSTALL_LTDL_TRUE='#'
8557 INSTALL_LTDL_FALSE=
8558fi
8559
8560
8561
8562if test x"${enable_ltdl_convenience-no}" != xno; then
8563 CONVENIENCE_LTDL_TRUE=
8564 CONVENIENCE_LTDL_FALSE='#'
8565else
8566 CONVENIENCE_LTDL_TRUE='#'
8567 CONVENIENCE_LTDL_FALSE=
8568fi
8569
8570
Reid Spencera773bd52006-08-04 18:18:08 +00008571{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8572echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008573library_names_spec=
8574libname_spec='lib$name'
8575soname_spec=
8576shrext_cmds=".so"
8577postinstall_cmds=
8578postuninstall_cmds=
8579finish_cmds=
8580finish_eval=
8581shlibpath_var=
8582shlibpath_overrides_runpath=unknown
8583version_type=none
8584dynamic_linker="$host_os ld.so"
8585sys_lib_dlsearch_path_spec="/lib /usr/lib"
8586if test "$GCC" = yes; then
8587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8588 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8589 # if the path contains ";" then we assume it to be the separator
8590 # otherwise default to the standard path separator (i.e. ":") - it is
8591 # assumed that no part of a normal pathname contains ";" but that should
8592 # okay in the real world where ";" in dirpaths is itself problematic.
8593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8594 else
8595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8596 fi
8597else
8598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8599fi
8600need_lib_prefix=unknown
8601hardcode_into_libs=no
8602
8603# when you set need_version to no, make sure it does not cause -set_version
8604# flags to be left without arguments
8605need_version=unknown
8606
8607case $host_os in
8608aix3*)
8609 version_type=linux
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8611 shlibpath_var=LIBPATH
8612
8613 # AIX 3 has no versioning support, so we append a major version to the name.
8614 soname_spec='${libname}${release}${shared_ext}$major'
8615 ;;
8616
8617aix4* | aix5*)
8618 version_type=linux
8619 need_lib_prefix=no
8620 need_version=no
8621 hardcode_into_libs=yes
8622 if test "$host_cpu" = ia64; then
8623 # AIX 5 supports IA64
8624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 else
8627 # With GCC up to 2.95.x, collect2 would create an import file
8628 # for dependence libraries. The import file would start with
8629 # the line `#! .'. This would cause the generated library to
8630 # depend on `.', always an invalid library. This was fixed in
8631 # development snapshots of GCC prior to 3.0.
8632 case $host_os in
8633 aix4 | aix4.[01] | aix4.[01].*)
8634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8635 echo ' yes '
8636 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8637 :
8638 else
8639 can_build_shared=no
8640 fi
8641 ;;
8642 esac
8643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8644 # soname into executable. Probably we can add versioning support to
8645 # collect2, so additional links can be useful in future.
8646 if test "$aix_use_runtimelinking" = yes; then
8647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8648 # instead of lib<name>.a to let people know that these are not
8649 # typical AIX shared libraries.
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651 else
8652 # We preserve .a as extension for shared libraries through AIX4.2
8653 # and later when we are not doing run time linking.
8654 library_names_spec='${libname}${release}.a $libname.a'
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 fi
8657 shlibpath_var=LIBPATH
8658 fi
8659 ;;
8660
8661amigaos*)
8662 library_names_spec='$libname.ixlibrary $libname.a'
8663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664 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'
8665 ;;
8666
8667beos*)
8668 library_names_spec='${libname}${shared_ext}'
8669 dynamic_linker="$host_os ld.so"
8670 shlibpath_var=LIBRARY_PATH
8671 ;;
8672
8673bsdi[45]*)
8674 version_type=linux
8675 need_version=no
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8679 shlibpath_var=LD_LIBRARY_PATH
8680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8682 # the default ld.so.conf also contains /usr/contrib/lib and
8683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8684 # libtool to hard-code these into programs
8685 ;;
8686
8687cygwin* | mingw* | pw32*)
8688 version_type=windows
8689 shrext_cmds=".dll"
8690 need_version=no
8691 need_lib_prefix=no
8692
8693 case $GCC,$host_os in
8694 yes,cygwin* | yes,mingw* | yes,pw32*)
8695 library_names_spec='$libname.dll.a'
8696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8697 postinstall_cmds='base_file=`basename \${file}`~
8698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8699 dldir=$destdir/`dirname \$dlpath`~
8700 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008701 $install_prog $dir/$dlname \$dldir/$dlname~
8702 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8704 dlpath=$dir/\$dldll~
8705 $rm \$dlpath'
8706 shlibpath_overrides_runpath=yes
8707
8708 case $host_os in
8709 cygwin*)
8710 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8713 ;;
8714 mingw*)
8715 # MinGW DLLs use traditional 'lib' prefix
8716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8719 # It is most probably a Windows format PATH printed by
8720 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8721 # path with ; separators, and with drive letters. We can handle the
8722 # drive letters (cygwin fileutils understands them), so leave them,
8723 # especially as we might pass files found there to a mingw objdump,
8724 # which wouldn't understand a cygwinified path. Ahh.
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726 else
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8728 fi
8729 ;;
8730 pw32*)
8731 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008732 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 +00008733 ;;
8734 esac
8735 ;;
8736
8737 *)
8738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8739 ;;
8740 esac
8741 dynamic_linker='Win32 ld.exe'
8742 # FIXME: first we should search . and the directory the executable is in
8743 shlibpath_var=PATH
8744 ;;
8745
8746darwin* | rhapsody*)
8747 dynamic_linker="$host_os dyld"
8748 version_type=darwin
8749 need_lib_prefix=no
8750 need_version=no
8751 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8752 soname_spec='${libname}${release}${major}$shared_ext'
8753 shlibpath_overrides_runpath=yes
8754 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008756 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8757 if test "$GCC" = yes; then
8758 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"`
8759 else
8760 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8761 fi
8762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8763 ;;
8764
8765dgux*)
8766 version_type=linux
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 ;;
8773
8774freebsd1*)
8775 dynamic_linker=no
8776 ;;
8777
8778kfreebsd*-gnu)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 shlibpath_overrides_runpath=no
8786 hardcode_into_libs=yes
8787 dynamic_linker='GNU ld.so'
8788 ;;
8789
Reid Spencera773bd52006-08-04 18:18:08 +00008790freebsd* | dragonfly*)
8791 # DragonFly does not have aout. When/if they implement a new
8792 # versioning mechanism, adjust this.
8793 if test -x /usr/bin/objformat; then
8794 objformat=`/usr/bin/objformat`
8795 else
8796 case $host_os in
8797 freebsd[123]*) objformat=aout ;;
8798 *) objformat=elf ;;
8799 esac
8800 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008801 version_type=freebsd-$objformat
8802 case $version_type in
8803 freebsd-elf*)
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8805 need_version=no
8806 need_lib_prefix=no
8807 ;;
8808 freebsd-*)
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8810 need_version=yes
8811 ;;
8812 esac
8813 shlibpath_var=LD_LIBRARY_PATH
8814 case $host_os in
8815 freebsd2*)
8816 shlibpath_overrides_runpath=yes
8817 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008818 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008819 shlibpath_overrides_runpath=yes
8820 hardcode_into_libs=yes
8821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008827 freebsd*) # from 4.6 on
8828 shlibpath_overrides_runpath=yes
8829 hardcode_into_libs=yes
8830 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831 esac
8832 ;;
8833
8834gnu*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 hardcode_into_libs=yes
8842 ;;
8843
8844hpux9* | hpux10* | hpux11*)
8845 # Give a soname corresponding to the major version so that dld.sl refuses to
8846 # link against other versions.
8847 version_type=sunos
8848 need_lib_prefix=no
8849 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008850 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851 ia64*)
8852 shrext_cmds='.so'
8853 hardcode_into_libs=yes
8854 dynamic_linker="$host_os dld.so"
8855 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 if test "X$HPUX_IA64_MODE" = X32; then
8860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8861 else
8862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8863 fi
8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865 ;;
8866 hppa*64*)
8867 shrext_cmds='.sl'
8868 hardcode_into_libs=yes
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8876 ;;
8877 *)
8878 shrext_cmds='.sl'
8879 dynamic_linker="$host_os dld.sl"
8880 shlibpath_var=SHLIB_PATH
8881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 ;;
8885 esac
8886 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8887 postinstall_cmds='chmod 555 $lib'
8888 ;;
8889
Reid Spencera773bd52006-08-04 18:18:08 +00008890interix3*)
8891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8900 ;;
8901
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008902irix5* | irix6* | nonstopux*)
8903 case $host_os in
8904 nonstopux*) version_type=nonstopux ;;
8905 *)
8906 if test "$lt_cv_prog_gnu_ld" = yes; then
8907 version_type=linux
8908 else
8909 version_type=irix
8910 fi ;;
8911 esac
8912 need_lib_prefix=no
8913 need_version=no
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8916 case $host_os in
8917 irix5* | nonstopux*)
8918 libsuff= shlibsuff=
8919 ;;
8920 *)
8921 case $LD in # libtool.m4 will add one of these switches to LD
8922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8923 libsuff= shlibsuff= libmagic=32-bit;;
8924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8925 libsuff=32 shlibsuff=N32 libmagic=N32;;
8926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8928 *) libsuff= shlibsuff= libmagic=never-match;;
8929 esac
8930 ;;
8931 esac
8932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8933 shlibpath_overrides_runpath=no
8934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8936 hardcode_into_libs=yes
8937 ;;
8938
8939# No shared lib support for Linux oldld, aout, or coff.
8940linux*oldld* | linux*aout* | linux*coff*)
8941 dynamic_linker=no
8942 ;;
8943
8944# This must be Linux ELF.
8945linux*)
8946 version_type=linux
8947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 # This implies no fast_install, which is unacceptable.
8955 # Some rework will be needed to allow for fast_install
8956 # before this can be enabled.
8957 hardcode_into_libs=yes
8958
8959 # Append ld.so.conf contents to the search path
8960 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008961 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 +00008962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8963 fi
8964
8965 # We used to test for /lib/ld.so.1 and disable shared libraries on
8966 # powerpc, because MkLinux only supported shared libraries with the
8967 # GNU dynamic linker. Since this was broken with cross compilers,
8968 # most powerpc-linux boxes support dynamic linking these days and
8969 # people can always --disable-shared, the test was removed, and we
8970 # assume the GNU/Linux dynamic linker is in use.
8971 dynamic_linker='GNU/Linux ld.so'
8972 ;;
8973
8974knetbsd*-gnu)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 hardcode_into_libs=yes
8983 dynamic_linker='GNU ld.so'
8984 ;;
8985
8986netbsd*)
8987 version_type=sunos
8988 need_lib_prefix=no
8989 need_version=no
8990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993 dynamic_linker='NetBSD (a.out) ld.so'
8994 else
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 dynamic_linker='NetBSD ld.elf_so'
8998 fi
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 ;;
9003
9004newsos6)
9005 version_type=linux
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 ;;
9010
9011nto-qnx*)
9012 version_type=linux
9013 need_lib_prefix=no
9014 need_version=no
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9019 ;;
9020
9021openbsd*)
9022 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009023 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9026 case $host_os in
9027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9028 *) need_version=no ;;
9029 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9034 case $host_os in
9035 openbsd2.[89] | openbsd2.[89].*)
9036 shlibpath_overrides_runpath=no
9037 ;;
9038 *)
9039 shlibpath_overrides_runpath=yes
9040 ;;
9041 esac
9042 else
9043 shlibpath_overrides_runpath=yes
9044 fi
9045 ;;
9046
9047os2*)
9048 libname_spec='$name'
9049 shrext_cmds=".dll"
9050 need_lib_prefix=no
9051 library_names_spec='$libname${shared_ext} $libname.a'
9052 dynamic_linker='OS/2 ld.exe'
9053 shlibpath_var=LIBPATH
9054 ;;
9055
9056osf3* | osf4* | osf5*)
9057 version_type=osf
9058 need_lib_prefix=no
9059 need_version=no
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9065 ;;
9066
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009067solaris*)
9068 version_type=linux
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 hardcode_into_libs=yes
9076 # ldd complains unless libraries are executable
9077 postinstall_cmds='chmod +x $lib'
9078 ;;
9079
9080sunos4*)
9081 version_type=sunos
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9086 if test "$with_gnu_ld" = yes; then
9087 need_lib_prefix=no
9088 fi
9089 need_version=yes
9090 ;;
9091
Reid Spencera773bd52006-08-04 18:18:08 +00009092sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009093 version_type=linux
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 case $host_vendor in
9098 sni)
9099 shlibpath_overrides_runpath=no
9100 need_lib_prefix=no
9101 export_dynamic_flag_spec='${wl}-Blargedynsym'
9102 runpath_var=LD_RUN_PATH
9103 ;;
9104 siemens)
9105 need_lib_prefix=no
9106 ;;
9107 motorola)
9108 need_lib_prefix=no
9109 need_version=no
9110 shlibpath_overrides_runpath=no
9111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9112 ;;
9113 esac
9114 ;;
9115
9116sysv4*MP*)
9117 if test -d /usr/nec ;then
9118 version_type=linux
9119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9120 soname_spec='$libname${shared_ext}.$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 fi
9123 ;;
9124
Reid Spencera773bd52006-08-04 18:18:08 +00009125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9126 version_type=freebsd-elf
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 hardcode_into_libs=yes
9133 if test "$with_gnu_ld" = yes; then
9134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9135 shlibpath_overrides_runpath=no
9136 else
9137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9138 shlibpath_overrides_runpath=yes
9139 case $host_os in
9140 sco3.2v5*)
9141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142 ;;
9143 esac
9144 fi
9145 sys_lib_dlsearch_path_spec='/usr/lib'
9146 ;;
9147
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009148uts4*)
9149 version_type=linux
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 ;;
9154
9155*)
9156 dynamic_linker=no
9157 ;;
9158esac
Reid Spencera773bd52006-08-04 18:18:08 +00009159{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9160echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161test "$dynamic_linker" = no && can_build_shared=no
9162
Reid Spencera773bd52006-08-04 18:18:08 +00009163variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9164if test "$GCC" = yes; then
9165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9166fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167
Reid Spencera773bd52006-08-04 18:18:08 +00009168
9169{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9170echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171if test "${libltdl_cv_shlibext+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174
9175module=yes
9176eval libltdl_cv_shlibext=$shrext_cmds
9177
9178fi
Reid Spencera773bd52006-08-04 18:18:08 +00009179{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9180echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009181if test -n "$libltdl_cv_shlibext"; then
9182
9183cat >>confdefs.h <<_ACEOF
9184#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9185_ACEOF
9186
9187fi
9188
9189
Reid Spencera773bd52006-08-04 18:18:08 +00009190{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9191echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009192if test "${libltdl_cv_shlibpath_var+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 libltdl_cv_shlibpath_var="$shlibpath_var"
9196fi
Reid Spencera773bd52006-08-04 18:18:08 +00009197{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9198echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199if test -n "$libltdl_cv_shlibpath_var"; then
9200
9201cat >>confdefs.h <<_ACEOF
9202#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9203_ACEOF
9204
9205fi
9206
9207
Reid Spencera773bd52006-08-04 18:18:08 +00009208{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9209echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009210if test "${libltdl_cv_sys_search_path+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9214fi
Reid Spencera773bd52006-08-04 18:18:08 +00009215{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9216echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217if test -n "$libltdl_cv_sys_search_path"; then
9218 sys_search_path=
9219 for dir in $libltdl_cv_sys_search_path; do
9220 if test -z "$sys_search_path"; then
9221 sys_search_path="$dir"
9222 else
9223 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9224 fi
9225 done
9226
9227cat >>confdefs.h <<_ACEOF
9228#define LTDL_SYSSEARCHPATH "$sys_search_path"
9229_ACEOF
9230
9231fi
9232
Reid Spencera773bd52006-08-04 18:18:08 +00009233{ echo "$as_me:$LINENO: checking for objdir" >&5
9234echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235if test "${libltdl_cv_objdir+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 libltdl_cv_objdir="$objdir"
9239 if test -n "$objdir"; then
9240 :
9241 else
9242 rm -f .libs 2>/dev/null
9243 mkdir .libs 2>/dev/null
9244 if test -d .libs; then
9245 libltdl_cv_objdir=.libs
9246 else
9247 # MS-DOS does not allow filenames that begin with a dot.
9248 libltdl_cv_objdir=_libs
9249 fi
9250 rmdir .libs 2>/dev/null
9251 fi
9252
9253fi
Reid Spencera773bd52006-08-04 18:18:08 +00009254{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9255echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009256
9257cat >>confdefs.h <<_ACEOF
9258#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9259_ACEOF
9260
9261
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262
9263
9264
9265
9266# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009267{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9268echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271else
9272
9273# These are sane defaults that work on at least a few old systems.
9274# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9275
9276# Character class describing NM global symbol codes.
9277symcode='[BCDEGRST]'
9278
9279# Regexp to match symbols that can be accessed directly from C.
9280sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9281
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282# Transform an extracted symbol line into a proper C declaration
9283lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9284
9285# Transform an extracted symbol line into symbol name and symbol address
9286lt_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'"
9287
9288# Define system-specific variables.
9289case $host_os in
9290aix*)
9291 symcode='[BCDT]'
9292 ;;
9293cygwin* | mingw* | pw32*)
9294 symcode='[ABCDGISTW]'
9295 ;;
9296hpux*) # Its linker distinguishes data from code symbols
9297 if test "$host_cpu" = ia64; then
9298 symcode='[ABCDEGRST]'
9299 fi
9300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9301 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'"
9302 ;;
9303linux*)
9304 if test "$host_cpu" = ia64; then
9305 symcode='[ABCDGIRSTW]'
9306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9307 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'"
9308 fi
9309 ;;
9310irix* | nonstopux*)
9311 symcode='[BCDEGRST]'
9312 ;;
9313osf*)
9314 symcode='[BCDEGQRST]'
9315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009316solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317 symcode='[BDRT]'
9318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009319sco3.2v5*)
9320 symcode='[DT]'
9321 ;;
9322sysv4.2uw2*)
9323 symcode='[DT]'
9324 ;;
9325sysv5* | sco5v6* | unixware* | OpenUNIX*)
9326 symcode='[ABDT]'
9327 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328sysv4)
9329 symcode='[DFNSTU]'
9330 ;;
9331esac
9332
9333# Handle CRLF in mingw tool chain
9334opt_cr=
9335case $build_os in
9336mingw*)
9337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9338 ;;
9339esac
9340
9341# If we're using GNU nm, then use its standard symbol codes.
9342case `$NM -V 2>&1` in
9343*GNU* | *'with BFD'*)
9344 symcode='[ABCDGIRSTW]' ;;
9345esac
9346
9347# Try without a prefix undercore, then with it.
9348for ac_symprfx in "" "_"; do
9349
Reid Spencera773bd52006-08-04 18:18:08 +00009350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9351 symxfrm="\\1 $ac_symprfx\\2 \\2"
9352
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009354 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 +00009355
9356 # Check to see that the pipe works correctly.
9357 pipe_works=no
9358
9359 rm -f conftest*
9360 cat > conftest.$ac_ext <<EOF
9361#ifdef __cplusplus
9362extern "C" {
9363#endif
9364char nm_test_var;
9365void nm_test_func(){}
9366#ifdef __cplusplus
9367}
9368#endif
9369int main(){nm_test_var='a';nm_test_func();return(0);}
9370EOF
9371
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; then
9377 # Now try to grab the symbols.
9378 nlist=conftest.nm
9379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && test -s "$nlist"; then
9384 # Try sorting and uniquifying the output.
9385 if sort "$nlist" | uniq > "$nlist"T; then
9386 mv -f "$nlist"T "$nlist"
9387 else
9388 rm -f "$nlist"T
9389 fi
9390
9391 # Make sure that we snagged all the symbols we need.
9392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9394 cat <<EOF > conftest.$ac_ext
9395#ifdef __cplusplus
9396extern "C" {
9397#endif
9398
9399EOF
9400 # Now generate the symbol file.
9401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9402
9403 cat <<EOF >> conftest.$ac_ext
9404#if defined (__STDC__) && __STDC__
9405# define lt_ptr_t void *
9406#else
9407# define lt_ptr_t char *
9408# define const
9409#endif
9410
9411/* The mapping between symbol names and symbols. */
9412const struct {
9413 const char *name;
9414 lt_ptr_t address;
9415}
9416lt_preloaded_symbols[] =
9417{
9418EOF
9419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9420 cat <<\EOF >> conftest.$ac_ext
9421 {0, (lt_ptr_t) 0}
9422};
9423
9424#ifdef __cplusplus
9425}
9426#endif
9427EOF
9428 # Now try linking the two files.
9429 mv conftest.$ac_objext conftstm.$ac_objext
9430 lt_save_LIBS="$LIBS"
9431 lt_save_CFLAGS="$CFLAGS"
9432 LIBS="conftstm.$ac_objext"
9433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9439 pipe_works=yes
9440 fi
9441 LIBS="$lt_save_LIBS"
9442 CFLAGS="$lt_save_CFLAGS"
9443 else
9444 echo "cannot find nm_test_func in $nlist" >&5
9445 fi
9446 else
9447 echo "cannot find nm_test_var in $nlist" >&5
9448 fi
9449 else
9450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9451 fi
9452 else
9453 echo "$progname: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9455 fi
9456 rm -f conftest* conftst*
9457
9458 # Do not use the global_symbol_pipe unless it works.
9459 if test "$pipe_works" = yes; then
9460 break
9461 else
9462 lt_cv_sys_global_symbol_pipe=
9463 fi
9464done
9465
9466fi
9467
9468if test -z "$lt_cv_sys_global_symbol_pipe"; then
9469 lt_cv_sys_global_symbol_to_cdecl=
9470fi
9471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009472 { echo "$as_me:$LINENO: result: failed" >&5
9473echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474else
Reid Spencera773bd52006-08-04 18:18:08 +00009475 { echo "$as_me:$LINENO: result: ok" >&5
9476echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477fi
9478
9479
Reid Spencera773bd52006-08-04 18:18:08 +00009480{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9481echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9486 libltdl_cv_preloaded_symbols=yes
9487 else
9488 libltdl_cv_preloaded_symbols=no
9489 fi
9490
9491fi
Reid Spencera773bd52006-08-04 18:18:08 +00009492{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9493echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9495
9496cat >>confdefs.h <<\_ACEOF
9497#define HAVE_PRELOADED_SYMBOLS 1
9498_ACEOF
9499
9500fi
9501
9502LIBADD_DL=
9503
9504ac_ext=c
9505ac_cpp='$CPP $CPPFLAGS'
9506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510
Reid Spencera773bd52006-08-04 18:18:08 +00009511{ echo "$as_me:$LINENO: checking for shl_load" >&5
9512echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513if test "${ac_cv_func_shl_load+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 cat >conftest.$ac_ext <<_ACEOF
9517/* confdefs.h. */
9518_ACEOF
9519cat confdefs.h >>conftest.$ac_ext
9520cat >>conftest.$ac_ext <<_ACEOF
9521/* end confdefs.h. */
9522/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9524#define shl_load innocuous_shl_load
9525
9526/* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char shl_load (); below.
9528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529 <limits.h> exists even on freestanding compilers. */
9530
9531#ifdef __STDC__
9532# include <limits.h>
9533#else
9534# include <assert.h>
9535#endif
9536
9537#undef shl_load
9538
Reid Spencera773bd52006-08-04 18:18:08 +00009539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542#ifdef __cplusplus
9543extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545char shl_load ();
9546/* The GNU C library defines this for functions which it implements
9547 to always fail with ENOSYS. Some functions are actually named
9548 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009549#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551#endif
9552
9553int
9554main ()
9555{
Reid Spencera773bd52006-08-04 18:18:08 +00009556return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557 ;
9558 return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_func_shl_load=yes
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
Reid Spencera773bd52006-08-04 18:18:08 +00009600 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601fi
Reid Spencera773bd52006-08-04 18:18:08 +00009602
9603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604 conftest$ac_exeext conftest.$ac_ext
9605fi
Reid Spencera773bd52006-08-04 18:18:08 +00009606{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9607echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608if test $ac_cv_func_shl_load = yes; then
9609
9610cat >>confdefs.h <<\_ACEOF
9611#define HAVE_SHL_LOAD 1
9612_ACEOF
9613
9614else
Reid Spencera773bd52006-08-04 18:18:08 +00009615 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9616echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 ac_check_lib_save_LIBS=$LIBS
9621LIBS="-ldld $LIBS"
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628
Reid Spencera773bd52006-08-04 18:18:08 +00009629/* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632#ifdef __cplusplus
9633extern "C"
9634#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635char shl_load ();
9636int
9637main ()
9638{
Reid Spencera773bd52006-08-04 18:18:08 +00009639return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009645if { (ac_try="$ac_link"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_dld_shl_load=yes
9679else
9680 echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
Reid Spencera773bd52006-08-04 18:18:08 +00009683 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684fi
Reid Spencera773bd52006-08-04 18:18:08 +00009685
9686rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687 conftest$ac_exeext conftest.$ac_ext
9688LIBS=$ac_check_lib_save_LIBS
9689fi
Reid Spencera773bd52006-08-04 18:18:08 +00009690{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9691echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692if test $ac_cv_lib_dld_shl_load = yes; then
9693
9694cat >>confdefs.h <<\_ACEOF
9695#define HAVE_SHL_LOAD 1
9696_ACEOF
9697
9698 LIBADD_DL="$LIBADD_DL -ldld"
9699else
Reid Spencera773bd52006-08-04 18:18:08 +00009700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9701echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 ac_check_lib_save_LIBS=$LIBS
9706LIBS="-ldl $LIBS"
9707cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
9713
Reid Spencera773bd52006-08-04 18:18:08 +00009714/* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717#ifdef __cplusplus
9718extern "C"
9719#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720char dlopen ();
9721int
9722main ()
9723{
Reid Spencera773bd52006-08-04 18:18:08 +00009724return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725 ;
9726 return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009730if { (ac_try="$ac_link"
9731case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9764else
9765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
Reid Spencera773bd52006-08-04 18:18:08 +00009768 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769fi
Reid Spencera773bd52006-08-04 18:18:08 +00009770
9771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772 conftest$ac_exeext conftest.$ac_ext
9773LIBS=$ac_check_lib_save_LIBS
9774fi
Reid Spencera773bd52006-08-04 18:18:08 +00009775{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777if test $ac_cv_lib_dl_dlopen = yes; then
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define HAVE_LIBDL 1
9781_ACEOF
9782
9783 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9784else
9785 cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h. */
9791#if HAVE_DLFCN_H
9792# include <dlfcn.h>
9793#endif
9794
9795int
9796main ()
9797{
9798dlopen(0, 0);
9799 ;
9800 return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009804if { (ac_try="$ac_link"
9805case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837
9838cat >>confdefs.h <<\_ACEOF
9839#define HAVE_LIBDL 1
9840_ACEOF
9841 libltdl_cv_func_dlopen="yes"
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
Reid Spencera773bd52006-08-04 18:18:08 +00009846 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-lsvld $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859
Reid Spencera773bd52006-08-04 18:18:08 +00009860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863#ifdef __cplusplus
9864extern "C"
9865#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866char dlopen ();
9867int
9868main ()
9869{
Reid Spencera773bd52006-08-04 18:18:08 +00009870return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_svld_dlopen=yes
9910else
9911 echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
Reid Spencera773bd52006-08-04 18:18:08 +00009914 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915fi
Reid Spencera773bd52006-08-04 18:18:08 +00009916
9917rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918 conftest$ac_exeext conftest.$ac_ext
9919LIBS=$ac_check_lib_save_LIBS
9920fi
Reid Spencera773bd52006-08-04 18:18:08 +00009921{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9922echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923if test $ac_cv_lib_svld_dlopen = yes; then
9924
9925cat >>confdefs.h <<\_ACEOF
9926#define HAVE_LIBDL 1
9927_ACEOF
9928
9929 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9930else
Reid Spencera773bd52006-08-04 18:18:08 +00009931 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9932echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936 ac_check_lib_save_LIBS=$LIBS
9937LIBS="-ldld $LIBS"
9938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h. */
9944
Reid Spencera773bd52006-08-04 18:18:08 +00009945/* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948#ifdef __cplusplus
9949extern "C"
9950#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951char dld_link ();
9952int
9953main ()
9954{
Reid Spencera773bd52006-08-04 18:18:08 +00009955return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 ;
9957 return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009961if { (ac_try="$ac_link"
9962case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_lib_dld_dld_link=yes
9995else
9996 echo "$as_me: failed program was:" >&5
9997sed 's/^/| /' conftest.$ac_ext >&5
9998
Reid Spencera773bd52006-08-04 18:18:08 +00009999 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000fi
Reid Spencera773bd52006-08-04 18:18:08 +000010001
10002rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003 conftest$ac_exeext conftest.$ac_ext
10004LIBS=$ac_check_lib_save_LIBS
10005fi
Reid Spencera773bd52006-08-04 18:18:08 +000010006{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10007echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008if test $ac_cv_lib_dld_dld_link = yes; then
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_DLD 1
10012_ACEOF
10013
10014 LIBADD_DL="$LIBADD_DL -ldld"
10015else
Reid Spencera773bd52006-08-04 18:18:08 +000010016 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10017echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029#define _dyld_func_lookup innocuous__dyld_func_lookup
10030
10031/* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char _dyld_func_lookup (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10035
10036#ifdef __STDC__
10037# include <limits.h>
10038#else
10039# include <assert.h>
10040#endif
10041
10042#undef _dyld_func_lookup
10043
Reid Spencera773bd52006-08-04 18:18:08 +000010044/* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047#ifdef __cplusplus
10048extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050char _dyld_func_lookup ();
10051/* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010054#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056#endif
10057
10058int
10059main ()
10060{
Reid Spencera773bd52006-08-04 18:18:08 +000010061return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062 ;
10063 return 0;
10064}
10065_ACEOF
10066rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010067if { (ac_try="$ac_link"
10068case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010091 { (case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10094esac
10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_func__dyld_func_lookup=yes
10101else
10102 echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
Reid Spencera773bd52006-08-04 18:18:08 +000010105 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106fi
Reid Spencera773bd52006-08-04 18:18:08 +000010107
10108rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109 conftest$ac_exeext conftest.$ac_ext
10110fi
Reid Spencera773bd52006-08-04 18:18:08 +000010111{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10112echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010113if test $ac_cv_func__dyld_func_lookup = yes; then
10114
10115cat >>confdefs.h <<\_ACEOF
10116#define HAVE_DYLD 1
10117_ACEOF
10118
10119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
Reid Spencera773bd52006-08-04 18:18:08 +000010129
10130rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131 conftest$ac_exeext conftest.$ac_ext
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10143then
10144 lt_save_LIBS="$LIBS"
10145 LIBS="$LIBS $LIBADD_DL"
10146
10147for ac_func in dlerror
10148do
10149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010150{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163#define $ac_func innocuous_$ac_func
10164
10165/* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char $ac_func (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10169
10170#ifdef __STDC__
10171# include <limits.h>
10172#else
10173# include <assert.h>
10174#endif
10175
10176#undef $ac_func
10177
Reid Spencera773bd52006-08-04 18:18:08 +000010178/* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181#ifdef __cplusplus
10182extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184char $ac_func ();
10185/* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010188#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190#endif
10191
10192int
10193main ()
10194{
Reid Spencera773bd52006-08-04 18:18:08 +000010195return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010201if { (ac_try="$ac_link"
10202case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010225 { (case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 eval "$as_ac_var=yes"
10235else
10236 echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
Reid Spencera773bd52006-08-04 18:18:08 +000010239 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240fi
Reid Spencera773bd52006-08-04 18:18:08 +000010241
10242rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 conftest$ac_exeext conftest.$ac_ext
10244fi
Reid Spencera773bd52006-08-04 18:18:08 +000010245ac_res=`eval echo '${'$as_ac_var'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248if test `eval echo '${'$as_ac_var'}'` = yes; then
10249 cat >>confdefs.h <<_ACEOF
10250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251_ACEOF
10252
10253fi
10254done
10255
10256 LIBS="$lt_save_LIBS"
10257fi
10258ac_ext=c
10259ac_cpp='$CPP $CPPFLAGS'
10260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10262ac_compiler_gnu=$ac_cv_c_compiler_gnu
10263
10264
10265
Reid Spencera773bd52006-08-04 18:18:08 +000010266{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10267echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 ac_cv_sys_symbol_underscore=no
10272 cat > conftest.$ac_ext <<EOF
10273void nm_test_func(){}
10274int main(){nm_test_func;return 0;}
10275EOF
10276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 # Now try to grab the symbols.
10282 ac_nlist=conftest.nm
10283 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10284 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s "$ac_nlist"; then
10288 # See whether the symbols have a leading underscore.
10289 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10290 ac_cv_sys_symbol_underscore=yes
10291 else
10292 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10293 :
10294 else
10295 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10296 fi
10297 fi
10298 else
10299 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10300 fi
10301 else
10302 echo "configure: failed program was:" >&5
10303 cat conftest.c >&5
10304 fi
10305 rm -rf conftest*
10306
10307fi
Reid Spencera773bd52006-08-04 18:18:08 +000010308{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10309echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310
10311
10312if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10313 if test x"$libltdl_cv_func_dlopen" = xyes ||
10314 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010315 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10316echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317if test "${libltdl_cv_need_uscore+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 libltdl_cv_need_uscore=unknown
10321 save_LIBS="$LIBS"
10322 LIBS="$LIBS $LIBADD_DL"
10323 if test "$cross_compiling" = yes; then :
10324 libltdl_cv_need_uscore=cross
10325else
10326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327 lt_status=$lt_dlunknown
10328 cat > conftest.$ac_ext <<EOF
Reid Spencer89b0d992006-12-16 22:07:52 +000010329#line 10329 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330#include "confdefs.h"
10331
10332#if HAVE_DLFCN_H
10333#include <dlfcn.h>
10334#endif
10335
10336#include <stdio.h>
10337
10338#ifdef RTLD_GLOBAL
10339# define LT_DLGLOBAL RTLD_GLOBAL
10340#else
10341# ifdef DL_GLOBAL
10342# define LT_DLGLOBAL DL_GLOBAL
10343# else
10344# define LT_DLGLOBAL 0
10345# endif
10346#endif
10347
10348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349 find out it does not work in some platform. */
10350#ifndef LT_DLLAZY_OR_NOW
10351# ifdef RTLD_LAZY
10352# define LT_DLLAZY_OR_NOW RTLD_LAZY
10353# else
10354# ifdef DL_LAZY
10355# define LT_DLLAZY_OR_NOW DL_LAZY
10356# else
10357# ifdef RTLD_NOW
10358# define LT_DLLAZY_OR_NOW RTLD_NOW
10359# else
10360# ifdef DL_NOW
10361# define LT_DLLAZY_OR_NOW DL_NOW
10362# else
10363# define LT_DLLAZY_OR_NOW 0
10364# endif
10365# endif
10366# endif
10367# endif
10368#endif
10369
10370#ifdef __cplusplus
10371extern "C" void exit (int);
10372#endif
10373
10374void fnord() { int i=42;}
10375int main ()
10376{
10377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378 int status = $lt_dlunknown;
10379
10380 if (self)
10381 {
10382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384 /* dlclose (self); */
10385 }
Reid Spencera773bd52006-08-04 18:18:08 +000010386 else
10387 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388
10389 exit (status);
10390}
10391EOF
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010397 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398 lt_status=$?
10399 case x$lt_status in
10400 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10401 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010402 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403 esac
10404 else :
10405 # compilation failed
10406
10407 fi
10408fi
10409rm -fr conftest*
10410
10411 LIBS="$save_LIBS"
10412
10413fi
Reid Spencera773bd52006-08-04 18:18:08 +000010414{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10415echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 fi
10417fi
10418
10419if test x"$libltdl_cv_need_uscore" = xyes; then
10420
10421cat >>confdefs.h <<\_ACEOF
10422#define NEED_USCORE 1
10423_ACEOF
10424
10425fi
10426
10427
Reid Spencera773bd52006-08-04 18:18:08 +000010428{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10429echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 # PORTME does your system automatically load deplibs for dlopen?
10434 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10435 # For now, we just catch OSes we know something about -- in the
10436 # future, we'll try test this programmatically.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10438 case "$host_os" in
10439 aix3*|aix4.1.*|aix4.2.*)
10440 # Unknown whether this is true for these versions of AIX, but
10441 # we want this `case' here to explicitly catch those versions.
10442 libltdl_cv_sys_dlopen_deplibs=unknown
10443 ;;
10444 aix[45]*)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10446 ;;
10447 darwin*)
10448 # Assuming the user has installed a libdl from somewhere, this is true
10449 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10450 libltdl_cv_sys_dlopen_deplibs=yes
10451 ;;
10452 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10453 # GNU and its variants, using gnu ld.so (Glibc)
10454 libltdl_cv_sys_dlopen_deplibs=yes
10455 ;;
10456 hpux10*|hpux11*)
10457 libltdl_cv_sys_dlopen_deplibs=yes
10458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010459 interix*)
10460 libltdl_cv_sys_dlopen_deplibs=yes
10461 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 irix[12345]*|irix6.[01]*)
10463 # Catch all versions of IRIX before 6.2, and indicate that we don't
10464 # know how it worked for any of those versions.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10466 ;;
10467 irix*)
10468 # The case above catches anything before 6.2, and it's known that
10469 # at 6.2 and later dlopen does load deplibs.
10470 libltdl_cv_sys_dlopen_deplibs=yes
10471 ;;
10472 netbsd*)
10473 libltdl_cv_sys_dlopen_deplibs=yes
10474 ;;
10475 openbsd*)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10477 ;;
10478 osf[1234]*)
10479 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10480 # it did *not* use an RPATH in a shared library to find objects the
10481 # library depends on, so we explictly say `no'.
10482 libltdl_cv_sys_dlopen_deplibs=no
10483 ;;
10484 osf5.0|osf5.0a|osf5.1)
10485 # dlopen *does* load deplibs and with the right loader patch applied
10486 # it even uses RPATH in a shared library to search for shared objects
10487 # that the library depends on, but there's no easy way to know if that
10488 # patch is installed. Since this is the case, all we can really
10489 # say is unknown -- it depends on the patch being installed. If
10490 # it is, this changes to `yes'. Without it, it would be `no'.
10491 libltdl_cv_sys_dlopen_deplibs=unknown
10492 ;;
10493 osf*)
10494 # the two cases above should catch all versions of osf <= 5.1. Read
10495 # the comments above for what we know about them.
10496 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10497 # is used to find them so we can finally say `yes'.
10498 libltdl_cv_sys_dlopen_deplibs=yes
10499 ;;
10500 solaris*)
10501 libltdl_cv_sys_dlopen_deplibs=yes
10502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504 libltdl_cv_sys_dlopen_deplibs=yes
10505 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506 esac
10507
10508fi
Reid Spencera773bd52006-08-04 18:18:08 +000010509{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10510echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10512
10513cat >>confdefs.h <<\_ACEOF
10514#define LTDL_DLOPEN_DEPLIBS 1
10515_ACEOF
10516
10517fi
10518
10519
10520for ac_header in argz.h
10521do
10522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528fi
Reid Spencera773bd52006-08-04 18:18:08 +000010529ac_res=`eval echo '${'$as_ac_Header'}'`
10530 { echo "$as_me:$LINENO: result: $ac_res" >&5
10531echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532else
10533 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542$ac_includes_default
10543#include <$ac_header>
10544_ACEOF
10545rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010546if { (ac_try="$ac_compile"
10547case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_header_compiler=yes
10580else
10581 echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
Reid Spencera773bd52006-08-04 18:18:08 +000010584 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585fi
Reid Spencera773bd52006-08-04 18:18:08 +000010586
10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10589echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590
10591# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600#include <$ac_header>
10601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010602if { (ac_try="$ac_cpp conftest.$ac_ext"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } >/dev/null; then
10615 if test -s conftest.err; then
10616 ac_cpp_err=$ac_c_preproc_warn_flag
10617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10618 else
10619 ac_cpp_err=
10620 fi
10621else
10622 ac_cpp_err=yes
10623fi
10624if test -z "$ac_cpp_err"; then
10625 ac_header_preproc=yes
10626else
10627 echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_header_preproc=no
10631fi
Reid Spencera773bd52006-08-04 18:18:08 +000010632
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636
10637# So? What about this header?
10638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10639 yes:no: )
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644 ac_header_preproc=yes
10645 ;;
10646 no:yes:* )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010659 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660## ----------------------------------- ##
10661## Report this to llvmbugs@cs.uiuc.edu ##
10662## ----------------------------------- ##
10663_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010664 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 ;;
10666esac
Reid Spencera773bd52006-08-04 18:18:08 +000010667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 eval "$as_ac_Header=\$ac_header_preproc"
10673fi
Reid Spencera773bd52006-08-04 18:18:08 +000010674ac_res=`eval echo '${'$as_ac_Header'}'`
10675 { echo "$as_me:$LINENO: result: $ac_res" >&5
10676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677
10678fi
10679if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682_ACEOF
10683
10684fi
10685
10686done
10687
10688
Reid Spencera773bd52006-08-04 18:18:08 +000010689{ echo "$as_me:$LINENO: checking for error_t" >&5
10690echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691if test "${ac_cv_type_error_t+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694 cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700#if HAVE_ARGZ_H
10701# include <argz.h>
10702#endif
10703
Reid Spencera773bd52006-08-04 18:18:08 +000010704typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705int
10706main ()
10707{
Reid Spencera773bd52006-08-04 18:18:08 +000010708if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010710if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711 return 0;
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010717if { (ac_try="$ac_compile"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_cv_type_error_t=yes
10751else
10752 echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
Reid Spencera773bd52006-08-04 18:18:08 +000010755 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756fi
Reid Spencera773bd52006-08-04 18:18:08 +000010757
10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759fi
Reid Spencera773bd52006-08-04 18:18:08 +000010760{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10761echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762if test $ac_cv_type_error_t = yes; then
10763
10764cat >>confdefs.h <<_ACEOF
10765#define HAVE_ERROR_T 1
10766_ACEOF
10767
10768
10769else
10770
10771cat >>confdefs.h <<\_ACEOF
10772#define error_t int
10773_ACEOF
10774
10775fi
10776
10777
10778
10779
10780
10781
10782
10783for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10784do
10785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10799#define $ac_func innocuous_$ac_func
10800
10801/* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char $ac_func (); below.
10803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804 <limits.h> exists even on freestanding compilers. */
10805
10806#ifdef __STDC__
10807# include <limits.h>
10808#else
10809# include <assert.h>
10810#endif
10811
10812#undef $ac_func
10813
Reid Spencera773bd52006-08-04 18:18:08 +000010814/* Override any GCC internal prototype to avoid an error.
10815 Use char because int might match the return type of a GCC
10816 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817#ifdef __cplusplus
10818extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820char $ac_func ();
10821/* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010824#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826#endif
10827
10828int
10829main ()
10830{
Reid Spencera773bd52006-08-04 18:18:08 +000010831return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832 ;
10833 return 0;
10834}
10835_ACEOF
10836rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010837if { (ac_try="$ac_link"
10838case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 eval "$as_ac_var=yes"
10871else
10872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
Reid Spencera773bd52006-08-04 18:18:08 +000010875 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876fi
Reid Spencera773bd52006-08-04 18:18:08 +000010877
10878rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879 conftest$ac_exeext conftest.$ac_ext
10880fi
Reid Spencera773bd52006-08-04 18:18:08 +000010881ac_res=`eval echo '${'$as_ac_var'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884if test `eval echo '${'$as_ac_var'}'` = yes; then
10885 cat >>confdefs.h <<_ACEOF
10886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10887_ACEOF
10888
10889fi
10890done
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10920 stdio.h unistd.h
10921do
10922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928fi
Reid Spencera773bd52006-08-04 18:18:08 +000010929ac_res=`eval echo '${'$as_ac_Header'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932else
10933 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942$ac_includes_default
10943#include <$ac_header>
10944_ACEOF
10945rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010946if { (ac_try="$ac_compile"
10947case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10950esac
10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953 ac_status=$?
10954 grep -v '^ *+' conftest.er1 >conftest.err
10955 rm -f conftest.er1
10956 cat conftest.err >&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; } &&
10969 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010970 { (case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_header_compiler=yes
10980else
10981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
Reid Spencera773bd52006-08-04 18:18:08 +000010984 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985fi
Reid Spencera773bd52006-08-04 18:18:08 +000010986
10987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10989echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990
10991# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010992{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
11000#include <$ac_header>
11001_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011002if { (ac_try="$ac_cpp conftest.$ac_ext"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } >/dev/null; then
11015 if test -s conftest.err; then
11016 ac_cpp_err=$ac_c_preproc_warn_flag
11017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11018 else
11019 ac_cpp_err=
11020 fi
11021else
11022 ac_cpp_err=yes
11023fi
11024if test -z "$ac_cpp_err"; then
11025 ac_header_preproc=yes
11026else
11027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_header_preproc=no
11031fi
Reid Spencera773bd52006-08-04 18:18:08 +000011032
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11035echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036
11037# So? What about this header?
11038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11039 yes:no: )
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11044 ac_header_preproc=yes
11045 ;;
11046 no:yes:* )
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011059 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060## ----------------------------------- ##
11061## Report this to llvmbugs@cs.uiuc.edu ##
11062## ----------------------------------- ##
11063_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011064 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065 ;;
11066esac
Reid Spencera773bd52006-08-04 18:18:08 +000011067{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 eval "$as_ac_Header=\$ac_header_preproc"
11073fi
Reid Spencera773bd52006-08-04 18:18:08 +000011074ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077
11078fi
11079if test `eval echo '${'$as_ac_Header'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082_ACEOF
11083
11084fi
11085
11086done
11087
11088
11089
11090
11091
11092for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11093do
11094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100fi
Reid Spencera773bd52006-08-04 18:18:08 +000011101ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104else
11105 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114$ac_includes_default
11115#include <$ac_header>
11116_ACEOF
11117rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011118if { (ac_try="$ac_compile"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
Reid Spencera773bd52006-08-04 18:18:08 +000011156 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157fi
Reid Spencera773bd52006-08-04 18:18:08 +000011158
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162
11163# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166cat >conftest.$ac_ext <<_ACEOF
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h. */
11172#include <$ac_header>
11173_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011174if { (ac_try="$ac_cpp conftest.$ac_ext"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190 else
11191 ac_cpp_err=
11192 fi
11193else
11194 ac_cpp_err=yes
11195fi
11196if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_header_preproc=no
11203fi
Reid Spencera773bd52006-08-04 18:18:08 +000011204
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208
11209# So? What about this header?
11210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 yes:no: )
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11217 ;;
11218 no:yes:* )
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011231 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232## ----------------------------------- ##
11233## Report this to llvmbugs@cs.uiuc.edu ##
11234## ----------------------------------- ##
11235_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011236 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 ;;
11238esac
Reid Spencera773bd52006-08-04 18:18:08 +000011239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 eval "$as_ac_Header=\$ac_header_preproc"
11245fi
Reid Spencera773bd52006-08-04 18:18:08 +000011246ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249
11250fi
11251if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254_ACEOF
11255
11256fi
11257
11258done
11259
11260
11261
11262for ac_header in string.h strings.h
11263do
11264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270fi
Reid Spencera773bd52006-08-04 18:18:08 +000011271ac_res=`eval echo '${'$as_ac_Header'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274else
11275 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011276{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284$ac_includes_default
11285#include <$ac_header>
11286_ACEOF
11287rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011288if { (ac_try="$ac_compile"
11289case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292esac
11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_header_compiler=yes
11322else
11323 echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
Reid Spencera773bd52006-08-04 18:18:08 +000011326 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327fi
Reid Spencera773bd52006-08-04 18:18:08 +000011328
11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332
11333# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011334{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342#include <$ac_header>
11343_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011344if { (ac_try="$ac_cpp conftest.$ac_ext"
11345case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } >/dev/null; then
11357 if test -s conftest.err; then
11358 ac_cpp_err=$ac_c_preproc_warn_flag
11359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11360 else
11361 ac_cpp_err=
11362 fi
11363else
11364 ac_cpp_err=yes
11365fi
11366if test -z "$ac_cpp_err"; then
11367 ac_header_preproc=yes
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_header_preproc=no
11373fi
Reid Spencera773bd52006-08-04 18:18:08 +000011374
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011376{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378
11379# So? What about this header?
11380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11381 yes:no: )
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386 ac_header_preproc=yes
11387 ;;
11388 no:yes:* )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11396echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011401 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402## ----------------------------------- ##
11403## Report this to llvmbugs@cs.uiuc.edu ##
11404## ----------------------------------- ##
11405_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011406 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407 ;;
11408esac
Reid Spencera773bd52006-08-04 18:18:08 +000011409{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414 eval "$as_ac_Header=\$ac_header_preproc"
11415fi
Reid Spencera773bd52006-08-04 18:18:08 +000011416ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419
11420fi
11421if test `eval echo '${'$as_ac_Header'}'` = yes; then
11422 cat >>confdefs.h <<_ACEOF
11423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11424_ACEOF
11425 break
11426fi
11427
11428done
11429
11430
11431
11432
11433for ac_func in strchr index
11434do
11435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449#define $ac_func innocuous_$ac_func
11450
11451/* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11455
11456#ifdef __STDC__
11457# include <limits.h>
11458#else
11459# include <assert.h>
11460#endif
11461
11462#undef $ac_func
11463
Reid Spencera773bd52006-08-04 18:18:08 +000011464/* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467#ifdef __cplusplus
11468extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470char $ac_func ();
11471/* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011474#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476#endif
11477
11478int
11479main ()
11480{
Reid Spencera773bd52006-08-04 18:18:08 +000011481return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011487if { (ac_try="$ac_link"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
Reid Spencera773bd52006-08-04 18:18:08 +000011525 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526fi
Reid Spencera773bd52006-08-04 18:18:08 +000011527
11528rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 conftest$ac_exeext conftest.$ac_ext
11530fi
Reid Spencera773bd52006-08-04 18:18:08 +000011531ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537_ACEOF
11538 break
11539fi
11540done
11541
11542
11543
11544for ac_func in strrchr rindex
11545do
11546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011547{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h. */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h. */
11558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11560#define $ac_func innocuous_$ac_func
11561
11562/* System header to define __stub macros and hopefully few prototypes,
11563 which can conflict with char $ac_func (); below.
11564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11565 <limits.h> exists even on freestanding compilers. */
11566
11567#ifdef __STDC__
11568# include <limits.h>
11569#else
11570# include <assert.h>
11571#endif
11572
11573#undef $ac_func
11574
Reid Spencera773bd52006-08-04 18:18:08 +000011575/* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578#ifdef __cplusplus
11579extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581char $ac_func ();
11582/* The GNU C library defines this for functions which it implements
11583 to always fail with ENOSYS. Some functions are actually named
11584 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011585#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587#endif
11588
11589int
11590main ()
11591{
Reid Spencera773bd52006-08-04 18:18:08 +000011592return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593 ;
11594 return 0;
11595}
11596_ACEOF
11597rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011598if { (ac_try="$ac_link"
11599case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 eval "$as_ac_var=yes"
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
Reid Spencera773bd52006-08-04 18:18:08 +000011636 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637fi
Reid Spencera773bd52006-08-04 18:18:08 +000011638
11639rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640 conftest$ac_exeext conftest.$ac_ext
11641fi
Reid Spencera773bd52006-08-04 18:18:08 +000011642ac_res=`eval echo '${'$as_ac_var'}'`
11643 { echo "$as_me:$LINENO: result: $ac_res" >&5
11644echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645if test `eval echo '${'$as_ac_var'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11648_ACEOF
11649 break
11650fi
11651done
11652
11653
11654
11655for ac_func in memcpy bcopy
11656do
11657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011658{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11660if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663 cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
11669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11671#define $ac_func innocuous_$ac_func
11672
11673/* System header to define __stub macros and hopefully few prototypes,
11674 which can conflict with char $ac_func (); below.
11675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 <limits.h> exists even on freestanding compilers. */
11677
11678#ifdef __STDC__
11679# include <limits.h>
11680#else
11681# include <assert.h>
11682#endif
11683
11684#undef $ac_func
11685
Reid Spencera773bd52006-08-04 18:18:08 +000011686/* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689#ifdef __cplusplus
11690extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692char $ac_func ();
11693/* The GNU C library defines this for functions which it implements
11694 to always fail with ENOSYS. Some functions are actually named
11695 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011696#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698#endif
11699
11700int
11701main ()
11702{
Reid Spencera773bd52006-08-04 18:18:08 +000011703return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704 ;
11705 return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011709if { (ac_try="$ac_link"
11710case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 eval "$as_ac_var=yes"
11743else
11744 echo "$as_me: failed program was:" >&5
11745sed 's/^/| /' conftest.$ac_ext >&5
11746
Reid Spencera773bd52006-08-04 18:18:08 +000011747 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748fi
Reid Spencera773bd52006-08-04 18:18:08 +000011749
11750rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751 conftest$ac_exeext conftest.$ac_ext
11752fi
Reid Spencera773bd52006-08-04 18:18:08 +000011753ac_res=`eval echo '${'$as_ac_var'}'`
11754 { echo "$as_me:$LINENO: result: $ac_res" >&5
11755echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756if test `eval echo '${'$as_ac_var'}'` = yes; then
11757 cat >>confdefs.h <<_ACEOF
11758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759_ACEOF
11760 break
11761fi
11762done
11763
11764
11765
11766for ac_func in memmove strcmp
11767do
11768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774 cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782#define $ac_func innocuous_$ac_func
11783
11784/* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11788
11789#ifdef __STDC__
11790# include <limits.h>
11791#else
11792# include <assert.h>
11793#endif
11794
11795#undef $ac_func
11796
Reid Spencera773bd52006-08-04 18:18:08 +000011797/* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800#ifdef __cplusplus
11801extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803char $ac_func ();
11804/* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011807#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809#endif
11810
11811int
11812main ()
11813{
Reid Spencera773bd52006-08-04 18:18:08 +000011814return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815 ;
11816 return 0;
11817}
11818_ACEOF
11819rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011820if { (ac_try="$ac_link"
11821case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011844 { (case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_var=yes"
11854else
11855 echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
Reid Spencera773bd52006-08-04 18:18:08 +000011858 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859fi
Reid Spencera773bd52006-08-04 18:18:08 +000011860
11861rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862 conftest$ac_exeext conftest.$ac_ext
11863fi
Reid Spencera773bd52006-08-04 18:18:08 +000011864ac_res=`eval echo '${'$as_ac_var'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867if test `eval echo '${'$as_ac_var'}'` = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870_ACEOF
11871
11872fi
11873done
11874
11875
11876
11877
11878for ac_func in closedir opendir readdir
11879do
11880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886 cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
11892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11894#define $ac_func innocuous_$ac_func
11895
11896/* System header to define __stub macros and hopefully few prototypes,
11897 which can conflict with char $ac_func (); below.
11898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 <limits.h> exists even on freestanding compilers. */
11900
11901#ifdef __STDC__
11902# include <limits.h>
11903#else
11904# include <assert.h>
11905#endif
11906
11907#undef $ac_func
11908
Reid Spencera773bd52006-08-04 18:18:08 +000011909/* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912#ifdef __cplusplus
11913extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915char $ac_func ();
11916/* The GNU C library defines this for functions which it implements
11917 to always fail with ENOSYS. Some functions are actually named
11918 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011919#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921#endif
11922
11923int
11924main ()
11925{
Reid Spencera773bd52006-08-04 18:18:08 +000011926return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011932if { (ac_try="$ac_link"
11933case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946 { (case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 eval "$as_ac_var=yes"
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
Reid Spencera773bd52006-08-04 18:18:08 +000011970 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971fi
Reid Spencera773bd52006-08-04 18:18:08 +000011972
11973rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974 conftest$ac_exeext conftest.$ac_ext
11975fi
Reid Spencera773bd52006-08-04 18:18:08 +000011976ac_res=`eval echo '${'$as_ac_var'}'`
11977 { echo "$as_me:$LINENO: result: $ac_res" >&5
11978echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979if test `eval echo '${'$as_ac_var'}'` = yes; then
11980 cat >>confdefs.h <<_ACEOF
11981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11982_ACEOF
11983
11984fi
11985done
11986
11987
Reid Spencera773bd52006-08-04 18:18:08 +000011988# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011990 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991 case $enableval in
11992 yes) enable_shared=yes ;;
11993 no) enable_shared=no ;;
11994 *)
11995 enable_shared=no
11996 # Look at the argument we got. We use all the common list separators.
11997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998 for pkg in $enableval; do
11999 IFS="$lt_save_ifs"
12000 if test "X$pkg" = "X$p"; then
12001 enable_shared=yes
12002 fi
12003 done
12004 IFS="$lt_save_ifs"
12005 ;;
12006 esac
12007else
12008 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012009fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010
Reid Spencera773bd52006-08-04 18:18:08 +000012011
12012# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012014 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 case $enableval in
12016 yes) enable_static=yes ;;
12017 no) enable_static=no ;;
12018 *)
12019 enable_static=no
12020 # Look at the argument we got. We use all the common list separators.
12021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12022 for pkg in $enableval; do
12023 IFS="$lt_save_ifs"
12024 if test "X$pkg" = "X$p"; then
12025 enable_static=yes
12026 fi
12027 done
12028 IFS="$lt_save_ifs"
12029 ;;
12030 esac
12031else
12032 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012033fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034
Reid Spencera773bd52006-08-04 18:18:08 +000012035
12036# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012038 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039 case $enableval in
12040 yes) enable_fast_install=yes ;;
12041 no) enable_fast_install=no ;;
12042 *)
12043 enable_fast_install=no
12044 # Look at the argument we got. We use all the common list separators.
12045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046 for pkg in $enableval; do
12047 IFS="$lt_save_ifs"
12048 if test "X$pkg" = "X$p"; then
12049 enable_fast_install=yes
12050 fi
12051 done
12052 IFS="$lt_save_ifs"
12053 ;;
12054 esac
12055else
12056 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012057fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058
Reid Spencera773bd52006-08-04 18:18:08 +000012059
12060{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12061echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062if test "${lt_cv_path_SED+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065 # Loop through the user's path and test for sed and gsed.
12066# Then use that list of sed's as ones to test for truncation.
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for lt_ac_prog in sed gsed; do
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12075 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12076 fi
12077 done
12078 done
12079done
12080lt_ac_max=0
12081lt_ac_count=0
12082# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12083# along with /bin/sed that truncates output.
12084for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012085 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086 cat /dev/null > conftest.in
12087 lt_ac_count=0
12088 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12089 # Check for GNU sed and select it if it is found.
12090 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12091 lt_cv_path_SED=$lt_ac_sed
12092 break
12093 fi
12094 while true; do
12095 cat conftest.in conftest.in >conftest.tmp
12096 mv conftest.tmp conftest.in
12097 cp conftest.in conftest.nl
12098 echo >>conftest.nl
12099 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12100 cmp -s conftest.out conftest.nl || break
12101 # 10000 chars as input seems more than enough
12102 test $lt_ac_count -gt 10 && break
12103 lt_ac_count=`expr $lt_ac_count + 1`
12104 if test $lt_ac_count -gt $lt_ac_max; then
12105 lt_ac_max=$lt_ac_count
12106 lt_cv_path_SED=$lt_ac_sed
12107 fi
12108 done
12109done
12110
12111fi
12112
12113SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012114{ echo "$as_me:$LINENO: result: $SED" >&5
12115echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116
12117
Reid Spencera773bd52006-08-04 18:18:08 +000012118# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121else
12122 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012123fi
12124
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012125ac_prog=ld
12126if test "$GCC" = yes; then
12127 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012128 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12129echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130 case $host in
12131 *-*-mingw*)
12132 # gcc leaves a trailing carriage return which upsets mingw
12133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12134 *)
12135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12136 esac
12137 case $ac_prog in
12138 # Accept absolute paths.
12139 [\\/]* | ?:[\\/]*)
12140 re_direlt='/[^/][^/]*/\.\./'
12141 # Canonicalize the pathname of ld
12142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12145 done
12146 test -z "$LD" && LD="$ac_prog"
12147 ;;
12148 "")
12149 # If it fails, then pretend we aren't using GCC.
12150 ac_prog=ld
12151 ;;
12152 *)
12153 # If it is relative, then search for the first ld in PATH.
12154 with_gnu_ld=unknown
12155 ;;
12156 esac
12157elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012158 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12159echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160else
Reid Spencera773bd52006-08-04 18:18:08 +000012161 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12162echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163fi
12164if test "${lt_cv_path_LD+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167 if test -z "$LD"; then
12168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12169 for ac_dir in $PATH; do
12170 IFS="$lt_save_ifs"
12171 test -z "$ac_dir" && ac_dir=.
12172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12173 lt_cv_path_LD="$ac_dir/$ac_prog"
12174 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012175 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176 # Break only if it was the GNU/non-GNU ld that we prefer.
12177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12178 *GNU* | *'with BFD'*)
12179 test "$with_gnu_ld" != no && break
12180 ;;
12181 *)
12182 test "$with_gnu_ld" != yes && break
12183 ;;
12184 esac
12185 fi
12186 done
12187 IFS="$lt_save_ifs"
12188else
12189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12190fi
12191fi
12192
12193LD="$lt_cv_path_LD"
12194if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012195 { echo "$as_me:$LINENO: result: $LD" >&5
12196echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197else
Reid Spencera773bd52006-08-04 18:18:08 +000012198 { echo "$as_me:$LINENO: result: no" >&5
12199echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200fi
12201test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12202echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12203 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012204{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12205echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206if test "${lt_cv_prog_gnu_ld+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
Reid Spencera773bd52006-08-04 18:18:08 +000012209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210case `$LD -v 2>&1 </dev/null` in
12211*GNU* | *'with BFD'*)
12212 lt_cv_prog_gnu_ld=yes
12213 ;;
12214*)
12215 lt_cv_prog_gnu_ld=no
12216 ;;
12217esac
12218fi
Reid Spencera773bd52006-08-04 18:18:08 +000012219{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12220echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012221with_gnu_ld=$lt_cv_prog_gnu_ld
12222
12223
Reid Spencera773bd52006-08-04 18:18:08 +000012224{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12225echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012226if test "${lt_cv_ld_reload_flag+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 lt_cv_ld_reload_flag='-r'
12230fi
Reid Spencera773bd52006-08-04 18:18:08 +000012231{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12232echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233reload_flag=$lt_cv_ld_reload_flag
12234case $reload_flag in
12235"" | " "*) ;;
12236*) reload_flag=" $reload_flag" ;;
12237esac
12238reload_cmds='$LD$reload_flag -o $output$reload_objs'
12239case $host_os in
12240 darwin*)
12241 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 else
12244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12245 fi
12246 ;;
12247esac
12248
Reid Spencera773bd52006-08-04 18:18:08 +000012249{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12250echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251if test "${lt_cv_deplibs_check_method+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 lt_cv_file_magic_cmd='$MAGIC_CMD'
12255lt_cv_file_magic_test_file=
12256lt_cv_deplibs_check_method='unknown'
12257# Need to set the preceding variable on all platforms that support
12258# interlibrary dependencies.
12259# 'none' -- dependencies not supported.
12260# `unknown' -- same as none, but documents that we really don't know.
12261# 'pass_all' -- all dependencies passed with no checks.
12262# 'test_compile' -- check by making test program.
12263# 'file_magic [[regex]]' -- check by looking for files in library path
12264# which responds to the $file_magic_cmd with a given extended regex.
12265# If you have `file' or equivalent on your system and you're not sure
12266# whether `pass_all' will *always* work, you probably want this one.
12267
12268case $host_os in
12269aix4* | aix5*)
12270 lt_cv_deplibs_check_method=pass_all
12271 ;;
12272
12273beos*)
12274 lt_cv_deplibs_check_method=pass_all
12275 ;;
12276
12277bsdi[45]*)
12278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12279 lt_cv_file_magic_cmd='/usr/bin/file -L'
12280 lt_cv_file_magic_test_file=/shlib/libc.so
12281 ;;
12282
12283cygwin*)
12284 # func_win32_libid is a shell function defined in ltmain.sh
12285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12286 lt_cv_file_magic_cmd='func_win32_libid'
12287 ;;
12288
12289mingw* | pw32*)
12290 # Base MSYS/MinGW do not provide the 'file' command needed by
12291 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12293 lt_cv_file_magic_cmd='$OBJDUMP -f'
12294 ;;
12295
12296darwin* | rhapsody*)
12297 lt_cv_deplibs_check_method=pass_all
12298 ;;
12299
Reid Spencera773bd52006-08-04 18:18:08 +000012300freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302 case $host_cpu in
12303 i*86 )
12304 # Not sure whether the presence of OpenBSD here was a mistake.
12305 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012306 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 +000012307 lt_cv_file_magic_cmd=/usr/bin/file
12308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12309 ;;
12310 esac
12311 else
12312 lt_cv_deplibs_check_method=pass_all
12313 fi
12314 ;;
12315
12316gnu*)
12317 lt_cv_deplibs_check_method=pass_all
12318 ;;
12319
12320hpux10.20* | hpux11*)
12321 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012322 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323 ia64*)
12324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12325 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12326 ;;
12327 hppa*64*)
12328 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]'
12329 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12330 ;;
12331 *)
12332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12333 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12334 ;;
12335 esac
12336 ;;
12337
Reid Spencera773bd52006-08-04 18:18:08 +000012338interix3*)
12339 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12341 ;;
12342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343irix5* | irix6* | nonstopux*)
12344 case $LD in
12345 *-32|*"-32 ") libmagic=32-bit;;
12346 *-n32|*"-n32 ") libmagic=N32;;
12347 *-64|*"-64 ") libmagic=64-bit;;
12348 *) libmagic=never-match;;
12349 esac
12350 lt_cv_deplibs_check_method=pass_all
12351 ;;
12352
12353# This must be Linux ELF.
12354linux*)
12355 lt_cv_deplibs_check_method=pass_all
12356 ;;
12357
12358netbsd*)
12359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12361 else
12362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12363 fi
12364 ;;
12365
12366newos6*)
12367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12368 lt_cv_file_magic_cmd=/usr/bin/file
12369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12370 ;;
12371
12372nto-qnx*)
12373 lt_cv_deplibs_check_method=unknown
12374 ;;
12375
12376openbsd*)
12377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12379 else
12380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12381 fi
12382 ;;
12383
12384osf3* | osf4* | osf5*)
12385 lt_cv_deplibs_check_method=pass_all
12386 ;;
12387
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388solaris*)
12389 lt_cv_deplibs_check_method=pass_all
12390 ;;
12391
Reid Spencera773bd52006-08-04 18:18:08 +000012392sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 case $host_vendor in
12394 motorola)
12395 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]'
12396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12397 ;;
12398 ncr)
12399 lt_cv_deplibs_check_method=pass_all
12400 ;;
12401 sequent)
12402 lt_cv_file_magic_cmd='/bin/file'
12403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12404 ;;
12405 sni)
12406 lt_cv_file_magic_cmd='/bin/file'
12407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12408 lt_cv_file_magic_test_file=/lib/libc.so
12409 ;;
12410 siemens)
12411 lt_cv_deplibs_check_method=pass_all
12412 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012413 pc)
12414 lt_cv_deplibs_check_method=pass_all
12415 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416 esac
12417 ;;
12418
Reid Spencera773bd52006-08-04 18:18:08 +000012419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420 lt_cv_deplibs_check_method=pass_all
12421 ;;
12422esac
12423
12424fi
Reid Spencera773bd52006-08-04 18:18:08 +000012425{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12426echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427file_magic_cmd=$lt_cv_file_magic_cmd
12428deplibs_check_method=$lt_cv_deplibs_check_method
12429test -z "$deplibs_check_method" && deplibs_check_method=unknown
12430
12431
12432
12433# If no C compiler was specified, use CC.
12434LTCC=${LTCC-"$CC"}
12435
Reid Spencera773bd52006-08-04 18:18:08 +000012436# If no C compiler flags were specified, use CFLAGS.
12437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012439# Allow CC to be a program name with arguments.
12440compiler=$CC
12441
Reid Spencera773bd52006-08-04 18:18:08 +000012442# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012444 enableval=$enable_libtool_lock;
12445fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12448
12449# Some flags need to be propagated to the compiler or linker for good
12450# libtool support.
12451case $host in
12452ia64-*-hpux*)
12453 # Find out which ABI we are using.
12454 echo 'int i;' > conftest.$ac_ext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; then
12460 case `/usr/bin/file conftest.$ac_objext` in
12461 *ELF-32*)
12462 HPUX_IA64_MODE="32"
12463 ;;
12464 *ELF-64*)
12465 HPUX_IA64_MODE="64"
12466 ;;
12467 esac
12468 fi
12469 rm -rf conftest*
12470 ;;
12471*-*-irix6*)
12472 # Find out which ABI we are using.
Reid Spencer89b0d992006-12-16 22:07:52 +000012473 echo '#line 12473 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; then
12479 if test "$lt_cv_prog_gnu_ld" = yes; then
12480 case `/usr/bin/file conftest.$ac_objext` in
12481 *32-bit*)
12482 LD="${LD-ld} -melf32bsmip"
12483 ;;
12484 *N32*)
12485 LD="${LD-ld} -melf32bmipn32"
12486 ;;
12487 *64-bit*)
12488 LD="${LD-ld} -melf64bmip"
12489 ;;
12490 esac
12491 else
12492 case `/usr/bin/file conftest.$ac_objext` in
12493 *32-bit*)
12494 LD="${LD-ld} -32"
12495 ;;
12496 *N32*)
12497 LD="${LD-ld} -n32"
12498 ;;
12499 *64-bit*)
12500 LD="${LD-ld} -64"
12501 ;;
12502 esac
12503 fi
12504 fi
12505 rm -rf conftest*
12506 ;;
12507
12508x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12509 # Find out which ABI we are using.
12510 echo 'int i;' > conftest.$ac_ext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012516 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517 *32-bit*)
12518 case $host in
12519 x86_64-*linux*)
12520 LD="${LD-ld} -m elf_i386"
12521 ;;
12522 ppc64-*linux*|powerpc64-*linux*)
12523 LD="${LD-ld} -m elf32ppclinux"
12524 ;;
12525 s390x-*linux*)
12526 LD="${LD-ld} -m elf_s390"
12527 ;;
12528 sparc64-*linux*)
12529 LD="${LD-ld} -m elf32_sparc"
12530 ;;
12531 esac
12532 ;;
12533 *64-bit*)
12534 case $host in
12535 x86_64-*linux*)
12536 LD="${LD-ld} -m elf_x86_64"
12537 ;;
12538 ppc*-*linux*|powerpc*-*linux*)
12539 LD="${LD-ld} -m elf64ppc"
12540 ;;
12541 s390*-*linux*)
12542 LD="${LD-ld} -m elf64_s390"
12543 ;;
12544 sparc*-*linux*)
12545 LD="${LD-ld} -m elf64_sparc"
12546 ;;
12547 esac
12548 ;;
12549 esac
12550 fi
12551 rm -rf conftest*
12552 ;;
12553
12554*-*-sco3.2v5*)
12555 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12556 SAVE_CFLAGS="$CFLAGS"
12557 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012558 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12559echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560if test "${lt_cv_cc_needs_belf+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562else
12563 ac_ext=c
12564ac_cpp='$CPP $CPPFLAGS'
12565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569 cat >conftest.$ac_ext <<_ACEOF
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575
Reid Spencera773bd52006-08-04 18:18:08 +000012576int
12577main ()
12578{
12579
12580 ;
12581 return 0;
12582}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012583_ACEOF
12584rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012585if { (ac_try="$ac_link"
12586case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612esac
12613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 lt_cv_cc_needs_belf=yes
12619else
12620 echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
Reid Spencera773bd52006-08-04 18:18:08 +000012623 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012624fi
Reid Spencera773bd52006-08-04 18:18:08 +000012625
12626rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627 conftest$ac_exeext conftest.$ac_ext
12628 ac_ext=c
12629ac_cpp='$CPP $CPPFLAGS'
12630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633
12634fi
Reid Spencera773bd52006-08-04 18:18:08 +000012635{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12636echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12639 CFLAGS="$SAVE_CFLAGS"
12640 fi
12641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012642sparc*-*solaris*)
12643 # Find out which ABI we are using.
12644 echo 'int i;' > conftest.$ac_ext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12646 (eval $ac_compile) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; then
12650 case `/usr/bin/file conftest.o` in
12651 *64-bit*)
12652 case $lt_cv_prog_gnu_ld in
12653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12654 *) LD="${LD-ld} -64" ;;
12655 esac
12656 ;;
12657 esac
12658 fi
12659 rm -rf conftest*
12660 ;;
12661
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012662
12663esac
12664
12665need_locks="$enable_libtool_lock"
12666
12667
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668
12669
12670if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12672 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012673 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012674ac_cpp='$CXXCPP $CPPFLAGS'
12675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012678{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12679echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012680if test -z "$CXXCPP"; then
12681 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
John Criswell47fdd832003-07-14 16:52:07 +000012684 # Double quotes because CXXCPP needs to be expanded
12685 for CXXCPP in "$CXX -E" "/lib/cpp"
12686 do
12687 ac_preproc_ok=false
12688for ac_cxx_preproc_warn_flag in '' yes
12689do
12690 # Use a header file that comes with gcc, so configuring glibc
12691 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012694 # On the NeXT, cc -E runs the code through the compiler's parser,
12695 # not just through cpp. "Syntax error" is here to catch this case.
12696 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012707 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012709if { (ac_try="$ac_cpp conftest.$ac_ext"
12710case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012716 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012717 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null; then
12722 if test -s conftest.err; then
12723 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012725 else
John Criswell47fdd832003-07-14 16:52:07 +000012726 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012727 fi
John Criswell47fdd832003-07-14 16:52:07 +000012728else
12729 ac_cpp_err=yes
12730fi
12731if test -z "$ac_cpp_err"; then
12732 :
12733else
12734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012735sed 's/^/| /' conftest.$ac_ext >&5
12736
John Criswell47fdd832003-07-14 16:52:07 +000012737 # Broken: fails on valid input.
12738continue
12739fi
Reid Spencera773bd52006-08-04 18:18:08 +000012740
John Criswell47fdd832003-07-14 16:52:07 +000012741rm -f conftest.err conftest.$ac_ext
12742
Reid Spencera773bd52006-08-04 18:18:08 +000012743 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012744 # can be detected and how.
12745 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012751#include <ac_nonexistent.h>
12752_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012753if { (ac_try="$ac_cpp conftest.$ac_ext"
12754case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12757esac
12758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012760 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012761 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } >/dev/null; then
12766 if test -s conftest.err; then
12767 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012768 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012769 else
12770 ac_cpp_err=
12771 fi
12772else
12773 ac_cpp_err=yes
12774fi
12775if test -z "$ac_cpp_err"; then
12776 # Broken: success on invalid input.
12777continue
12778else
12779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012780sed 's/^/| /' conftest.$ac_ext >&5
12781
John Criswell47fdd832003-07-14 16:52:07 +000012782 # Passes both tests.
12783ac_preproc_ok=:
12784break
12785fi
Reid Spencera773bd52006-08-04 18:18:08 +000012786
John Criswell47fdd832003-07-14 16:52:07 +000012787rm -f conftest.err conftest.$ac_ext
12788
12789done
12790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12791rm -f conftest.err conftest.$ac_ext
12792if $ac_preproc_ok; then
12793 break
John Criswell7a73b802003-06-30 21:59:07 +000012794fi
12795
John Criswell47fdd832003-07-14 16:52:07 +000012796 done
12797 ac_cv_prog_CXXCPP=$CXXCPP
12798
12799fi
12800 CXXCPP=$ac_cv_prog_CXXCPP
12801else
12802 ac_cv_prog_CXXCPP=$CXXCPP
12803fi
Reid Spencera773bd52006-08-04 18:18:08 +000012804{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12805echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012806ac_preproc_ok=false
12807for ac_cxx_preproc_warn_flag in '' yes
12808do
12809 # Use a header file that comes with gcc, so configuring glibc
12810 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12812 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012813 # On the NeXT, cc -E runs the code through the compiler's parser,
12814 # not just through cpp. "Syntax error" is here to catch this case.
12815 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821#ifdef __STDC__
12822# include <limits.h>
12823#else
12824# include <assert.h>
12825#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012826 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012827_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012828if { (ac_try="$ac_cpp conftest.$ac_ext"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012835 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012836 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null; then
12841 if test -s conftest.err; then
12842 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012844 else
12845 ac_cpp_err=
12846 fi
12847else
12848 ac_cpp_err=yes
12849fi
12850if test -z "$ac_cpp_err"; then
12851 :
12852else
12853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012854sed 's/^/| /' conftest.$ac_ext >&5
12855
John Criswell47fdd832003-07-14 16:52:07 +000012856 # Broken: fails on valid input.
12857continue
12858fi
Reid Spencera773bd52006-08-04 18:18:08 +000012859
John Criswell47fdd832003-07-14 16:52:07 +000012860rm -f conftest.err conftest.$ac_ext
12861
Reid Spencera773bd52006-08-04 18:18:08 +000012862 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012863 # can be detected and how.
12864 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012870#include <ac_nonexistent.h>
12871_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012872if { (ac_try="$ac_cpp conftest.$ac_ext"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012879 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012880 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012888 else
12889 ac_cpp_err=
12890 fi
12891else
12892 ac_cpp_err=yes
12893fi
12894if test -z "$ac_cpp_err"; then
12895 # Broken: success on invalid input.
12896continue
12897else
12898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012899sed 's/^/| /' conftest.$ac_ext >&5
12900
John Criswell47fdd832003-07-14 16:52:07 +000012901 # Passes both tests.
12902ac_preproc_ok=:
12903break
12904fi
Reid Spencera773bd52006-08-04 18:18:08 +000012905
John Criswell47fdd832003-07-14 16:52:07 +000012906rm -f conftest.err conftest.$ac_ext
12907
12908done
12909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12910rm -f conftest.err conftest.$ac_ext
12911if $ac_preproc_ok; then
12912 :
12913else
John Criswell0c38eaf2003-09-10 15:17:25 +000012914 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12915See \`config.log' for more details." >&5
12916echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12917See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012918 { (exit 1); exit 1; }; }
12919fi
12920
Reid Spencera773bd52006-08-04 18:18:08 +000012921ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012922ac_cpp='$CXXCPP $CPPFLAGS'
12923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926
Reid Spencer2706f8c2004-09-19 23:53:36 +000012927fi
12928
John Criswell47fdd832003-07-14 16:52:07 +000012929
12930ac_ext=f
12931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012935 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 +000012936 do
12937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012941if test "${ac_cv_prog_F77+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944 if test -n "$F77"; then
12945 ac_cv_prog_F77="$F77" # Let the user override the test.
12946else
12947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948for as_dir in $PATH
12949do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012953 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 +000012954 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958done
12959done
Reid Spencera773bd52006-08-04 18:18:08 +000012960IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012961
12962fi
12963fi
12964F77=$ac_cv_prog_F77
12965if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012966 { echo "$as_me:$LINENO: result: $F77" >&5
12967echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012968else
Reid Spencera773bd52006-08-04 18:18:08 +000012969 { echo "$as_me:$LINENO: result: no" >&5
12970echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012971fi
12972
Reid Spencera773bd52006-08-04 18:18:08 +000012973
John Criswell47fdd832003-07-14 16:52:07 +000012974 test -n "$F77" && break
12975 done
12976fi
12977if test -z "$F77"; then
12978 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012979 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 +000012980do
12981 # Extract the first word of "$ac_prog", so it can be a program name with args.
12982set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012985if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 if test -n "$ac_ct_F77"; then
12989 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12990else
12991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $PATH
12993do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012997 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 +000012998 ac_cv_prog_ac_ct_F77="$ac_prog"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002done
13003done
Reid Spencera773bd52006-08-04 18:18:08 +000013004IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013005
13006fi
13007fi
13008ac_ct_F77=$ac_cv_prog_ac_ct_F77
13009if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013010 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13011echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013012else
Reid Spencera773bd52006-08-04 18:18:08 +000013013 { echo "$as_me:$LINENO: result: no" >&5
13014echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013015fi
13016
Reid Spencera773bd52006-08-04 18:18:08 +000013017
John Criswell47fdd832003-07-14 16:52:07 +000013018 test -n "$ac_ct_F77" && break
13019done
13020
Reid Spencera773bd52006-08-04 18:18:08 +000013021 if test "x$ac_ct_F77" = x; then
13022 F77=""
13023 else
13024 case $cross_compiling:$ac_tool_warned in
13025yes:)
13026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13027whose name does not start with the host triplet. If you think this
13028configuration is useful to you, please write to autoconf@gnu.org." >&5
13029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13030whose name does not start with the host triplet. If you think this
13031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13032ac_tool_warned=yes ;;
13033esac
13034 F77=$ac_ct_F77
13035 fi
John Criswell47fdd832003-07-14 16:52:07 +000013036fi
13037
13038
13039# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013040echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013041ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013042{ (ac_try="$ac_compiler --version >&5"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013052{ (ac_try="$ac_compiler -v >&5"
13053case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013062{ (ac_try="$ac_compiler -V >&5"
13063case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066esac
13067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013072rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013073
13074# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013075# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013076ac_save_ext=$ac_ext
13077ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013078{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13079echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013080if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083 cat >conftest.$ac_ext <<_ACEOF
13084 program main
13085#ifndef __GNUC__
13086 choke me
13087#endif
13088
13089 end
13090_ACEOF
13091rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013092if { (ac_try="$ac_compile"
13093case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013105 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_compiler_gnu=yes
13126else
13127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013128sed 's/^/| /' conftest.$ac_ext >&5
13129
Reid Spencera773bd52006-08-04 18:18:08 +000013130 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013131fi
Reid Spencera773bd52006-08-04 18:18:08 +000013132
13133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013134ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13135
13136fi
Reid Spencera773bd52006-08-04 18:18:08 +000013137{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13138echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013139ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013140ac_test_FFLAGS=${FFLAGS+set}
13141ac_save_FFLAGS=$FFLAGS
13142FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013143{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13144echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013145if test "${ac_cv_prog_f77_g+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 FFLAGS=-g
13149cat >conftest.$ac_ext <<_ACEOF
13150 program main
13151
13152 end
13153_ACEOF
13154rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013155if { (ac_try="$ac_compile"
13156case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013162 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013168 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_prog_f77_g=yes
13189else
13190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013191sed 's/^/| /' conftest.$ac_ext >&5
13192
Reid Spencera773bd52006-08-04 18:18:08 +000013193 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013194fi
Reid Spencera773bd52006-08-04 18:18:08 +000013195
13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013197
13198fi
Reid Spencera773bd52006-08-04 18:18:08 +000013199{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13200echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013201if test "$ac_test_FFLAGS" = set; then
13202 FFLAGS=$ac_save_FFLAGS
13203elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013204 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013205 FFLAGS="-g -O2"
13206 else
13207 FFLAGS="-g"
13208 fi
13209else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013210 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013211 FFLAGS="-O2"
13212 else
13213 FFLAGS=
13214 fi
13215fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013216
13217G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013218ac_ext=c
13219ac_cpp='$CPP $CPPFLAGS'
13220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224
13225
13226# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13227
13228# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013229{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13230echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013231if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013235 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013236
13237 case $build_os in
13238 msdosdjgpp*)
13239 # On DJGPP, this test can blow up pretty badly due to problems in libc
13240 # (any single argument exceeding 2000 bytes causes a buffer overrun
13241 # during glob expansion). Even if it were fixed, the result of this
13242 # check would be larger than it should be.
13243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13244 ;;
13245
13246 gnu*)
13247 # Under GNU Hurd, this test is not required because there is
13248 # no limit to the length of command line arguments.
13249 # Libtool will interpret -1 as no limit whatsoever
13250 lt_cv_sys_max_cmd_len=-1;
13251 ;;
13252
13253 cygwin* | mingw*)
13254 # On Win9x/ME, this test blows up -- it succeeds, but takes
13255 # about 5 minutes as the teststring grows exponentially.
13256 # Worse, since 9x/ME are not pre-emptively multitasking,
13257 # you end up with a "frozen" computer, even though with patience
13258 # the test eventually succeeds (with a max line length of 256k).
13259 # Instead, let's just punt: use the minimum linelength reported by
13260 # all of the supported platforms: 8192 (on NT/2K/XP).
13261 lt_cv_sys_max_cmd_len=8192;
13262 ;;
13263
Reid Spencer2706f8c2004-09-19 23:53:36 +000013264 amigaos*)
13265 # On AmigaOS with pdksh, this test takes hours, literally.
13266 # So we just punt and use a minimum line length of 8192.
13267 lt_cv_sys_max_cmd_len=8192;
13268 ;;
13269
Reid Spencera773bd52006-08-04 18:18:08 +000013270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013271 # This has been around since 386BSD, at least. Likely further.
13272 if test -x /sbin/sysctl; then
13273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13274 elif test -x /usr/sbin/sysctl; then
13275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13276 else
Reid Spencera773bd52006-08-04 18:18:08 +000013277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013278 fi
13279 # And add a safety zone
13280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013282 ;;
13283
Reid Spencera773bd52006-08-04 18:18:08 +000013284 interix*)
13285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13286 lt_cv_sys_max_cmd_len=196608
13287 ;;
13288
13289 osf*)
13290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13292 # nice to cause kernel panics so lets avoid the loop below.
13293 # First set a reasonable default.
13294 lt_cv_sys_max_cmd_len=16384
13295 #
13296 if test -x /sbin/sysconfig; then
13297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13299 esac
13300 fi
13301 ;;
13302 sco3.2v5*)
13303 lt_cv_sys_max_cmd_len=102400
13304 ;;
13305 sysv5* | sco5v6* | sysv4.2uw2*)
13306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13307 if test -n "$kargmax"; then
13308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13309 else
13310 lt_cv_sys_max_cmd_len=32768
13311 fi
13312 ;;
13313 *)
John Criswell47fdd832003-07-14 16:52:07 +000013314 # If test is not a shell built-in, we'll probably end up computing a
13315 # maximum length that is only half of the actual maximum length, but
13316 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13318 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13319 = "XX$teststring") >/dev/null 2>&1 &&
13320 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013321 lt_cv_sys_max_cmd_len=$new_result &&
13322 test $i != 17 # 1/2 MB should be enough
13323 do
13324 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013325 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013326 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013327 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013328 # Add a significant safety factor because C++ compilers can tack on massive
13329 # amounts of additional arguments before passing them to the linker.
13330 # It appears as though 1/2 is a usable value.
13331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13332 ;;
13333 esac
13334
13335fi
13336
13337if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013338 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13339echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013340else
Reid Spencera773bd52006-08-04 18:18:08 +000013341 { echo "$as_me:$LINENO: result: none" >&5
13342echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013343fi
13344
13345
13346
13347
13348# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013349{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13350echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013351if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354
13355# These are sane defaults that work on at least a few old systems.
13356# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13357
13358# Character class describing NM global symbol codes.
13359symcode='[BCDEGRST]'
13360
13361# Regexp to match symbols that can be accessed directly from C.
13362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13363
John Criswell47fdd832003-07-14 16:52:07 +000013364# Transform an extracted symbol line into a proper C declaration
13365lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13366
13367# Transform an extracted symbol line into symbol name and symbol address
13368lt_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'"
13369
13370# Define system-specific variables.
13371case $host_os in
13372aix*)
13373 symcode='[BCDT]'
13374 ;;
13375cygwin* | mingw* | pw32*)
13376 symcode='[ABCDGISTW]'
13377 ;;
13378hpux*) # Its linker distinguishes data from code symbols
13379 if test "$host_cpu" = ia64; then
13380 symcode='[ABCDEGRST]'
13381 fi
13382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13383 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'"
13384 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013385linux*)
13386 if test "$host_cpu" = ia64; then
13387 symcode='[ABCDGIRSTW]'
13388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13389 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'"
13390 fi
13391 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013392irix* | nonstopux*)
13393 symcode='[BCDEGRST]'
13394 ;;
13395osf*)
13396 symcode='[BCDEGQRST]'
13397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013398solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013399 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013400 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013401sco3.2v5*)
13402 symcode='[DT]'
13403 ;;
13404sysv4.2uw2*)
13405 symcode='[DT]'
13406 ;;
13407sysv5* | sco5v6* | unixware* | OpenUNIX*)
13408 symcode='[ABDT]'
13409 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013410sysv4)
13411 symcode='[DFNSTU]'
13412 ;;
13413esac
13414
13415# Handle CRLF in mingw tool chain
13416opt_cr=
13417case $build_os in
13418mingw*)
13419 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13420 ;;
13421esac
13422
13423# If we're using GNU nm, then use its standard symbol codes.
13424case `$NM -V 2>&1` in
13425*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013426 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013427esac
13428
13429# Try without a prefix undercore, then with it.
13430for ac_symprfx in "" "_"; do
13431
Reid Spencera773bd52006-08-04 18:18:08 +000013432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13433 symxfrm="\\1 $ac_symprfx\\2 \\2"
13434
John Criswell47fdd832003-07-14 16:52:07 +000013435 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013436 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 +000013437
13438 # Check to see that the pipe works correctly.
13439 pipe_works=no
13440
13441 rm -f conftest*
13442 cat > conftest.$ac_ext <<EOF
13443#ifdef __cplusplus
13444extern "C" {
13445#endif
13446char nm_test_var;
13447void nm_test_func(){}
13448#ifdef __cplusplus
13449}
13450#endif
13451int main(){nm_test_var='a';nm_test_func();return(0);}
13452EOF
13453
13454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455 (eval $ac_compile) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; then
13459 # Now try to grab the symbols.
13460 nlist=conftest.nm
13461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13462 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && test -s "$nlist"; then
13466 # Try sorting and uniquifying the output.
13467 if sort "$nlist" | uniq > "$nlist"T; then
13468 mv -f "$nlist"T "$nlist"
13469 else
13470 rm -f "$nlist"T
13471 fi
13472
13473 # Make sure that we snagged all the symbols we need.
13474 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13475 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13476 cat <<EOF > conftest.$ac_ext
13477#ifdef __cplusplus
13478extern "C" {
13479#endif
13480
13481EOF
13482 # Now generate the symbol file.
13483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13484
13485 cat <<EOF >> conftest.$ac_ext
13486#if defined (__STDC__) && __STDC__
13487# define lt_ptr_t void *
13488#else
13489# define lt_ptr_t char *
13490# define const
13491#endif
13492
13493/* The mapping between symbol names and symbols. */
13494const struct {
13495 const char *name;
13496 lt_ptr_t address;
13497}
13498lt_preloaded_symbols[] =
13499{
13500EOF
13501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13502 cat <<\EOF >> conftest.$ac_ext
13503 {0, (lt_ptr_t) 0}
13504};
13505
13506#ifdef __cplusplus
13507}
13508#endif
13509EOF
13510 # Now try linking the two files.
13511 mv conftest.$ac_objext conftstm.$ac_objext
13512 lt_save_LIBS="$LIBS"
13513 lt_save_CFLAGS="$CFLAGS"
13514 LIBS="conftstm.$ac_objext"
13515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517 (eval $ac_link) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13521 pipe_works=yes
13522 fi
13523 LIBS="$lt_save_LIBS"
13524 CFLAGS="$lt_save_CFLAGS"
13525 else
13526 echo "cannot find nm_test_func in $nlist" >&5
13527 fi
13528 else
13529 echo "cannot find nm_test_var in $nlist" >&5
13530 fi
13531 else
13532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13533 fi
13534 else
13535 echo "$progname: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13537 fi
13538 rm -f conftest* conftst*
13539
13540 # Do not use the global_symbol_pipe unless it works.
13541 if test "$pipe_works" = yes; then
13542 break
13543 else
13544 lt_cv_sys_global_symbol_pipe=
13545 fi
13546done
13547
13548fi
13549
13550if test -z "$lt_cv_sys_global_symbol_pipe"; then
13551 lt_cv_sys_global_symbol_to_cdecl=
13552fi
13553if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013554 { echo "$as_me:$LINENO: result: failed" >&5
13555echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013556else
Reid Spencera773bd52006-08-04 18:18:08 +000013557 { echo "$as_me:$LINENO: result: ok" >&5
13558echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013559fi
13560
Reid Spencera773bd52006-08-04 18:18:08 +000013561{ echo "$as_me:$LINENO: checking for objdir" >&5
13562echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013563if test "${lt_cv_objdir+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 rm -f .libs 2>/dev/null
13567mkdir .libs 2>/dev/null
13568if test -d .libs; then
13569 lt_cv_objdir=.libs
13570else
13571 # MS-DOS does not allow filenames that begin with a dot.
13572 lt_cv_objdir=_libs
13573fi
13574rmdir .libs 2>/dev/null
13575fi
Reid Spencera773bd52006-08-04 18:18:08 +000013576{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13577echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013578objdir=$lt_cv_objdir
13579
13580
13581
13582
13583
13584case $host_os in
13585aix3*)
13586 # AIX sometimes has problems with the GCC collect2 program. For some
13587 # reason, if we set the COLLECT_NAMES environment variable, the problems
13588 # vanish in a puff of smoke.
13589 if test "X${COLLECT_NAMES+set}" != Xset; then
13590 COLLECT_NAMES=
13591 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013592 fi
13593 ;;
13594esac
13595
John Criswell47fdd832003-07-14 16:52:07 +000013596# Sed substitution that helps us do robust quoting. It backslashifies
13597# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013598Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013599sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13600
13601# Same as above, but do not quote variable references.
13602double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13603
13604# Sed substitution to delay expansion of an escaped shell variable in a
13605# double_quote_subst'ed string.
13606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13607
13608# Sed substitution to avoid accidental globbing in evaled expressions
13609no_glob_subst='s/\*/\\\*/g'
13610
13611# Constants:
13612rm="rm -f"
13613
13614# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013615default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013616can_build_shared=yes
13617
Reid Spencera773bd52006-08-04 18:18:08 +000013618# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013619# which needs '.lib').
13620libext=a
13621ltmain="$ac_aux_dir/ltmain.sh"
13622ofile="$default_ofile"
13623with_gnu_ld="$lt_cv_prog_gnu_ld"
13624
13625if test -n "$ac_tool_prefix"; then
13626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13627set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013630if test "${ac_cv_prog_AR+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632else
13633 if test -n "$AR"; then
13634 ac_cv_prog_AR="$AR" # Let the user override the test.
13635else
13636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013642 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 +000013643 ac_cv_prog_AR="${ac_tool_prefix}ar"
13644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13646 fi
13647done
13648done
Reid Spencera773bd52006-08-04 18:18:08 +000013649IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013650
13651fi
13652fi
13653AR=$ac_cv_prog_AR
13654if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013655 { echo "$as_me:$LINENO: result: $AR" >&5
13656echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013657else
Reid Spencera773bd52006-08-04 18:18:08 +000013658 { echo "$as_me:$LINENO: result: no" >&5
13659echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013660fi
13661
Reid Spencera773bd52006-08-04 18:18:08 +000013662
John Criswell47fdd832003-07-14 16:52:07 +000013663fi
13664if test -z "$ac_cv_prog_AR"; then
13665 ac_ct_AR=$AR
13666 # Extract the first word of "ar", so it can be a program name with args.
13667set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013670if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672else
13673 if test -n "$ac_ct_AR"; then
13674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13675else
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013682 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 +000013683 ac_cv_prog_ac_ct_AR="ar"
13684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687done
13688done
Reid Spencera773bd52006-08-04 18:18:08 +000013689IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013690
John Criswell47fdd832003-07-14 16:52:07 +000013691fi
13692fi
13693ac_ct_AR=$ac_cv_prog_ac_ct_AR
13694if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13696echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013697else
Reid Spencera773bd52006-08-04 18:18:08 +000013698 { echo "$as_me:$LINENO: result: no" >&5
13699echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013700fi
13701
Reid Spencera773bd52006-08-04 18:18:08 +000013702 if test "x$ac_ct_AR" = x; then
13703 AR="false"
13704 else
13705 case $cross_compiling:$ac_tool_warned in
13706yes:)
13707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13708whose name does not start with the host triplet. If you think this
13709configuration is useful to you, please write to autoconf@gnu.org." >&5
13710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13711whose name does not start with the host triplet. If you think this
13712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13713ac_tool_warned=yes ;;
13714esac
13715 AR=$ac_ct_AR
13716 fi
John Criswell47fdd832003-07-14 16:52:07 +000013717else
13718 AR="$ac_cv_prog_AR"
13719fi
13720
John Criswell7a73b802003-06-30 21:59:07 +000013721if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013726if test "${ac_cv_prog_RANLIB+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 if test -n "$RANLIB"; then
13730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13731else
13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733for as_dir in $PATH
13734do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013738 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 +000013739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743done
13744done
Reid Spencera773bd52006-08-04 18:18:08 +000013745IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013746
13747fi
13748fi
13749RANLIB=$ac_cv_prog_RANLIB
13750if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13752echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013753else
Reid Spencera773bd52006-08-04 18:18:08 +000013754 { echo "$as_me:$LINENO: result: no" >&5
13755echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013756fi
13757
Reid Spencera773bd52006-08-04 18:18:08 +000013758
John Criswell7a73b802003-06-30 21:59:07 +000013759fi
13760if test -z "$ac_cv_prog_RANLIB"; then
13761 ac_ct_RANLIB=$RANLIB
13762 # Extract the first word of "ranlib", so it can be a program name with args.
13763set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769 if test -n "$ac_ct_RANLIB"; then
13770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013778 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 +000013779 ac_cv_prog_ac_ct_RANLIB="ranlib"
13780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783done
13784done
Reid Spencera773bd52006-08-04 18:18:08 +000013785IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013786
John Criswell7a73b802003-06-30 21:59:07 +000013787fi
13788fi
13789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13790if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13792echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013793else
Reid Spencera773bd52006-08-04 18:18:08 +000013794 { echo "$as_me:$LINENO: result: no" >&5
13795echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013796fi
13797
Reid Spencera773bd52006-08-04 18:18:08 +000013798 if test "x$ac_ct_RANLIB" = x; then
13799 RANLIB=":"
13800 else
13801 case $cross_compiling:$ac_tool_warned in
13802yes:)
13803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13804whose name does not start with the host triplet. If you think this
13805configuration is useful to you, please write to autoconf@gnu.org." >&5
13806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13807whose name does not start with the host triplet. If you think this
13808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13809ac_tool_warned=yes ;;
13810esac
13811 RANLIB=$ac_ct_RANLIB
13812 fi
John Criswell7a73b802003-06-30 21:59:07 +000013813else
13814 RANLIB="$ac_cv_prog_RANLIB"
13815fi
13816
13817if test -n "$ac_tool_prefix"; then
13818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13819set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013822if test "${ac_cv_prog_STRIP+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825 if test -n "$STRIP"; then
13826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13827else
13828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829for as_dir in $PATH
13830do
13831 IFS=$as_save_IFS
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013834 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 +000013835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 break 2
13838 fi
13839done
13840done
Reid Spencera773bd52006-08-04 18:18:08 +000013841IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013842
13843fi
13844fi
13845STRIP=$ac_cv_prog_STRIP
13846if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013847 { echo "$as_me:$LINENO: result: $STRIP" >&5
13848echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013849else
Reid Spencera773bd52006-08-04 18:18:08 +000013850 { echo "$as_me:$LINENO: result: no" >&5
13851echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013852fi
13853
Reid Spencera773bd52006-08-04 18:18:08 +000013854
John Criswell7a73b802003-06-30 21:59:07 +000013855fi
13856if test -z "$ac_cv_prog_STRIP"; then
13857 ac_ct_STRIP=$STRIP
13858 # Extract the first word of "strip", so it can be a program name with args.
13859set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864else
13865 if test -n "$ac_ct_STRIP"; then
13866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13867else
13868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013874 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 +000013875 ac_cv_prog_ac_ct_STRIP="strip"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13878 fi
13879done
13880done
Reid Spencera773bd52006-08-04 18:18:08 +000013881IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013882
John Criswell7a73b802003-06-30 21:59:07 +000013883fi
13884fi
13885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13886if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13888echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013889else
Reid Spencera773bd52006-08-04 18:18:08 +000013890 { echo "$as_me:$LINENO: result: no" >&5
13891echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013892fi
13893
Reid Spencera773bd52006-08-04 18:18:08 +000013894 if test "x$ac_ct_STRIP" = x; then
13895 STRIP=":"
13896 else
13897 case $cross_compiling:$ac_tool_warned in
13898yes:)
13899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13900whose name does not start with the host triplet. If you think this
13901configuration is useful to you, please write to autoconf@gnu.org." >&5
13902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13903whose name does not start with the host triplet. If you think this
13904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13905ac_tool_warned=yes ;;
13906esac
13907 STRIP=$ac_ct_STRIP
13908 fi
John Criswell7a73b802003-06-30 21:59:07 +000013909else
13910 STRIP="$ac_cv_prog_STRIP"
13911fi
13912
13913
John Criswell7a73b802003-06-30 21:59:07 +000013914old_CC="$CC"
13915old_CFLAGS="$CFLAGS"
13916
13917# Set sane defaults for various variables
13918test -z "$AR" && AR=ar
13919test -z "$AR_FLAGS" && AR_FLAGS=cru
13920test -z "$AS" && AS=as
13921test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013922test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013924test -z "$DLLTOOL" && DLLTOOL=dlltool
13925test -z "$LD" && LD=ld
13926test -z "$LN_S" && LN_S="ln -s"
13927test -z "$MAGIC_CMD" && MAGIC_CMD=file
13928test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013929test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013930test -z "$OBJDUMP" && OBJDUMP=objdump
13931test -z "$RANLIB" && RANLIB=:
13932test -z "$STRIP" && STRIP=:
13933test -z "$ac_objext" && ac_objext=o
13934
John Criswell7a73b802003-06-30 21:59:07 +000013935# Determine commands to create old-style static archives.
13936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13937old_postinstall_cmds='chmod 644 $oldlib'
13938old_postuninstall_cmds=
13939
13940if test -n "$RANLIB"; then
13941 case $host_os in
13942 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013944 ;;
13945 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013947 ;;
13948 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013950fi
13951
Reid Spencera773bd52006-08-04 18:18:08 +000013952for cc_temp in $compiler""; do
13953 case $cc_temp in
13954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13956 \-*) ;;
13957 *) break;;
13958 esac
13959done
13960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13961
Reid Spencer2706f8c2004-09-19 23:53:36 +000013962
John Criswell47fdd832003-07-14 16:52:07 +000013963# Only perform the check for file, if the check method requires it
13964case $deplibs_check_method in
13965file_magic*)
13966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13968echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013971else
John Criswell47fdd832003-07-14 16:52:07 +000013972 case $MAGIC_CMD in
13973[\\/*] | ?:[\\/]*)
13974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13975 ;;
13976*)
13977 lt_save_MAGIC_CMD="$MAGIC_CMD"
13978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13980 for ac_dir in $ac_dummy; do
13981 IFS="$lt_save_ifs"
13982 test -z "$ac_dir" && ac_dir=.
13983 if test -f $ac_dir/${ac_tool_prefix}file; then
13984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13985 if test -n "$file_magic_test_file"; then
13986 case $deplibs_check_method in
13987 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13991 $EGREP "$file_magic_regex" > /dev/null; then
13992 :
13993 else
13994 cat <<EOF 1>&2
13995
13996*** Warning: the command libtool uses to detect shared libraries,
13997*** $file_magic_cmd, produces output that libtool cannot recognize.
13998*** The result is that libtool may fail to recognize shared libraries
13999*** as such. This will affect the creation of libtool libraries that
14000*** depend on shared libraries, but programs linked with such libtool
14001*** libraries will work regardless of this problem. Nevertheless, you
14002*** may want to report the problem to your system manager and/or to
14003*** bug-libtool@gnu.org
14004
14005EOF
14006 fi ;;
14007 esac
14008 fi
14009 break
14010 fi
14011 done
14012 IFS="$lt_save_ifs"
14013 MAGIC_CMD="$lt_save_MAGIC_CMD"
14014 ;;
14015esac
John Criswell7a73b802003-06-30 21:59:07 +000014016fi
John Criswell7a73b802003-06-30 21:59:07 +000014017
John Criswell47fdd832003-07-14 16:52:07 +000014018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14019if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14021echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014022else
Reid Spencera773bd52006-08-04 18:18:08 +000014023 { echo "$as_me:$LINENO: result: no" >&5
14024echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014025fi
John Criswell7a73b802003-06-30 21:59:07 +000014026
John Criswell47fdd832003-07-14 16:52:07 +000014027if test -z "$lt_cv_path_MAGIC_CMD"; then
14028 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014029 { echo "$as_me:$LINENO: checking for file" >&5
14030echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 case $MAGIC_CMD in
14035[\\/*] | ?:[\\/]*)
14036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14037 ;;
14038*)
14039 lt_save_MAGIC_CMD="$MAGIC_CMD"
14040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14042 for ac_dir in $ac_dummy; do
14043 IFS="$lt_save_ifs"
14044 test -z "$ac_dir" && ac_dir=.
14045 if test -f $ac_dir/file; then
14046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14047 if test -n "$file_magic_test_file"; then
14048 case $deplibs_check_method in
14049 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14053 $EGREP "$file_magic_regex" > /dev/null; then
14054 :
14055 else
14056 cat <<EOF 1>&2
14057
14058*** Warning: the command libtool uses to detect shared libraries,
14059*** $file_magic_cmd, produces output that libtool cannot recognize.
14060*** The result is that libtool may fail to recognize shared libraries
14061*** as such. This will affect the creation of libtool libraries that
14062*** depend on shared libraries, but programs linked with such libtool
14063*** libraries will work regardless of this problem. Nevertheless, you
14064*** may want to report the problem to your system manager and/or to
14065*** bug-libtool@gnu.org
14066
14067EOF
14068 fi ;;
14069 esac
14070 fi
14071 break
14072 fi
14073 done
14074 IFS="$lt_save_ifs"
14075 MAGIC_CMD="$lt_save_MAGIC_CMD"
14076 ;;
14077esac
14078fi
14079
14080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14083echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014084else
Reid Spencera773bd52006-08-04 18:18:08 +000014085 { echo "$as_me:$LINENO: result: no" >&5
14086echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014087fi
14088
14089 else
14090 MAGIC_CMD=:
14091 fi
14092fi
14093
14094 fi
14095 ;;
14096esac
14097
Reid Spencer17795972004-11-18 09:47:37 +000014098enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014099enable_win32_dll=no
14100
Reid Spencera773bd52006-08-04 18:18:08 +000014101# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014102if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014103 enableval=$enable_libtool_lock;
14104fi
John Criswell47fdd832003-07-14 16:52:07 +000014105
John Criswell47fdd832003-07-14 16:52:07 +000014106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14107
John Criswell7a73b802003-06-30 21:59:07 +000014108
Reid Spencera773bd52006-08-04 18:18:08 +000014109# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014110if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014111 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014112else
14113 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014114fi
14115
John Criswell7a73b802003-06-30 21:59:07 +000014116test -z "$pic_mode" && pic_mode=default
14117
John Criswell47fdd832003-07-14 16:52:07 +000014118# Use C for the default configuration in the libtool script
14119tagname=
14120lt_save_CC="$CC"
14121ac_ext=c
14122ac_cpp='$CPP $CPPFLAGS'
14123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127
14128# Source file extension for C test sources.
14129ac_ext=c
14130
14131# Object file extension for compiled C test sources.
14132objext=o
14133objext=$objext
14134
14135# Code to be used in simple compile tests
14136lt_simple_compile_test_code="int some_variable = 0;\n"
14137
14138# Code to be used in simple link tests
14139lt_simple_link_test_code='int main(){return(0);}\n'
14140
14141
14142# If no C compiler was specified, use CC.
14143LTCC=${LTCC-"$CC"}
14144
Reid Spencera773bd52006-08-04 18:18:08 +000014145# If no C compiler flags were specified, use CFLAGS.
14146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14147
John Criswell47fdd832003-07-14 16:52:07 +000014148# Allow CC to be a program name with arguments.
14149compiler=$CC
14150
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152# save warnings/boilerplate of simple test code
14153ac_outfile=conftest.$ac_objext
14154printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156_lt_compiler_boilerplate=`cat conftest.err`
14157$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014158
Reid Spencera773bd52006-08-04 18:18:08 +000014159ac_outfile=conftest.$ac_objext
14160printf "$lt_simple_link_test_code" >conftest.$ac_ext
14161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14162_lt_linker_boilerplate=`cat conftest.err`
14163$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014164
14165
John Criswell47fdd832003-07-14 16:52:07 +000014166
14167lt_prog_compiler_no_builtin_flag=
14168
14169if test "$GCC" = yes; then
14170 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14171
Reid Spencer2706f8c2004-09-19 23:53:36 +000014172
Reid Spencera773bd52006-08-04 18:18:08 +000014173{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14174echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014175if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177else
14178 lt_cv_prog_compiler_rtti_exceptions=no
14179 ac_outfile=conftest.$ac_objext
14180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181 lt_compiler_flag="-fno-rtti -fno-exceptions"
14182 # Insert the option either (1) after the last *FLAGS variable, or
14183 # (2) before a word containing "conftest.", or (3) at the end.
14184 # Note that $ac_compile itself does not contain backslashes and begins
14185 # with a dollar sign (not a hyphen), so the echo should work correctly.
14186 # The option is referenced via a variable to avoid confusing sed.
14187 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000014191 (eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014192 (eval "$lt_compile" 2>conftest.err)
14193 ac_status=$?
14194 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000014195 echo "$as_me:14195: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014196 if (exit $ac_status) && test -s "$ac_outfile"; then
14197 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014198 # So say no if there are warnings other than the usual output.
14199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014202 lt_cv_prog_compiler_rtti_exceptions=yes
14203 fi
14204 fi
14205 $rm conftest*
14206
14207fi
Reid Spencera773bd52006-08-04 18:18:08 +000014208{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14209echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014210
14211if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14213else
14214 :
14215fi
14216
14217fi
14218
14219lt_prog_compiler_wl=
14220lt_prog_compiler_pic=
14221lt_prog_compiler_static=
14222
Reid Spencera773bd52006-08-04 18:18:08 +000014223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014225
14226 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014227 lt_prog_compiler_wl='-Wl,'
14228 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014229
14230 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014231 aix*)
14232 # All AIX code is PIC.
14233 if test "$host_cpu" = ia64; then
14234 # AIX 5 now supports IA64 processor
14235 lt_prog_compiler_static='-Bstatic'
14236 fi
John Criswell7a73b802003-06-30 21:59:07 +000014237 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014238
John Criswell7a73b802003-06-30 21:59:07 +000014239 amigaos*)
14240 # FIXME: we need at least 68020 code to build shared libraries, but
14241 # adding the `-m68020' flag to GCC prevents building anything better,
14242 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014244 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014245
14246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014247 # PIC is the default for these OSes.
14248 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014249
14250 mingw* | pw32* | os2*)
14251 # This hack is so that the source file can tell whether it is being
14252 # built for inclusion in a dll (and should export symbols for example).
14253 lt_prog_compiler_pic='-DDLL_EXPORT'
14254 ;;
14255
John Criswell7a73b802003-06-30 21:59:07 +000014256 darwin* | rhapsody*)
14257 # PIC is the default on this platform
14258 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014259 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014261
Reid Spencera773bd52006-08-04 18:18:08 +000014262 interix3*)
14263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14264 # Instead, we relocate shared libraries at runtime.
14265 ;;
14266
John Criswell47fdd832003-07-14 16:52:07 +000014267 msdosdjgpp*)
14268 # Just because we use GCC doesn't mean we suddenly get shared libraries
14269 # on systems that don't support them.
14270 lt_prog_compiler_can_build_shared=no
14271 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014272 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014273
John Criswell7a73b802003-06-30 21:59:07 +000014274 sysv4*MP*)
14275 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014276 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014277 fi
14278 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014279
14280 hpux*)
14281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014283 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014284 hppa*64*|ia64*)
14285 # +Z the default
14286 ;;
14287 *)
14288 lt_prog_compiler_pic='-fPIC'
14289 ;;
14290 esac
14291 ;;
14292
John Criswell7a73b802003-06-30 21:59:07 +000014293 *)
John Criswell47fdd832003-07-14 16:52:07 +000014294 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014295 ;;
14296 esac
14297 else
John Criswell47fdd832003-07-14 16:52:07 +000014298 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014299 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014300 aix*)
14301 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014302 if test "$host_cpu" = ia64; then
14303 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014304 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014305 else
John Criswell47fdd832003-07-14 16:52:07 +000014306 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014307 fi
14308 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014309 darwin*)
14310 # PIC is the default on this platform
14311 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014312 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014313 xlc*)
14314 lt_prog_compiler_pic='-qnocommon'
14315 lt_prog_compiler_wl='-Wl,'
14316 ;;
14317 esac
14318 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014319
John Criswell47fdd832003-07-14 16:52:07 +000014320 mingw* | pw32* | os2*)
14321 # This hack is so that the source file can tell whether it is being
14322 # built for inclusion in a dll (and should export symbols for example).
14323 lt_prog_compiler_pic='-DDLL_EXPORT'
14324 ;;
14325
John Criswell7a73b802003-06-30 21:59:07 +000014326 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014327 lt_prog_compiler_wl='-Wl,'
14328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14329 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014330 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014331 hppa*64*|ia64*)
14332 # +Z the default
14333 ;;
14334 *)
14335 lt_prog_compiler_pic='+Z'
14336 ;;
14337 esac
14338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14339 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014340 ;;
14341
John Criswell47fdd832003-07-14 16:52:07 +000014342 irix5* | irix6* | nonstopux*)
14343 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014344 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014345 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014346 ;;
14347
14348 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014349 lt_prog_compiler_pic='-KPIC'
14350 lt_prog_compiler_static='-Bstatic'
14351 ;;
14352
14353 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014354 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014355 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014356 lt_prog_compiler_wl='-Wl,'
14357 lt_prog_compiler_pic='-KPIC'
14358 lt_prog_compiler_static='-static'
14359 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014360 pgcc* | pgf77* | pgf90* | pgf95*)
14361 # Portland Group compilers (*not* the Pentium gcc compiler,
14362 # which looks to be a dead project)
14363 lt_prog_compiler_wl='-Wl,'
14364 lt_prog_compiler_pic='-fpic'
14365 lt_prog_compiler_static='-Bstatic'
14366 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014367 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014368 lt_prog_compiler_wl='-Wl,'
14369 # All Alpha code is PIC.
14370 lt_prog_compiler_static='-non_shared'
14371 ;;
14372 esac
John Criswell7a73b802003-06-30 21:59:07 +000014373 ;;
14374
14375 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014376 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014377 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014378 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014379 ;;
14380
John Criswell7a73b802003-06-30 21:59:07 +000014381 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014382 lt_prog_compiler_pic='-KPIC'
14383 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014384 case $cc_basename in
14385 f77* | f90* | f95*)
14386 lt_prog_compiler_wl='-Qoption ld ';;
14387 *)
14388 lt_prog_compiler_wl='-Wl,';;
14389 esac
John Criswell7a73b802003-06-30 21:59:07 +000014390 ;;
14391
14392 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014393 lt_prog_compiler_wl='-Qoption ld '
14394 lt_prog_compiler_pic='-PIC'
14395 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014396 ;;
14397
Reid Spencera773bd52006-08-04 18:18:08 +000014398 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014399 lt_prog_compiler_wl='-Wl,'
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014402 ;;
14403
14404 sysv4*MP*)
14405 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014406 lt_prog_compiler_pic='-Kconform_pic'
14407 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014408 fi
14409 ;;
14410
Reid Spencera773bd52006-08-04 18:18:08 +000014411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14412 lt_prog_compiler_wl='-Wl,'
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
14415 ;;
14416
14417 unicos*)
14418 lt_prog_compiler_wl='-Wl,'
14419 lt_prog_compiler_can_build_shared=no
14420 ;;
14421
John Criswell47fdd832003-07-14 16:52:07 +000014422 uts4*)
14423 lt_prog_compiler_pic='-pic'
14424 lt_prog_compiler_static='-Bstatic'
14425 ;;
14426
John Criswell7a73b802003-06-30 21:59:07 +000014427 *)
John Criswell47fdd832003-07-14 16:52:07 +000014428 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014429 ;;
14430 esac
14431 fi
14432
Reid Spencera773bd52006-08-04 18:18:08 +000014433{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14434echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014435
John Criswell47fdd832003-07-14 16:52:07 +000014436#
14437# Check to make sure the PIC flag actually works.
14438#
14439if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014440
Reid Spencera773bd52006-08-04 18:18:08 +000014441{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14442echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014443if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
John Criswell47fdd832003-07-14 16:52:07 +000014446 lt_prog_compiler_pic_works=no
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000014459 (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014460 (eval "$lt_compile" 2>conftest.err)
14461 ac_status=$?
14462 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000014463 echo "$as_me:14463: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014466 # So say no if there are warnings other than the usual output.
14467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014470 lt_prog_compiler_pic_works=yes
14471 fi
14472 fi
14473 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014474
John Criswell47fdd832003-07-14 16:52:07 +000014475fi
Reid Spencera773bd52006-08-04 18:18:08 +000014476{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14477echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014478
John Criswell47fdd832003-07-14 16:52:07 +000014479if test x"$lt_prog_compiler_pic_works" = xyes; then
14480 case $lt_prog_compiler_pic in
14481 "" | " "*) ;;
14482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14483 esac
John Criswell7a73b802003-06-30 21:59:07 +000014484else
John Criswell47fdd832003-07-14 16:52:07 +000014485 lt_prog_compiler_pic=
14486 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014487fi
14488
John Criswell7a73b802003-06-30 21:59:07 +000014489fi
Reid Spencera773bd52006-08-04 18:18:08 +000014490case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014491 # For platforms which do not support PIC, -DPIC is meaningless:
14492 *djgpp*)
14493 lt_prog_compiler_pic=
14494 ;;
14495 *)
14496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14497 ;;
14498esac
John Criswell7a73b802003-06-30 21:59:07 +000014499
Reid Spencera773bd52006-08-04 18:18:08 +000014500#
14501# Check to make sure the static flag actually works.
14502#
14503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14504{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14505echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14506if test "${lt_prog_compiler_static_works+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509 lt_prog_compiler_static_works=no
14510 save_LDFLAGS="$LDFLAGS"
14511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14514 # The linker can only warn and ignore the option if not recognized
14515 # So say no if there are warnings
14516 if test -s conftest.err; then
14517 # Append any errors to the config.log.
14518 cat conftest.err 1>&5
14519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_prog_compiler_static_works=yes
14523 fi
14524 else
14525 lt_prog_compiler_static_works=yes
14526 fi
14527 fi
14528 $rm conftest*
14529 LDFLAGS="$save_LDFLAGS"
14530
14531fi
14532{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14533echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14534
14535if test x"$lt_prog_compiler_static_works" = xyes; then
14536 :
14537else
14538 lt_prog_compiler_static=
14539fi
14540
14541
14542{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14543echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014544if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_cv_prog_compiler_c_o=no
14548 $rm -r conftest 2>/dev/null
14549 mkdir conftest
14550 cd conftest
14551 mkdir out
14552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014553
John Criswell47fdd832003-07-14 16:52:07 +000014554 lt_compiler_flag="-o out/conftest2.$ac_objext"
14555 # Insert the option either (1) after the last *FLAGS variable, or
14556 # (2) before a word containing "conftest.", or (3) at the end.
14557 # Note that $ac_compile itself does not contain backslashes and begins
14558 # with a dollar sign (not a hyphen), so the echo should work correctly.
14559 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000014563 (eval echo "\"\$as_me:14563: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014564 (eval "$lt_compile" 2>out/conftest.err)
14565 ac_status=$?
14566 cat out/conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000014567 echo "$as_me:14567: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14569 then
14570 # The compiler can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014575 lt_cv_prog_compiler_c_o=yes
14576 fi
14577 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014578 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014579 $rm conftest*
14580 # SGI C++ compiler will create directory out/ii_files/ for
14581 # template instantiation
14582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14583 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014584 cd ..
14585 rmdir conftest
14586 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014587
14588fi
Reid Spencera773bd52006-08-04 18:18:08 +000014589{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14590echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014591
John Criswell7a73b802003-06-30 21:59:07 +000014592
John Criswell7a73b802003-06-30 21:59:07 +000014593hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014594if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014595 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014598 hard_links=yes
14599 $rm conftest*
14600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14601 touch conftest.a
14602 ln conftest.a conftest.b 2>&5 || hard_links=no
14603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014604 { echo "$as_me:$LINENO: result: $hard_links" >&5
14605echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014606 if test "$hard_links" = no; then
14607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14609 need_locks=warn
14610 fi
14611else
14612 need_locks=no
14613fi
John Criswell7a73b802003-06-30 21:59:07 +000014614
Reid Spencera773bd52006-08-04 18:18:08 +000014615{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014617
14618 runpath_var=
14619 allow_undefined_flag=
14620 enable_shared_with_static_runtimes=no
14621 archive_cmds=
14622 archive_expsym_cmds=
14623 old_archive_From_new_cmds=
14624 old_archive_from_expsyms_cmds=
14625 export_dynamic_flag_spec=
14626 whole_archive_flag_spec=
14627 thread_safe_flag_spec=
14628 hardcode_libdir_flag_spec=
14629 hardcode_libdir_flag_spec_ld=
14630 hardcode_libdir_separator=
14631 hardcode_direct=no
14632 hardcode_minus_L=no
14633 hardcode_shlibpath_var=unsupported
14634 link_all_deplibs=unknown
14635 hardcode_automatic=no
14636 module_cmds=
14637 module_expsym_cmds=
14638 always_export_symbols=no
14639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14640 # include_expsyms should be a list of space-separated symbols to be *always*
14641 # included in the symbol list
14642 include_expsyms=
14643 # exclude_expsyms can be an extended regexp of symbols to exclude
14644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14646 # as well as any symbol that contains `d'.
14647 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14649 # platforms (ab)use it in PIC code, but their linkers get confused if
14650 # the symbol is explicitly referenced. Since portable code cannot
14651 # rely on this symbol name, it's probably fine to never include it in
14652 # preloaded symbol tables.
14653 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014654 # Just being paranoid about ensuring that cc_basename is set.
14655 for cc_temp in $compiler""; do
14656 case $cc_temp in
14657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14659 \-*) ;;
14660 *) break;;
14661 esac
14662done
14663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014664
14665 case $host_os in
14666 cygwin* | mingw* | pw32*)
14667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14668 # When not using gcc, we currently assume that we are using
14669 # Microsoft Visual C++.
14670 if test "$GCC" != yes; then
14671 with_gnu_ld=no
14672 fi
14673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014674 interix*)
14675 # we just hope/assume this is gcc and not c89 (= MSVC++)
14676 with_gnu_ld=yes
14677 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014678 openbsd*)
14679 with_gnu_ld=no
14680 ;;
14681 esac
14682
14683 ld_shlibs=yes
14684 if test "$with_gnu_ld" = yes; then
14685 # If archive_cmds runs LD, not CC, wlarc should be empty
14686 wlarc='${wl}'
14687
Reid Spencera773bd52006-08-04 18:18:08 +000014688 # Set some defaults for GNU ld with shared library support. These
14689 # are reset later if shared libraries are not supported. Putting them
14690 # here allows them to be overridden if necessary.
14691 runpath_var=LD_RUN_PATH
14692 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14693 export_dynamic_flag_spec='${wl}--export-dynamic'
14694 # ancient GNU ld didn't support --whole-archive et. al.
14695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14696 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14697 else
14698 whole_archive_flag_spec=
14699 fi
14700 supports_anon_versioning=no
14701 case `$LD -v 2>/dev/null` in
14702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14705 *\ 2.11.*) ;; # other 2.11 versions
14706 *) supports_anon_versioning=yes ;;
14707 esac
14708
John Criswell47fdd832003-07-14 16:52:07 +000014709 # See if GNU ld supports shared libraries.
14710 case $host_os in
14711 aix3* | aix4* | aix5*)
14712 # On AIX/PPC, the GNU linker is very broken
14713 if test "$host_cpu" != ia64; then
14714 ld_shlibs=no
14715 cat <<EOF 1>&2
14716
14717*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14718*** to be unable to reliably create shared libraries on AIX.
14719*** Therefore, libtool is disabling shared libraries support. If you
14720*** really care for shared libraries, you may want to modify your PATH
14721*** so that a non-GNU linker is found, and then restart.
14722
14723EOF
14724 fi
14725 ;;
14726
14727 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014728 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 +000014729 hardcode_libdir_flag_spec='-L$libdir'
14730 hardcode_minus_L=yes
14731
14732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14733 # that the semantics of dynamic libraries on AmigaOS, at least up
14734 # to version 4, is to share data among multiple programs linked
14735 # with the same dynamic library. Since this doesn't match the
14736 # behavior of shared libraries on other platforms, we can't use
14737 # them.
14738 ld_shlibs=no
14739 ;;
14740
14741 beos*)
14742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743 allow_undefined_flag=unsupported
14744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745 # support --undefined. This deserves some investigation. FIXME
14746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 else
14748 ld_shlibs=no
14749 fi
14750 ;;
14751
14752 cygwin* | mingw* | pw32*)
14753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754 # as there is no search path for DLLs.
14755 hardcode_libdir_flag_spec='-L$libdir'
14756 allow_undefined_flag=unsupported
14757 always_export_symbols=no
14758 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014759 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 +000014760
14761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014762 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 +000014763 # If the export-symbols file already is a .def file (1st line
14764 # is EXPORTS), use it as is; otherwise, prepend...
14765 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14766 cp $export_symbols $output_objdir/$soname.def;
14767 else
14768 echo EXPORTS > $output_objdir/$soname.def;
14769 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014770 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14772 else
14773 ld_shlibs=no
14774 fi
14775 ;;
14776
14777 interix3*)
14778 hardcode_direct=no
14779 hardcode_shlibpath_var=no
14780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14781 export_dynamic_flag_spec='${wl}-E'
14782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14783 # Instead, shared libraries are loaded at an image base (0x10000000 by
14784 # default) and relocated if they conflict, which is a slow very memory
14785 # consuming and fragmenting process. To avoid this, we pick a random,
14786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14789 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'
14790 ;;
14791
14792 linux*)
14793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794 tmp_addflag=
14795 case $cc_basename,$host_cpu in
14796 pgcc*) # Portland Group C compiler
14797 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'
14798 tmp_addflag=' $pic_flag'
14799 ;;
14800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14801 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'
14802 tmp_addflag=' $pic_flag -Mnomain' ;;
14803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14804 tmp_addflag=' -i_dynamic' ;;
14805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14806 tmp_addflag=' -i_dynamic -nofor_main' ;;
14807 ifc* | ifort*) # Intel Fortran compiler
14808 tmp_addflag=' -nofor_main' ;;
14809 esac
14810 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14811
14812 if test $supports_anon_versioning = yes; then
14813 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14815 $echo "local: *; };" >> $output_objdir/$libname.ver~
14816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14817 fi
John Criswell47fdd832003-07-14 16:52:07 +000014818 else
14819 ld_shlibs=no
14820 fi
14821 ;;
14822
14823 netbsd*)
14824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14826 wlarc=
14827 else
14828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14830 fi
14831 ;;
14832
Reid Spencera773bd52006-08-04 18:18:08 +000014833 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14835 ld_shlibs=no
14836 cat <<EOF 1>&2
14837
14838*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14839*** create shared libraries on Solaris systems. Therefore, libtool
14840*** is disabling shared libraries support. We urge you to upgrade GNU
14841*** binutils to release 2.9.1 or newer. Another option is to modify
14842*** your PATH or compiler configuration so that the native linker is
14843*** used, and then restart.
14844
14845EOF
14846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14849 else
14850 ld_shlibs=no
14851 fi
14852 ;;
14853
Reid Spencera773bd52006-08-04 18:18:08 +000014854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14855 case `$LD -v 2>&1` in
14856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14857 ld_shlibs=no
14858 cat <<_LT_EOF 1>&2
14859
14860*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14861*** reliably create shared libraries on SCO systems. Therefore, libtool
14862*** is disabling shared libraries support. We urge you to upgrade GNU
14863*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14864*** your PATH or compiler configuration so that the native linker is
14865*** used, and then restart.
14866
14867_LT_EOF
14868 ;;
14869 *)
14870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14871 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14874 else
14875 ld_shlibs=no
14876 fi
14877 ;;
14878 esac
14879 ;;
14880
John Criswell47fdd832003-07-14 16:52:07 +000014881 sunos4*)
14882 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14883 wlarc=
14884 hardcode_direct=yes
14885 hardcode_shlibpath_var=no
14886 ;;
14887
14888 *)
14889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14892 else
14893 ld_shlibs=no
14894 fi
14895 ;;
14896 esac
14897
Reid Spencera773bd52006-08-04 18:18:08 +000014898 if test "$ld_shlibs" = no; then
14899 runpath_var=
14900 hardcode_libdir_flag_spec=
14901 export_dynamic_flag_spec=
14902 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014903 fi
14904 else
14905 # PORTME fill in a description of your system's linker (not GNU ld)
14906 case $host_os in
14907 aix3*)
14908 allow_undefined_flag=unsupported
14909 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014910 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 +000014911 # Note: this linker hardcodes the directories in LIBPATH if there
14912 # are no directories specified by -L.
14913 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014915 # Neither direct hardcoding nor static linking is supported with a
14916 # broken collect2.
14917 hardcode_direct=unsupported
14918 fi
14919 ;;
14920
14921 aix4* | aix5*)
14922 if test "$host_cpu" = ia64; then
14923 # On IA64, the linker does run time linking by default, so we don't
14924 # have to do anything special.
14925 aix_use_runtimelinking=no
14926 exp_sym_flag='-Bexport'
14927 no_entry_flag=""
14928 else
14929 # If we're using GNU nm, then we don't want the "-C" option.
14930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14932 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'
14933 else
14934 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'
14935 fi
14936 aix_use_runtimelinking=no
14937
14938 # Test if we are trying to use run time linking or normal
14939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940 # need to do runtime linking.
14941 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14942 for ld_flag in $LDFLAGS; do
14943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944 aix_use_runtimelinking=yes
14945 break
14946 fi
14947 done
Reid Spencera773bd52006-08-04 18:18:08 +000014948 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014949 esac
14950
14951 exp_sym_flag='-bexport'
14952 no_entry_flag='-bnoentry'
14953 fi
14954
14955 # When large executables or shared objects are built, AIX ld can
14956 # have problems creating the table of contents. If linking a library
14957 # or program results in "error TOC overflow" add -mminimal-toc to
14958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14960
14961 archive_cmds=''
14962 hardcode_direct=yes
14963 hardcode_libdir_separator=':'
14964 link_all_deplibs=yes
14965
14966 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014967 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014968 # We only want to do this on AIX 4.2 and lower, the check
14969 # below for broken collect2 doesn't work under 4.3+
14970 collect2name=`${CC} -print-prog-name=collect2`
14971 if test -f "$collect2name" && \
14972 strings "$collect2name" | grep resolve_lib_name >/dev/null
14973 then
14974 # We have reworked collect2
14975 hardcode_direct=yes
14976 else
14977 # We have old collect2
14978 hardcode_direct=unsupported
14979 # It fails to find uninstalled libraries when the uninstalled
14980 # path is not listed in the libpath. Setting hardcode_minus_L
14981 # to unsupported forces relinking
14982 hardcode_minus_L=yes
14983 hardcode_libdir_flag_spec='-L$libdir'
14984 hardcode_libdir_separator=
14985 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014986 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014987 esac
14988 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014989 if test "$aix_use_runtimelinking" = yes; then
14990 shared_flag="$shared_flag "'${wl}-G'
14991 fi
John Criswell47fdd832003-07-14 16:52:07 +000014992 else
14993 # not using gcc
14994 if test "$host_cpu" = ia64; then
14995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14996 # chokes on -Wl,-G. The following line is correct:
14997 shared_flag='-G'
14998 else
Reid Spencera773bd52006-08-04 18:18:08 +000014999 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015000 shared_flag='${wl}-G'
15001 else
15002 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015003 fi
John Criswell47fdd832003-07-14 16:52:07 +000015004 fi
15005 fi
15006
15007 # It seems that -bexpall does not export symbols beginning with
15008 # underscore (_), so it is better to generate a list of symbols to export.
15009 always_export_symbols=yes
15010 if test "$aix_use_runtimelinking" = yes; then
15011 # Warning - without using the other runtime loading flags (-brtl),
15012 # -berok will link without error, but may produce a broken library.
15013 allow_undefined_flag='-berok'
15014 # Determine the default libpath from the value encoded in an empty executable.
15015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015016/* confdefs.h. */
15017_ACEOF
15018cat confdefs.h >>conftest.$ac_ext
15019cat >>conftest.$ac_ext <<_ACEOF
15020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015021
John Criswell7a73b802003-06-30 21:59:07 +000015022int
15023main ()
15024{
John Criswell47fdd832003-07-14 16:52:07 +000015025
John Criswell7a73b802003-06-30 21:59:07 +000015026 ;
15027 return 0;
15028}
15029_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015030rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015031if { (ac_try="$ac_link"
15032case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015064
John Criswell47fdd832003-07-14 16:52:07 +000015065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15066}'`
15067# Check for a 64-bit object if we didn't find anything.
15068if 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; }
15069}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015070else
15071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015072sed 's/^/| /' conftest.$ac_ext >&5
15073
Reid Spencera773bd52006-08-04 18:18:08 +000015074
John Criswell7a73b802003-06-30 21:59:07 +000015075fi
Reid Spencera773bd52006-08-04 18:18:08 +000015076
15077rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015078 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015080
John Criswell47fdd832003-07-14 16:52:07 +000015081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015082 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 +000015083 else
15084 if test "$host_cpu" = ia64; then
15085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15086 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015087 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 +000015088 else
15089 # Determine the default libpath from the value encoded in an empty executable.
15090 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015091/* confdefs.h. */
15092_ACEOF
15093cat confdefs.h >>conftest.$ac_ext
15094cat >>conftest.$ac_ext <<_ACEOF
15095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015096
John Criswell47fdd832003-07-14 16:52:07 +000015097int
15098main ()
15099{
John Criswell7a73b802003-06-30 21:59:07 +000015100
John Criswell47fdd832003-07-14 16:52:07 +000015101 ;
15102 return 0;
15103}
15104_ACEOF
15105rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015106if { (ac_try="$ac_link"
15107case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015139
John Criswell47fdd832003-07-14 16:52:07 +000015140aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15141}'`
15142# Check for a 64-bit object if we didn't find anything.
15143if 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; }
15144}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015145else
John Criswell47fdd832003-07-14 16:52:07 +000015146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015147sed 's/^/| /' conftest.$ac_ext >&5
15148
Reid Spencera773bd52006-08-04 18:18:08 +000015149
John Criswell47fdd832003-07-14 16:52:07 +000015150fi
Reid Spencera773bd52006-08-04 18:18:08 +000015151
15152rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015153 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015154if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015155
John Criswell47fdd832003-07-14 16:52:07 +000015156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15157 # Warning - without using the other run time loading flags,
15158 # -berok will link without error, but may produce a broken library.
15159 no_undefined_flag=' ${wl}-bernotok'
15160 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015161 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015162 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015163 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015164 # This is similar to how AIX traditionally builds its shared libraries.
15165 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 +000015166 fi
15167 fi
John Criswell7a73b802003-06-30 21:59:07 +000015168 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015169
15170 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015171 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 +000015172 hardcode_libdir_flag_spec='-L$libdir'
15173 hardcode_minus_L=yes
15174 # see comment about different semantics on the GNU ld section
15175 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015177
Reid Spencer2706f8c2004-09-19 23:53:36 +000015178 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015179 export_dynamic_flag_spec=-rdynamic
15180 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015181
John Criswell47fdd832003-07-14 16:52:07 +000015182 cygwin* | mingw* | pw32*)
15183 # When not using gcc, we currently assume that we are using
15184 # Microsoft Visual C++.
15185 # hardcode_libdir_flag_spec is actually meaningless, as there is
15186 # no search path for DLLs.
15187 hardcode_libdir_flag_spec=' '
15188 allow_undefined_flag=unsupported
15189 # Tell ltmain to make .lib files, not .a files.
15190 libext=lib
15191 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015192 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015193 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015195 # The linker will automatically build a .lib file if we build a DLL.
15196 old_archive_From_new_cmds='true'
15197 # FIXME: Should let the user specify the lib program.
15198 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15199 fix_srcfile_path='`cygpath -w "$srcfile"`'
15200 enable_shared_with_static_runtimes=yes
15201 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015202
John Criswell47fdd832003-07-14 16:52:07 +000015203 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015204 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015205 rhapsody* | darwin1.[012])
15206 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15207 ;;
15208 *) # Darwin 1.3 on
15209 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15210 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15211 else
15212 case ${MACOSX_DEPLOYMENT_TARGET} in
15213 10.[012])
15214 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15215 ;;
15216 10.*)
15217 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15218 ;;
15219 esac
15220 fi
15221 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015222 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015223 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015224 hardcode_direct=no
15225 hardcode_automatic=yes
15226 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015227 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015228 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015229 if test "$GCC" = yes ; then
15230 output_verbose_link_cmd='echo'
15231 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15232 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015233 # 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 +000015234 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}'
15235 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 +000015236 else
Reid Spencera773bd52006-08-04 18:18:08 +000015237 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015238 xlc*)
15239 output_verbose_link_cmd='echo'
15240 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15241 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015242 # 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 +000015243 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}'
15244 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 +000015245 ;;
15246 *)
15247 ld_shlibs=no
15248 ;;
15249 esac
John Criswell7a73b802003-06-30 21:59:07 +000015250 fi
John Criswell47fdd832003-07-14 16:52:07 +000015251 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015252
John Criswell47fdd832003-07-14 16:52:07 +000015253 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015255 hardcode_libdir_flag_spec='-L$libdir'
15256 hardcode_shlibpath_var=no
15257 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015258
John Criswell47fdd832003-07-14 16:52:07 +000015259 freebsd1*)
15260 ld_shlibs=no
15261 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015262
John Criswell47fdd832003-07-14 16:52:07 +000015263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15264 # support. Future versions do this automatically, but an explicit c++rt0.o
15265 # does not break anything, and helps significantly (at the cost of a little
15266 # extra space).
15267 freebsd2.2*)
15268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15269 hardcode_libdir_flag_spec='-R$libdir'
15270 hardcode_direct=yes
15271 hardcode_shlibpath_var=no
15272 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015273
John Criswell47fdd832003-07-14 16:52:07 +000015274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15275 freebsd2*)
15276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15277 hardcode_direct=yes
15278 hardcode_minus_L=yes
15279 hardcode_shlibpath_var=no
15280 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015281
John Criswell47fdd832003-07-14 16:52:07 +000015282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015283 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015284 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15285 hardcode_libdir_flag_spec='-R$libdir'
15286 hardcode_direct=yes
15287 hardcode_shlibpath_var=no
15288 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015289
John Criswell47fdd832003-07-14 16:52:07 +000015290 hpux9*)
15291 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015292 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 +000015293 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015294 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 +000015295 fi
15296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15297 hardcode_libdir_separator=:
15298 hardcode_direct=yes
15299
15300 # hardcode_minus_L: Not really in the search PATH,
15301 # but as the default location of the library.
15302 hardcode_minus_L=yes
15303 export_dynamic_flag_spec='${wl}-E'
15304 ;;
15305
Reid Spencera773bd52006-08-04 18:18:08 +000015306 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309 else
15310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15311 fi
15312 if test "$with_gnu_ld" = no; then
15313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314 hardcode_libdir_separator=:
15315
15316 hardcode_direct=yes
15317 export_dynamic_flag_spec='${wl}-E'
15318
15319 # hardcode_minus_L: Not really in the search PATH,
15320 # but as the default location of the library.
15321 hardcode_minus_L=yes
15322 fi
15323 ;;
15324
15325 hpux11*)
15326 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15327 case $host_cpu in
15328 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015331 ia64*)
15332 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015334 *)
15335 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15336 ;;
15337 esac
15338 else
Reid Spencera773bd52006-08-04 18:18:08 +000015339 case $host_cpu in
15340 hppa*64*)
15341 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15342 ;;
15343 ia64*)
15344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015345 ;;
15346 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015347 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 +000015348 ;;
15349 esac
15350 fi
15351 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15353 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015354
Reid Spencera773bd52006-08-04 18:18:08 +000015355 case $host_cpu in
15356 hppa*64*|ia64*)
15357 hardcode_libdir_flag_spec_ld='+b $libdir'
15358 hardcode_direct=no
15359 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015360 ;;
15361 *)
John Criswell47fdd832003-07-14 16:52:07 +000015362 hardcode_direct=yes
15363 export_dynamic_flag_spec='${wl}-E'
15364
15365 # hardcode_minus_L: Not really in the search PATH,
15366 # but as the default location of the library.
15367 hardcode_minus_L=yes
15368 ;;
15369 esac
15370 fi
15371 ;;
15372
15373 irix5* | irix6* | nonstopux*)
15374 if test "$GCC" = yes; then
15375 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'
15376 else
15377 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'
15378 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15379 fi
15380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15381 hardcode_libdir_separator=:
15382 link_all_deplibs=yes
15383 ;;
15384
15385 netbsd*)
15386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15388 else
15389 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15390 fi
15391 hardcode_libdir_flag_spec='-R$libdir'
15392 hardcode_direct=yes
15393 hardcode_shlibpath_var=no
15394 ;;
15395
15396 newsos6)
15397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_direct=yes
15399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15400 hardcode_libdir_separator=:
15401 hardcode_shlibpath_var=no
15402 ;;
15403
15404 openbsd*)
15405 hardcode_direct=yes
15406 hardcode_shlibpath_var=no
15407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015409 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 +000015410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15411 export_dynamic_flag_spec='${wl}-E'
15412 else
15413 case $host_os in
15414 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15416 hardcode_libdir_flag_spec='-R$libdir'
15417 ;;
15418 *)
15419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15421 ;;
15422 esac
15423 fi
15424 ;;
15425
15426 os2*)
15427 hardcode_libdir_flag_spec='-L$libdir'
15428 hardcode_minus_L=yes
15429 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015430 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 +000015431 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15432 ;;
15433
15434 osf3*)
15435 if test "$GCC" = yes; then
15436 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15437 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'
15438 else
15439 allow_undefined_flag=' -expect_unresolved \*'
15440 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'
15441 fi
15442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator=:
15444 ;;
15445
15446 osf4* | osf5*) # as osf3* with the addition of -msym flag
15447 if test "$GCC" = yes; then
15448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15449 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'
15450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15451 else
15452 allow_undefined_flag=' -expect_unresolved \*'
15453 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 +000015454 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 +000015455 $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 +000015456
John Criswell47fdd832003-07-14 16:52:07 +000015457 # Both c and cxx compiler support -rpath directly
15458 hardcode_libdir_flag_spec='-rpath $libdir'
15459 fi
15460 hardcode_libdir_separator=:
15461 ;;
15462
John Criswell47fdd832003-07-14 16:52:07 +000015463 solaris*)
15464 no_undefined_flag=' -z text'
15465 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015466 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015467 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015468 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15469 $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 +000015470 else
Reid Spencera773bd52006-08-04 18:18:08 +000015471 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015473 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474 $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 +000015475 fi
15476 hardcode_libdir_flag_spec='-R$libdir'
15477 hardcode_shlibpath_var=no
15478 case $host_os in
15479 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015480 *)
15481 # The compiler driver will combine linker options so we
15482 # cannot just pass the convience library names through
15483 # without $wl, iff we do not link with $LD.
15484 # Luckily, gcc supports the same syntax we need for Sun Studio.
15485 # Supported since Solaris 2.6 (maybe 2.5.1?)
15486 case $wlarc in
15487 '')
15488 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15489 *)
15490 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' ;;
15491 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015492 esac
15493 link_all_deplibs=yes
15494 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015495
John Criswell47fdd832003-07-14 16:52:07 +000015496 sunos4*)
15497 if test "x$host_vendor" = xsequent; then
15498 # Use $CC to link under sequent, because it throws in some extra .o
15499 # files that make .init and .fini sections work.
15500 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15501 else
15502 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15503 fi
15504 hardcode_libdir_flag_spec='-L$libdir'
15505 hardcode_direct=yes
15506 hardcode_minus_L=yes
15507 hardcode_shlibpath_var=no
15508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015509
John Criswell47fdd832003-07-14 16:52:07 +000015510 sysv4)
15511 case $host_vendor in
15512 sni)
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_direct=yes # is this really true???
15515 ;;
15516 siemens)
15517 ## LD is ld it makes a PLAMLIB
15518 ## CC just makes a GrossModule.
15519 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15520 reload_cmds='$CC -r -o $output$reload_objs'
15521 hardcode_direct=no
15522 ;;
15523 motorola)
15524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15526 ;;
15527 esac
15528 runpath_var='LD_RUN_PATH'
15529 hardcode_shlibpath_var=no
15530 ;;
15531
15532 sysv4.3*)
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_shlibpath_var=no
15535 export_dynamic_flag_spec='-Bexport'
15536 ;;
15537
15538 sysv4*MP*)
15539 if test -d /usr/nec; then
15540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_shlibpath_var=no
15542 runpath_var=LD_RUN_PATH
15543 hardcode_runpath_var=yes
15544 ld_shlibs=yes
15545 fi
15546 ;;
15547
Reid Spencera773bd52006-08-04 18:18:08 +000015548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15549 no_undefined_flag='${wl}-z,text'
15550 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015551 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015552 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015553
John Criswell47fdd832003-07-14 16:52:07 +000015554 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 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 +000015557 else
Reid Spencera773bd52006-08-04 18:18:08 +000015558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 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 +000015560 fi
John Criswell47fdd832003-07-14 16:52:07 +000015561 ;;
15562
Reid Spencera773bd52006-08-04 18:18:08 +000015563 sysv5* | sco3.2v5* | sco5v6*)
15564 # Note: We can NOT use -z defs as we might desire, because we do not
15565 # link with -lc, and that would cause any symbols used from libc to
15566 # always be unresolved, which means just about no library would
15567 # ever link correctly. If we're not using GNU ld we use -z text
15568 # though, which does catch some bad symbols but isn't as heavy-handed
15569 # as -z defs.
15570 no_undefined_flag='${wl}-z,text'
15571 allow_undefined_flag='${wl}-z,nodefs'
15572 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015573 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015574 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15575 hardcode_libdir_separator=':'
15576 link_all_deplibs=yes
15577 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015578 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015579
15580 if test "$GCC" = yes; then
15581 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 else
15584 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 fi
John Criswell47fdd832003-07-14 16:52:07 +000015587 ;;
15588
15589 uts4*)
15590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591 hardcode_libdir_flag_spec='-L$libdir'
15592 hardcode_shlibpath_var=no
15593 ;;
15594
15595 *)
15596 ld_shlibs=no
15597 ;;
15598 esac
15599 fi
15600
Reid Spencera773bd52006-08-04 18:18:08 +000015601{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15602echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015603test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015604
John Criswell47fdd832003-07-14 16:52:07 +000015605#
15606# Do we need to explicitly link libc?
15607#
15608case "x$archive_cmds_need_lc" in
15609x|xyes)
15610 # Assume -lc should be added
15611 archive_cmds_need_lc=yes
15612
15613 if test "$enable_shared" = yes && test "$GCC" = yes; then
15614 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015615 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015616 # FIXME: we may have to deal with multi-command sequences.
15617 ;;
15618 '$CC '*)
15619 # Test whether the compiler implicitly links with -lc since on some
15620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15621 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015622 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15623echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015624 $rm conftest*
15625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626
15627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628 (eval $ac_compile) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } 2>conftest.err; then
15632 soname=conftest
15633 lib=conftest
15634 libobjs=conftest.$ac_objext
15635 deplibs=
15636 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015637 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015638 compiler_flags=-v
15639 linker_flags=-v
15640 verstring=
15641 output_objdir=.
15642 libname=conftest
15643 lt_save_allow_undefined_flag=$allow_undefined_flag
15644 allow_undefined_flag=
15645 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15646 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }
15650 then
15651 archive_cmds_need_lc=no
15652 else
15653 archive_cmds_need_lc=yes
15654 fi
15655 allow_undefined_flag=$lt_save_allow_undefined_flag
15656 else
15657 cat conftest.err 1>&5
15658 fi
15659 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015660 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15661echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015662 ;;
15663 esac
15664 fi
15665 ;;
15666esac
15667
Reid Spencera773bd52006-08-04 18:18:08 +000015668{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15669echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015670library_names_spec=
15671libname_spec='lib$name'
15672soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015674postinstall_cmds=
15675postuninstall_cmds=
15676finish_cmds=
15677finish_eval=
15678shlibpath_var=
15679shlibpath_overrides_runpath=unknown
15680version_type=none
15681dynamic_linker="$host_os ld.so"
15682sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015683if test "$GCC" = yes; then
15684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15686 # if the path contains ";" then we assume it to be the separator
15687 # otherwise default to the standard path separator (i.e. ":") - it is
15688 # assumed that no part of a normal pathname contains ";" but that should
15689 # okay in the real world where ";" in dirpaths is itself problematic.
15690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15691 else
15692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15693 fi
15694else
15695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15696fi
15697need_lib_prefix=unknown
15698hardcode_into_libs=no
15699
15700# when you set need_version to no, make sure it does not cause -set_version
15701# flags to be left without arguments
15702need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015703
15704case $host_os in
15705aix3*)
15706 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015708 shlibpath_var=LIBPATH
15709
John Criswell47fdd832003-07-14 16:52:07 +000015710 # AIX 3 has no versioning support, so we append a major version to the name.
15711 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015712 ;;
15713
15714aix4* | aix5*)
15715 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015716 need_lib_prefix=no
15717 need_version=no
15718 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015719 if test "$host_cpu" = ia64; then
15720 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015722 shlibpath_var=LD_LIBRARY_PATH
15723 else
15724 # With GCC up to 2.95.x, collect2 would create an import file
15725 # for dependence libraries. The import file would start with
15726 # the line `#! .'. This would cause the generated library to
15727 # depend on `.', always an invalid library. This was fixed in
15728 # development snapshots of GCC prior to 3.0.
15729 case $host_os in
15730 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15732 echo ' yes '
15733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15734 :
15735 else
15736 can_build_shared=no
15737 fi
15738 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015739 esac
John Criswell47fdd832003-07-14 16:52:07 +000015740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741 # soname into executable. Probably we can add versioning support to
15742 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015743 if test "$aix_use_runtimelinking" = yes; then
15744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745 # instead of lib<name>.a to let people know that these are not
15746 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015748 else
15749 # We preserve .a as extension for shared libraries through AIX4.2
15750 # and later when we are not doing run time linking.
15751 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015752 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015753 fi
15754 shlibpath_var=LIBPATH
15755 fi
15756 ;;
15757
15758amigaos*)
15759 library_names_spec='$libname.ixlibrary $libname.a'
15760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015761 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 +000015762 ;;
15763
15764beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015765 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015766 dynamic_linker="$host_os ld.so"
15767 shlibpath_var=LIBRARY_PATH
15768 ;;
15769
Reid Spencer2706f8c2004-09-19 23:53:36 +000015770bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015771 version_type=linux
15772 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015779 # the default ld.so.conf also contains /usr/contrib/lib and
15780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781 # libtool to hard-code these into programs
15782 ;;
15783
15784cygwin* | mingw* | pw32*)
15785 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015786 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015787 need_version=no
15788 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015789
John Criswell7a73b802003-06-30 21:59:07 +000015790 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015791 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015792 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015794 postinstall_cmds='base_file=`basename \${file}`~
15795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796 dldir=$destdir/`dirname \$dlpath`~
15797 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015798 $install_prog $dir/$dlname \$dldir/$dlname~
15799 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015802 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015803 shlibpath_overrides_runpath=yes
15804
15805 case $host_os in
15806 cygwin*)
15807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808 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 +000015809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015810 ;;
15811 mingw*)
15812 # MinGW DLLs use traditional 'lib' prefix
15813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15816 # It is most probably a Windows format PATH printed by
15817 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818 # path with ; separators, and with drive letters. We can handle the
15819 # drive letters (cygwin fileutils understands them), so leave them,
15820 # especially as we might pass files found there to a mingw objdump,
15821 # which wouldn't understand a cygwinified path. Ahh.
15822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823 else
15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15825 fi
15826 ;;
15827 pw32*)
15828 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015829 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 +000015830 ;;
15831 esac
John Criswell7a73b802003-06-30 21:59:07 +000015832 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015833
John Criswell7a73b802003-06-30 21:59:07 +000015834 *)
John Criswell47fdd832003-07-14 16:52:07 +000015835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015836 ;;
15837 esac
15838 dynamic_linker='Win32 ld.exe'
15839 # FIXME: first we should search . and the directory the executable is in
15840 shlibpath_var=PATH
15841 ;;
15842
15843darwin* | rhapsody*)
15844 dynamic_linker="$host_os dyld"
15845 version_type=darwin
15846 need_lib_prefix=no
15847 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015848 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015849 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015850 shlibpath_overrides_runpath=yes
15851 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015853 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015854 if test "$GCC" = yes; then
15855 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"`
15856 else
15857 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015858 fi
15859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15860 ;;
15861
15862dgux*)
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015869 ;;
15870
15871freebsd1*)
15872 dynamic_linker=no
15873 ;;
15874
Reid Spencer2706f8c2004-09-19 23:53:36 +000015875kfreebsd*-gnu)
15876 version_type=linux
15877 need_lib_prefix=no
15878 need_version=no
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath=no
15883 hardcode_into_libs=yes
15884 dynamic_linker='GNU ld.so'
15885 ;;
15886
Reid Spencera773bd52006-08-04 18:18:08 +000015887freebsd* | dragonfly*)
15888 # DragonFly does not have aout. When/if they implement a new
15889 # versioning mechanism, adjust this.
15890 if test -x /usr/bin/objformat; then
15891 objformat=`/usr/bin/objformat`
15892 else
15893 case $host_os in
15894 freebsd[123]*) objformat=aout ;;
15895 *) objformat=elf ;;
15896 esac
15897 fi
John Criswell7a73b802003-06-30 21:59:07 +000015898 version_type=freebsd-$objformat
15899 case $version_type in
15900 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015902 need_version=no
15903 need_lib_prefix=no
15904 ;;
15905 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015907 need_version=yes
15908 ;;
15909 esac
15910 shlibpath_var=LD_LIBRARY_PATH
15911 case $host_os in
15912 freebsd2*)
15913 shlibpath_overrides_runpath=yes
15914 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015915 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015916 shlibpath_overrides_runpath=yes
15917 hardcode_into_libs=yes
15918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015919 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15920 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015921 shlibpath_overrides_runpath=no
15922 hardcode_into_libs=yes
15923 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015924 freebsd*) # from 4.6 on
15925 shlibpath_overrides_runpath=yes
15926 hardcode_into_libs=yes
15927 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015928 esac
15929 ;;
15930
15931gnu*)
15932 version_type=linux
15933 need_lib_prefix=no
15934 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15936 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015937 shlibpath_var=LD_LIBRARY_PATH
15938 hardcode_into_libs=yes
15939 ;;
15940
15941hpux9* | hpux10* | hpux11*)
15942 # Give a soname corresponding to the major version so that dld.sl refuses to
15943 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015944 version_type=sunos
15945 need_lib_prefix=no
15946 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015947 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015948 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015949 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015950 hardcode_into_libs=yes
15951 dynamic_linker="$host_os dld.so"
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 if test "X$HPUX_IA64_MODE" = X32; then
15957 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15958 else
15959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15960 fi
15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962 ;;
15963 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015964 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015965 hardcode_into_libs=yes
15966 dynamic_linker="$host_os dld.sl"
15967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973 ;;
15974 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015975 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015976 dynamic_linker="$host_os dld.sl"
15977 shlibpath_var=SHLIB_PATH
15978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 ;;
15982 esac
John Criswell7a73b802003-06-30 21:59:07 +000015983 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15984 postinstall_cmds='chmod 555 $lib'
15985 ;;
15986
Reid Spencera773bd52006-08-04 18:18:08 +000015987interix3*)
15988 version_type=linux
15989 need_lib_prefix=no
15990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15996 hardcode_into_libs=yes
15997 ;;
15998
John Criswell47fdd832003-07-14 16:52:07 +000015999irix5* | irix6* | nonstopux*)
16000 case $host_os in
16001 nonstopux*) version_type=nonstopux ;;
16002 *)
16003 if test "$lt_cv_prog_gnu_ld" = yes; then
16004 version_type=linux
16005 else
16006 version_type=irix
16007 fi ;;
16008 esac
John Criswell7a73b802003-06-30 21:59:07 +000016009 need_lib_prefix=no
16010 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016011 soname_spec='${libname}${release}${shared_ext}$major'
16012 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 +000016013 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016014 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016015 libsuff= shlibsuff=
16016 ;;
16017 *)
16018 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16020 libsuff= shlibsuff= libmagic=32-bit;;
16021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16022 libsuff=32 shlibsuff=N32 libmagic=N32;;
16023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016025 *) libsuff= shlibsuff= libmagic=never-match;;
16026 esac
16027 ;;
16028 esac
16029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16030 shlibpath_overrides_runpath=no
16031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016033 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016034 ;;
16035
16036# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016037linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016038 dynamic_linker=no
16039 ;;
16040
16041# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016042linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016043 version_type=linux
16044 need_lib_prefix=no
16045 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 # This implies no fast_install, which is unacceptable.
16052 # Some rework will be needed to allow for fast_install
16053 # before this can be enabled.
16054 hardcode_into_libs=yes
16055
Reid Spencer2706f8c2004-09-19 23:53:36 +000016056 # Append ld.so.conf contents to the search path
16057 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016058 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 +000016059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16060 fi
16061
John Criswell7a73b802003-06-30 21:59:07 +000016062 # We used to test for /lib/ld.so.1 and disable shared libraries on
16063 # powerpc, because MkLinux only supported shared libraries with the
16064 # GNU dynamic linker. Since this was broken with cross compilers,
16065 # most powerpc-linux boxes support dynamic linking these days and
16066 # people can always --disable-shared, the test was removed, and we
16067 # assume the GNU/Linux dynamic linker is in use.
16068 dynamic_linker='GNU/Linux ld.so'
16069 ;;
16070
Reid Spencer2706f8c2004-09-19 23:53:36 +000016071knetbsd*-gnu)
16072 version_type=linux
16073 need_lib_prefix=no
16074 need_version=no
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=no
16079 hardcode_into_libs=yes
16080 dynamic_linker='GNU ld.so'
16081 ;;
16082
John Criswell7a73b802003-06-30 21:59:07 +000016083netbsd*)
16084 version_type=sunos
16085 need_lib_prefix=no
16086 need_version=no
16087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090 dynamic_linker='NetBSD (a.out) ld.so'
16091 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016093 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016094 dynamic_linker='NetBSD ld.elf_so'
16095 fi
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098 hardcode_into_libs=yes
16099 ;;
16100
16101newsos6)
16102 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 shlibpath_overrides_runpath=yes
16106 ;;
16107
Reid Spencer2706f8c2004-09-19 23:53:36 +000016108nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016109 version_type=linux
16110 need_lib_prefix=no
16111 need_version=no
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016114 shlibpath_var=LD_LIBRARY_PATH
16115 shlibpath_overrides_runpath=yes
16116 ;;
16117
16118openbsd*)
16119 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016120 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016121 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16123 case $host_os in
16124 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16125 *) need_version=no ;;
16126 esac
John Criswell47fdd832003-07-14 16:52:07 +000016127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016130 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 +000016131 case $host_os in
16132 openbsd2.[89] | openbsd2.[89].*)
16133 shlibpath_overrides_runpath=no
16134 ;;
16135 *)
16136 shlibpath_overrides_runpath=yes
16137 ;;
16138 esac
John Criswell7a73b802003-06-30 21:59:07 +000016139 else
16140 shlibpath_overrides_runpath=yes
16141 fi
John Criswell7a73b802003-06-30 21:59:07 +000016142 ;;
16143
16144os2*)
16145 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016146 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016147 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016148 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016149 dynamic_linker='OS/2 ld.exe'
16150 shlibpath_var=LIBPATH
16151 ;;
16152
16153osf3* | osf4* | osf5*)
16154 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016155 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016156 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016157 soname_spec='${libname}${release}${shared_ext}$major'
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016159 shlibpath_var=LD_LIBRARY_PATH
16160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16162 ;;
16163
John Criswell7a73b802003-06-30 21:59:07 +000016164solaris*)
16165 version_type=linux
16166 need_lib_prefix=no
16167 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16172 hardcode_into_libs=yes
16173 # ldd complains unless libraries are executable
16174 postinstall_cmds='chmod +x $lib'
16175 ;;
16176
16177sunos4*)
16178 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=yes
16183 if test "$with_gnu_ld" = yes; then
16184 need_lib_prefix=no
16185 fi
16186 need_version=yes
16187 ;;
16188
Reid Spencera773bd52006-08-04 18:18:08 +000016189sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016190 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016193 shlibpath_var=LD_LIBRARY_PATH
16194 case $host_vendor in
16195 sni)
16196 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016197 need_lib_prefix=no
16198 export_dynamic_flag_spec='${wl}-Blargedynsym'
16199 runpath_var=LD_RUN_PATH
16200 ;;
16201 siemens)
16202 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016203 ;;
16204 motorola)
16205 need_lib_prefix=no
16206 need_version=no
16207 shlibpath_overrides_runpath=no
16208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16209 ;;
16210 esac
16211 ;;
16212
John Criswell7a73b802003-06-30 21:59:07 +000016213sysv4*MP*)
16214 if test -d /usr/nec ;then
16215 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16217 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016218 shlibpath_var=LD_LIBRARY_PATH
16219 fi
16220 ;;
16221
Reid Spencera773bd52006-08-04 18:18:08 +000016222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16223 version_type=freebsd-elf
16224 need_lib_prefix=no
16225 need_version=no
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 hardcode_into_libs=yes
16230 if test "$with_gnu_ld" = yes; then
16231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16232 shlibpath_overrides_runpath=no
16233 else
16234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16235 shlibpath_overrides_runpath=yes
16236 case $host_os in
16237 sco3.2v5*)
16238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16239 ;;
16240 esac
16241 fi
16242 sys_lib_dlsearch_path_spec='/usr/lib'
16243 ;;
16244
John Criswell47fdd832003-07-14 16:52:07 +000016245uts4*)
16246 version_type=linux
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 ;;
16251
John Criswell7a73b802003-06-30 21:59:07 +000016252*)
16253 dynamic_linker=no
16254 ;;
16255esac
Reid Spencera773bd52006-08-04 18:18:08 +000016256{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16257echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016258test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016259
Reid Spencera773bd52006-08-04 18:18:08 +000016260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16261if test "$GCC" = yes; then
16262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16263fi
16264
16265{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16266echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016267hardcode_action=
16268if test -n "$hardcode_libdir_flag_spec" || \
16269 test -n "$runpath_var" || \
16270 test "X$hardcode_automatic" = "Xyes" ; then
16271
16272 # We can hardcode non-existant directories.
16273 if test "$hardcode_direct" != no &&
16274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275 # have to relink, otherwise we might link with an installed library
16276 # when we should be linking with a yet-to-be-installed one
16277 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16278 test "$hardcode_minus_L" != no; then
16279 # Linking always hardcodes the temporary library directory.
16280 hardcode_action=relink
16281 else
16282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283 hardcode_action=immediate
16284 fi
16285else
16286 # We cannot hardcode anything, or else we can only hardcode existing
16287 # directories.
16288 hardcode_action=unsupported
16289fi
Reid Spencera773bd52006-08-04 18:18:08 +000016290{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16291echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016292
16293if test "$hardcode_action" = relink; then
16294 # Fast installation is not supported
16295 enable_fast_install=no
16296elif test "$shlibpath_overrides_runpath" = yes ||
16297 test "$enable_shared" = no; then
16298 # Fast installation is not necessary
16299 enable_fast_install=needless
16300fi
16301
16302striplib=
16303old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016304{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16305echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016306if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016309 { echo "$as_me:$LINENO: result: yes" >&5
16310echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016311else
16312# FIXME - insert some real tests, host_os isn't really good enough
16313 case $host_os in
16314 darwin*)
16315 if test -n "$STRIP" ; then
16316 striplib="$STRIP -x"
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 +000016319 else
Reid Spencera773bd52006-08-04 18:18:08 +000016320 { echo "$as_me:$LINENO: result: no" >&5
16321echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322fi
16323 ;;
16324 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016325 { echo "$as_me:$LINENO: result: no" >&5
16326echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016327 ;;
16328 esac
16329fi
16330
John Criswell7a73b802003-06-30 21:59:07 +000016331if test "x$enable_dlopen" != xyes; then
16332 enable_dlopen=unknown
16333 enable_dlopen_self=unknown
16334 enable_dlopen_self_static=unknown
16335else
16336 lt_cv_dlopen=no
16337 lt_cv_dlopen_libs=
16338
16339 case $host_os in
16340 beos*)
16341 lt_cv_dlopen="load_add_on"
16342 lt_cv_dlopen_libs=
16343 lt_cv_dlopen_self=yes
16344 ;;
16345
John Criswell47fdd832003-07-14 16:52:07 +000016346 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016347 lt_cv_dlopen="LoadLibrary"
16348 lt_cv_dlopen_libs=
16349 ;;
16350
John Criswell47fdd832003-07-14 16:52:07 +000016351 cygwin*)
16352 lt_cv_dlopen="dlopen"
16353 lt_cv_dlopen_libs=
16354 ;;
16355
16356 darwin*)
16357 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016358 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16359echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016360if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362else
16363 ac_check_lib_save_LIBS=$LIBS
16364LIBS="-ldl $LIBS"
16365cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016366/* confdefs.h. */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016371
Reid Spencera773bd52006-08-04 18:18:08 +000016372/* Override any GCC internal prototype to avoid an error.
16373 Use char because int might match the return type of a GCC
16374 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016375#ifdef __cplusplus
16376extern "C"
16377#endif
John Criswell47fdd832003-07-14 16:52:07 +000016378char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016379int
16380main ()
16381{
Reid Spencera773bd52006-08-04 18:18:08 +000016382return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016383 ;
16384 return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016388if { (ac_try="$ac_link"
16389case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392esac
16393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_lib_dl_dlopen=yes
16422else
16423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016424sed 's/^/| /' conftest.$ac_ext >&5
16425
Reid Spencera773bd52006-08-04 18:18:08 +000016426 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016427fi
Reid Spencera773bd52006-08-04 18:18:08 +000016428
16429rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016431LIBS=$ac_check_lib_save_LIBS
16432fi
Reid Spencera773bd52006-08-04 18:18:08 +000016433{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016435if test $ac_cv_lib_dl_dlopen = yes; then
16436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16437else
16438
16439 lt_cv_dlopen="dyld"
16440 lt_cv_dlopen_libs=
16441 lt_cv_dlopen_self=yes
16442
16443fi
16444
16445 ;;
16446
John Criswell7a73b802003-06-30 21:59:07 +000016447 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016448 { echo "$as_me:$LINENO: checking for shl_load" >&5
16449echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016450if test "${ac_cv_func_shl_load+set}" = set; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16452else
16453 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016459/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16461#define shl_load innocuous_shl_load
16462
John Criswell7a73b802003-06-30 21:59:07 +000016463/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016464 which can conflict with char shl_load (); below.
16465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16466 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016467
John Criswell0c38eaf2003-09-10 15:17:25 +000016468#ifdef __STDC__
16469# include <limits.h>
16470#else
16471# include <assert.h>
16472#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016473
16474#undef shl_load
16475
Reid Spencera773bd52006-08-04 18:18:08 +000016476/* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016479#ifdef __cplusplus
16480extern "C"
16481#endif
John Criswell7a73b802003-06-30 21:59:07 +000016482char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016483/* The GNU C library defines this for functions which it implements
16484 to always fail with ENOSYS. Some functions are actually named
16485 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016486#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016487choke me
John Criswell7a73b802003-06-30 21:59:07 +000016488#endif
16489
John Criswell0c38eaf2003-09-10 15:17:25 +000016490int
16491main ()
16492{
Reid Spencera773bd52006-08-04 18:18:08 +000016493return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016494 ;
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016499if { (ac_try="$ac_link"
16500case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016506 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_func_shl_load=yes
16533else
16534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016535sed 's/^/| /' conftest.$ac_ext >&5
16536
Reid Spencera773bd52006-08-04 18:18:08 +000016537 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016538fi
Reid Spencera773bd52006-08-04 18:18:08 +000016539
16540rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016542fi
Reid Spencera773bd52006-08-04 18:18:08 +000016543{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16544echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016545if test $ac_cv_func_shl_load = yes; then
16546 lt_cv_dlopen="shl_load"
16547else
Reid Spencera773bd52006-08-04 18:18:08 +000016548 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16549echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016550if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553 ac_check_lib_save_LIBS=$LIBS
16554LIBS="-ldld $LIBS"
16555cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016561
Reid Spencera773bd52006-08-04 18:18:08 +000016562/* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016565#ifdef __cplusplus
16566extern "C"
16567#endif
John Criswell7a73b802003-06-30 21:59:07 +000016568char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016569int
16570main ()
16571{
Reid Spencera773bd52006-08-04 18:18:08 +000016572return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016578if { (ac_try="$ac_link"
16579case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592 { (case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_lib_dld_shl_load=yes
16612else
16613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016614sed 's/^/| /' conftest.$ac_ext >&5
16615
Reid Spencera773bd52006-08-04 18:18:08 +000016616 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016617fi
Reid Spencera773bd52006-08-04 18:18:08 +000016618
16619rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016620 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016621LIBS=$ac_check_lib_save_LIBS
16622fi
Reid Spencera773bd52006-08-04 18:18:08 +000016623{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16624echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016625if test $ac_cv_lib_dld_shl_load = yes; then
16626 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16627else
Reid Spencera773bd52006-08-04 18:18:08 +000016628 { echo "$as_me:$LINENO: checking for dlopen" >&5
16629echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016630if test "${ac_cv_func_dlopen+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016634/* confdefs.h. */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016639/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16641#define dlopen innocuous_dlopen
16642
John Criswell7a73b802003-06-30 21:59:07 +000016643/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016644 which can conflict with char dlopen (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647
John Criswell0c38eaf2003-09-10 15:17:25 +000016648#ifdef __STDC__
16649# include <limits.h>
16650#else
16651# include <assert.h>
16652#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016653
16654#undef dlopen
16655
Reid Spencera773bd52006-08-04 18:18:08 +000016656/* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016659#ifdef __cplusplus
16660extern "C"
16661#endif
John Criswell7a73b802003-06-30 21:59:07 +000016662char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016663/* The GNU C library defines this for functions which it implements
16664 to always fail with ENOSYS. Some functions are actually named
16665 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016666#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016667choke me
John Criswell7a73b802003-06-30 21:59:07 +000016668#endif
16669
John Criswell0c38eaf2003-09-10 15:17:25 +000016670int
16671main ()
16672{
Reid Spencera773bd52006-08-04 18:18:08 +000016673return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016674 ;
16675 return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016679if { (ac_try="$ac_link"
16680case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_func_dlopen=yes
16713else
16714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016715sed 's/^/| /' conftest.$ac_ext >&5
16716
Reid Spencera773bd52006-08-04 18:18:08 +000016717 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016718fi
Reid Spencera773bd52006-08-04 18:18:08 +000016719
16720rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016721 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016722fi
Reid Spencera773bd52006-08-04 18:18:08 +000016723{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16724echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016725if test $ac_cv_func_dlopen = yes; then
16726 lt_cv_dlopen="dlopen"
16727else
Reid Spencera773bd52006-08-04 18:18:08 +000016728 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16729echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016730if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732else
16733 ac_check_lib_save_LIBS=$LIBS
16734LIBS="-ldl $LIBS"
16735cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016741
Reid Spencera773bd52006-08-04 18:18:08 +000016742/* Override any GCC internal prototype to avoid an error.
16743 Use char because int might match the return type of a GCC
16744 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016745#ifdef __cplusplus
16746extern "C"
16747#endif
John Criswell7a73b802003-06-30 21:59:07 +000016748char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016749int
16750main ()
16751{
Reid Spencera773bd52006-08-04 18:18:08 +000016752return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016753 ;
16754 return 0;
16755}
16756_ACEOF
16757rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016758if { (ac_try="$ac_link"
16759case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16762esac
16763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_lib_dl_dlopen=yes
16792else
16793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016794sed 's/^/| /' conftest.$ac_ext >&5
16795
Reid Spencera773bd52006-08-04 18:18:08 +000016796 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016797fi
Reid Spencera773bd52006-08-04 18:18:08 +000016798
16799rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016800 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016801LIBS=$ac_check_lib_save_LIBS
16802fi
Reid Spencera773bd52006-08-04 18:18:08 +000016803{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16804echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016805if test $ac_cv_lib_dl_dlopen = yes; then
16806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16807else
Reid Spencera773bd52006-08-04 18:18:08 +000016808 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16809echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016810if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 ac_check_lib_save_LIBS=$LIBS
16814LIBS="-lsvld $LIBS"
16815cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016821
Reid Spencera773bd52006-08-04 18:18:08 +000016822/* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016825#ifdef __cplusplus
16826extern "C"
16827#endif
John Criswell7a73b802003-06-30 21:59:07 +000016828char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016829int
16830main ()
16831{
Reid Spencera773bd52006-08-04 18:18:08 +000016832return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016838if { (ac_try="$ac_link"
16839case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842esac
16843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016862 { (case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_svld_dlopen=yes
16872else
16873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016874sed 's/^/| /' conftest.$ac_ext >&5
16875
Reid Spencera773bd52006-08-04 18:18:08 +000016876 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016877fi
Reid Spencera773bd52006-08-04 18:18:08 +000016878
16879rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016880 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016881LIBS=$ac_check_lib_save_LIBS
16882fi
Reid Spencera773bd52006-08-04 18:18:08 +000016883{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016885if test $ac_cv_lib_svld_dlopen = yes; then
16886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887else
Reid Spencera773bd52006-08-04 18:18:08 +000016888 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016890if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 ac_check_lib_save_LIBS=$LIBS
16894LIBS="-ldld $LIBS"
16895cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016901
Reid Spencera773bd52006-08-04 18:18:08 +000016902/* Override any GCC internal prototype to avoid an error.
16903 Use char because int might match the return type of a GCC
16904 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016905#ifdef __cplusplus
16906extern "C"
16907#endif
John Criswell7a73b802003-06-30 21:59:07 +000016908char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016909int
16910main ()
16911{
Reid Spencera773bd52006-08-04 18:18:08 +000016912return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016918if { (ac_try="$ac_link"
16919case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945esac
16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_lib_dld_dld_link=yes
16952else
16953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016954sed 's/^/| /' conftest.$ac_ext >&5
16955
Reid Spencera773bd52006-08-04 18:18:08 +000016956 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016957fi
Reid Spencera773bd52006-08-04 18:18:08 +000016958
16959rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016961LIBS=$ac_check_lib_save_LIBS
16962fi
Reid Spencera773bd52006-08-04 18:18:08 +000016963{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16964echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016965if test $ac_cv_lib_dld_dld_link = yes; then
16966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16967fi
16968
16969
16970fi
16971
16972
16973fi
16974
16975
16976fi
16977
16978
16979fi
16980
16981
16982fi
16983
16984 ;;
16985 esac
16986
16987 if test "x$lt_cv_dlopen" != xno; then
16988 enable_dlopen=yes
16989 else
16990 enable_dlopen=no
16991 fi
16992
16993 case $lt_cv_dlopen in
16994 dlopen)
16995 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016997
16998 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017000
17001 save_LIBS="$LIBS"
17002 LIBS="$lt_cv_dlopen_libs $LIBS"
17003
Reid Spencera773bd52006-08-04 18:18:08 +000017004 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17005echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017006if test "${lt_cv_dlopen_self+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 if test "$cross_compiling" = yes; then :
17010 lt_cv_dlopen_self=cross
17011else
John Criswell47fdd832003-07-14 16:52:07 +000017012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017013 lt_status=$lt_dlunknown
17014 cat > conftest.$ac_ext <<EOF
Reid Spencer89b0d992006-12-16 22:07:52 +000017015#line 17015 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017016#include "confdefs.h"
17017
17018#if HAVE_DLFCN_H
17019#include <dlfcn.h>
17020#endif
17021
17022#include <stdio.h>
17023
17024#ifdef RTLD_GLOBAL
17025# define LT_DLGLOBAL RTLD_GLOBAL
17026#else
17027# ifdef DL_GLOBAL
17028# define LT_DLGLOBAL DL_GLOBAL
17029# else
17030# define LT_DLGLOBAL 0
17031# endif
17032#endif
17033
17034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17035 find out it does not work in some platform. */
17036#ifndef LT_DLLAZY_OR_NOW
17037# ifdef RTLD_LAZY
17038# define LT_DLLAZY_OR_NOW RTLD_LAZY
17039# else
17040# ifdef DL_LAZY
17041# define LT_DLLAZY_OR_NOW DL_LAZY
17042# else
17043# ifdef RTLD_NOW
17044# define LT_DLLAZY_OR_NOW RTLD_NOW
17045# else
17046# ifdef DL_NOW
17047# define LT_DLLAZY_OR_NOW DL_NOW
17048# else
17049# define LT_DLLAZY_OR_NOW 0
17050# endif
17051# endif
17052# endif
17053# endif
17054#endif
17055
17056#ifdef __cplusplus
17057extern "C" void exit (int);
17058#endif
17059
17060void fnord() { int i=42;}
17061int main ()
17062{
17063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17064 int status = $lt_dlunknown;
17065
17066 if (self)
17067 {
17068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17070 /* dlclose (self); */
17071 }
Reid Spencera773bd52006-08-04 18:18:08 +000017072 else
17073 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017074
17075 exit (status);
17076}
17077EOF
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079 (eval $ac_link) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017083 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017084 lt_status=$?
17085 case x$lt_status in
17086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017088 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017089 esac
17090 else :
17091 # compilation failed
17092 lt_cv_dlopen_self=no
17093 fi
17094fi
17095rm -fr conftest*
17096
17097
17098fi
Reid Spencera773bd52006-08-04 18:18:08 +000017099{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17100echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017101
17102 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17104 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17105echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017106if test "${lt_cv_dlopen_self_static+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109 if test "$cross_compiling" = yes; then :
17110 lt_cv_dlopen_self_static=cross
17111else
John Criswell47fdd832003-07-14 16:52:07 +000017112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017113 lt_status=$lt_dlunknown
17114 cat > conftest.$ac_ext <<EOF
Reid Spencer89b0d992006-12-16 22:07:52 +000017115#line 17115 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017116#include "confdefs.h"
17117
17118#if HAVE_DLFCN_H
17119#include <dlfcn.h>
17120#endif
17121
17122#include <stdio.h>
17123
17124#ifdef RTLD_GLOBAL
17125# define LT_DLGLOBAL RTLD_GLOBAL
17126#else
17127# ifdef DL_GLOBAL
17128# define LT_DLGLOBAL DL_GLOBAL
17129# else
17130# define LT_DLGLOBAL 0
17131# endif
17132#endif
17133
17134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17135 find out it does not work in some platform. */
17136#ifndef LT_DLLAZY_OR_NOW
17137# ifdef RTLD_LAZY
17138# define LT_DLLAZY_OR_NOW RTLD_LAZY
17139# else
17140# ifdef DL_LAZY
17141# define LT_DLLAZY_OR_NOW DL_LAZY
17142# else
17143# ifdef RTLD_NOW
17144# define LT_DLLAZY_OR_NOW RTLD_NOW
17145# else
17146# ifdef DL_NOW
17147# define LT_DLLAZY_OR_NOW DL_NOW
17148# else
17149# define LT_DLLAZY_OR_NOW 0
17150# endif
17151# endif
17152# endif
17153# endif
17154#endif
17155
17156#ifdef __cplusplus
17157extern "C" void exit (int);
17158#endif
17159
17160void fnord() { int i=42;}
17161int main ()
17162{
17163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17164 int status = $lt_dlunknown;
17165
17166 if (self)
17167 {
17168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17170 /* dlclose (self); */
17171 }
Reid Spencera773bd52006-08-04 18:18:08 +000017172 else
17173 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017174
17175 exit (status);
17176}
17177EOF
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017183 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017184 lt_status=$?
17185 case x$lt_status in
17186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017188 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017189 esac
17190 else :
17191 # compilation failed
17192 lt_cv_dlopen_self_static=no
17193 fi
17194fi
17195rm -fr conftest*
17196
17197
17198fi
Reid Spencera773bd52006-08-04 18:18:08 +000017199{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17200echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017201 fi
17202
17203 CPPFLAGS="$save_CPPFLAGS"
17204 LDFLAGS="$save_LDFLAGS"
17205 LIBS="$save_LIBS"
17206 ;;
17207 esac
17208
17209 case $lt_cv_dlopen_self in
17210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17211 *) enable_dlopen_self=unknown ;;
17212 esac
17213
17214 case $lt_cv_dlopen_self_static in
17215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17216 *) enable_dlopen_self_static=unknown ;;
17217 esac
17218fi
17219
17220
Reid Spencera773bd52006-08-04 18:18:08 +000017221# Report which library types will actually be built
17222{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17223echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17224{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17225echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017226
Reid Spencera773bd52006-08-04 18:18:08 +000017227{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17228echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017229test "$can_build_shared" = "no" && enable_shared=no
17230
17231# On AIX, shared libraries and static libraries use the same namespace, and
17232# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017233case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017234aix3*)
17235 test "$enable_shared" = yes && enable_static=no
17236 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017237 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017238 postinstall_cmds='$RANLIB $lib'
17239 fi
17240 ;;
17241
Reid Spencer2706f8c2004-09-19 23:53:36 +000017242aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017243 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17244 test "$enable_shared" = yes && enable_static=no
17245 fi
John Criswell7a73b802003-06-30 21:59:07 +000017246 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017247esac
Reid Spencera773bd52006-08-04 18:18:08 +000017248{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17249echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017250
Reid Spencera773bd52006-08-04 18:18:08 +000017251{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17252echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017253# Make sure either enable_shared or enable_static is yes.
17254test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017255{ echo "$as_me:$LINENO: result: $enable_static" >&5
17256echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017257
17258# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017259# libtool distribution, otherwise you forgot to ship ltmain.sh
17260# with your package, and you will get complaints that there are
17261# no rules to generate ltmain.sh.
17262if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017263 # See if we are running on zsh, and set the options which allow our commands through
17264 # without removal of \ escapes.
17265 if test -n "${ZSH_VERSION+set}" ; then
17266 setopt NO_GLOB_SUBST
17267 fi
John Criswell7a73b802003-06-30 21:59:07 +000017268 # Now quote all the things that may contain metacharacters while being
17269 # careful not to overquote the AC_SUBSTed values. We take copies of the
17270 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017271 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 +000017272 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17275 deplibs_check_method reload_flag reload_cmds need_locks \
17276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17277 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017279 old_postinstall_cmds old_postuninstall_cmds \
17280 compiler \
17281 CC \
17282 LD \
17283 lt_prog_compiler_wl \
17284 lt_prog_compiler_pic \
17285 lt_prog_compiler_static \
17286 lt_prog_compiler_no_builtin_flag \
17287 export_dynamic_flag_spec \
17288 thread_safe_flag_spec \
17289 whole_archive_flag_spec \
17290 enable_shared_with_static_runtimes \
17291 old_archive_cmds \
17292 old_archive_from_new_cmds \
17293 predep_objects \
17294 postdep_objects \
17295 predeps \
17296 postdeps \
17297 compiler_lib_search_path \
17298 archive_cmds \
17299 archive_expsym_cmds \
17300 postinstall_cmds \
17301 postuninstall_cmds \
17302 old_archive_from_expsyms_cmds \
17303 allow_undefined_flag \
17304 no_undefined_flag \
17305 export_symbols_cmds \
17306 hardcode_libdir_flag_spec \
17307 hardcode_libdir_flag_spec_ld \
17308 hardcode_libdir_separator \
17309 hardcode_automatic \
17310 module_cmds \
17311 module_expsym_cmds \
17312 lt_cv_prog_compiler_c_o \
17313 exclude_expsyms \
17314 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017315
17316 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017317 old_archive_cmds | \
17318 old_archive_from_new_cmds | \
17319 archive_cmds | \
17320 archive_expsym_cmds | \
17321 module_cmds | \
17322 module_expsym_cmds | \
17323 old_archive_from_expsyms_cmds | \
17324 export_symbols_cmds | \
17325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017326 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017327 old_postinstall_cmds | old_postuninstall_cmds | \
17328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017329 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017330 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 +000017331 ;;
17332 *)
17333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17334 ;;
17335 esac
17336 done
17337
John Criswell47fdd832003-07-14 16:52:07 +000017338 case $lt_echo in
17339 *'\$0 --fallback-echo"')
17340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17341 ;;
17342 esac
17343
17344cfgfile="${ofile}T"
17345 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17346 $rm -f "$cfgfile"
17347 { echo "$as_me:$LINENO: creating $ofile" >&5
17348echo "$as_me: creating $ofile" >&6;}
17349
17350 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017351#! $SHELL
17352
John Criswell47fdd832003-07-14 16:52:07 +000017353# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017354# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17355# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17356#
John Criswell47fdd832003-07-14 16:52:07 +000017357# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17358# Free Software Foundation, Inc.
17359#
17360# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017361# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17362#
17363# This program is free software; you can redistribute it and/or modify
17364# it under the terms of the GNU General Public License as published by
17365# the Free Software Foundation; either version 2 of the License, or
17366# (at your option) any later version.
17367#
17368# This program is distributed in the hope that it will be useful, but
17369# WITHOUT ANY WARRANTY; without even the implied warranty of
17370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17371# General Public License for more details.
17372#
17373# You should have received a copy of the GNU General Public License
17374# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017375# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017376#
17377# As a special exception to the GNU General Public License, if you
17378# distribute this file as part of a program that contains a
17379# configuration script generated by Autoconf, you may include it under
17380# the same distribution terms that you use for the rest of that program.
17381
John Criswell47fdd832003-07-14 16:52:07 +000017382# A sed program that does not truncate output.
17383SED=$lt_SED
17384
John Criswell7a73b802003-06-30 21:59:07 +000017385# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017386Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017387
17388# The HP-UX ksh and POSIX shell print the target directory to stdout
17389# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017390(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017391
John Criswell47fdd832003-07-14 16:52:07 +000017392# The names of the tagged configurations supported by this script.
17393available_tags=
17394
John Criswell7a73b802003-06-30 21:59:07 +000017395# ### BEGIN LIBTOOL CONFIG
17396
17397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17398
17399# Shell to use when invoking shell scripts.
17400SHELL=$lt_SHELL
17401
17402# Whether or not to build shared libraries.
17403build_libtool_libs=$enable_shared
17404
17405# Whether or not to build static libraries.
17406build_old_libs=$enable_static
17407
17408# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017409build_libtool_need_lc=$archive_cmds_need_lc
17410
17411# Whether or not to disallow shared libs when runtime libs are static
17412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017413
17414# Whether or not to optimize for fast installation.
17415fast_install=$enable_fast_install
17416
17417# The host system.
17418host_alias=$host_alias
17419host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017420host_os=$host_os
17421
17422# The build system.
17423build_alias=$build_alias
17424build=$build
17425build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017426
17427# An echo program that does not interpret backslashes.
17428echo=$lt_echo
17429
17430# The archiver.
17431AR=$lt_AR
17432AR_FLAGS=$lt_AR_FLAGS
17433
John Criswell47fdd832003-07-14 16:52:07 +000017434# A C compiler.
17435LTCC=$lt_LTCC
17436
Reid Spencera773bd52006-08-04 18:18:08 +000017437# LTCC compiler flags.
17438LTCFLAGS=$lt_LTCFLAGS
17439
John Criswell47fdd832003-07-14 16:52:07 +000017440# A language-specific compiler.
17441CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017442
17443# Is the compiler the GNU C compiler?
17444with_gcc=$GCC
17445
John Criswell47fdd832003-07-14 16:52:07 +000017446# An ERE matcher.
17447EGREP=$lt_EGREP
17448
John Criswell7a73b802003-06-30 21:59:07 +000017449# The linker used to build libraries.
17450LD=$lt_LD
17451
17452# Whether we need hard or soft links.
17453LN_S=$lt_LN_S
17454
17455# A BSD-compatible nm program.
17456NM=$lt_NM
17457
17458# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017459STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017460
17461# Used to examine libraries when file_magic_cmd begins "file"
17462MAGIC_CMD=$MAGIC_CMD
17463
17464# Used on cygwin: DLL creation program.
17465DLLTOOL="$DLLTOOL"
17466
17467# Used on cygwin: object dumper.
17468OBJDUMP="$OBJDUMP"
17469
17470# Used on cygwin: assembler.
17471AS="$AS"
17472
17473# The name of the directory that contains temporary libtool files.
17474objdir=$objdir
17475
17476# How to create reloadable object files.
17477reload_flag=$lt_reload_flag
17478reload_cmds=$lt_reload_cmds
17479
17480# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017481wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017482
17483# Object file suffix (normally "o").
17484objext="$ac_objext"
17485
17486# Old archive suffix (normally "a").
17487libext="$libext"
17488
John Criswell47fdd832003-07-14 16:52:07 +000017489# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017490shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017491
John Criswell7a73b802003-06-30 21:59:07 +000017492# Executable file suffix (normally "").
17493exeext="$exeext"
17494
17495# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017496pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017497pic_mode=$pic_mode
17498
John Criswell47fdd832003-07-14 16:52:07 +000017499# What is the maximum length of a command?
17500max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017501
John Criswell47fdd832003-07-14 16:52:07 +000017502# Does compiler simultaneously support -c and -o options?
17503compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017504
Reid Spencera773bd52006-08-04 18:18:08 +000017505# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017506need_locks=$lt_need_locks
17507
17508# Do we need the lib prefix for modules?
17509need_lib_prefix=$need_lib_prefix
17510
17511# Do we need a version for libraries?
17512need_version=$need_version
17513
17514# Whether dlopen is supported.
17515dlopen_support=$enable_dlopen
17516
17517# Whether dlopen of programs is supported.
17518dlopen_self=$enable_dlopen_self
17519
17520# Whether dlopen of statically linked programs is supported.
17521dlopen_self_static=$enable_dlopen_self_static
17522
17523# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017524link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017525
17526# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017528
17529# Compiler flag to allow reflexive dlopens.
17530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17531
17532# Compiler flag to generate shared objects directly from archives.
17533whole_archive_flag_spec=$lt_whole_archive_flag_spec
17534
17535# Compiler flag to generate thread-safe objects.
17536thread_safe_flag_spec=$lt_thread_safe_flag_spec
17537
17538# Library versioning type.
17539version_type=$version_type
17540
17541# Format of library name prefix.
17542libname_spec=$lt_libname_spec
17543
17544# List of archive names. First name is the real one, the rest are links.
17545# The last name is the one that the linker finds with -lNAME.
17546library_names_spec=$lt_library_names_spec
17547
17548# The coded name of the library, if different from the real name.
17549soname_spec=$lt_soname_spec
17550
17551# Commands used to build and install an old-style archive.
17552RANLIB=$lt_RANLIB
17553old_archive_cmds=$lt_old_archive_cmds
17554old_postinstall_cmds=$lt_old_postinstall_cmds
17555old_postuninstall_cmds=$lt_old_postuninstall_cmds
17556
17557# Create an old-style archive from a shared archive.
17558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17559
17560# Create a temporary old-style archive to link instead of a shared archive.
17561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17562
17563# Commands used to build and install a shared archive.
17564archive_cmds=$lt_archive_cmds
17565archive_expsym_cmds=$lt_archive_expsym_cmds
17566postinstall_cmds=$lt_postinstall_cmds
17567postuninstall_cmds=$lt_postuninstall_cmds
17568
John Criswell47fdd832003-07-14 16:52:07 +000017569# Commands used to build a loadable module (assumed same as above if empty)
17570module_cmds=$lt_module_cmds
17571module_expsym_cmds=$lt_module_expsym_cmds
17572
John Criswell7a73b802003-06-30 21:59:07 +000017573# Commands to strip libraries.
17574old_striplib=$lt_old_striplib
17575striplib=$lt_striplib
17576
John Criswell47fdd832003-07-14 16:52:07 +000017577# Dependencies to place before the objects being linked to create a
17578# shared library.
17579predep_objects=$lt_predep_objects
17580
17581# Dependencies to place after the objects being linked to create a
17582# shared library.
17583postdep_objects=$lt_postdep_objects
17584
17585# Dependencies to place before the objects being linked to create a
17586# shared library.
17587predeps=$lt_predeps
17588
17589# Dependencies to place after the objects being linked to create a
17590# shared library.
17591postdeps=$lt_postdeps
17592
17593# The library search path used internally by the compiler when linking
17594# a shared library.
17595compiler_lib_search_path=$lt_compiler_lib_search_path
17596
John Criswell7a73b802003-06-30 21:59:07 +000017597# Method to check whether dependent libraries are shared objects.
17598deplibs_check_method=$lt_deplibs_check_method
17599
17600# Command to use when deplibs_check_method == file_magic.
17601file_magic_cmd=$lt_file_magic_cmd
17602
17603# Flag that allows shared libraries with undefined symbols to be built.
17604allow_undefined_flag=$lt_allow_undefined_flag
17605
17606# Flag that forces no undefined symbols.
17607no_undefined_flag=$lt_no_undefined_flag
17608
17609# Commands used to finish a libtool library installation in a directory.
17610finish_cmds=$lt_finish_cmds
17611
17612# Same as above, but a single script fragment to be evaled but not shown.
17613finish_eval=$lt_finish_eval
17614
17615# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017617
17618# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017620
17621# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017623
17624# This is the shared library runtime path variable.
17625runpath_var=$runpath_var
17626
17627# This is the shared library path variable.
17628shlibpath_var=$shlibpath_var
17629
17630# Is shlibpath searched before the hard-coded library search path?
17631shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17632
17633# How to hardcode a shared library path into an executable.
17634hardcode_action=$hardcode_action
17635
17636# Whether we should hardcode library paths into libraries.
17637hardcode_into_libs=$hardcode_into_libs
17638
17639# Flag to hardcode \$libdir into a binary during linking.
17640# This must work even if \$libdir does not exist.
17641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17642
John Criswell47fdd832003-07-14 16:52:07 +000017643# If ld is used when linking, flag to hardcode \$libdir into
17644# a binary during linking. This must work even if \$libdir does
17645# not exist.
17646hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17647
John Criswell7a73b802003-06-30 21:59:07 +000017648# Whether we need a single -rpath flag with a separated argument.
17649hardcode_libdir_separator=$lt_hardcode_libdir_separator
17650
John Criswell47fdd832003-07-14 16:52:07 +000017651# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017652# resulting binary.
17653hardcode_direct=$hardcode_direct
17654
17655# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17656# resulting binary.
17657hardcode_minus_L=$hardcode_minus_L
17658
17659# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17660# the resulting binary.
17661hardcode_shlibpath_var=$hardcode_shlibpath_var
17662
John Criswell47fdd832003-07-14 16:52:07 +000017663# Set to yes if building a shared library automatically hardcodes DIR into the library
17664# and all subsequent libraries and executables linked against it.
17665hardcode_automatic=$hardcode_automatic
17666
John Criswell7a73b802003-06-30 21:59:07 +000017667# Variables whose values should be saved in libtool wrapper scripts and
17668# restored at relink time.
17669variables_saved_for_relink="$variables_saved_for_relink"
17670
17671# Whether libtool must link a program against all its dependency libraries.
17672link_all_deplibs=$link_all_deplibs
17673
17674# Compile-time system search path for libraries
17675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17676
17677# Run-time system search path for libraries
17678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17679
17680# Fix the shell variable \$srcfile for the compiler.
17681fix_srcfile_path="$fix_srcfile_path"
17682
17683# Set to yes if exported symbols are required.
17684always_export_symbols=$always_export_symbols
17685
17686# The commands to list exported symbols.
17687export_symbols_cmds=$lt_export_symbols_cmds
17688
17689# The commands to extract the exported symbol list from a shared archive.
17690extract_expsyms_cmds=$lt_extract_expsyms_cmds
17691
17692# Symbols that should not be listed in the preloaded symbols.
17693exclude_expsyms=$lt_exclude_expsyms
17694
17695# Symbols that must always be exported.
17696include_expsyms=$lt_include_expsyms
17697
17698# ### END LIBTOOL CONFIG
17699
17700__EOF__
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702
John Criswell7a73b802003-06-30 21:59:07 +000017703 case $host_os in
17704 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017705 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017706
17707# AIX sometimes has problems with the GCC collect2 program. For some
17708# reason, if we set the COLLECT_NAMES environment variable, the problems
17709# vanish in a puff of smoke.
17710if test "X${COLLECT_NAMES+set}" != Xset; then
17711 COLLECT_NAMES=
17712 export COLLECT_NAMES
17713fi
17714EOF
17715 ;;
17716 esac
17717
John Criswell7a73b802003-06-30 21:59:07 +000017718 # We use sed instead of cat because bash on DJGPP gets confused if
17719 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17720 # text mode, it properly converts lines to CR/LF. This bash problem
17721 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017722 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017723
John Criswell47fdd832003-07-14 16:52:07 +000017724 mv -f "$cfgfile" "$ofile" || \
17725 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017726 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017727
17728else
17729 # If there is no Makefile yet, we rely on a make rule to execute
17730 # `config.status --recheck' to rerun these tests and create the
17731 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17733 if test -f "$ltmain_in"; then
17734 test -f Makefile && make "$ltmain"
17735 fi
John Criswell7a73b802003-06-30 21:59:07 +000017736fi
John Criswell7a73b802003-06-30 21:59:07 +000017737
17738
John Criswell47fdd832003-07-14 16:52:07 +000017739ac_ext=c
17740ac_cpp='$CPP $CPPFLAGS'
17741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743ac_compiler_gnu=$ac_cv_c_compiler_gnu
17744
17745CC="$lt_save_CC"
17746
17747
Reid Spencera773bd52006-08-04 18:18:08 +000017748# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017749if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017750 withval=$with_tags; tagnames="$withval"
17751fi
17752
John Criswell47fdd832003-07-14 16:52:07 +000017753
17754if test -f "$ltmain" && test -n "$tagnames"; then
17755 if test ! -f "${ofile}"; then
17756 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17757echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17758 fi
17759
17760 if test -z "$LTCC"; then
17761 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17762 if test -z "$LTCC"; then
17763 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17764echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17765 else
17766 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17767echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17768 fi
17769 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017770 if test -z "$LTCFLAGS"; then
17771 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17772 fi
John Criswell47fdd832003-07-14 16:52:07 +000017773
17774 # Extract list of available tagged configurations in $ofile.
17775 # Note that this assumes the entire list is on one line.
17776 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17777
17778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17779 for tagname in $tagnames; do
17780 IFS="$lt_save_ifs"
17781 # Check whether tagname contains only valid characters
17782 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17783 "") ;;
17784 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17785echo "$as_me: error: invalid tag name: $tagname" >&2;}
17786 { (exit 1); exit 1; }; }
17787 ;;
17788 esac
17789
17790 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17791 then
17792 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17793echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17794 { (exit 1); exit 1; }; }
17795 fi
17796
17797 # Update the list of available tags.
17798 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017799 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017800
17801 case $tagname in
17802 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17805 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017806 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017807ac_cpp='$CXXCPP $CPPFLAGS'
17808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17811
17812
17813
17814
17815archive_cmds_need_lc_CXX=no
17816allow_undefined_flag_CXX=
17817always_export_symbols_CXX=no
17818archive_expsym_cmds_CXX=
17819export_dynamic_flag_spec_CXX=
17820hardcode_direct_CXX=no
17821hardcode_libdir_flag_spec_CXX=
17822hardcode_libdir_flag_spec_ld_CXX=
17823hardcode_libdir_separator_CXX=
17824hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017825hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017826hardcode_automatic_CXX=no
17827module_cmds_CXX=
17828module_expsym_cmds_CXX=
17829link_all_deplibs_CXX=unknown
17830old_archive_cmds_CXX=$old_archive_cmds
17831no_undefined_flag_CXX=
17832whole_archive_flag_spec_CXX=
17833enable_shared_with_static_runtimes_CXX=no
17834
17835# Dependencies to place before and after the object being linked:
17836predep_objects_CXX=
17837postdep_objects_CXX=
17838predeps_CXX=
17839postdeps_CXX=
17840compiler_lib_search_path_CXX=
17841
17842# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017843ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017844
17845# Object file extension for compiled C++ test sources.
17846objext=o
17847objext_CXX=$objext
17848
17849# Code to be used in simple compile tests
17850lt_simple_compile_test_code="int some_variable = 0;\n"
17851
17852# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017853lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017854
17855# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17856
17857# If no C compiler was specified, use CC.
17858LTCC=${LTCC-"$CC"}
17859
Reid Spencera773bd52006-08-04 18:18:08 +000017860# If no C compiler flags were specified, use CFLAGS.
17861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17862
John Criswell47fdd832003-07-14 16:52:07 +000017863# Allow CC to be a program name with arguments.
17864compiler=$CC
17865
17866
Reid Spencera773bd52006-08-04 18:18:08 +000017867# save warnings/boilerplate of simple test code
17868ac_outfile=conftest.$ac_objext
17869printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17871_lt_compiler_boilerplate=`cat conftest.err`
17872$rm conftest*
17873
17874ac_outfile=conftest.$ac_objext
17875printf "$lt_simple_link_test_code" >conftest.$ac_ext
17876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17877_lt_linker_boilerplate=`cat conftest.err`
17878$rm conftest*
17879
17880
John Criswell47fdd832003-07-14 16:52:07 +000017881# Allow CC to be a program name with arguments.
17882lt_save_CC=$CC
17883lt_save_LD=$LD
17884lt_save_GCC=$GCC
17885GCC=$GXX
17886lt_save_with_gnu_ld=$with_gnu_ld
17887lt_save_path_LD=$lt_cv_path_LD
17888if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17889 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17890else
Reid Spencera773bd52006-08-04 18:18:08 +000017891 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017892fi
17893if test -n "${lt_cv_path_LDCXX+set}"; then
17894 lt_cv_path_LD=$lt_cv_path_LDCXX
17895else
Reid Spencera773bd52006-08-04 18:18:08 +000017896 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017897fi
17898test -z "${LDCXX+set}" || LD=$LDCXX
17899CC=${CXX-"c++"}
17900compiler=$CC
17901compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017902for cc_temp in $compiler""; do
17903 case $cc_temp in
17904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17906 \-*) ;;
17907 *) break;;
17908 esac
17909done
17910cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17911
John Criswell47fdd832003-07-14 16:52:07 +000017912
17913# We don't want -fno-exception wen compiling C++ code, so set the
17914# no_builtin_flag separately
17915if test "$GXX" = yes; then
17916 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17917else
17918 lt_prog_compiler_no_builtin_flag_CXX=
17919fi
17920
17921if test "$GXX" = yes; then
17922 # Set up default GNU C++ configuration
17923
17924
Reid Spencera773bd52006-08-04 18:18:08 +000017925# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017926if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017928else
17929 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017930fi
17931
John Criswell47fdd832003-07-14 16:52:07 +000017932ac_prog=ld
17933if test "$GCC" = yes; then
17934 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017935 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17936echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017937 case $host in
17938 *-*-mingw*)
17939 # gcc leaves a trailing carriage return which upsets mingw
17940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17941 *)
17942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17943 esac
17944 case $ac_prog in
17945 # Accept absolute paths.
17946 [\\/]* | ?:[\\/]*)
17947 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017948 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017949 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17951 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17952 done
17953 test -z "$LD" && LD="$ac_prog"
17954 ;;
17955 "")
17956 # If it fails, then pretend we aren't using GCC.
17957 ac_prog=ld
17958 ;;
17959 *)
17960 # If it is relative, then search for the first ld in PATH.
17961 with_gnu_ld=unknown
17962 ;;
17963 esac
17964elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017965 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17966echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017967else
Reid Spencera773bd52006-08-04 18:18:08 +000017968 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17969echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017970fi
17971if test "${lt_cv_path_LD+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973else
17974 if test -z "$LD"; then
17975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17976 for ac_dir in $PATH; do
17977 IFS="$lt_save_ifs"
17978 test -z "$ac_dir" && ac_dir=.
17979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17980 lt_cv_path_LD="$ac_dir/$ac_prog"
17981 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017982 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017983 # Break only if it was the GNU/non-GNU ld that we prefer.
17984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17985 *GNU* | *'with BFD'*)
17986 test "$with_gnu_ld" != no && break
17987 ;;
17988 *)
17989 test "$with_gnu_ld" != yes && break
17990 ;;
17991 esac
17992 fi
17993 done
17994 IFS="$lt_save_ifs"
17995else
17996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17997fi
17998fi
17999
18000LD="$lt_cv_path_LD"
18001if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018002 { echo "$as_me:$LINENO: result: $LD" >&5
18003echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018004else
Reid Spencera773bd52006-08-04 18:18:08 +000018005 { echo "$as_me:$LINENO: result: no" >&5
18006echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018007fi
18008test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18009echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18010 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018011{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18012echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018013if test "${lt_cv_prog_gnu_ld+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015else
Reid Spencera773bd52006-08-04 18:18:08 +000018016 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018017case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018018*GNU* | *'with BFD'*)
18019 lt_cv_prog_gnu_ld=yes
18020 ;;
18021*)
18022 lt_cv_prog_gnu_ld=no
18023 ;;
18024esac
18025fi
Reid Spencera773bd52006-08-04 18:18:08 +000018026{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18027echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018028with_gnu_ld=$lt_cv_prog_gnu_ld
18029
18030
18031
18032 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18033 # archiving commands below assume that GNU ld is being used.
18034 if test "$with_gnu_ld" = yes; then
18035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 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'
18037
18038 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18040
18041 # If archive_cmds runs LD, not CC, wlarc should be empty
18042 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18043 # investigate it a little bit more. (MM)
18044 wlarc='${wl}'
18045
18046 # ancient GNU ld didn't support --whole-archive et. al.
18047 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18048 grep 'no-whole-archive' > /dev/null; then
18049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18050 else
18051 whole_archive_flag_spec_CXX=
18052 fi
18053 else
18054 with_gnu_ld=no
18055 wlarc=
18056
18057 # A generic and very simple default shared library creation
18058 # command for GNU C++ for the case where it uses the native
18059 # linker, instead of GNU ld. If possible, this setting should
18060 # overridden to take advantage of the native linker features on
18061 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018063 fi
18064
18065 # Commands to make compiler produce verbose output that lists
18066 # what "hidden" libraries, object files and flags are used when
18067 # linking a shared library.
18068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18069
18070else
18071 GXX=no
18072 with_gnu_ld=no
18073 wlarc=
18074fi
18075
18076# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018077{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18078echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018079ld_shlibs_CXX=yes
18080case $host_os in
18081 aix3*)
18082 # FIXME: insert proper C++ library support
18083 ld_shlibs_CXX=no
18084 ;;
18085 aix4* | aix5*)
18086 if test "$host_cpu" = ia64; then
18087 # On IA64, the linker does run time linking by default, so we don't
18088 # have to do anything special.
18089 aix_use_runtimelinking=no
18090 exp_sym_flag='-Bexport'
18091 no_entry_flag=""
18092 else
18093 aix_use_runtimelinking=no
18094
18095 # Test if we are trying to use run time linking or normal
18096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097 # need to do runtime linking.
18098 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099 for ld_flag in $LDFLAGS; do
18100 case $ld_flag in
18101 *-brtl*)
18102 aix_use_runtimelinking=yes
18103 break
18104 ;;
18105 esac
18106 done
Reid Spencera773bd52006-08-04 18:18:08 +000018107 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018108 esac
18109
18110 exp_sym_flag='-bexport'
18111 no_entry_flag='-bnoentry'
18112 fi
18113
18114 # When large executables or shared objects are built, AIX ld can
18115 # have problems creating the table of contents. If linking a library
18116 # or program results in "error TOC overflow" add -mminimal-toc to
18117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18119
18120 archive_cmds_CXX=''
18121 hardcode_direct_CXX=yes
18122 hardcode_libdir_separator_CXX=':'
18123 link_all_deplibs_CXX=yes
18124
18125 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018126 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018127 # We only want to do this on AIX 4.2 and lower, the check
18128 # below for broken collect2 doesn't work under 4.3+
18129 collect2name=`${CC} -print-prog-name=collect2`
18130 if test -f "$collect2name" && \
18131 strings "$collect2name" | grep resolve_lib_name >/dev/null
18132 then
18133 # We have reworked collect2
18134 hardcode_direct_CXX=yes
18135 else
18136 # We have old collect2
18137 hardcode_direct_CXX=unsupported
18138 # It fails to find uninstalled libraries when the uninstalled
18139 # path is not listed in the libpath. Setting hardcode_minus_L
18140 # to unsupported forces relinking
18141 hardcode_minus_L_CXX=yes
18142 hardcode_libdir_flag_spec_CXX='-L$libdir'
18143 hardcode_libdir_separator_CXX=
18144 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018145 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018146 esac
18147 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018148 if test "$aix_use_runtimelinking" = yes; then
18149 shared_flag="$shared_flag "'${wl}-G'
18150 fi
John Criswell47fdd832003-07-14 16:52:07 +000018151 else
18152 # not using gcc
18153 if test "$host_cpu" = ia64; then
18154 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155 # chokes on -Wl,-G. The following line is correct:
18156 shared_flag='-G'
18157 else
18158 if test "$aix_use_runtimelinking" = yes; then
18159 shared_flag='${wl}-G'
18160 else
18161 shared_flag='${wl}-bM:SRE'
18162 fi
18163 fi
18164 fi
18165
18166 # It seems that -bexpall does not export symbols beginning with
18167 # underscore (_), so it is better to generate a list of symbols to export.
18168 always_export_symbols_CXX=yes
18169 if test "$aix_use_runtimelinking" = yes; then
18170 # Warning - without using the other runtime loading flags (-brtl),
18171 # -berok will link without error, but may produce a broken library.
18172 allow_undefined_flag_CXX='-berok'
18173 # Determine the default libpath from the value encoded in an empty executable.
18174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018175/* confdefs.h. */
18176_ACEOF
18177cat confdefs.h >>conftest.$ac_ext
18178cat >>conftest.$ac_ext <<_ACEOF
18179/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018180
John Criswell47fdd832003-07-14 16:52:07 +000018181int
18182main ()
18183{
18184
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018190if { (ac_try="$ac_link"
18191case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194esac
18195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217esac
18218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223
18224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18225}'`
18226# Check for a 64-bit object if we didn't find anything.
18227if 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; }
18228}'`; fi
18229else
18230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018231sed 's/^/| /' conftest.$ac_ext >&5
18232
Reid Spencera773bd52006-08-04 18:18:08 +000018233
John Criswell47fdd832003-07-14 16:52:07 +000018234fi
Reid Spencera773bd52006-08-04 18:18:08 +000018235
18236rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018237 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018238if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18239
18240 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18241
Reid Spencera773bd52006-08-04 18:18:08 +000018242 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 +000018243 else
18244 if test "$host_cpu" = ia64; then
18245 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18246 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018247 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 +000018248 else
18249 # Determine the default libpath from the value encoded in an empty executable.
18250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018256
John Criswell47fdd832003-07-14 16:52:07 +000018257int
18258main ()
18259{
18260
18261 ;
18262 return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018266if { (ac_try="$ac_link"
18267case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299
18300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18301}'`
18302# Check for a 64-bit object if we didn't find anything.
18303if 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; }
18304}'`; fi
18305else
18306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018307sed 's/^/| /' conftest.$ac_ext >&5
18308
Reid Spencera773bd52006-08-04 18:18:08 +000018309
John Criswell47fdd832003-07-14 16:52:07 +000018310fi
Reid Spencera773bd52006-08-04 18:18:08 +000018311
18312rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018313 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18315
18316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18317 # Warning - without using the other run time loading flags,
18318 # -berok will link without error, but may produce a broken library.
18319 no_undefined_flag_CXX=' ${wl}-bernotok'
18320 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018321 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018322 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018323 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018324 # This is similar to how AIX traditionally builds its shared libraries.
18325 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 +000018326 fi
18327 fi
18328 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018329
18330 beos*)
18331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18332 allow_undefined_flag_CXX=unsupported
18333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18334 # support --undefined. This deserves some investigation. FIXME
18335 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18336 else
18337 ld_shlibs_CXX=no
18338 fi
18339 ;;
18340
John Criswell47fdd832003-07-14 16:52:07 +000018341 chorus*)
18342 case $cc_basename in
18343 *)
18344 # FIXME: insert proper C++ library support
18345 ld_shlibs_CXX=no
18346 ;;
18347 esac
18348 ;;
18349
18350 cygwin* | mingw* | pw32*)
18351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18352 # as there is no search path for DLLs.
18353 hardcode_libdir_flag_spec_CXX='-L$libdir'
18354 allow_undefined_flag_CXX=unsupported
18355 always_export_symbols_CXX=no
18356 enable_shared_with_static_runtimes_CXX=yes
18357
18358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018359 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 +000018360 # If the export-symbols file already is a .def file (1st line
18361 # is EXPORTS), use it as is; otherwise, prepend...
18362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18363 cp $export_symbols $output_objdir/$soname.def;
18364 else
18365 echo EXPORTS > $output_objdir/$soname.def;
18366 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018367 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018368 $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 +000018369 else
18370 ld_shlibs_CXX=no
18371 fi
18372 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018373 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018374 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018375 rhapsody* | darwin1.[012])
18376 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18377 ;;
18378 *) # Darwin 1.3 on
18379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18381 else
18382 case ${MACOSX_DEPLOYMENT_TARGET} in
18383 10.[012])
18384 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18385 ;;
18386 10.*)
18387 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18388 ;;
18389 esac
18390 fi
18391 ;;
18392 esac
18393 archive_cmds_need_lc_CXX=no
18394 hardcode_direct_CXX=no
18395 hardcode_automatic_CXX=yes
18396 hardcode_shlibpath_var_CXX=unsupported
18397 whole_archive_flag_spec_CXX=''
18398 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018399
Reid Spencer2706f8c2004-09-19 23:53:36 +000018400 if test "$GXX" = yes ; then
18401 lt_int_apple_cc_single_mod=no
18402 output_verbose_link_cmd='echo'
18403 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18404 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018405 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407 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 +000018408 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018409 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 +000018410 fi
18411 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018412 # 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 +000018413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018414 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 +000018415 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018416 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 +000018417 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018418 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 +000018419 else
Reid Spencera773bd52006-08-04 18:18:08 +000018420 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018421 xlc*)
18422 output_verbose_link_cmd='echo'
18423 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'
18424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018425 # 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 +000018426 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}'
18427 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 +000018428 ;;
18429 *)
18430 ld_shlibs_CXX=no
18431 ;;
18432 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018433 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018434 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018435
18436 dgux*)
18437 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018438 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018439 # FIXME: insert proper C++ library support
18440 ld_shlibs_CXX=no
18441 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018442 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018443 # Green Hills C++ Compiler
18444 # FIXME: insert proper C++ library support
18445 ld_shlibs_CXX=no
18446 ;;
18447 *)
18448 # FIXME: insert proper C++ library support
18449 ld_shlibs_CXX=no
18450 ;;
18451 esac
18452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018453 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018454 # C++ shared libraries reported to be fairly broken before switch to ELF
18455 ld_shlibs_CXX=no
18456 ;;
18457 freebsd-elf*)
18458 archive_cmds_need_lc_CXX=no
18459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018460 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018461 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18462 # conventions
18463 ld_shlibs_CXX=yes
18464 ;;
18465 gnu*)
18466 ;;
18467 hpux9*)
18468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18469 hardcode_libdir_separator_CXX=:
18470 export_dynamic_flag_spec_CXX='${wl}-E'
18471 hardcode_direct_CXX=yes
18472 hardcode_minus_L_CXX=yes # Not in the search PATH,
18473 # but as the default
18474 # location of the library.
18475
18476 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018477 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018478 # FIXME: insert proper C++ library support
18479 ld_shlibs_CXX=no
18480 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018481 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018482 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 +000018483 # Commands to make compiler produce verbose output that lists
18484 # what "hidden" libraries, object files and flags are used when
18485 # linking a shared library.
18486 #
18487 # There doesn't appear to be a way to prevent this compiler from
18488 # explicitly linking system object files so we need to strip them
18489 # from the output so that they don't get included in the library
18490 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018491 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 +000018492 ;;
18493 *)
18494 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018495 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 +000018496 else
18497 # FIXME: insert proper C++ library support
18498 ld_shlibs_CXX=no
18499 fi
18500 ;;
18501 esac
18502 ;;
18503 hpux10*|hpux11*)
18504 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018505 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18506 hardcode_libdir_separator_CXX=:
18507
18508 case $host_cpu in
18509 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018510 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018511 ;;
18512 *)
John Criswell47fdd832003-07-14 16:52:07 +000018513 export_dynamic_flag_spec_CXX='${wl}-E'
18514 ;;
18515 esac
18516 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018517 case $host_cpu in
18518 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018519 hardcode_direct_CXX=no
18520 hardcode_shlibpath_var_CXX=no
18521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018522 *)
18523 hardcode_direct_CXX=yes
18524 hardcode_minus_L_CXX=yes # Not in the search PATH,
18525 # but as the default
18526 # location of the library.
18527 ;;
18528 esac
18529
18530 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018531 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018532 # FIXME: insert proper C++ library support
18533 ld_shlibs_CXX=no
18534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018535 aCC*)
18536 case $host_cpu in
18537 hppa*64*)
18538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18539 ;;
18540 ia64*)
18541 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 +000018542 ;;
18543 *)
18544 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18545 ;;
18546 esac
18547 # Commands to make compiler produce verbose output that lists
18548 # what "hidden" libraries, object files and flags are used when
18549 # linking a shared library.
18550 #
18551 # There doesn't appear to be a way to prevent this compiler from
18552 # explicitly linking system object files so we need to strip them
18553 # from the output so that they don't get included in the library
18554 # dependencies.
18555 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'
18556 ;;
18557 *)
18558 if test "$GXX" = yes; then
18559 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018560 case $host_cpu in
18561 hppa*64*)
18562 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18563 ;;
18564 ia64*)
18565 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 +000018566 ;;
18567 *)
18568 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'
18569 ;;
18570 esac
18571 fi
18572 else
18573 # FIXME: insert proper C++ library support
18574 ld_shlibs_CXX=no
18575 fi
18576 ;;
18577 esac
18578 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018579 interix3*)
18580 hardcode_direct_CXX=no
18581 hardcode_shlibpath_var_CXX=no
18582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583 export_dynamic_flag_spec_CXX='${wl}-E'
18584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585 # Instead, shared libraries are loaded at an image base (0x10000000 by
18586 # default) and relocated if they conflict, which is a slow very memory
18587 # consuming and fragmenting process. To avoid this, we pick a random,
18588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18590 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'
18591 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'
18592 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018593 irix5* | irix6*)
18594 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018595 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018596 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018597 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 +000018598
18599 # Archives containing C++ object files must be created using
18600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18601 # necessary to make sure instantiated templates are included
18602 # in the archive.
18603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18604 ;;
18605 *)
18606 if test "$GXX" = yes; then
18607 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018608 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 +000018609 else
18610 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'
18611 fi
18612 fi
18613 link_all_deplibs_CXX=yes
18614 ;;
18615 esac
18616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617 hardcode_libdir_separator_CXX=:
18618 ;;
18619 linux*)
18620 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018621 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018622 # Kuck and Associates, Inc. (KAI) C++ Compiler
18623
18624 # KCC will only create a shared library if the output file
18625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18626 # to its proper name (with version) after linking.
18627 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'
18628 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'
18629 # Commands to make compiler produce verbose output that lists
18630 # what "hidden" libraries, object files and flags are used when
18631 # linking a shared library.
18632 #
18633 # There doesn't appear to be a way to prevent this compiler from
18634 # explicitly linking system object files so we need to strip them
18635 # from the output so that they don't get included in the library
18636 # dependencies.
18637 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'
18638
18639 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641
18642 # Archives containing C++ object files must be created using
18643 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018646 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018647 # Intel C++
18648 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018649 # version 8.0 and above of icpc choke on multiply defined symbols
18650 # if we add $predep_objects and $postdep_objects, however 7.1 and
18651 # earlier do not add the objects themselves.
18652 case `$CC -V 2>&1` in
18653 *"Version 7."*)
18654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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'
18656 ;;
18657 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018658 tmp_idyn=
18659 case $host_cpu in
18660 ia64*) tmp_idyn=' -i_dynamic';;
18661 esac
18662 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663 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 +000018664 ;;
18665 esac
John Criswell47fdd832003-07-14 16:52:07 +000018666 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018671 pgCC*)
18672 # Portland Group C++ compiler
18673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18674 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'
18675
18676 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18678 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'
18679 ;;
18680 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018681 # Compaq C++
18682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18683 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'
18684
18685 runpath_var=LD_RUN_PATH
18686 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18687 hardcode_libdir_separator_CXX=:
18688
18689 # Commands to make compiler produce verbose output that lists
18690 # what "hidden" libraries, object files and flags are used when
18691 # linking a shared library.
18692 #
18693 # There doesn't appear to be a way to prevent this compiler from
18694 # explicitly linking system object files so we need to strip them
18695 # from the output so that they don't get included in the library
18696 # dependencies.
18697 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'
18698 ;;
18699 esac
18700 ;;
18701 lynxos*)
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 m88k*)
18706 # FIXME: insert proper C++ library support
18707 ld_shlibs_CXX=no
18708 ;;
18709 mvs*)
18710 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018711 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18714 ;;
18715 *)
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 ;;
18719 esac
18720 ;;
18721 netbsd*)
18722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18723 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18724 wlarc=
18725 hardcode_libdir_flag_spec_CXX='-R$libdir'
18726 hardcode_direct_CXX=yes
18727 hardcode_shlibpath_var_CXX=no
18728 fi
18729 # Workaround some broken pre-1.5 toolchains
18730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18731 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018732 openbsd2*)
18733 # C++ shared libraries are fairly broken
18734 ld_shlibs_CXX=no
18735 ;;
18736 openbsd*)
18737 hardcode_direct_CXX=yes
18738 hardcode_shlibpath_var_CXX=no
18739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18743 export_dynamic_flag_spec_CXX='${wl}-E'
18744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18745 fi
18746 output_verbose_link_cmd='echo'
18747 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018748 osf3*)
18749 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018750 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018751 # Kuck and Associates, Inc. (KAI) C++ Compiler
18752
18753 # KCC will only create a shared library if the output file
18754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18755 # to its proper name (with version) after linking.
18756 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'
18757
18758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18759 hardcode_libdir_separator_CXX=:
18760
18761 # Archives containing C++ object files must be created using
18762 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18764
18765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018766 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018767 # Rational C++ 2.4.1
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018771 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018773 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 +000018774
18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18777
18778 # Commands to make compiler produce verbose output that lists
18779 # what "hidden" libraries, object files and flags are used when
18780 # linking a shared library.
18781 #
18782 # There doesn't appear to be a way to prevent this compiler from
18783 # explicitly linking system object files so we need to strip them
18784 # from the output so that they don't get included in the library
18785 # dependencies.
18786 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'
18787 ;;
18788 *)
18789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018791 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 +000018792
18793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18794 hardcode_libdir_separator_CXX=:
18795
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18800
18801 else
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 fi
18805 ;;
18806 esac
18807 ;;
18808 osf4* | osf5*)
18809 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018810 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018811 # Kuck and Associates, Inc. (KAI) C++ Compiler
18812
18813 # KCC will only create a shared library if the output file
18814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18815 # to its proper name (with version) after linking.
18816 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'
18817
18818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18819 hardcode_libdir_separator_CXX=:
18820
18821 # Archives containing C++ object files must be created using
18822 # the KAI C++ compiler.
18823 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018825 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018826 # Rational C++ 2.4.1
18827 # FIXME: insert proper C++ library support
18828 ld_shlibs_CXX=no
18829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018830 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018831 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018832 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 +000018833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18834 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018835 $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 +000018836 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018837
18838 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18839 hardcode_libdir_separator_CXX=:
18840
18841 # Commands to make compiler produce verbose output that lists
18842 # what "hidden" libraries, object files and flags are used when
18843 # linking a shared library.
18844 #
18845 # There doesn't appear to be a way to prevent this compiler from
18846 # explicitly linking system object files so we need to strip them
18847 # from the output so that they don't get included in the library
18848 # dependencies.
18849 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'
18850 ;;
18851 *)
18852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018854 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 +000018855
18856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18857 hardcode_libdir_separator_CXX=:
18858
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18863
18864 else
18865 # FIXME: insert proper C++ library support
18866 ld_shlibs_CXX=no
18867 fi
18868 ;;
18869 esac
18870 ;;
18871 psos*)
18872 # FIXME: insert proper C++ library support
18873 ld_shlibs_CXX=no
18874 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018875 sunos4*)
18876 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018877 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018878 # Sun C++ 4.x
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018882 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018883 # Lucid
18884 # FIXME: insert proper C++ library support
18885 ld_shlibs_CXX=no
18886 ;;
18887 *)
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 ;;
18891 esac
18892 ;;
18893 solaris*)
18894 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018895 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018896 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018897 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018898 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018899 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 +000018900 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 +000018901 $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 +000018902
18903 hardcode_libdir_flag_spec_CXX='-R$libdir'
18904 hardcode_shlibpath_var_CXX=no
18905 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018906 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018907 *)
18908 # The C++ compiler is used as linker so we must use $wl
18909 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018910 # linker. We must also pass each convience library through
18911 # to the system linker between allextract/defaultextract.
18912 # The C++ compiler will combine linker options so we
18913 # cannot just pass the convience library names through
18914 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018915 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018916 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 +000018917 ;;
18918 esac
18919 link_all_deplibs_CXX=yes
18920
Reid Spencera773bd52006-08-04 18:18:08 +000018921 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018922
18923 # Archives containing C++ object files must be created using
18924 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18925 # necessary to make sure instantiated templates are included
18926 # in the archive.
18927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018929 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018930 # Green Hills C++ Compiler
18931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18932
18933 # The C++ compiler must be used to create the archive.
18934 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18935 ;;
18936 *)
18937 # GNU C++ compiler with Solaris linker
18938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18939 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18940 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018941 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 +000018942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18943 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18944
John Criswell47fdd832003-07-14 16:52:07 +000018945 # Commands to make compiler produce verbose output that lists
18946 # what "hidden" libraries, object files and flags are used when
18947 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018948 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018949 else
18950 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18951 # platform.
18952 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 +000018953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18954 $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 +000018955
18956 # Commands to make compiler produce verbose output that lists
18957 # what "hidden" libraries, object files and flags are used when
18958 # linking a shared library.
18959 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18960 fi
18961
18962 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18963 fi
18964 ;;
18965 esac
18966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18968 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018969 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018970 hardcode_shlibpath_var_CXX=no
18971 runpath_var='LD_RUN_PATH'
18972
18973 case $cc_basename in
18974 CC*)
18975 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18976 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977 ;;
18978 *)
18979 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981 ;;
18982 esac
18983 ;;
18984 sysv5* | sco3.2v5* | sco5v6*)
18985 # Note: We can NOT use -z defs as we might desire, because we do not
18986 # link with -lc, and that would cause any symbols used from libc to
18987 # always be unresolved, which means just about no library would
18988 # ever link correctly. If we're not using GNU ld we use -z text
18989 # though, which does catch some bad symbols but isn't as heavy-handed
18990 # as -z defs.
18991 # For security reasons, it is highly recommended that you always
18992 # use absolute paths for naming shared libraries, and exclude the
18993 # DT_RUNPATH tag from executables and libraries. But doing so
18994 # requires that you compile everything twice, which is a pain.
18995 # So that behaviour is only enabled if SCOABSPATH is set to a
18996 # non-empty value in the environment. Most likely only useful for
18997 # creating official distributions of packages.
18998 # This is a hack until libtool officially supports absolute path
18999 # names for shared libraries.
19000 no_undefined_flag_CXX='${wl}-z,text'
19001 allow_undefined_flag_CXX='${wl}-z,nodefs'
19002 archive_cmds_need_lc_CXX=no
19003 hardcode_shlibpath_var_CXX=no
19004 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005 hardcode_libdir_separator_CXX=':'
19006 link_all_deplibs_CXX=yes
19007 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19008 runpath_var='LD_RUN_PATH'
19009
19010 case $cc_basename in
19011 CC*)
19012 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014 ;;
19015 *)
19016 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018 ;;
19019 esac
John Criswell47fdd832003-07-14 16:52:07 +000019020 ;;
19021 tandem*)
19022 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019023 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019024 # NonStop-UX NCC 3.20
19025 # FIXME: insert proper C++ library support
19026 ld_shlibs_CXX=no
19027 ;;
19028 *)
19029 # FIXME: insert proper C++ library support
19030 ld_shlibs_CXX=no
19031 ;;
19032 esac
19033 ;;
19034 vxworks*)
19035 # FIXME: insert proper C++ library support
19036 ld_shlibs_CXX=no
19037 ;;
19038 *)
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19041 ;;
19042esac
Reid Spencera773bd52006-08-04 18:18:08 +000019043{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19044echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019045test "$ld_shlibs_CXX" = no && can_build_shared=no
19046
19047GCC_CXX="$GXX"
19048LD_CXX="$LD"
19049
John Criswell47fdd832003-07-14 16:52:07 +000019050
19051cat > conftest.$ac_ext <<EOF
19052class Foo
19053{
19054public:
19055 Foo (void) { a = 0; }
19056private:
19057 int a;
19058};
19059EOF
19060
19061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; then
19066 # Parse the compiler output and extract the necessary
19067 # objects, libraries and library flags.
19068
19069 # Sentinel used to keep track of whether or not we are before
19070 # the conftest object file.
19071 pre_test_object_deps_done=no
19072
19073 # The `*' in the case matches for architectures that use `case' in
19074 # $output_verbose_cmd can trigger glob expansion during the loop
19075 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019076 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019077
19078 for p in `eval $output_verbose_link_cmd`; do
19079 case $p in
19080
19081 -L* | -R* | -l*)
19082 # Some compilers place space between "-{L,R}" and the path.
19083 # Remove the space.
19084 if test $p = "-L" \
19085 || test $p = "-R"; then
19086 prev=$p
19087 continue
19088 else
19089 prev=
19090 fi
19091
19092 if test "$pre_test_object_deps_done" = no; then
19093 case $p in
19094 -L* | -R*)
19095 # Internal compiler library paths should come after those
19096 # provided the user. The postdeps already come after the
19097 # user supplied libs so there is no need to process them.
19098 if test -z "$compiler_lib_search_path_CXX"; then
19099 compiler_lib_search_path_CXX="${prev}${p}"
19100 else
19101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19102 fi
19103 ;;
19104 # The "-l" case would never come before the object being
19105 # linked, so don't bother handling this case.
19106 esac
19107 else
19108 if test -z "$postdeps_CXX"; then
19109 postdeps_CXX="${prev}${p}"
19110 else
19111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19112 fi
19113 fi
19114 ;;
19115
19116 *.$objext)
19117 # This assumes that the test object file only shows up
19118 # once in the compiler output.
19119 if test "$p" = "conftest.$objext"; then
19120 pre_test_object_deps_done=yes
19121 continue
19122 fi
19123
19124 if test "$pre_test_object_deps_done" = no; then
19125 if test -z "$predep_objects_CXX"; then
19126 predep_objects_CXX="$p"
19127 else
19128 predep_objects_CXX="$predep_objects_CXX $p"
19129 fi
19130 else
19131 if test -z "$postdep_objects_CXX"; then
19132 postdep_objects_CXX="$p"
19133 else
19134 postdep_objects_CXX="$postdep_objects_CXX $p"
19135 fi
19136 fi
19137 ;;
19138
19139 *) ;; # Ignore the rest.
19140
19141 esac
19142 done
19143
19144 # Clean up.
19145 rm -f a.out a.exe
19146else
19147 echo "libtool.m4: error: problem compiling CXX test program"
19148fi
19149
19150$rm -f confest.$objext
19151
Reid Spencera773bd52006-08-04 18:18:08 +000019152# PORTME: override above test on systems where it is broken
19153case $host_os in
19154interix3*)
19155 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19156 # hack all around it, let's just trust "g++" to DTRT.
19157 predep_objects_CXX=
19158 postdep_objects_CXX=
19159 postdeps_CXX=
19160 ;;
19161
19162solaris*)
19163 case $cc_basename in
19164 CC*)
19165 # Adding this requires a known-good setup of shared libraries for
19166 # Sun compiler versions before 5.6, else PIC objects from an old
19167 # archive will be linked into the output, leading to subtle bugs.
19168 postdeps_CXX='-lCstd -lCrun'
19169 ;;
19170 esac
19171 ;;
19172esac
19173
19174
John Criswell47fdd832003-07-14 16:52:07 +000019175case " $postdeps_CXX " in
19176*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19177esac
19178
19179lt_prog_compiler_wl_CXX=
19180lt_prog_compiler_pic_CXX=
19181lt_prog_compiler_static_CXX=
19182
Reid Spencera773bd52006-08-04 18:18:08 +000019183{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19184echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019185
19186 # C++ specific cases for pic, static, wl, etc.
19187 if test "$GXX" = yes; then
19188 lt_prog_compiler_wl_CXX='-Wl,'
19189 lt_prog_compiler_static_CXX='-static'
19190
19191 case $host_os in
19192 aix*)
19193 # All AIX code is PIC.
19194 if test "$host_cpu" = ia64; then
19195 # AIX 5 now supports IA64 processor
19196 lt_prog_compiler_static_CXX='-Bstatic'
19197 fi
19198 ;;
19199 amigaos*)
19200 # FIXME: we need at least 68020 code to build shared libraries, but
19201 # adding the `-m68020' flag to GCC prevents building anything better,
19202 # like `-m68040'.
19203 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19204 ;;
19205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19206 # PIC is the default for these OSes.
19207 ;;
19208 mingw* | os2* | pw32*)
19209 # This hack is so that the source file can tell whether it is being
19210 # built for inclusion in a dll (and should export symbols for example).
19211 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19212 ;;
19213 darwin* | rhapsody*)
19214 # PIC is the default on this platform
19215 # Common symbols not allowed in MH_DYLIB files
19216 lt_prog_compiler_pic_CXX='-fno-common'
19217 ;;
19218 *djgpp*)
19219 # DJGPP does not support shared libraries at all
19220 lt_prog_compiler_pic_CXX=
19221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019222 interix3*)
19223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19224 # Instead, we relocate shared libraries at runtime.
19225 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019226 sysv4*MP*)
19227 if test -d /usr/nec; then
19228 lt_prog_compiler_pic_CXX=-Kconform_pic
19229 fi
19230 ;;
19231 hpux*)
19232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19233 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019234 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019235 hppa*64*|ia64*)
19236 ;;
19237 *)
19238 lt_prog_compiler_pic_CXX='-fPIC'
19239 ;;
19240 esac
19241 ;;
19242 *)
19243 lt_prog_compiler_pic_CXX='-fPIC'
19244 ;;
19245 esac
19246 else
19247 case $host_os in
19248 aix4* | aix5*)
19249 # All AIX code is PIC.
19250 if test "$host_cpu" = ia64; then
19251 # AIX 5 now supports IA64 processor
19252 lt_prog_compiler_static_CXX='-Bstatic'
19253 else
19254 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19255 fi
19256 ;;
19257 chorus*)
19258 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019259 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019260 # Green Hills C++ Compiler
19261 # _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"
19262 ;;
19263 esac
19264 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019265 darwin*)
19266 # PIC is the default on this platform
19267 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019268 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019269 xlc*)
19270 lt_prog_compiler_pic_CXX='-qnocommon'
19271 lt_prog_compiler_wl_CXX='-Wl,'
19272 ;;
19273 esac
19274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019275 dgux*)
19276 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019277 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019278 lt_prog_compiler_pic_CXX='-KPIC'
19279 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019280 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019281 # Green Hills C++ Compiler
19282 lt_prog_compiler_pic_CXX='-pic'
19283 ;;
19284 *)
19285 ;;
19286 esac
19287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019288 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019289 # FreeBSD uses GNU C++
19290 ;;
19291 hpux9* | hpux10* | hpux11*)
19292 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019293 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019294 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019295 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019296 if test "$host_cpu" != ia64; then
19297 lt_prog_compiler_pic_CXX='+Z'
19298 fi
19299 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019300 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019301 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019302 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19303 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019304 hppa*64*|ia64*)
19305 # +Z the default
19306 ;;
19307 *)
19308 lt_prog_compiler_pic_CXX='+Z'
19309 ;;
19310 esac
19311 ;;
19312 *)
19313 ;;
19314 esac
19315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019316 interix*)
19317 # This is c89, which is MS Visual C++ (no shared libs)
19318 # Anyone wants to do a port?
19319 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019320 irix5* | irix6* | nonstopux*)
19321 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019322 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019323 lt_prog_compiler_wl_CXX='-Wl,'
19324 lt_prog_compiler_static_CXX='-non_shared'
19325 # CC pic flag -KPIC is the default.
19326 ;;
19327 *)
19328 ;;
19329 esac
19330 ;;
19331 linux*)
19332 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019333 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019334 # KAI C++ Compiler
19335 lt_prog_compiler_wl_CXX='--backend -Wl,'
19336 lt_prog_compiler_pic_CXX='-fPIC'
19337 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019338 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019339 # Intel C++
19340 lt_prog_compiler_wl_CXX='-Wl,'
19341 lt_prog_compiler_pic_CXX='-KPIC'
19342 lt_prog_compiler_static_CXX='-static'
19343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019344 pgCC*)
19345 # Portland Group C++ compiler.
19346 lt_prog_compiler_wl_CXX='-Wl,'
19347 lt_prog_compiler_pic_CXX='-fpic'
19348 lt_prog_compiler_static_CXX='-Bstatic'
19349 ;;
19350 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 # Compaq C++
19352 # Make sure the PIC flag is empty. It appears that all Alpha
19353 # Linux and Compaq Tru64 Unix objects are PIC.
19354 lt_prog_compiler_pic_CXX=
19355 lt_prog_compiler_static_CXX='-non_shared'
19356 ;;
19357 *)
19358 ;;
19359 esac
19360 ;;
19361 lynxos*)
19362 ;;
19363 m88k*)
19364 ;;
19365 mvs*)
19366 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019367 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019368 lt_prog_compiler_pic_CXX='-W c,exportall'
19369 ;;
19370 *)
19371 ;;
19372 esac
19373 ;;
19374 netbsd*)
19375 ;;
19376 osf3* | osf4* | osf5*)
19377 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019378 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019379 lt_prog_compiler_wl_CXX='--backend -Wl,'
19380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019381 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 # Rational C++ 2.4.1
19383 lt_prog_compiler_pic_CXX='-pic'
19384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019385 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019386 # Digital/Compaq C++
19387 lt_prog_compiler_wl_CXX='-Wl,'
19388 # Make sure the PIC flag is empty. It appears that all Alpha
19389 # Linux and Compaq Tru64 Unix objects are PIC.
19390 lt_prog_compiler_pic_CXX=
19391 lt_prog_compiler_static_CXX='-non_shared'
19392 ;;
19393 *)
19394 ;;
19395 esac
19396 ;;
19397 psos*)
19398 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019399 solaris*)
19400 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019401 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 # Sun C++ 4.2, 5.x and Centerline C++
19403 lt_prog_compiler_pic_CXX='-KPIC'
19404 lt_prog_compiler_static_CXX='-Bstatic'
19405 lt_prog_compiler_wl_CXX='-Qoption ld '
19406 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019407 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019408 # Green Hills C++ Compiler
19409 lt_prog_compiler_pic_CXX='-PIC'
19410 ;;
19411 *)
19412 ;;
19413 esac
19414 ;;
19415 sunos4*)
19416 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019417 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019418 # Sun C++ 4.x
19419 lt_prog_compiler_pic_CXX='-pic'
19420 lt_prog_compiler_static_CXX='-Bstatic'
19421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019422 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019423 # Lucid
19424 lt_prog_compiler_pic_CXX='-pic'
19425 ;;
19426 *)
19427 ;;
19428 esac
19429 ;;
19430 tandem*)
19431 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019432 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019433 # NonStop-UX NCC 3.20
19434 lt_prog_compiler_pic_CXX='-KPIC'
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19441 case $cc_basename in
19442 CC*)
19443 lt_prog_compiler_wl_CXX='-Wl,'
19444 lt_prog_compiler_pic_CXX='-KPIC'
19445 lt_prog_compiler_static_CXX='-Bstatic'
19446 ;;
19447 esac
John Criswell47fdd832003-07-14 16:52:07 +000019448 ;;
19449 vxworks*)
19450 ;;
19451 *)
19452 lt_prog_compiler_can_build_shared_CXX=no
19453 ;;
19454 esac
19455 fi
19456
Reid Spencera773bd52006-08-04 18:18:08 +000019457{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19458echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019459
19460#
19461# Check to make sure the PIC flag actually works.
19462#
19463if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019464
Reid Spencera773bd52006-08-04 18:18:08 +000019465{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19466echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019467if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469else
19470 lt_prog_compiler_pic_works_CXX=no
19471 ac_outfile=conftest.$ac_objext
19472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19474 # Insert the option either (1) after the last *FLAGS variable, or
19475 # (2) before a word containing "conftest.", or (3) at the end.
19476 # Note that $ac_compile itself does not contain backslashes and begins
19477 # with a dollar sign (not a hyphen), so the echo should work correctly.
19478 # The option is referenced via a variable to avoid confusing sed.
19479 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000019483 (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019484 (eval "$lt_compile" 2>conftest.err)
19485 ac_status=$?
19486 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000019487 echo "$as_me:19487: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019488 if (exit $ac_status) && test -s "$ac_outfile"; then
19489 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019490 # So say no if there are warnings other than the usual output.
19491 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019494 lt_prog_compiler_pic_works_CXX=yes
19495 fi
19496 fi
19497 $rm conftest*
19498
19499fi
Reid Spencera773bd52006-08-04 18:18:08 +000019500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19501echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019502
19503if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19504 case $lt_prog_compiler_pic_CXX in
19505 "" | " "*) ;;
19506 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19507 esac
19508else
19509 lt_prog_compiler_pic_CXX=
19510 lt_prog_compiler_can_build_shared_CXX=no
19511fi
19512
19513fi
Reid Spencera773bd52006-08-04 18:18:08 +000019514case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019515 # For platforms which do not support PIC, -DPIC is meaningless:
19516 *djgpp*)
19517 lt_prog_compiler_pic_CXX=
19518 ;;
19519 *)
19520 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19521 ;;
19522esac
19523
Reid Spencera773bd52006-08-04 18:18:08 +000019524#
19525# Check to make sure the static flag actually works.
19526#
19527wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19528{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19529echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19530if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532else
19533 lt_prog_compiler_static_works_CXX=no
19534 save_LDFLAGS="$LDFLAGS"
19535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19536 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19538 # The linker can only warn and ignore the option if not recognized
19539 # So say no if there are warnings
19540 if test -s conftest.err; then
19541 # Append any errors to the config.log.
19542 cat conftest.err 1>&5
19543 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19545 if diff conftest.exp conftest.er2 >/dev/null; then
19546 lt_prog_compiler_static_works_CXX=yes
19547 fi
19548 else
19549 lt_prog_compiler_static_works_CXX=yes
19550 fi
19551 fi
19552 $rm conftest*
19553 LDFLAGS="$save_LDFLAGS"
19554
19555fi
19556{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19557echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19558
19559if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19560 :
19561else
19562 lt_prog_compiler_static_CXX=
19563fi
19564
19565
19566{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19567echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019568if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571 lt_cv_prog_compiler_c_o_CXX=no
19572 $rm -r conftest 2>/dev/null
19573 mkdir conftest
19574 cd conftest
19575 mkdir out
19576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19577
John Criswell47fdd832003-07-14 16:52:07 +000019578 lt_compiler_flag="-o out/conftest2.$ac_objext"
19579 # Insert the option either (1) after the last *FLAGS variable, or
19580 # (2) before a word containing "conftest.", or (3) at the end.
19581 # Note that $ac_compile itself does not contain backslashes and begins
19582 # with a dollar sign (not a hyphen), so the echo should work correctly.
19583 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19586 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000019587 (eval echo "\"\$as_me:19587: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019588 (eval "$lt_compile" 2>out/conftest.err)
19589 ac_status=$?
19590 cat out/conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000019591 echo "$as_me:19591: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19593 then
19594 # The compiler can only warn and ignore the option if not recognized
19595 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019596 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019599 lt_cv_prog_compiler_c_o_CXX=yes
19600 fi
19601 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019602 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019603 $rm conftest*
19604 # SGI C++ compiler will create directory out/ii_files/ for
19605 # template instantiation
19606 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19607 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019608 cd ..
19609 rmdir conftest
19610 $rm conftest*
19611
19612fi
Reid Spencera773bd52006-08-04 18:18:08 +000019613{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19614echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019615
19616
19617hard_links="nottested"
19618if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19619 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019620 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19621echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019622 hard_links=yes
19623 $rm conftest*
19624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19625 touch conftest.a
19626 ln conftest.a conftest.b 2>&5 || hard_links=no
19627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019628 { echo "$as_me:$LINENO: result: $hard_links" >&5
19629echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019630 if test "$hard_links" = no; then
19631 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19632echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19633 need_locks=warn
19634 fi
19635else
19636 need_locks=no
19637fi
19638
Reid Spencera773bd52006-08-04 18:18:08 +000019639{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19640echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019641
19642 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19643 case $host_os in
19644 aix4* | aix5*)
19645 # If we're using GNU nm, then we don't want the "-C" option.
19646 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19647 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19648 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'
19649 else
19650 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'
19651 fi
19652 ;;
19653 pw32*)
19654 export_symbols_cmds_CXX="$ltdll_cmds"
19655 ;;
19656 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019657 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 +000019658 ;;
19659 *)
19660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19661 ;;
19662 esac
19663
Reid Spencera773bd52006-08-04 18:18:08 +000019664{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19665echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019666test "$ld_shlibs_CXX" = no && can_build_shared=no
19667
John Criswell47fdd832003-07-14 16:52:07 +000019668#
19669# Do we need to explicitly link libc?
19670#
19671case "x$archive_cmds_need_lc_CXX" in
19672x|xyes)
19673 # Assume -lc should be added
19674 archive_cmds_need_lc_CXX=yes
19675
19676 if test "$enable_shared" = yes && test "$GCC" = yes; then
19677 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019678 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019679 # FIXME: we may have to deal with multi-command sequences.
19680 ;;
19681 '$CC '*)
19682 # Test whether the compiler implicitly links with -lc since on some
19683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19684 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019685 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19686echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019687 $rm conftest*
19688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19689
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691 (eval $ac_compile) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } 2>conftest.err; then
19695 soname=conftest
19696 lib=conftest
19697 libobjs=conftest.$ac_objext
19698 deplibs=
19699 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019700 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019701 compiler_flags=-v
19702 linker_flags=-v
19703 verstring=
19704 output_objdir=.
19705 libname=conftest
19706 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19707 allow_undefined_flag_CXX=
19708 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19709 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }
19713 then
19714 archive_cmds_need_lc_CXX=no
19715 else
19716 archive_cmds_need_lc_CXX=yes
19717 fi
19718 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19719 else
19720 cat conftest.err 1>&5
19721 fi
19722 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019723 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19724echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019725 ;;
19726 esac
19727 fi
19728 ;;
19729esac
19730
Reid Spencera773bd52006-08-04 18:18:08 +000019731{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19732echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019733library_names_spec=
19734libname_spec='lib$name'
19735soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019736shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019737postinstall_cmds=
19738postuninstall_cmds=
19739finish_cmds=
19740finish_eval=
19741shlibpath_var=
19742shlibpath_overrides_runpath=unknown
19743version_type=none
19744dynamic_linker="$host_os ld.so"
19745sys_lib_dlsearch_path_spec="/lib /usr/lib"
19746if test "$GCC" = yes; then
19747 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19748 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19749 # if the path contains ";" then we assume it to be the separator
19750 # otherwise default to the standard path separator (i.e. ":") - it is
19751 # assumed that no part of a normal pathname contains ";" but that should
19752 # okay in the real world where ";" in dirpaths is itself problematic.
19753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19754 else
19755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19756 fi
19757else
19758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19759fi
19760need_lib_prefix=unknown
19761hardcode_into_libs=no
19762
19763# when you set need_version to no, make sure it does not cause -set_version
19764# flags to be left without arguments
19765need_version=unknown
19766
19767case $host_os in
19768aix3*)
19769 version_type=linux
19770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19771 shlibpath_var=LIBPATH
19772
19773 # AIX 3 has no versioning support, so we append a major version to the name.
19774 soname_spec='${libname}${release}${shared_ext}$major'
19775 ;;
19776
19777aix4* | aix5*)
19778 version_type=linux
19779 need_lib_prefix=no
19780 need_version=no
19781 hardcode_into_libs=yes
19782 if test "$host_cpu" = ia64; then
19783 # AIX 5 supports IA64
19784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19785 shlibpath_var=LD_LIBRARY_PATH
19786 else
19787 # With GCC up to 2.95.x, collect2 would create an import file
19788 # for dependence libraries. The import file would start with
19789 # the line `#! .'. This would cause the generated library to
19790 # depend on `.', always an invalid library. This was fixed in
19791 # development snapshots of GCC prior to 3.0.
19792 case $host_os in
19793 aix4 | aix4.[01] | aix4.[01].*)
19794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19795 echo ' yes '
19796 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19797 :
19798 else
19799 can_build_shared=no
19800 fi
19801 ;;
19802 esac
19803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19804 # soname into executable. Probably we can add versioning support to
19805 # collect2, so additional links can be useful in future.
19806 if test "$aix_use_runtimelinking" = yes; then
19807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19808 # instead of lib<name>.a to let people know that these are not
19809 # typical AIX shared libraries.
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 else
19812 # We preserve .a as extension for shared libraries through AIX4.2
19813 # and later when we are not doing run time linking.
19814 library_names_spec='${libname}${release}.a $libname.a'
19815 soname_spec='${libname}${release}${shared_ext}$major'
19816 fi
19817 shlibpath_var=LIBPATH
19818 fi
19819 ;;
19820
19821amigaos*)
19822 library_names_spec='$libname.ixlibrary $libname.a'
19823 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019824 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 +000019825 ;;
19826
19827beos*)
19828 library_names_spec='${libname}${shared_ext}'
19829 dynamic_linker="$host_os ld.so"
19830 shlibpath_var=LIBRARY_PATH
19831 ;;
19832
Reid Spencer2706f8c2004-09-19 23:53:36 +000019833bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019834 version_type=linux
19835 need_version=no
19836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837 soname_spec='${libname}${release}${shared_ext}$major'
19838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19839 shlibpath_var=LD_LIBRARY_PATH
19840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19842 # the default ld.so.conf also contains /usr/contrib/lib and
19843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19844 # libtool to hard-code these into programs
19845 ;;
19846
19847cygwin* | mingw* | pw32*)
19848 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019849 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019850 need_version=no
19851 need_lib_prefix=no
19852
19853 case $GCC,$host_os in
19854 yes,cygwin* | yes,mingw* | yes,pw32*)
19855 library_names_spec='$libname.dll.a'
19856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019857 postinstall_cmds='base_file=`basename \${file}`~
19858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19859 dldir=$destdir/`dirname \$dlpath`~
19860 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019861 $install_prog $dir/$dlname \$dldir/$dlname~
19862 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19864 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019865 $rm \$dlpath'
19866 shlibpath_overrides_runpath=yes
19867
19868 case $host_os in
19869 cygwin*)
19870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19871 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 +000019872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019873 ;;
19874 mingw*)
19875 # MinGW DLLs use traditional 'lib' prefix
19876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19878 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19879 # It is most probably a Windows format PATH printed by
19880 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19881 # path with ; separators, and with drive letters. We can handle the
19882 # drive letters (cygwin fileutils understands them), so leave them,
19883 # especially as we might pass files found there to a mingw objdump,
19884 # which wouldn't understand a cygwinified path. Ahh.
19885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886 else
19887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19888 fi
19889 ;;
19890 pw32*)
19891 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019892 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 +000019893 ;;
19894 esac
19895 ;;
19896
19897 *)
19898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19899 ;;
19900 esac
19901 dynamic_linker='Win32 ld.exe'
19902 # FIXME: first we should search . and the directory the executable is in
19903 shlibpath_var=PATH
19904 ;;
19905
19906darwin* | rhapsody*)
19907 dynamic_linker="$host_os dyld"
19908 version_type=darwin
19909 need_lib_prefix=no
19910 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019911 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019912 soname_spec='${libname}${release}${major}$shared_ext'
19913 shlibpath_overrides_runpath=yes
19914 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019916 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019917 if test "$GCC" = yes; then
19918 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"`
19919 else
19920 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019921 fi
19922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19923 ;;
19924
19925dgux*)
19926 version_type=linux
19927 need_lib_prefix=no
19928 need_version=no
19929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19930 soname_spec='${libname}${release}${shared_ext}$major'
19931 shlibpath_var=LD_LIBRARY_PATH
19932 ;;
19933
19934freebsd1*)
19935 dynamic_linker=no
19936 ;;
19937
Reid Spencer2706f8c2004-09-19 23:53:36 +000019938kfreebsd*-gnu)
19939 version_type=linux
19940 need_lib_prefix=no
19941 need_version=no
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 shlibpath_overrides_runpath=no
19946 hardcode_into_libs=yes
19947 dynamic_linker='GNU ld.so'
19948 ;;
19949
Reid Spencera773bd52006-08-04 18:18:08 +000019950freebsd* | dragonfly*)
19951 # DragonFly does not have aout. When/if they implement a new
19952 # versioning mechanism, adjust this.
19953 if test -x /usr/bin/objformat; then
19954 objformat=`/usr/bin/objformat`
19955 else
19956 case $host_os in
19957 freebsd[123]*) objformat=aout ;;
19958 *) objformat=elf ;;
19959 esac
19960 fi
John Criswell47fdd832003-07-14 16:52:07 +000019961 version_type=freebsd-$objformat
19962 case $version_type in
19963 freebsd-elf*)
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19965 need_version=no
19966 need_lib_prefix=no
19967 ;;
19968 freebsd-*)
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19970 need_version=yes
19971 ;;
19972 esac
19973 shlibpath_var=LD_LIBRARY_PATH
19974 case $host_os in
19975 freebsd2*)
19976 shlibpath_overrides_runpath=yes
19977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019978 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019979 shlibpath_overrides_runpath=yes
19980 hardcode_into_libs=yes
19981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019984 shlibpath_overrides_runpath=no
19985 hardcode_into_libs=yes
19986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019987 freebsd*) # from 4.6 on
19988 shlibpath_overrides_runpath=yes
19989 hardcode_into_libs=yes
19990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019991 esac
19992 ;;
19993
19994gnu*)
19995 version_type=linux
19996 need_lib_prefix=no
19997 need_version=no
19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19999 soname_spec='${libname}${release}${shared_ext}$major'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 hardcode_into_libs=yes
20002 ;;
20003
20004hpux9* | hpux10* | hpux11*)
20005 # Give a soname corresponding to the major version so that dld.sl refuses to
20006 # link against other versions.
20007 version_type=sunos
20008 need_lib_prefix=no
20009 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020010 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020011 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020012 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020013 hardcode_into_libs=yes
20014 dynamic_linker="$host_os dld.so"
20015 shlibpath_var=LD_LIBRARY_PATH
20016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 if test "X$HPUX_IA64_MODE" = X32; then
20020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021 else
20022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20023 fi
20024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20025 ;;
20026 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020027 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020028 hardcode_into_libs=yes
20029 dynamic_linker="$host_os dld.sl"
20030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20036 ;;
20037 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020038 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020039 dynamic_linker="$host_os dld.sl"
20040 shlibpath_var=SHLIB_PATH
20041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 ;;
20045 esac
20046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20047 postinstall_cmds='chmod 555 $lib'
20048 ;;
20049
Reid Spencera773bd52006-08-04 18:18:08 +000020050interix3*)
20051 version_type=linux
20052 need_lib_prefix=no
20053 need_version=no
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 shlibpath_overrides_runpath=no
20059 hardcode_into_libs=yes
20060 ;;
20061
John Criswell47fdd832003-07-14 16:52:07 +000020062irix5* | irix6* | nonstopux*)
20063 case $host_os in
20064 nonstopux*) version_type=nonstopux ;;
20065 *)
20066 if test "$lt_cv_prog_gnu_ld" = yes; then
20067 version_type=linux
20068 else
20069 version_type=irix
20070 fi ;;
20071 esac
20072 need_lib_prefix=no
20073 need_version=no
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20076 case $host_os in
20077 irix5* | nonstopux*)
20078 libsuff= shlibsuff=
20079 ;;
20080 *)
20081 case $LD in # libtool.m4 will add one of these switches to LD
20082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20083 libsuff= shlibsuff= libmagic=32-bit;;
20084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20085 libsuff=32 shlibsuff=N32 libmagic=N32;;
20086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20088 *) libsuff= shlibsuff= libmagic=never-match;;
20089 esac
20090 ;;
20091 esac
20092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20093 shlibpath_overrides_runpath=no
20094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20096 hardcode_into_libs=yes
20097 ;;
20098
20099# No shared lib support for Linux oldld, aout, or coff.
20100linux*oldld* | linux*aout* | linux*coff*)
20101 dynamic_linker=no
20102 ;;
20103
20104# This must be Linux ELF.
20105linux*)
20106 version_type=linux
20107 need_lib_prefix=no
20108 need_version=no
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 soname_spec='${libname}${release}${shared_ext}$major'
20111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 shlibpath_overrides_runpath=no
20114 # This implies no fast_install, which is unacceptable.
20115 # Some rework will be needed to allow for fast_install
20116 # before this can be enabled.
20117 hardcode_into_libs=yes
20118
Reid Spencer2706f8c2004-09-19 23:53:36 +000020119 # Append ld.so.conf contents to the search path
20120 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020121 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 +000020122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20123 fi
20124
John Criswell47fdd832003-07-14 16:52:07 +000020125 # We used to test for /lib/ld.so.1 and disable shared libraries on
20126 # powerpc, because MkLinux only supported shared libraries with the
20127 # GNU dynamic linker. Since this was broken with cross compilers,
20128 # most powerpc-linux boxes support dynamic linking these days and
20129 # people can always --disable-shared, the test was removed, and we
20130 # assume the GNU/Linux dynamic linker is in use.
20131 dynamic_linker='GNU/Linux ld.so'
20132 ;;
20133
Reid Spencer2706f8c2004-09-19 23:53:36 +000020134knetbsd*-gnu)
20135 version_type=linux
20136 need_lib_prefix=no
20137 need_version=no
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=no
20142 hardcode_into_libs=yes
20143 dynamic_linker='GNU ld.so'
20144 ;;
20145
John Criswell47fdd832003-07-14 16:52:07 +000020146netbsd*)
20147 version_type=sunos
20148 need_lib_prefix=no
20149 need_version=no
20150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20153 dynamic_linker='NetBSD (a.out) ld.so'
20154 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020156 soname_spec='${libname}${release}${shared_ext}$major'
20157 dynamic_linker='NetBSD ld.elf_so'
20158 fi
20159 shlibpath_var=LD_LIBRARY_PATH
20160 shlibpath_overrides_runpath=yes
20161 hardcode_into_libs=yes
20162 ;;
20163
20164newsos6)
20165 version_type=linux
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 shlibpath_var=LD_LIBRARY_PATH
20168 shlibpath_overrides_runpath=yes
20169 ;;
20170
Reid Spencer2706f8c2004-09-19 23:53:36 +000020171nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020172 version_type=linux
20173 need_lib_prefix=no
20174 need_version=no
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 shlibpath_overrides_runpath=yes
20179 ;;
20180
20181openbsd*)
20182 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020183 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020184 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20186 case $host_os in
20187 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20188 *) need_version=no ;;
20189 esac
John Criswell47fdd832003-07-14 16:52:07 +000020190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20194 case $host_os in
20195 openbsd2.[89] | openbsd2.[89].*)
20196 shlibpath_overrides_runpath=no
20197 ;;
20198 *)
20199 shlibpath_overrides_runpath=yes
20200 ;;
20201 esac
20202 else
20203 shlibpath_overrides_runpath=yes
20204 fi
20205 ;;
20206
20207os2*)
20208 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020209 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020210 need_lib_prefix=no
20211 library_names_spec='$libname${shared_ext} $libname.a'
20212 dynamic_linker='OS/2 ld.exe'
20213 shlibpath_var=LIBPATH
20214 ;;
20215
20216osf3* | osf4* | osf5*)
20217 version_type=osf
20218 need_lib_prefix=no
20219 need_version=no
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20225 ;;
20226
John Criswell47fdd832003-07-14 16:52:07 +000020227solaris*)
20228 version_type=linux
20229 need_lib_prefix=no
20230 need_version=no
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes
20235 hardcode_into_libs=yes
20236 # ldd complains unless libraries are executable
20237 postinstall_cmds='chmod +x $lib'
20238 ;;
20239
20240sunos4*)
20241 version_type=sunos
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath=yes
20246 if test "$with_gnu_ld" = yes; then
20247 need_lib_prefix=no
20248 fi
20249 need_version=yes
20250 ;;
20251
Reid Spencera773bd52006-08-04 18:18:08 +000020252sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020253 version_type=linux
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 case $host_vendor in
20258 sni)
20259 shlibpath_overrides_runpath=no
20260 need_lib_prefix=no
20261 export_dynamic_flag_spec='${wl}-Blargedynsym'
20262 runpath_var=LD_RUN_PATH
20263 ;;
20264 siemens)
20265 need_lib_prefix=no
20266 ;;
20267 motorola)
20268 need_lib_prefix=no
20269 need_version=no
20270 shlibpath_overrides_runpath=no
20271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20272 ;;
20273 esac
20274 ;;
20275
20276sysv4*MP*)
20277 if test -d /usr/nec ;then
20278 version_type=linux
20279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20280 soname_spec='$libname${shared_ext}.$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20282 fi
20283 ;;
20284
Reid Spencera773bd52006-08-04 18:18:08 +000020285sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20286 version_type=freebsd-elf
20287 need_lib_prefix=no
20288 need_version=no
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 hardcode_into_libs=yes
20293 if test "$with_gnu_ld" = yes; then
20294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20295 shlibpath_overrides_runpath=no
20296 else
20297 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20298 shlibpath_overrides_runpath=yes
20299 case $host_os in
20300 sco3.2v5*)
20301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20302 ;;
20303 esac
20304 fi
20305 sys_lib_dlsearch_path_spec='/usr/lib'
20306 ;;
20307
John Criswell47fdd832003-07-14 16:52:07 +000020308uts4*)
20309 version_type=linux
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 ;;
20314
20315*)
20316 dynamic_linker=no
20317 ;;
20318esac
Reid Spencera773bd52006-08-04 18:18:08 +000020319{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20320echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020321test "$dynamic_linker" = no && can_build_shared=no
20322
Reid Spencera773bd52006-08-04 18:18:08 +000020323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20324if test "$GCC" = yes; then
20325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20326fi
20327
20328{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20329echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020330hardcode_action_CXX=
20331if test -n "$hardcode_libdir_flag_spec_CXX" || \
20332 test -n "$runpath_var_CXX" || \
20333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20334
20335 # We can hardcode non-existant directories.
20336 if test "$hardcode_direct_CXX" != no &&
20337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20338 # have to relink, otherwise we might link with an installed library
20339 # when we should be linking with a yet-to-be-installed one
20340 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20341 test "$hardcode_minus_L_CXX" != no; then
20342 # Linking always hardcodes the temporary library directory.
20343 hardcode_action_CXX=relink
20344 else
20345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20346 hardcode_action_CXX=immediate
20347 fi
20348else
20349 # We cannot hardcode anything, or else we can only hardcode existing
20350 # directories.
20351 hardcode_action_CXX=unsupported
20352fi
Reid Spencera773bd52006-08-04 18:18:08 +000020353{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20354echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020355
20356if test "$hardcode_action_CXX" = relink; then
20357 # Fast installation is not supported
20358 enable_fast_install=no
20359elif test "$shlibpath_overrides_runpath" = yes ||
20360 test "$enable_shared" = no; then
20361 # Fast installation is not necessary
20362 enable_fast_install=needless
20363fi
20364
John Criswell47fdd832003-07-14 16:52:07 +000020365
20366# The else clause should only fire when bootstrapping the
20367# libtool distribution, otherwise you forgot to ship ltmain.sh
20368# with your package, and you will get complaints that there are
20369# no rules to generate ltmain.sh.
20370if test -f "$ltmain"; then
20371 # See if we are running on zsh, and set the options which allow our commands through
20372 # without removal of \ escapes.
20373 if test -n "${ZSH_VERSION+set}" ; then
20374 setopt NO_GLOB_SUBST
20375 fi
20376 # Now quote all the things that may contain metacharacters while being
20377 # careful not to overquote the AC_SUBSTed values. We take copies of the
20378 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020379 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 +000020380 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20383 deplibs_check_method reload_flag reload_cmds need_locks \
20384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20385 lt_cv_sys_global_symbol_to_c_name_address \
20386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20387 old_postinstall_cmds old_postuninstall_cmds \
20388 compiler_CXX \
20389 CC_CXX \
20390 LD_CXX \
20391 lt_prog_compiler_wl_CXX \
20392 lt_prog_compiler_pic_CXX \
20393 lt_prog_compiler_static_CXX \
20394 lt_prog_compiler_no_builtin_flag_CXX \
20395 export_dynamic_flag_spec_CXX \
20396 thread_safe_flag_spec_CXX \
20397 whole_archive_flag_spec_CXX \
20398 enable_shared_with_static_runtimes_CXX \
20399 old_archive_cmds_CXX \
20400 old_archive_from_new_cmds_CXX \
20401 predep_objects_CXX \
20402 postdep_objects_CXX \
20403 predeps_CXX \
20404 postdeps_CXX \
20405 compiler_lib_search_path_CXX \
20406 archive_cmds_CXX \
20407 archive_expsym_cmds_CXX \
20408 postinstall_cmds_CXX \
20409 postuninstall_cmds_CXX \
20410 old_archive_from_expsyms_cmds_CXX \
20411 allow_undefined_flag_CXX \
20412 no_undefined_flag_CXX \
20413 export_symbols_cmds_CXX \
20414 hardcode_libdir_flag_spec_CXX \
20415 hardcode_libdir_flag_spec_ld_CXX \
20416 hardcode_libdir_separator_CXX \
20417 hardcode_automatic_CXX \
20418 module_cmds_CXX \
20419 module_expsym_cmds_CXX \
20420 lt_cv_prog_compiler_c_o_CXX \
20421 exclude_expsyms_CXX \
20422 include_expsyms_CXX; do
20423
20424 case $var in
20425 old_archive_cmds_CXX | \
20426 old_archive_from_new_cmds_CXX | \
20427 archive_cmds_CXX | \
20428 archive_expsym_cmds_CXX | \
20429 module_cmds_CXX | \
20430 module_expsym_cmds_CXX | \
20431 old_archive_from_expsyms_cmds_CXX | \
20432 export_symbols_cmds_CXX | \
20433 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20434 postinstall_cmds | postuninstall_cmds | \
20435 old_postinstall_cmds | old_postuninstall_cmds | \
20436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20437 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020438 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 +000020439 ;;
20440 *)
20441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20442 ;;
20443 esac
20444 done
20445
20446 case $lt_echo in
20447 *'\$0 --fallback-echo"')
20448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20449 ;;
20450 esac
20451
20452cfgfile="$ofile"
20453
20454 cat <<__EOF__ >> "$cfgfile"
20455# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20456
20457# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20458
20459# Shell to use when invoking shell scripts.
20460SHELL=$lt_SHELL
20461
20462# Whether or not to build shared libraries.
20463build_libtool_libs=$enable_shared
20464
20465# Whether or not to build static libraries.
20466build_old_libs=$enable_static
20467
20468# Whether or not to add -lc for building shared libraries.
20469build_libtool_need_lc=$archive_cmds_need_lc_CXX
20470
20471# Whether or not to disallow shared libs when runtime libs are static
20472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20473
20474# Whether or not to optimize for fast installation.
20475fast_install=$enable_fast_install
20476
20477# The host system.
20478host_alias=$host_alias
20479host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020480host_os=$host_os
20481
20482# The build system.
20483build_alias=$build_alias
20484build=$build
20485build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020486
20487# An echo program that does not interpret backslashes.
20488echo=$lt_echo
20489
20490# The archiver.
20491AR=$lt_AR
20492AR_FLAGS=$lt_AR_FLAGS
20493
20494# A C compiler.
20495LTCC=$lt_LTCC
20496
Reid Spencera773bd52006-08-04 18:18:08 +000020497# LTCC compiler flags.
20498LTCFLAGS=$lt_LTCFLAGS
20499
John Criswell47fdd832003-07-14 16:52:07 +000020500# A language-specific compiler.
20501CC=$lt_compiler_CXX
20502
20503# Is the compiler the GNU C compiler?
20504with_gcc=$GCC_CXX
20505
20506# An ERE matcher.
20507EGREP=$lt_EGREP
20508
20509# The linker used to build libraries.
20510LD=$lt_LD_CXX
20511
20512# Whether we need hard or soft links.
20513LN_S=$lt_LN_S
20514
20515# A BSD-compatible nm program.
20516NM=$lt_NM
20517
20518# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020519STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020520
20521# Used to examine libraries when file_magic_cmd begins "file"
20522MAGIC_CMD=$MAGIC_CMD
20523
20524# Used on cygwin: DLL creation program.
20525DLLTOOL="$DLLTOOL"
20526
20527# Used on cygwin: object dumper.
20528OBJDUMP="$OBJDUMP"
20529
20530# Used on cygwin: assembler.
20531AS="$AS"
20532
20533# The name of the directory that contains temporary libtool files.
20534objdir=$objdir
20535
20536# How to create reloadable object files.
20537reload_flag=$lt_reload_flag
20538reload_cmds=$lt_reload_cmds
20539
20540# How to pass a linker flag through the compiler.
20541wl=$lt_lt_prog_compiler_wl_CXX
20542
20543# Object file suffix (normally "o").
20544objext="$ac_objext"
20545
20546# Old archive suffix (normally "a").
20547libext="$libext"
20548
20549# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020550shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020551
20552# Executable file suffix (normally "").
20553exeext="$exeext"
20554
20555# Additional compiler flags for building library objects.
20556pic_flag=$lt_lt_prog_compiler_pic_CXX
20557pic_mode=$pic_mode
20558
20559# What is the maximum length of a command?
20560max_cmd_len=$lt_cv_sys_max_cmd_len
20561
20562# Does compiler simultaneously support -c and -o options?
20563compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20564
Reid Spencera773bd52006-08-04 18:18:08 +000020565# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020566need_locks=$lt_need_locks
20567
20568# Do we need the lib prefix for modules?
20569need_lib_prefix=$need_lib_prefix
20570
20571# Do we need a version for libraries?
20572need_version=$need_version
20573
20574# Whether dlopen is supported.
20575dlopen_support=$enable_dlopen
20576
20577# Whether dlopen of programs is supported.
20578dlopen_self=$enable_dlopen_self
20579
20580# Whether dlopen of statically linked programs is supported.
20581dlopen_self_static=$enable_dlopen_self_static
20582
20583# Compiler flag to prevent dynamic linking.
20584link_static_flag=$lt_lt_prog_compiler_static_CXX
20585
20586# Compiler flag to turn off builtin functions.
20587no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20588
20589# Compiler flag to allow reflexive dlopens.
20590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20591
20592# Compiler flag to generate shared objects directly from archives.
20593whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20594
20595# Compiler flag to generate thread-safe objects.
20596thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20597
20598# Library versioning type.
20599version_type=$version_type
20600
20601# Format of library name prefix.
20602libname_spec=$lt_libname_spec
20603
20604# List of archive names. First name is the real one, the rest are links.
20605# The last name is the one that the linker finds with -lNAME.
20606library_names_spec=$lt_library_names_spec
20607
20608# The coded name of the library, if different from the real name.
20609soname_spec=$lt_soname_spec
20610
20611# Commands used to build and install an old-style archive.
20612RANLIB=$lt_RANLIB
20613old_archive_cmds=$lt_old_archive_cmds_CXX
20614old_postinstall_cmds=$lt_old_postinstall_cmds
20615old_postuninstall_cmds=$lt_old_postuninstall_cmds
20616
20617# Create an old-style archive from a shared archive.
20618old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20619
20620# Create a temporary old-style archive to link instead of a shared archive.
20621old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20622
20623# Commands used to build and install a shared archive.
20624archive_cmds=$lt_archive_cmds_CXX
20625archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20626postinstall_cmds=$lt_postinstall_cmds
20627postuninstall_cmds=$lt_postuninstall_cmds
20628
20629# Commands used to build a loadable module (assumed same as above if empty)
20630module_cmds=$lt_module_cmds_CXX
20631module_expsym_cmds=$lt_module_expsym_cmds_CXX
20632
20633# Commands to strip libraries.
20634old_striplib=$lt_old_striplib
20635striplib=$lt_striplib
20636
20637# Dependencies to place before the objects being linked to create a
20638# shared library.
20639predep_objects=$lt_predep_objects_CXX
20640
20641# Dependencies to place after the objects being linked to create a
20642# shared library.
20643postdep_objects=$lt_postdep_objects_CXX
20644
20645# Dependencies to place before the objects being linked to create a
20646# shared library.
20647predeps=$lt_predeps_CXX
20648
20649# Dependencies to place after the objects being linked to create a
20650# shared library.
20651postdeps=$lt_postdeps_CXX
20652
20653# The library search path used internally by the compiler when linking
20654# a shared library.
20655compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20656
20657# Method to check whether dependent libraries are shared objects.
20658deplibs_check_method=$lt_deplibs_check_method
20659
20660# Command to use when deplibs_check_method == file_magic.
20661file_magic_cmd=$lt_file_magic_cmd
20662
20663# Flag that allows shared libraries with undefined symbols to be built.
20664allow_undefined_flag=$lt_allow_undefined_flag_CXX
20665
20666# Flag that forces no undefined symbols.
20667no_undefined_flag=$lt_no_undefined_flag_CXX
20668
20669# Commands used to finish a libtool library installation in a directory.
20670finish_cmds=$lt_finish_cmds
20671
20672# Same as above, but a single script fragment to be evaled but not shown.
20673finish_eval=$lt_finish_eval
20674
20675# Take the output of nm and produce a listing of raw symbols and C names.
20676global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20677
20678# Transform the output of nm in a proper C declaration
20679global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20680
20681# Transform the output of nm in a C name address pair
20682global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20683
20684# This is the shared library runtime path variable.
20685runpath_var=$runpath_var
20686
20687# This is the shared library path variable.
20688shlibpath_var=$shlibpath_var
20689
20690# Is shlibpath searched before the hard-coded library search path?
20691shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20692
20693# How to hardcode a shared library path into an executable.
20694hardcode_action=$hardcode_action_CXX
20695
20696# Whether we should hardcode library paths into libraries.
20697hardcode_into_libs=$hardcode_into_libs
20698
20699# Flag to hardcode \$libdir into a binary during linking.
20700# This must work even if \$libdir does not exist.
20701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20702
20703# If ld is used when linking, flag to hardcode \$libdir into
20704# a binary during linking. This must work even if \$libdir does
20705# not exist.
20706hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20707
20708# Whether we need a single -rpath flag with a separated argument.
20709hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20710
20711# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20712# resulting binary.
20713hardcode_direct=$hardcode_direct_CXX
20714
20715# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20716# resulting binary.
20717hardcode_minus_L=$hardcode_minus_L_CXX
20718
20719# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20720# the resulting binary.
20721hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20722
20723# Set to yes if building a shared library automatically hardcodes DIR into the library
20724# and all subsequent libraries and executables linked against it.
20725hardcode_automatic=$hardcode_automatic_CXX
20726
20727# Variables whose values should be saved in libtool wrapper scripts and
20728# restored at relink time.
20729variables_saved_for_relink="$variables_saved_for_relink"
20730
20731# Whether libtool must link a program against all its dependency libraries.
20732link_all_deplibs=$link_all_deplibs_CXX
20733
20734# Compile-time system search path for libraries
20735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20736
20737# Run-time system search path for libraries
20738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20739
20740# Fix the shell variable \$srcfile for the compiler.
20741fix_srcfile_path="$fix_srcfile_path_CXX"
20742
20743# Set to yes if exported symbols are required.
20744always_export_symbols=$always_export_symbols_CXX
20745
20746# The commands to list exported symbols.
20747export_symbols_cmds=$lt_export_symbols_cmds_CXX
20748
20749# The commands to extract the exported symbol list from a shared archive.
20750extract_expsyms_cmds=$lt_extract_expsyms_cmds
20751
20752# Symbols that should not be listed in the preloaded symbols.
20753exclude_expsyms=$lt_exclude_expsyms_CXX
20754
20755# Symbols that must always be exported.
20756include_expsyms=$lt_include_expsyms_CXX
20757
20758# ### END LIBTOOL TAG CONFIG: $tagname
20759
20760__EOF__
20761
20762
20763else
20764 # If there is no Makefile yet, we rely on a make rule to execute
20765 # `config.status --recheck' to rerun these tests and create the
20766 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020767 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20768 if test -f "$ltmain_in"; then
20769 test -f Makefile && make "$ltmain"
20770 fi
John Criswell47fdd832003-07-14 16:52:07 +000020771fi
20772
20773
20774ac_ext=c
20775ac_cpp='$CPP $CPPFLAGS'
20776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780CC=$lt_save_CC
20781LDCXX=$LD
20782LD=$lt_save_LD
20783GCC=$lt_save_GCC
20784with_gnu_ldcxx=$with_gnu_ld
20785with_gnu_ld=$lt_save_with_gnu_ld
20786lt_cv_path_LDCXX=$lt_cv_path_LD
20787lt_cv_path_LD=$lt_save_path_LD
20788lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20789lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20790
20791 else
20792 tagname=""
20793 fi
20794 ;;
20795
20796 F77)
20797 if test -n "$F77" && test "X$F77" != "Xno"; then
20798
20799ac_ext=f
20800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20803
20804
20805archive_cmds_need_lc_F77=no
20806allow_undefined_flag_F77=
20807always_export_symbols_F77=no
20808archive_expsym_cmds_F77=
20809export_dynamic_flag_spec_F77=
20810hardcode_direct_F77=no
20811hardcode_libdir_flag_spec_F77=
20812hardcode_libdir_flag_spec_ld_F77=
20813hardcode_libdir_separator_F77=
20814hardcode_minus_L_F77=no
20815hardcode_automatic_F77=no
20816module_cmds_F77=
20817module_expsym_cmds_F77=
20818link_all_deplibs_F77=unknown
20819old_archive_cmds_F77=$old_archive_cmds
20820no_undefined_flag_F77=
20821whole_archive_flag_spec_F77=
20822enable_shared_with_static_runtimes_F77=no
20823
20824# Source file extension for f77 test sources.
20825ac_ext=f
20826
20827# Object file extension for compiled f77 test sources.
20828objext=o
20829objext_F77=$objext
20830
20831# Code to be used in simple compile tests
20832lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20833
20834# Code to be used in simple link tests
20835lt_simple_link_test_code=" program t\n end\n"
20836
20837# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838
20839# If no C compiler was specified, use CC.
20840LTCC=${LTCC-"$CC"}
20841
Reid Spencera773bd52006-08-04 18:18:08 +000020842# If no C compiler flags were specified, use CFLAGS.
20843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20844
John Criswell47fdd832003-07-14 16:52:07 +000020845# Allow CC to be a program name with arguments.
20846compiler=$CC
20847
20848
Reid Spencera773bd52006-08-04 18:18:08 +000020849# save warnings/boilerplate of simple test code
20850ac_outfile=conftest.$ac_objext
20851printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20853_lt_compiler_boilerplate=`cat conftest.err`
20854$rm conftest*
20855
20856ac_outfile=conftest.$ac_objext
20857printf "$lt_simple_link_test_code" >conftest.$ac_ext
20858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20859_lt_linker_boilerplate=`cat conftest.err`
20860$rm conftest*
20861
20862
John Criswell47fdd832003-07-14 16:52:07 +000020863# Allow CC to be a program name with arguments.
20864lt_save_CC="$CC"
20865CC=${F77-"f77"}
20866compiler=$CC
20867compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020868for cc_temp in $compiler""; do
20869 case $cc_temp in
20870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20872 \-*) ;;
20873 *) break;;
20874 esac
20875done
20876cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020877
John Criswell47fdd832003-07-14 16:52:07 +000020878
Reid Spencera773bd52006-08-04 18:18:08 +000020879{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20880echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20881{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20882echo "${ECHO_T}$can_build_shared" >&6; }
20883
20884{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20885echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020886test "$can_build_shared" = "no" && enable_shared=no
20887
20888# On AIX, shared libraries and static libraries use the same namespace, and
20889# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020890case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020891aix3*)
20892 test "$enable_shared" = yes && enable_static=no
20893 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020895 postinstall_cmds='$RANLIB $lib'
20896 fi
20897 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020898aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20900 test "$enable_shared" = yes && enable_static=no
20901 fi
John Criswell47fdd832003-07-14 16:52:07 +000020902 ;;
20903esac
Reid Spencera773bd52006-08-04 18:18:08 +000020904{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20905echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020906
Reid Spencera773bd52006-08-04 18:18:08 +000020907{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20908echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020909# Make sure either enable_shared or enable_static is yes.
20910test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020911{ echo "$as_me:$LINENO: result: $enable_static" >&5
20912echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020913
20914GCC_F77="$G77"
20915LD_F77="$LD"
20916
20917lt_prog_compiler_wl_F77=
20918lt_prog_compiler_pic_F77=
20919lt_prog_compiler_static_F77=
20920
Reid Spencera773bd52006-08-04 18:18:08 +000020921{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020923
20924 if test "$GCC" = yes; then
20925 lt_prog_compiler_wl_F77='-Wl,'
20926 lt_prog_compiler_static_F77='-static'
20927
20928 case $host_os in
20929 aix*)
20930 # All AIX code is PIC.
20931 if test "$host_cpu" = ia64; then
20932 # AIX 5 now supports IA64 processor
20933 lt_prog_compiler_static_F77='-Bstatic'
20934 fi
20935 ;;
20936
20937 amigaos*)
20938 # FIXME: we need at least 68020 code to build shared libraries, but
20939 # adding the `-m68020' flag to GCC prevents building anything better,
20940 # like `-m68040'.
20941 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20942 ;;
20943
20944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20945 # PIC is the default for these OSes.
20946 ;;
20947
20948 mingw* | pw32* | os2*)
20949 # This hack is so that the source file can tell whether it is being
20950 # built for inclusion in a dll (and should export symbols for example).
20951 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20952 ;;
20953
20954 darwin* | rhapsody*)
20955 # PIC is the default on this platform
20956 # Common symbols not allowed in MH_DYLIB files
20957 lt_prog_compiler_pic_F77='-fno-common'
20958 ;;
20959
Reid Spencera773bd52006-08-04 18:18:08 +000020960 interix3*)
20961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20962 # Instead, we relocate shared libraries at runtime.
20963 ;;
20964
John Criswell47fdd832003-07-14 16:52:07 +000020965 msdosdjgpp*)
20966 # Just because we use GCC doesn't mean we suddenly get shared libraries
20967 # on systems that don't support them.
20968 lt_prog_compiler_can_build_shared_F77=no
20969 enable_shared=no
20970 ;;
20971
20972 sysv4*MP*)
20973 if test -d /usr/nec; then
20974 lt_prog_compiler_pic_F77=-Kconform_pic
20975 fi
20976 ;;
20977
20978 hpux*)
20979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20980 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020981 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020982 hppa*64*|ia64*)
20983 # +Z the default
20984 ;;
20985 *)
20986 lt_prog_compiler_pic_F77='-fPIC'
20987 ;;
20988 esac
20989 ;;
20990
20991 *)
20992 lt_prog_compiler_pic_F77='-fPIC'
20993 ;;
20994 esac
20995 else
20996 # PORTME Check for flag to pass linker flags through the system compiler.
20997 case $host_os in
20998 aix*)
20999 lt_prog_compiler_wl_F77='-Wl,'
21000 if test "$host_cpu" = ia64; then
21001 # AIX 5 now supports IA64 processor
21002 lt_prog_compiler_static_F77='-Bstatic'
21003 else
21004 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21005 fi
21006 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021007 darwin*)
21008 # PIC is the default on this platform
21009 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021010 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021011 xlc*)
21012 lt_prog_compiler_pic_F77='-qnocommon'
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 ;;
21015 esac
21016 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021017
21018 mingw* | pw32* | os2*)
21019 # This hack is so that the source file can tell whether it is being
21020 # built for inclusion in a dll (and should export symbols for example).
21021 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21022 ;;
21023
21024 hpux9* | hpux10* | hpux11*)
21025 lt_prog_compiler_wl_F77='-Wl,'
21026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21027 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021028 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021029 hppa*64*|ia64*)
21030 # +Z the default
21031 ;;
21032 *)
21033 lt_prog_compiler_pic_F77='+Z'
21034 ;;
21035 esac
21036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21037 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21038 ;;
21039
21040 irix5* | irix6* | nonstopux*)
21041 lt_prog_compiler_wl_F77='-Wl,'
21042 # PIC (with -KPIC) is the default.
21043 lt_prog_compiler_static_F77='-non_shared'
21044 ;;
21045
21046 newsos6)
21047 lt_prog_compiler_pic_F77='-KPIC'
21048 lt_prog_compiler_static_F77='-Bstatic'
21049 ;;
21050
21051 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021052 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021053 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021054 lt_prog_compiler_wl_F77='-Wl,'
21055 lt_prog_compiler_pic_F77='-KPIC'
21056 lt_prog_compiler_static_F77='-static'
21057 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021058 pgcc* | pgf77* | pgf90* | pgf95*)
21059 # Portland Group compilers (*not* the Pentium gcc compiler,
21060 # which looks to be a dead project)
21061 lt_prog_compiler_wl_F77='-Wl,'
21062 lt_prog_compiler_pic_F77='-fpic'
21063 lt_prog_compiler_static_F77='-Bstatic'
21064 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021065 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021066 lt_prog_compiler_wl_F77='-Wl,'
21067 # All Alpha code is PIC.
21068 lt_prog_compiler_static_F77='-non_shared'
21069 ;;
21070 esac
21071 ;;
21072
21073 osf3* | osf4* | osf5*)
21074 lt_prog_compiler_wl_F77='-Wl,'
21075 # All OSF/1 code is PIC.
21076 lt_prog_compiler_static_F77='-non_shared'
21077 ;;
21078
John Criswell47fdd832003-07-14 16:52:07 +000021079 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021080 lt_prog_compiler_pic_F77='-KPIC'
21081 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021082 case $cc_basename in
21083 f77* | f90* | f95*)
21084 lt_prog_compiler_wl_F77='-Qoption ld ';;
21085 *)
21086 lt_prog_compiler_wl_F77='-Wl,';;
21087 esac
John Criswell47fdd832003-07-14 16:52:07 +000021088 ;;
21089
21090 sunos4*)
21091 lt_prog_compiler_wl_F77='-Qoption ld '
21092 lt_prog_compiler_pic_F77='-PIC'
21093 lt_prog_compiler_static_F77='-Bstatic'
21094 ;;
21095
Reid Spencera773bd52006-08-04 18:18:08 +000021096 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021097 lt_prog_compiler_wl_F77='-Wl,'
21098 lt_prog_compiler_pic_F77='-KPIC'
21099 lt_prog_compiler_static_F77='-Bstatic'
21100 ;;
21101
21102 sysv4*MP*)
21103 if test -d /usr/nec ;then
21104 lt_prog_compiler_pic_F77='-Kconform_pic'
21105 lt_prog_compiler_static_F77='-Bstatic'
21106 fi
21107 ;;
21108
Reid Spencera773bd52006-08-04 18:18:08 +000021109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21110 lt_prog_compiler_wl_F77='-Wl,'
21111 lt_prog_compiler_pic_F77='-KPIC'
21112 lt_prog_compiler_static_F77='-Bstatic'
21113 ;;
21114
21115 unicos*)
21116 lt_prog_compiler_wl_F77='-Wl,'
21117 lt_prog_compiler_can_build_shared_F77=no
21118 ;;
21119
John Criswell47fdd832003-07-14 16:52:07 +000021120 uts4*)
21121 lt_prog_compiler_pic_F77='-pic'
21122 lt_prog_compiler_static_F77='-Bstatic'
21123 ;;
21124
21125 *)
21126 lt_prog_compiler_can_build_shared_F77=no
21127 ;;
21128 esac
21129 fi
21130
Reid Spencera773bd52006-08-04 18:18:08 +000021131{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21132echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021133
21134#
21135# Check to make sure the PIC flag actually works.
21136#
21137if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021138
Reid Spencera773bd52006-08-04 18:18:08 +000021139{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021141if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143else
21144 lt_prog_compiler_pic_works_F77=no
21145 ac_outfile=conftest.$ac_objext
21146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21147 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21148 # Insert the option either (1) after the last *FLAGS variable, or
21149 # (2) before a word containing "conftest.", or (3) at the end.
21150 # Note that $ac_compile itself does not contain backslashes and begins
21151 # with a dollar sign (not a hyphen), so the echo should work correctly.
21152 # The option is referenced via a variable to avoid confusing sed.
21153 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21156 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000021157 (eval echo "\"\$as_me:21157: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021158 (eval "$lt_compile" 2>conftest.err)
21159 ac_status=$?
21160 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000021161 echo "$as_me:21161: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021162 if (exit $ac_status) && test -s "$ac_outfile"; then
21163 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021164 # So say no if there are warnings other than the usual output.
21165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021168 lt_prog_compiler_pic_works_F77=yes
21169 fi
21170 fi
21171 $rm conftest*
21172
21173fi
Reid Spencera773bd52006-08-04 18:18:08 +000021174{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21175echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021176
21177if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21178 case $lt_prog_compiler_pic_F77 in
21179 "" | " "*) ;;
21180 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21181 esac
21182else
21183 lt_prog_compiler_pic_F77=
21184 lt_prog_compiler_can_build_shared_F77=no
21185fi
21186
21187fi
Reid Spencera773bd52006-08-04 18:18:08 +000021188case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021189 # For platforms which do not support PIC, -DPIC is meaningless:
21190 *djgpp*)
21191 lt_prog_compiler_pic_F77=
21192 ;;
21193 *)
21194 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21195 ;;
21196esac
21197
Reid Spencera773bd52006-08-04 18:18:08 +000021198#
21199# Check to make sure the static flag actually works.
21200#
21201wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21202{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21203echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21204if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21206else
21207 lt_prog_compiler_static_works_F77=no
21208 save_LDFLAGS="$LDFLAGS"
21209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21210 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21212 # The linker can only warn and ignore the option if not recognized
21213 # So say no if there are warnings
21214 if test -s conftest.err; then
21215 # Append any errors to the config.log.
21216 cat conftest.err 1>&5
21217 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21219 if diff conftest.exp conftest.er2 >/dev/null; then
21220 lt_prog_compiler_static_works_F77=yes
21221 fi
21222 else
21223 lt_prog_compiler_static_works_F77=yes
21224 fi
21225 fi
21226 $rm conftest*
21227 LDFLAGS="$save_LDFLAGS"
21228
21229fi
21230{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21231echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21232
21233if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21234 :
21235else
21236 lt_prog_compiler_static_F77=
21237fi
21238
21239
21240{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21241echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021242if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245 lt_cv_prog_compiler_c_o_F77=no
21246 $rm -r conftest 2>/dev/null
21247 mkdir conftest
21248 cd conftest
21249 mkdir out
21250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21251
John Criswell47fdd832003-07-14 16:52:07 +000021252 lt_compiler_flag="-o out/conftest2.$ac_objext"
21253 # Insert the option either (1) after the last *FLAGS variable, or
21254 # (2) before a word containing "conftest.", or (3) at the end.
21255 # Note that $ac_compile itself does not contain backslashes and begins
21256 # with a dollar sign (not a hyphen), so the echo should work correctly.
21257 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21260 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000021261 (eval echo "\"\$as_me:21261: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021262 (eval "$lt_compile" 2>out/conftest.err)
21263 ac_status=$?
21264 cat out/conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000021265 echo "$as_me:21265: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21267 then
21268 # The compiler can only warn and ignore the option if not recognized
21269 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021270 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021273 lt_cv_prog_compiler_c_o_F77=yes
21274 fi
21275 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021276 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021277 $rm conftest*
21278 # SGI C++ compiler will create directory out/ii_files/ for
21279 # template instantiation
21280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021282 cd ..
21283 rmdir conftest
21284 $rm conftest*
21285
21286fi
Reid Spencera773bd52006-08-04 18:18:08 +000021287{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21288echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021289
21290
21291hard_links="nottested"
21292if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21293 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021294 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021296 hard_links=yes
21297 $rm conftest*
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 touch conftest.a
21300 ln conftest.a conftest.b 2>&5 || hard_links=no
21301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021302 { echo "$as_me:$LINENO: result: $hard_links" >&5
21303echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021304 if test "$hard_links" = no; then
21305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21307 need_locks=warn
21308 fi
21309else
21310 need_locks=no
21311fi
21312
Reid Spencera773bd52006-08-04 18:18:08 +000021313{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021315
21316 runpath_var=
21317 allow_undefined_flag_F77=
21318 enable_shared_with_static_runtimes_F77=no
21319 archive_cmds_F77=
21320 archive_expsym_cmds_F77=
21321 old_archive_From_new_cmds_F77=
21322 old_archive_from_expsyms_cmds_F77=
21323 export_dynamic_flag_spec_F77=
21324 whole_archive_flag_spec_F77=
21325 thread_safe_flag_spec_F77=
21326 hardcode_libdir_flag_spec_F77=
21327 hardcode_libdir_flag_spec_ld_F77=
21328 hardcode_libdir_separator_F77=
21329 hardcode_direct_F77=no
21330 hardcode_minus_L_F77=no
21331 hardcode_shlibpath_var_F77=unsupported
21332 link_all_deplibs_F77=unknown
21333 hardcode_automatic_F77=no
21334 module_cmds_F77=
21335 module_expsym_cmds_F77=
21336 always_export_symbols_F77=no
21337 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338 # include_expsyms should be a list of space-separated symbols to be *always*
21339 # included in the symbol list
21340 include_expsyms_F77=
21341 # exclude_expsyms can be an extended regexp of symbols to exclude
21342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344 # as well as any symbol that contains `d'.
21345 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347 # platforms (ab)use it in PIC code, but their linkers get confused if
21348 # the symbol is explicitly referenced. Since portable code cannot
21349 # rely on this symbol name, it's probably fine to never include it in
21350 # preloaded symbol tables.
21351 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021352 # Just being paranoid about ensuring that cc_basename is set.
21353 for cc_temp in $compiler""; do
21354 case $cc_temp in
21355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21357 \-*) ;;
21358 *) break;;
21359 esac
21360done
21361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021362
21363 case $host_os in
21364 cygwin* | mingw* | pw32*)
21365 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21366 # When not using gcc, we currently assume that we are using
21367 # Microsoft Visual C++.
21368 if test "$GCC" != yes; then
21369 with_gnu_ld=no
21370 fi
21371 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021372 interix*)
21373 # we just hope/assume this is gcc and not c89 (= MSVC++)
21374 with_gnu_ld=yes
21375 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021376 openbsd*)
21377 with_gnu_ld=no
21378 ;;
21379 esac
21380
21381 ld_shlibs_F77=yes
21382 if test "$with_gnu_ld" = yes; then
21383 # If archive_cmds runs LD, not CC, wlarc should be empty
21384 wlarc='${wl}'
21385
Reid Spencera773bd52006-08-04 18:18:08 +000021386 # Set some defaults for GNU ld with shared library support. These
21387 # are reset later if shared libraries are not supported. Putting them
21388 # here allows them to be overridden if necessary.
21389 runpath_var=LD_RUN_PATH
21390 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21391 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21392 # ancient GNU ld didn't support --whole-archive et. al.
21393 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21394 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21395 else
21396 whole_archive_flag_spec_F77=
21397 fi
21398 supports_anon_versioning=no
21399 case `$LD -v 2>/dev/null` in
21400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21403 *\ 2.11.*) ;; # other 2.11 versions
21404 *) supports_anon_versioning=yes ;;
21405 esac
21406
John Criswell47fdd832003-07-14 16:52:07 +000021407 # See if GNU ld supports shared libraries.
21408 case $host_os in
21409 aix3* | aix4* | aix5*)
21410 # On AIX/PPC, the GNU linker is very broken
21411 if test "$host_cpu" != ia64; then
21412 ld_shlibs_F77=no
21413 cat <<EOF 1>&2
21414
21415*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416*** to be unable to reliably create shared libraries on AIX.
21417*** Therefore, libtool is disabling shared libraries support. If you
21418*** really care for shared libraries, you may want to modify your PATH
21419*** so that a non-GNU linker is found, and then restart.
21420
21421EOF
21422 fi
21423 ;;
21424
21425 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021426 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 +000021427 hardcode_libdir_flag_spec_F77='-L$libdir'
21428 hardcode_minus_L_F77=yes
21429
21430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431 # that the semantics of dynamic libraries on AmigaOS, at least up
21432 # to version 4, is to share data among multiple programs linked
21433 # with the same dynamic library. Since this doesn't match the
21434 # behavior of shared libraries on other platforms, we can't use
21435 # them.
21436 ld_shlibs_F77=no
21437 ;;
21438
21439 beos*)
21440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441 allow_undefined_flag_F77=unsupported
21442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443 # support --undefined. This deserves some investigation. FIXME
21444 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445 else
21446 ld_shlibs_F77=no
21447 fi
21448 ;;
21449
21450 cygwin* | mingw* | pw32*)
21451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21452 # as there is no search path for DLLs.
21453 hardcode_libdir_flag_spec_F77='-L$libdir'
21454 allow_undefined_flag_F77=unsupported
21455 always_export_symbols_F77=no
21456 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021457 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 +000021458
21459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021460 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 +000021461 # If the export-symbols file already is a .def file (1st line
21462 # is EXPORTS), use it as is; otherwise, prepend...
21463 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464 cp $export_symbols $output_objdir/$soname.def;
21465 else
21466 echo EXPORTS > $output_objdir/$soname.def;
21467 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021468 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021469 $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 +000021470 else
Reid Spencera773bd52006-08-04 18:18:08 +000021471 ld_shlibs_F77=no
21472 fi
21473 ;;
21474
21475 interix3*)
21476 hardcode_direct_F77=no
21477 hardcode_shlibpath_var_F77=no
21478 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21479 export_dynamic_flag_spec_F77='${wl}-E'
21480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21481 # Instead, shared libraries are loaded at an image base (0x10000000 by
21482 # default) and relocated if they conflict, which is a slow very memory
21483 # consuming and fragmenting process. To avoid this, we pick a random,
21484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21486 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'
21487 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'
21488 ;;
21489
21490 linux*)
21491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492 tmp_addflag=
21493 case $cc_basename,$host_cpu in
21494 pgcc*) # Portland Group C compiler
21495 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'
21496 tmp_addflag=' $pic_flag'
21497 ;;
21498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21499 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'
21500 tmp_addflag=' $pic_flag -Mnomain' ;;
21501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21502 tmp_addflag=' -i_dynamic' ;;
21503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21504 tmp_addflag=' -i_dynamic -nofor_main' ;;
21505 ifc* | ifort*) # Intel Fortran compiler
21506 tmp_addflag=' -nofor_main' ;;
21507 esac
21508 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21509
21510 if test $supports_anon_versioning = yes; then
21511 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21513 $echo "local: *; };" >> $output_objdir/$libname.ver~
21514 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21515 fi
21516 else
21517 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021518 fi
21519 ;;
21520
21521 netbsd*)
21522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21523 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21524 wlarc=
21525 else
21526 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21527 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21528 fi
21529 ;;
21530
Reid Spencera773bd52006-08-04 18:18:08 +000021531 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021532 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21533 ld_shlibs_F77=no
21534 cat <<EOF 1>&2
21535
21536*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21537*** create shared libraries on Solaris systems. Therefore, libtool
21538*** is disabling shared libraries support. We urge you to upgrade GNU
21539*** binutils to release 2.9.1 or newer. Another option is to modify
21540*** your PATH or compiler configuration so that the native linker is
21541*** used, and then restart.
21542
21543EOF
21544 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21547 else
21548 ld_shlibs_F77=no
21549 fi
21550 ;;
21551
Reid Spencera773bd52006-08-04 18:18:08 +000021552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21553 case `$LD -v 2>&1` in
21554 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21555 ld_shlibs_F77=no
21556 cat <<_LT_EOF 1>&2
21557
21558*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21559*** reliably create shared libraries on SCO systems. Therefore, libtool
21560*** is disabling shared libraries support. We urge you to upgrade GNU
21561*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21562*** your PATH or compiler configuration so that the native linker is
21563*** used, and then restart.
21564
21565_LT_EOF
21566 ;;
21567 *)
21568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21569 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21571 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21572 else
21573 ld_shlibs_F77=no
21574 fi
21575 ;;
21576 esac
21577 ;;
21578
John Criswell47fdd832003-07-14 16:52:07 +000021579 sunos4*)
21580 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21581 wlarc=
21582 hardcode_direct_F77=yes
21583 hardcode_shlibpath_var_F77=no
21584 ;;
21585
21586 *)
21587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21588 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590 else
21591 ld_shlibs_F77=no
21592 fi
21593 ;;
21594 esac
21595
Reid Spencera773bd52006-08-04 18:18:08 +000021596 if test "$ld_shlibs_F77" = no; then
21597 runpath_var=
21598 hardcode_libdir_flag_spec_F77=
21599 export_dynamic_flag_spec_F77=
21600 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021601 fi
21602 else
21603 # PORTME fill in a description of your system's linker (not GNU ld)
21604 case $host_os in
21605 aix3*)
21606 allow_undefined_flag_F77=unsupported
21607 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021608 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 +000021609 # Note: this linker hardcodes the directories in LIBPATH if there
21610 # are no directories specified by -L.
21611 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021612 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021613 # Neither direct hardcoding nor static linking is supported with a
21614 # broken collect2.
21615 hardcode_direct_F77=unsupported
21616 fi
21617 ;;
21618
21619 aix4* | aix5*)
21620 if test "$host_cpu" = ia64; then
21621 # On IA64, the linker does run time linking by default, so we don't
21622 # have to do anything special.
21623 aix_use_runtimelinking=no
21624 exp_sym_flag='-Bexport'
21625 no_entry_flag=""
21626 else
21627 # If we're using GNU nm, then we don't want the "-C" option.
21628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21630 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'
21631 else
21632 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'
21633 fi
21634 aix_use_runtimelinking=no
21635
21636 # Test if we are trying to use run time linking or normal
21637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21638 # need to do runtime linking.
21639 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21640 for ld_flag in $LDFLAGS; do
21641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21642 aix_use_runtimelinking=yes
21643 break
21644 fi
21645 done
Reid Spencera773bd52006-08-04 18:18:08 +000021646 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021647 esac
21648
21649 exp_sym_flag='-bexport'
21650 no_entry_flag='-bnoentry'
21651 fi
21652
21653 # When large executables or shared objects are built, AIX ld can
21654 # have problems creating the table of contents. If linking a library
21655 # or program results in "error TOC overflow" add -mminimal-toc to
21656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21658
21659 archive_cmds_F77=''
21660 hardcode_direct_F77=yes
21661 hardcode_libdir_separator_F77=':'
21662 link_all_deplibs_F77=yes
21663
21664 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021665 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021666 # We only want to do this on AIX 4.2 and lower, the check
21667 # below for broken collect2 doesn't work under 4.3+
21668 collect2name=`${CC} -print-prog-name=collect2`
21669 if test -f "$collect2name" && \
21670 strings "$collect2name" | grep resolve_lib_name >/dev/null
21671 then
21672 # We have reworked collect2
21673 hardcode_direct_F77=yes
21674 else
21675 # We have old collect2
21676 hardcode_direct_F77=unsupported
21677 # It fails to find uninstalled libraries when the uninstalled
21678 # path is not listed in the libpath. Setting hardcode_minus_L
21679 # to unsupported forces relinking
21680 hardcode_minus_L_F77=yes
21681 hardcode_libdir_flag_spec_F77='-L$libdir'
21682 hardcode_libdir_separator_F77=
21683 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021684 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021685 esac
21686 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021687 if test "$aix_use_runtimelinking" = yes; then
21688 shared_flag="$shared_flag "'${wl}-G'
21689 fi
John Criswell47fdd832003-07-14 16:52:07 +000021690 else
21691 # not using gcc
21692 if test "$host_cpu" = ia64; then
21693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21694 # chokes on -Wl,-G. The following line is correct:
21695 shared_flag='-G'
21696 else
Reid Spencera773bd52006-08-04 18:18:08 +000021697 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021698 shared_flag='${wl}-G'
21699 else
21700 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021701 fi
John Criswell47fdd832003-07-14 16:52:07 +000021702 fi
21703 fi
21704
21705 # It seems that -bexpall does not export symbols beginning with
21706 # underscore (_), so it is better to generate a list of symbols to export.
21707 always_export_symbols_F77=yes
21708 if test "$aix_use_runtimelinking" = yes; then
21709 # Warning - without using the other runtime loading flags (-brtl),
21710 # -berok will link without error, but may produce a broken library.
21711 allow_undefined_flag_F77='-berok'
21712 # Determine the default libpath from the value encoded in an empty executable.
21713 cat >conftest.$ac_ext <<_ACEOF
21714 program main
21715
21716 end
21717_ACEOF
21718rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021719if { (ac_try="$ac_link"
21720case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723esac
21724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021732 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21733 { (case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021743 { (case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21746esac
21747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752
21753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21754}'`
21755# Check for a 64-bit object if we didn't find anything.
21756if 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; }
21757}'`; fi
21758else
21759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021760sed 's/^/| /' conftest.$ac_ext >&5
21761
Reid Spencera773bd52006-08-04 18:18:08 +000021762
John Criswell47fdd832003-07-14 16:52:07 +000021763fi
Reid Spencera773bd52006-08-04 18:18:08 +000021764
21765rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021766 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21768
21769 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021770 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 +000021771 else
21772 if test "$host_cpu" = ia64; then
21773 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21774 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021775 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 +000021776 else
21777 # Determine the default libpath from the value encoded in an empty executable.
21778 cat >conftest.$ac_ext <<_ACEOF
21779 program main
21780
21781 end
21782_ACEOF
21783rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021784if { (ac_try="$ac_link"
21785case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788esac
21789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021797 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21798 { (case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021808 { (case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811esac
21812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817
21818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21819}'`
21820# Check for a 64-bit object if we didn't find anything.
21821if 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; }
21822}'`; fi
21823else
21824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021825sed 's/^/| /' conftest.$ac_ext >&5
21826
Reid Spencera773bd52006-08-04 18:18:08 +000021827
John Criswell47fdd832003-07-14 16:52:07 +000021828fi
Reid Spencera773bd52006-08-04 18:18:08 +000021829
21830rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021831 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21833
21834 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21835 # Warning - without using the other run time loading flags,
21836 # -berok will link without error, but may produce a broken library.
21837 no_undefined_flag_F77=' ${wl}-bernotok'
21838 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021839 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021840 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021841 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021842 # This is similar to how AIX traditionally builds its shared libraries.
21843 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 +000021844 fi
21845 fi
21846 ;;
21847
21848 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021849 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 +000021850 hardcode_libdir_flag_spec_F77='-L$libdir'
21851 hardcode_minus_L_F77=yes
21852 # see comment about different semantics on the GNU ld section
21853 ld_shlibs_F77=no
21854 ;;
21855
Reid Spencer2706f8c2004-09-19 23:53:36 +000021856 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021857 export_dynamic_flag_spec_F77=-rdynamic
21858 ;;
21859
21860 cygwin* | mingw* | pw32*)
21861 # When not using gcc, we currently assume that we are using
21862 # Microsoft Visual C++.
21863 # hardcode_libdir_flag_spec is actually meaningless, as there is
21864 # no search path for DLLs.
21865 hardcode_libdir_flag_spec_F77=' '
21866 allow_undefined_flag_F77=unsupported
21867 # Tell ltmain to make .lib files, not .a files.
21868 libext=lib
21869 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021870 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021871 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021872 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 +000021873 # The linker will automatically build a .lib file if we build a DLL.
21874 old_archive_From_new_cmds_F77='true'
21875 # FIXME: Should let the user specify the lib program.
21876 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021877 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021878 enable_shared_with_static_runtimes_F77=yes
21879 ;;
21880
21881 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021882 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021883 rhapsody* | darwin1.[012])
21884 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21885 ;;
21886 *) # Darwin 1.3 on
21887 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21888 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21889 else
21890 case ${MACOSX_DEPLOYMENT_TARGET} in
21891 10.[012])
21892 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893 ;;
21894 10.*)
21895 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21896 ;;
21897 esac
21898 fi
21899 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021900 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021901 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021902 hardcode_direct_F77=no
21903 hardcode_automatic_F77=yes
21904 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021905 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021906 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021907 if test "$GCC" = yes ; then
21908 output_verbose_link_cmd='echo'
21909 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21910 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021911 # 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 +000021912 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}'
21913 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 +000021914 else
Reid Spencera773bd52006-08-04 18:18:08 +000021915 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021916 xlc*)
21917 output_verbose_link_cmd='echo'
21918 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21919 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021920 # 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 +000021921 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}'
21922 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 +000021923 ;;
21924 *)
21925 ld_shlibs_F77=no
21926 ;;
21927 esac
John Criswell47fdd832003-07-14 16:52:07 +000021928 fi
21929 ;;
21930
21931 dgux*)
21932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21933 hardcode_libdir_flag_spec_F77='-L$libdir'
21934 hardcode_shlibpath_var_F77=no
21935 ;;
21936
21937 freebsd1*)
21938 ld_shlibs_F77=no
21939 ;;
21940
21941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21942 # support. Future versions do this automatically, but an explicit c++rt0.o
21943 # does not break anything, and helps significantly (at the cost of a little
21944 # extra space).
21945 freebsd2.2*)
21946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21947 hardcode_libdir_flag_spec_F77='-R$libdir'
21948 hardcode_direct_F77=yes
21949 hardcode_shlibpath_var_F77=no
21950 ;;
21951
21952 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21953 freebsd2*)
21954 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21955 hardcode_direct_F77=yes
21956 hardcode_minus_L_F77=yes
21957 hardcode_shlibpath_var_F77=no
21958 ;;
21959
21960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021961 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021962 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21963 hardcode_libdir_flag_spec_F77='-R$libdir'
21964 hardcode_direct_F77=yes
21965 hardcode_shlibpath_var_F77=no
21966 ;;
21967
21968 hpux9*)
21969 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021970 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 +000021971 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021972 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 +000021973 fi
21974 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21975 hardcode_libdir_separator_F77=:
21976 hardcode_direct_F77=yes
21977
21978 # hardcode_minus_L: Not really in the search PATH,
21979 # but as the default location of the library.
21980 hardcode_minus_L_F77=yes
21981 export_dynamic_flag_spec_F77='${wl}-E'
21982 ;;
21983
Reid Spencera773bd52006-08-04 18:18:08 +000021984 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021986 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987 else
21988 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21989 fi
21990 if test "$with_gnu_ld" = no; then
21991 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992 hardcode_libdir_separator_F77=:
21993
21994 hardcode_direct_F77=yes
21995 export_dynamic_flag_spec_F77='${wl}-E'
21996
21997 # hardcode_minus_L: Not really in the search PATH,
21998 # but as the default location of the library.
21999 hardcode_minus_L_F77=yes
22000 fi
22001 ;;
22002
22003 hpux11*)
22004 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22005 case $host_cpu in
22006 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022007 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22008 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022009 ia64*)
22010 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22011 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022012 *)
22013 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22014 ;;
22015 esac
22016 else
Reid Spencera773bd52006-08-04 18:18:08 +000022017 case $host_cpu in
22018 hppa*64*)
22019 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22020 ;;
22021 ia64*)
22022 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022023 ;;
22024 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022025 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 +000022026 ;;
22027 esac
22028 fi
22029 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022030 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22031 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022032
Reid Spencera773bd52006-08-04 18:18:08 +000022033 case $host_cpu in
22034 hppa*64*|ia64*)
22035 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22036 hardcode_direct_F77=no
22037 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022038 ;;
22039 *)
John Criswell47fdd832003-07-14 16:52:07 +000022040 hardcode_direct_F77=yes
22041 export_dynamic_flag_spec_F77='${wl}-E'
22042
22043 # hardcode_minus_L: Not really in the search PATH,
22044 # but as the default location of the library.
22045 hardcode_minus_L_F77=yes
22046 ;;
22047 esac
22048 fi
22049 ;;
22050
22051 irix5* | irix6* | nonstopux*)
22052 if test "$GCC" = yes; then
22053 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'
22054 else
22055 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'
22056 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22057 fi
22058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22059 hardcode_libdir_separator_F77=:
22060 link_all_deplibs_F77=yes
22061 ;;
22062
22063 netbsd*)
22064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22066 else
22067 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22068 fi
22069 hardcode_libdir_flag_spec_F77='-R$libdir'
22070 hardcode_direct_F77=yes
22071 hardcode_shlibpath_var_F77=no
22072 ;;
22073
22074 newsos6)
22075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22076 hardcode_direct_F77=yes
22077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22078 hardcode_libdir_separator_F77=:
22079 hardcode_shlibpath_var_F77=no
22080 ;;
22081
22082 openbsd*)
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22086 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 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 +000022088 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22089 export_dynamic_flag_spec_F77='${wl}-E'
22090 else
22091 case $host_os in
22092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22093 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22094 hardcode_libdir_flag_spec_F77='-R$libdir'
22095 ;;
22096 *)
22097 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22098 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22099 ;;
22100 esac
22101 fi
22102 ;;
22103
22104 os2*)
22105 hardcode_libdir_flag_spec_F77='-L$libdir'
22106 hardcode_minus_L_F77=yes
22107 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022108 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 +000022109 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22110 ;;
22111
22112 osf3*)
22113 if test "$GCC" = yes; then
22114 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22115 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'
22116 else
22117 allow_undefined_flag_F77=' -expect_unresolved \*'
22118 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'
22119 fi
22120 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121 hardcode_libdir_separator_F77=:
22122 ;;
22123
22124 osf4* | osf5*) # as osf3* with the addition of -msym flag
22125 if test "$GCC" = yes; then
22126 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22127 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'
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22129 else
22130 allow_undefined_flag_F77=' -expect_unresolved \*'
22131 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 +000022132 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 +000022133 $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 +000022134
John Criswell47fdd832003-07-14 16:52:07 +000022135 # Both c and cxx compiler support -rpath directly
22136 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22137 fi
22138 hardcode_libdir_separator_F77=:
22139 ;;
22140
John Criswell47fdd832003-07-14 16:52:07 +000022141 solaris*)
22142 no_undefined_flag_F77=' -z text'
22143 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022144 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022145 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022146 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147 $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 +000022148 else
Reid Spencera773bd52006-08-04 18:18:08 +000022149 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022150 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022151 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152 $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 +000022153 fi
22154 hardcode_libdir_flag_spec_F77='-R$libdir'
22155 hardcode_shlibpath_var_F77=no
22156 case $host_os in
22157 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022158 *)
22159 # The compiler driver will combine linker options so we
22160 # cannot just pass the convience library names through
22161 # without $wl, iff we do not link with $LD.
22162 # Luckily, gcc supports the same syntax we need for Sun Studio.
22163 # Supported since Solaris 2.6 (maybe 2.5.1?)
22164 case $wlarc in
22165 '')
22166 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22167 *)
22168 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' ;;
22169 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022170 esac
22171 link_all_deplibs_F77=yes
22172 ;;
22173
22174 sunos4*)
22175 if test "x$host_vendor" = xsequent; then
22176 # Use $CC to link under sequent, because it throws in some extra .o
22177 # files that make .init and .fini sections work.
22178 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22179 else
22180 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22181 fi
22182 hardcode_libdir_flag_spec_F77='-L$libdir'
22183 hardcode_direct_F77=yes
22184 hardcode_minus_L_F77=yes
22185 hardcode_shlibpath_var_F77=no
22186 ;;
22187
22188 sysv4)
22189 case $host_vendor in
22190 sni)
22191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192 hardcode_direct_F77=yes # is this really true???
22193 ;;
22194 siemens)
22195 ## LD is ld it makes a PLAMLIB
22196 ## CC just makes a GrossModule.
22197 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22198 reload_cmds_F77='$CC -r -o $output$reload_objs'
22199 hardcode_direct_F77=no
22200 ;;
22201 motorola)
22202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22204 ;;
22205 esac
22206 runpath_var='LD_RUN_PATH'
22207 hardcode_shlibpath_var_F77=no
22208 ;;
22209
22210 sysv4.3*)
22211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_shlibpath_var_F77=no
22213 export_dynamic_flag_spec_F77='-Bexport'
22214 ;;
22215
22216 sysv4*MP*)
22217 if test -d /usr/nec; then
22218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219 hardcode_shlibpath_var_F77=no
22220 runpath_var=LD_RUN_PATH
22221 hardcode_runpath_var=yes
22222 ld_shlibs_F77=yes
22223 fi
22224 ;;
22225
Reid Spencera773bd52006-08-04 18:18:08 +000022226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22227 no_undefined_flag_F77='${wl}-z,text'
22228 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022229 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022230 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022231
John Criswell47fdd832003-07-14 16:52:07 +000022232 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022233 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22234 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 +000022235 else
Reid Spencera773bd52006-08-04 18:18:08 +000022236 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 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 +000022238 fi
John Criswell47fdd832003-07-14 16:52:07 +000022239 ;;
22240
Reid Spencera773bd52006-08-04 18:18:08 +000022241 sysv5* | sco3.2v5* | sco5v6*)
22242 # Note: We can NOT use -z defs as we might desire, because we do not
22243 # link with -lc, and that would cause any symbols used from libc to
22244 # always be unresolved, which means just about no library would
22245 # ever link correctly. If we're not using GNU ld we use -z text
22246 # though, which does catch some bad symbols but isn't as heavy-handed
22247 # as -z defs.
22248 no_undefined_flag_F77='${wl}-z,text'
22249 allow_undefined_flag_F77='${wl}-z,nodefs'
22250 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022251 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022252 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22253 hardcode_libdir_separator_F77=':'
22254 link_all_deplibs_F77=yes
22255 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022256 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022257
22258 if test "$GCC" = yes; then
22259 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261 else
22262 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 fi
John Criswell47fdd832003-07-14 16:52:07 +000022265 ;;
22266
22267 uts4*)
22268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22269 hardcode_libdir_flag_spec_F77='-L$libdir'
22270 hardcode_shlibpath_var_F77=no
22271 ;;
22272
22273 *)
22274 ld_shlibs_F77=no
22275 ;;
22276 esac
22277 fi
22278
Reid Spencera773bd52006-08-04 18:18:08 +000022279{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22280echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022281test "$ld_shlibs_F77" = no && can_build_shared=no
22282
John Criswell47fdd832003-07-14 16:52:07 +000022283#
22284# Do we need to explicitly link libc?
22285#
22286case "x$archive_cmds_need_lc_F77" in
22287x|xyes)
22288 # Assume -lc should be added
22289 archive_cmds_need_lc_F77=yes
22290
22291 if test "$enable_shared" = yes && test "$GCC" = yes; then
22292 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022293 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022294 # FIXME: we may have to deal with multi-command sequences.
22295 ;;
22296 '$CC '*)
22297 # Test whether the compiler implicitly links with -lc since on some
22298 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22299 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022300 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022302 $rm conftest*
22303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22304
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } 2>conftest.err; then
22310 soname=conftest
22311 lib=conftest
22312 libobjs=conftest.$ac_objext
22313 deplibs=
22314 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022315 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022316 compiler_flags=-v
22317 linker_flags=-v
22318 verstring=
22319 output_objdir=.
22320 libname=conftest
22321 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22322 allow_undefined_flag_F77=
22323 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22324 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }
22328 then
22329 archive_cmds_need_lc_F77=no
22330 else
22331 archive_cmds_need_lc_F77=yes
22332 fi
22333 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22334 else
22335 cat conftest.err 1>&5
22336 fi
22337 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022338 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22339echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022340 ;;
22341 esac
22342 fi
22343 ;;
22344esac
22345
Reid Spencera773bd52006-08-04 18:18:08 +000022346{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22347echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022348library_names_spec=
22349libname_spec='lib$name'
22350soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022351shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022352postinstall_cmds=
22353postuninstall_cmds=
22354finish_cmds=
22355finish_eval=
22356shlibpath_var=
22357shlibpath_overrides_runpath=unknown
22358version_type=none
22359dynamic_linker="$host_os ld.so"
22360sys_lib_dlsearch_path_spec="/lib /usr/lib"
22361if test "$GCC" = yes; then
22362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22363 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22364 # if the path contains ";" then we assume it to be the separator
22365 # otherwise default to the standard path separator (i.e. ":") - it is
22366 # assumed that no part of a normal pathname contains ";" but that should
22367 # okay in the real world where ";" in dirpaths is itself problematic.
22368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22369 else
22370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22371 fi
22372else
22373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22374fi
22375need_lib_prefix=unknown
22376hardcode_into_libs=no
22377
22378# when you set need_version to no, make sure it does not cause -set_version
22379# flags to be left without arguments
22380need_version=unknown
22381
22382case $host_os in
22383aix3*)
22384 version_type=linux
22385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22386 shlibpath_var=LIBPATH
22387
22388 # AIX 3 has no versioning support, so we append a major version to the name.
22389 soname_spec='${libname}${release}${shared_ext}$major'
22390 ;;
22391
22392aix4* | aix5*)
22393 version_type=linux
22394 need_lib_prefix=no
22395 need_version=no
22396 hardcode_into_libs=yes
22397 if test "$host_cpu" = ia64; then
22398 # AIX 5 supports IA64
22399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22400 shlibpath_var=LD_LIBRARY_PATH
22401 else
22402 # With GCC up to 2.95.x, collect2 would create an import file
22403 # for dependence libraries. The import file would start with
22404 # the line `#! .'. This would cause the generated library to
22405 # depend on `.', always an invalid library. This was fixed in
22406 # development snapshots of GCC prior to 3.0.
22407 case $host_os in
22408 aix4 | aix4.[01] | aix4.[01].*)
22409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22410 echo ' yes '
22411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22412 :
22413 else
22414 can_build_shared=no
22415 fi
22416 ;;
22417 esac
22418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22419 # soname into executable. Probably we can add versioning support to
22420 # collect2, so additional links can be useful in future.
22421 if test "$aix_use_runtimelinking" = yes; then
22422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22423 # instead of lib<name>.a to let people know that these are not
22424 # typical AIX shared libraries.
22425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22426 else
22427 # We preserve .a as extension for shared libraries through AIX4.2
22428 # and later when we are not doing run time linking.
22429 library_names_spec='${libname}${release}.a $libname.a'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 fi
22432 shlibpath_var=LIBPATH
22433 fi
22434 ;;
22435
22436amigaos*)
22437 library_names_spec='$libname.ixlibrary $libname.a'
22438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022439 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 +000022440 ;;
22441
22442beos*)
22443 library_names_spec='${libname}${shared_ext}'
22444 dynamic_linker="$host_os ld.so"
22445 shlibpath_var=LIBRARY_PATH
22446 ;;
22447
Reid Spencer2706f8c2004-09-19 23:53:36 +000022448bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022449 version_type=linux
22450 need_version=no
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452 soname_spec='${libname}${release}${shared_ext}$major'
22453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22454 shlibpath_var=LD_LIBRARY_PATH
22455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22457 # the default ld.so.conf also contains /usr/contrib/lib and
22458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22459 # libtool to hard-code these into programs
22460 ;;
22461
22462cygwin* | mingw* | pw32*)
22463 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022464 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022465 need_version=no
22466 need_lib_prefix=no
22467
22468 case $GCC,$host_os in
22469 yes,cygwin* | yes,mingw* | yes,pw32*)
22470 library_names_spec='$libname.dll.a'
22471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022472 postinstall_cmds='base_file=`basename \${file}`~
22473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22474 dldir=$destdir/`dirname \$dlpath`~
22475 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022476 $install_prog $dir/$dlname \$dldir/$dlname~
22477 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22479 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022480 $rm \$dlpath'
22481 shlibpath_overrides_runpath=yes
22482
22483 case $host_os in
22484 cygwin*)
22485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22486 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 +000022487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022488 ;;
22489 mingw*)
22490 # MinGW DLLs use traditional 'lib' prefix
22491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22492 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22493 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22494 # It is most probably a Windows format PATH printed by
22495 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22496 # path with ; separators, and with drive letters. We can handle the
22497 # drive letters (cygwin fileutils understands them), so leave them,
22498 # especially as we might pass files found there to a mingw objdump,
22499 # which wouldn't understand a cygwinified path. Ahh.
22500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22501 else
22502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22503 fi
22504 ;;
22505 pw32*)
22506 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022507 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 +000022508 ;;
22509 esac
22510 ;;
22511
22512 *)
22513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22514 ;;
22515 esac
22516 dynamic_linker='Win32 ld.exe'
22517 # FIXME: first we should search . and the directory the executable is in
22518 shlibpath_var=PATH
22519 ;;
22520
22521darwin* | rhapsody*)
22522 dynamic_linker="$host_os dyld"
22523 version_type=darwin
22524 need_lib_prefix=no
22525 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022526 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022527 soname_spec='${libname}${release}${major}$shared_ext'
22528 shlibpath_overrides_runpath=yes
22529 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022531 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022532 if test "$GCC" = yes; then
22533 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"`
22534 else
22535 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022536 fi
22537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22538 ;;
22539
22540dgux*)
22541 version_type=linux
22542 need_lib_prefix=no
22543 need_version=no
22544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22545 soname_spec='${libname}${release}${shared_ext}$major'
22546 shlibpath_var=LD_LIBRARY_PATH
22547 ;;
22548
22549freebsd1*)
22550 dynamic_linker=no
22551 ;;
22552
Reid Spencer2706f8c2004-09-19 23:53:36 +000022553kfreebsd*-gnu)
22554 version_type=linux
22555 need_lib_prefix=no
22556 need_version=no
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558 soname_spec='${libname}${release}${shared_ext}$major'
22559 shlibpath_var=LD_LIBRARY_PATH
22560 shlibpath_overrides_runpath=no
22561 hardcode_into_libs=yes
22562 dynamic_linker='GNU ld.so'
22563 ;;
22564
Reid Spencera773bd52006-08-04 18:18:08 +000022565freebsd* | dragonfly*)
22566 # DragonFly does not have aout. When/if they implement a new
22567 # versioning mechanism, adjust this.
22568 if test -x /usr/bin/objformat; then
22569 objformat=`/usr/bin/objformat`
22570 else
22571 case $host_os in
22572 freebsd[123]*) objformat=aout ;;
22573 *) objformat=elf ;;
22574 esac
22575 fi
John Criswell47fdd832003-07-14 16:52:07 +000022576 version_type=freebsd-$objformat
22577 case $version_type in
22578 freebsd-elf*)
22579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22580 need_version=no
22581 need_lib_prefix=no
22582 ;;
22583 freebsd-*)
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22585 need_version=yes
22586 ;;
22587 esac
22588 shlibpath_var=LD_LIBRARY_PATH
22589 case $host_os in
22590 freebsd2*)
22591 shlibpath_overrides_runpath=yes
22592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022593 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022594 shlibpath_overrides_runpath=yes
22595 hardcode_into_libs=yes
22596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022597 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22598 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022599 shlibpath_overrides_runpath=no
22600 hardcode_into_libs=yes
22601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022602 freebsd*) # from 4.6 on
22603 shlibpath_overrides_runpath=yes
22604 hardcode_into_libs=yes
22605 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022606 esac
22607 ;;
22608
22609gnu*)
22610 version_type=linux
22611 need_lib_prefix=no
22612 need_version=no
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 hardcode_into_libs=yes
22617 ;;
22618
22619hpux9* | hpux10* | hpux11*)
22620 # Give a soname corresponding to the major version so that dld.sl refuses to
22621 # link against other versions.
22622 version_type=sunos
22623 need_lib_prefix=no
22624 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022625 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022626 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022627 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022628 hardcode_into_libs=yes
22629 dynamic_linker="$host_os dld.so"
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22633 soname_spec='${libname}${release}${shared_ext}$major'
22634 if test "X$HPUX_IA64_MODE" = X32; then
22635 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22636 else
22637 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22638 fi
22639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22640 ;;
22641 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022642 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022643 hardcode_into_libs=yes
22644 dynamic_linker="$host_os dld.sl"
22645 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22651 ;;
22652 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022653 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022654 dynamic_linker="$host_os dld.sl"
22655 shlibpath_var=SHLIB_PATH
22656 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22658 soname_spec='${libname}${release}${shared_ext}$major'
22659 ;;
22660 esac
22661 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22662 postinstall_cmds='chmod 555 $lib'
22663 ;;
22664
Reid Spencera773bd52006-08-04 18:18:08 +000022665interix3*)
22666 version_type=linux
22667 need_lib_prefix=no
22668 need_version=no
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 shlibpath_overrides_runpath=no
22674 hardcode_into_libs=yes
22675 ;;
22676
John Criswell47fdd832003-07-14 16:52:07 +000022677irix5* | irix6* | nonstopux*)
22678 case $host_os in
22679 nonstopux*) version_type=nonstopux ;;
22680 *)
22681 if test "$lt_cv_prog_gnu_ld" = yes; then
22682 version_type=linux
22683 else
22684 version_type=irix
22685 fi ;;
22686 esac
22687 need_lib_prefix=no
22688 need_version=no
22689 soname_spec='${libname}${release}${shared_ext}$major'
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22691 case $host_os in
22692 irix5* | nonstopux*)
22693 libsuff= shlibsuff=
22694 ;;
22695 *)
22696 case $LD in # libtool.m4 will add one of these switches to LD
22697 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22698 libsuff= shlibsuff= libmagic=32-bit;;
22699 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22700 libsuff=32 shlibsuff=N32 libmagic=N32;;
22701 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22702 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22703 *) libsuff= shlibsuff= libmagic=never-match;;
22704 esac
22705 ;;
22706 esac
22707 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22708 shlibpath_overrides_runpath=no
22709 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22710 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22711 hardcode_into_libs=yes
22712 ;;
22713
22714# No shared lib support for Linux oldld, aout, or coff.
22715linux*oldld* | linux*aout* | linux*coff*)
22716 dynamic_linker=no
22717 ;;
22718
22719# This must be Linux ELF.
22720linux*)
22721 version_type=linux
22722 need_lib_prefix=no
22723 need_version=no
22724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 soname_spec='${libname}${release}${shared_ext}$major'
22726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=no
22729 # This implies no fast_install, which is unacceptable.
22730 # Some rework will be needed to allow for fast_install
22731 # before this can be enabled.
22732 hardcode_into_libs=yes
22733
Reid Spencer2706f8c2004-09-19 23:53:36 +000022734 # Append ld.so.conf contents to the search path
22735 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022736 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 +000022737 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22738 fi
22739
John Criswell47fdd832003-07-14 16:52:07 +000022740 # We used to test for /lib/ld.so.1 and disable shared libraries on
22741 # powerpc, because MkLinux only supported shared libraries with the
22742 # GNU dynamic linker. Since this was broken with cross compilers,
22743 # most powerpc-linux boxes support dynamic linking these days and
22744 # people can always --disable-shared, the test was removed, and we
22745 # assume the GNU/Linux dynamic linker is in use.
22746 dynamic_linker='GNU/Linux ld.so'
22747 ;;
22748
Reid Spencer2706f8c2004-09-19 23:53:36 +000022749knetbsd*-gnu)
22750 version_type=linux
22751 need_lib_prefix=no
22752 need_version=no
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=no
22757 hardcode_into_libs=yes
22758 dynamic_linker='GNU ld.so'
22759 ;;
22760
John Criswell47fdd832003-07-14 16:52:07 +000022761netbsd*)
22762 version_type=sunos
22763 need_lib_prefix=no
22764 need_version=no
22765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22768 dynamic_linker='NetBSD (a.out) ld.so'
22769 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022771 soname_spec='${libname}${release}${shared_ext}$major'
22772 dynamic_linker='NetBSD ld.elf_so'
22773 fi
22774 shlibpath_var=LD_LIBRARY_PATH
22775 shlibpath_overrides_runpath=yes
22776 hardcode_into_libs=yes
22777 ;;
22778
22779newsos6)
22780 version_type=linux
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 shlibpath_var=LD_LIBRARY_PATH
22783 shlibpath_overrides_runpath=yes
22784 ;;
22785
Reid Spencer2706f8c2004-09-19 23:53:36 +000022786nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022787 version_type=linux
22788 need_lib_prefix=no
22789 need_version=no
22790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 shlibpath_overrides_runpath=yes
22794 ;;
22795
22796openbsd*)
22797 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022798 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022799 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22801 case $host_os in
22802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22803 *) need_version=no ;;
22804 esac
John Criswell47fdd832003-07-14 16:52:07 +000022805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22809 case $host_os in
22810 openbsd2.[89] | openbsd2.[89].*)
22811 shlibpath_overrides_runpath=no
22812 ;;
22813 *)
22814 shlibpath_overrides_runpath=yes
22815 ;;
22816 esac
22817 else
22818 shlibpath_overrides_runpath=yes
22819 fi
22820 ;;
22821
22822os2*)
22823 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022824 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022825 need_lib_prefix=no
22826 library_names_spec='$libname${shared_ext} $libname.a'
22827 dynamic_linker='OS/2 ld.exe'
22828 shlibpath_var=LIBPATH
22829 ;;
22830
22831osf3* | osf4* | osf5*)
22832 version_type=osf
22833 need_lib_prefix=no
22834 need_version=no
22835 soname_spec='${libname}${release}${shared_ext}$major'
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 shlibpath_var=LD_LIBRARY_PATH
22838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22840 ;;
22841
John Criswell47fdd832003-07-14 16:52:07 +000022842solaris*)
22843 version_type=linux
22844 need_lib_prefix=no
22845 need_version=no
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes
22850 hardcode_into_libs=yes
22851 # ldd complains unless libraries are executable
22852 postinstall_cmds='chmod +x $lib'
22853 ;;
22854
22855sunos4*)
22856 version_type=sunos
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 shlibpath_overrides_runpath=yes
22861 if test "$with_gnu_ld" = yes; then
22862 need_lib_prefix=no
22863 fi
22864 need_version=yes
22865 ;;
22866
Reid Spencera773bd52006-08-04 18:18:08 +000022867sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022868 version_type=linux
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 shlibpath_var=LD_LIBRARY_PATH
22872 case $host_vendor in
22873 sni)
22874 shlibpath_overrides_runpath=no
22875 need_lib_prefix=no
22876 export_dynamic_flag_spec='${wl}-Blargedynsym'
22877 runpath_var=LD_RUN_PATH
22878 ;;
22879 siemens)
22880 need_lib_prefix=no
22881 ;;
22882 motorola)
22883 need_lib_prefix=no
22884 need_version=no
22885 shlibpath_overrides_runpath=no
22886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22887 ;;
22888 esac
22889 ;;
22890
22891sysv4*MP*)
22892 if test -d /usr/nec ;then
22893 version_type=linux
22894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22895 soname_spec='$libname${shared_ext}.$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 fi
22898 ;;
22899
Reid Spencera773bd52006-08-04 18:18:08 +000022900sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22901 version_type=freebsd-elf
22902 need_lib_prefix=no
22903 need_version=no
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22905 soname_spec='${libname}${release}${shared_ext}$major'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 hardcode_into_libs=yes
22908 if test "$with_gnu_ld" = yes; then
22909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22910 shlibpath_overrides_runpath=no
22911 else
22912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22913 shlibpath_overrides_runpath=yes
22914 case $host_os in
22915 sco3.2v5*)
22916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22917 ;;
22918 esac
22919 fi
22920 sys_lib_dlsearch_path_spec='/usr/lib'
22921 ;;
22922
John Criswell47fdd832003-07-14 16:52:07 +000022923uts4*)
22924 version_type=linux
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 shlibpath_var=LD_LIBRARY_PATH
22928 ;;
22929
22930*)
22931 dynamic_linker=no
22932 ;;
22933esac
Reid Spencera773bd52006-08-04 18:18:08 +000022934{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22935echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022936test "$dynamic_linker" = no && can_build_shared=no
22937
Reid Spencera773bd52006-08-04 18:18:08 +000022938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22939if test "$GCC" = yes; then
22940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22941fi
22942
22943{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022945hardcode_action_F77=
22946if test -n "$hardcode_libdir_flag_spec_F77" || \
22947 test -n "$runpath_var_F77" || \
22948 test "X$hardcode_automatic_F77" = "Xyes" ; then
22949
22950 # We can hardcode non-existant directories.
22951 if test "$hardcode_direct_F77" != no &&
22952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953 # have to relink, otherwise we might link with an installed library
22954 # when we should be linking with a yet-to-be-installed one
22955 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22956 test "$hardcode_minus_L_F77" != no; then
22957 # Linking always hardcodes the temporary library directory.
22958 hardcode_action_F77=relink
22959 else
22960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961 hardcode_action_F77=immediate
22962 fi
22963else
22964 # We cannot hardcode anything, or else we can only hardcode existing
22965 # directories.
22966 hardcode_action_F77=unsupported
22967fi
Reid Spencera773bd52006-08-04 18:18:08 +000022968{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22969echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022970
22971if test "$hardcode_action_F77" = relink; then
22972 # Fast installation is not supported
22973 enable_fast_install=no
22974elif test "$shlibpath_overrides_runpath" = yes ||
22975 test "$enable_shared" = no; then
22976 # Fast installation is not necessary
22977 enable_fast_install=needless
22978fi
22979
John Criswell47fdd832003-07-14 16:52:07 +000022980
22981# The else clause should only fire when bootstrapping the
22982# libtool distribution, otherwise you forgot to ship ltmain.sh
22983# with your package, and you will get complaints that there are
22984# no rules to generate ltmain.sh.
22985if test -f "$ltmain"; then
22986 # See if we are running on zsh, and set the options which allow our commands through
22987 # without removal of \ escapes.
22988 if test -n "${ZSH_VERSION+set}" ; then
22989 setopt NO_GLOB_SUBST
22990 fi
22991 # Now quote all the things that may contain metacharacters while being
22992 # careful not to overquote the AC_SUBSTed values. We take copies of the
22993 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022994 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 +000022995 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22998 deplibs_check_method reload_flag reload_cmds need_locks \
22999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23000 lt_cv_sys_global_symbol_to_c_name_address \
23001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23002 old_postinstall_cmds old_postuninstall_cmds \
23003 compiler_F77 \
23004 CC_F77 \
23005 LD_F77 \
23006 lt_prog_compiler_wl_F77 \
23007 lt_prog_compiler_pic_F77 \
23008 lt_prog_compiler_static_F77 \
23009 lt_prog_compiler_no_builtin_flag_F77 \
23010 export_dynamic_flag_spec_F77 \
23011 thread_safe_flag_spec_F77 \
23012 whole_archive_flag_spec_F77 \
23013 enable_shared_with_static_runtimes_F77 \
23014 old_archive_cmds_F77 \
23015 old_archive_from_new_cmds_F77 \
23016 predep_objects_F77 \
23017 postdep_objects_F77 \
23018 predeps_F77 \
23019 postdeps_F77 \
23020 compiler_lib_search_path_F77 \
23021 archive_cmds_F77 \
23022 archive_expsym_cmds_F77 \
23023 postinstall_cmds_F77 \
23024 postuninstall_cmds_F77 \
23025 old_archive_from_expsyms_cmds_F77 \
23026 allow_undefined_flag_F77 \
23027 no_undefined_flag_F77 \
23028 export_symbols_cmds_F77 \
23029 hardcode_libdir_flag_spec_F77 \
23030 hardcode_libdir_flag_spec_ld_F77 \
23031 hardcode_libdir_separator_F77 \
23032 hardcode_automatic_F77 \
23033 module_cmds_F77 \
23034 module_expsym_cmds_F77 \
23035 lt_cv_prog_compiler_c_o_F77 \
23036 exclude_expsyms_F77 \
23037 include_expsyms_F77; do
23038
23039 case $var in
23040 old_archive_cmds_F77 | \
23041 old_archive_from_new_cmds_F77 | \
23042 archive_cmds_F77 | \
23043 archive_expsym_cmds_F77 | \
23044 module_cmds_F77 | \
23045 module_expsym_cmds_F77 | \
23046 old_archive_from_expsyms_cmds_F77 | \
23047 export_symbols_cmds_F77 | \
23048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23049 postinstall_cmds | postuninstall_cmds | \
23050 old_postinstall_cmds | old_postuninstall_cmds | \
23051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23052 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023053 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 +000023054 ;;
23055 *)
23056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23057 ;;
23058 esac
23059 done
23060
23061 case $lt_echo in
23062 *'\$0 --fallback-echo"')
23063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23064 ;;
23065 esac
23066
23067cfgfile="$ofile"
23068
23069 cat <<__EOF__ >> "$cfgfile"
23070# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23071
23072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23073
23074# Shell to use when invoking shell scripts.
23075SHELL=$lt_SHELL
23076
23077# Whether or not to build shared libraries.
23078build_libtool_libs=$enable_shared
23079
23080# Whether or not to build static libraries.
23081build_old_libs=$enable_static
23082
23083# Whether or not to add -lc for building shared libraries.
23084build_libtool_need_lc=$archive_cmds_need_lc_F77
23085
23086# Whether or not to disallow shared libs when runtime libs are static
23087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23088
23089# Whether or not to optimize for fast installation.
23090fast_install=$enable_fast_install
23091
23092# The host system.
23093host_alias=$host_alias
23094host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023095host_os=$host_os
23096
23097# The build system.
23098build_alias=$build_alias
23099build=$build
23100build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023101
23102# An echo program that does not interpret backslashes.
23103echo=$lt_echo
23104
23105# The archiver.
23106AR=$lt_AR
23107AR_FLAGS=$lt_AR_FLAGS
23108
23109# A C compiler.
23110LTCC=$lt_LTCC
23111
Reid Spencera773bd52006-08-04 18:18:08 +000023112# LTCC compiler flags.
23113LTCFLAGS=$lt_LTCFLAGS
23114
John Criswell47fdd832003-07-14 16:52:07 +000023115# A language-specific compiler.
23116CC=$lt_compiler_F77
23117
23118# Is the compiler the GNU C compiler?
23119with_gcc=$GCC_F77
23120
23121# An ERE matcher.
23122EGREP=$lt_EGREP
23123
23124# The linker used to build libraries.
23125LD=$lt_LD_F77
23126
23127# Whether we need hard or soft links.
23128LN_S=$lt_LN_S
23129
23130# A BSD-compatible nm program.
23131NM=$lt_NM
23132
23133# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023134STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023135
23136# Used to examine libraries when file_magic_cmd begins "file"
23137MAGIC_CMD=$MAGIC_CMD
23138
23139# Used on cygwin: DLL creation program.
23140DLLTOOL="$DLLTOOL"
23141
23142# Used on cygwin: object dumper.
23143OBJDUMP="$OBJDUMP"
23144
23145# Used on cygwin: assembler.
23146AS="$AS"
23147
23148# The name of the directory that contains temporary libtool files.
23149objdir=$objdir
23150
23151# How to create reloadable object files.
23152reload_flag=$lt_reload_flag
23153reload_cmds=$lt_reload_cmds
23154
23155# How to pass a linker flag through the compiler.
23156wl=$lt_lt_prog_compiler_wl_F77
23157
23158# Object file suffix (normally "o").
23159objext="$ac_objext"
23160
23161# Old archive suffix (normally "a").
23162libext="$libext"
23163
23164# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023166
23167# Executable file suffix (normally "").
23168exeext="$exeext"
23169
23170# Additional compiler flags for building library objects.
23171pic_flag=$lt_lt_prog_compiler_pic_F77
23172pic_mode=$pic_mode
23173
23174# What is the maximum length of a command?
23175max_cmd_len=$lt_cv_sys_max_cmd_len
23176
23177# Does compiler simultaneously support -c and -o options?
23178compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23179
Reid Spencera773bd52006-08-04 18:18:08 +000023180# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023181need_locks=$lt_need_locks
23182
23183# Do we need the lib prefix for modules?
23184need_lib_prefix=$need_lib_prefix
23185
23186# Do we need a version for libraries?
23187need_version=$need_version
23188
23189# Whether dlopen is supported.
23190dlopen_support=$enable_dlopen
23191
23192# Whether dlopen of programs is supported.
23193dlopen_self=$enable_dlopen_self
23194
23195# Whether dlopen of statically linked programs is supported.
23196dlopen_self_static=$enable_dlopen_self_static
23197
23198# Compiler flag to prevent dynamic linking.
23199link_static_flag=$lt_lt_prog_compiler_static_F77
23200
23201# Compiler flag to turn off builtin functions.
23202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23203
23204# Compiler flag to allow reflexive dlopens.
23205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23206
23207# Compiler flag to generate shared objects directly from archives.
23208whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23209
23210# Compiler flag to generate thread-safe objects.
23211thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23212
23213# Library versioning type.
23214version_type=$version_type
23215
23216# Format of library name prefix.
23217libname_spec=$lt_libname_spec
23218
23219# List of archive names. First name is the real one, the rest are links.
23220# The last name is the one that the linker finds with -lNAME.
23221library_names_spec=$lt_library_names_spec
23222
23223# The coded name of the library, if different from the real name.
23224soname_spec=$lt_soname_spec
23225
23226# Commands used to build and install an old-style archive.
23227RANLIB=$lt_RANLIB
23228old_archive_cmds=$lt_old_archive_cmds_F77
23229old_postinstall_cmds=$lt_old_postinstall_cmds
23230old_postuninstall_cmds=$lt_old_postuninstall_cmds
23231
23232# Create an old-style archive from a shared archive.
23233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23234
23235# Create a temporary old-style archive to link instead of a shared archive.
23236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23237
23238# Commands used to build and install a shared archive.
23239archive_cmds=$lt_archive_cmds_F77
23240archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23241postinstall_cmds=$lt_postinstall_cmds
23242postuninstall_cmds=$lt_postuninstall_cmds
23243
23244# Commands used to build a loadable module (assumed same as above if empty)
23245module_cmds=$lt_module_cmds_F77
23246module_expsym_cmds=$lt_module_expsym_cmds_F77
23247
23248# Commands to strip libraries.
23249old_striplib=$lt_old_striplib
23250striplib=$lt_striplib
23251
23252# Dependencies to place before the objects being linked to create a
23253# shared library.
23254predep_objects=$lt_predep_objects_F77
23255
23256# Dependencies to place after the objects being linked to create a
23257# shared library.
23258postdep_objects=$lt_postdep_objects_F77
23259
23260# Dependencies to place before the objects being linked to create a
23261# shared library.
23262predeps=$lt_predeps_F77
23263
23264# Dependencies to place after the objects being linked to create a
23265# shared library.
23266postdeps=$lt_postdeps_F77
23267
23268# The library search path used internally by the compiler when linking
23269# a shared library.
23270compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23271
23272# Method to check whether dependent libraries are shared objects.
23273deplibs_check_method=$lt_deplibs_check_method
23274
23275# Command to use when deplibs_check_method == file_magic.
23276file_magic_cmd=$lt_file_magic_cmd
23277
23278# Flag that allows shared libraries with undefined symbols to be built.
23279allow_undefined_flag=$lt_allow_undefined_flag_F77
23280
23281# Flag that forces no undefined symbols.
23282no_undefined_flag=$lt_no_undefined_flag_F77
23283
23284# Commands used to finish a libtool library installation in a directory.
23285finish_cmds=$lt_finish_cmds
23286
23287# Same as above, but a single script fragment to be evaled but not shown.
23288finish_eval=$lt_finish_eval
23289
23290# Take the output of nm and produce a listing of raw symbols and C names.
23291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23292
23293# Transform the output of nm in a proper C declaration
23294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23295
23296# Transform the output of nm in a C name address pair
23297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23298
23299# This is the shared library runtime path variable.
23300runpath_var=$runpath_var
23301
23302# This is the shared library path variable.
23303shlibpath_var=$shlibpath_var
23304
23305# Is shlibpath searched before the hard-coded library search path?
23306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23307
23308# How to hardcode a shared library path into an executable.
23309hardcode_action=$hardcode_action_F77
23310
23311# Whether we should hardcode library paths into libraries.
23312hardcode_into_libs=$hardcode_into_libs
23313
23314# Flag to hardcode \$libdir into a binary during linking.
23315# This must work even if \$libdir does not exist.
23316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23317
23318# If ld is used when linking, flag to hardcode \$libdir into
23319# a binary during linking. This must work even if \$libdir does
23320# not exist.
23321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23322
23323# Whether we need a single -rpath flag with a separated argument.
23324hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23325
23326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23327# resulting binary.
23328hardcode_direct=$hardcode_direct_F77
23329
23330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23331# resulting binary.
23332hardcode_minus_L=$hardcode_minus_L_F77
23333
23334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23335# the resulting binary.
23336hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23337
23338# Set to yes if building a shared library automatically hardcodes DIR into the library
23339# and all subsequent libraries and executables linked against it.
23340hardcode_automatic=$hardcode_automatic_F77
23341
23342# Variables whose values should be saved in libtool wrapper scripts and
23343# restored at relink time.
23344variables_saved_for_relink="$variables_saved_for_relink"
23345
23346# Whether libtool must link a program against all its dependency libraries.
23347link_all_deplibs=$link_all_deplibs_F77
23348
23349# Compile-time system search path for libraries
23350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23351
23352# Run-time system search path for libraries
23353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23354
23355# Fix the shell variable \$srcfile for the compiler.
23356fix_srcfile_path="$fix_srcfile_path_F77"
23357
23358# Set to yes if exported symbols are required.
23359always_export_symbols=$always_export_symbols_F77
23360
23361# The commands to list exported symbols.
23362export_symbols_cmds=$lt_export_symbols_cmds_F77
23363
23364# The commands to extract the exported symbol list from a shared archive.
23365extract_expsyms_cmds=$lt_extract_expsyms_cmds
23366
23367# Symbols that should not be listed in the preloaded symbols.
23368exclude_expsyms=$lt_exclude_expsyms_F77
23369
23370# Symbols that must always be exported.
23371include_expsyms=$lt_include_expsyms_F77
23372
23373# ### END LIBTOOL TAG CONFIG: $tagname
23374
23375__EOF__
23376
23377
23378else
23379 # If there is no Makefile yet, we rely on a make rule to execute
23380 # `config.status --recheck' to rerun these tests and create the
23381 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23383 if test -f "$ltmain_in"; then
23384 test -f Makefile && make "$ltmain"
23385 fi
John Criswell47fdd832003-07-14 16:52:07 +000023386fi
23387
23388
23389ac_ext=c
23390ac_cpp='$CPP $CPPFLAGS'
23391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
23395CC="$lt_save_CC"
23396
23397 else
23398 tagname=""
23399 fi
23400 ;;
23401
23402 GCJ)
23403 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 ac_ext=c
23405ac_cpp='$CPP $CPPFLAGS'
23406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23408ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023409
23410
23411# Source file extension for Java test sources.
23412ac_ext=java
23413
23414# Object file extension for compiled Java test sources.
23415objext=o
23416objext_GCJ=$objext
23417
23418# Code to be used in simple compile tests
23419lt_simple_compile_test_code="class foo {}\n"
23420
23421# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023422lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023423
23424# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23425
23426# If no C compiler was specified, use CC.
23427LTCC=${LTCC-"$CC"}
23428
Reid Spencera773bd52006-08-04 18:18:08 +000023429# If no C compiler flags were specified, use CFLAGS.
23430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23431
John Criswell47fdd832003-07-14 16:52:07 +000023432# Allow CC to be a program name with arguments.
23433compiler=$CC
23434
23435
Reid Spencera773bd52006-08-04 18:18:08 +000023436# save warnings/boilerplate of simple test code
23437ac_outfile=conftest.$ac_objext
23438printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23440_lt_compiler_boilerplate=`cat conftest.err`
23441$rm conftest*
23442
23443ac_outfile=conftest.$ac_objext
23444printf "$lt_simple_link_test_code" >conftest.$ac_ext
23445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23446_lt_linker_boilerplate=`cat conftest.err`
23447$rm conftest*
23448
23449
John Criswell47fdd832003-07-14 16:52:07 +000023450# Allow CC to be a program name with arguments.
23451lt_save_CC="$CC"
23452CC=${GCJ-"gcj"}
23453compiler=$CC
23454compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023455for cc_temp in $compiler""; do
23456 case $cc_temp in
23457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23459 \-*) ;;
23460 *) break;;
23461 esac
23462done
23463cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23464
John Criswell47fdd832003-07-14 16:52:07 +000023465
23466# GCJ did not exist at the time GCC didn't implicitly link libc in.
23467archive_cmds_need_lc_GCJ=no
23468
Reid Spencera773bd52006-08-04 18:18:08 +000023469old_archive_cmds_GCJ=$old_archive_cmds
23470
John Criswell47fdd832003-07-14 16:52:07 +000023471
23472lt_prog_compiler_no_builtin_flag_GCJ=
23473
23474if test "$GCC" = yes; then
23475 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23476
Reid Spencer2706f8c2004-09-19 23:53:36 +000023477
Reid Spencera773bd52006-08-04 18:18:08 +000023478{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23479echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023480if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483 lt_cv_prog_compiler_rtti_exceptions=no
23484 ac_outfile=conftest.$ac_objext
23485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23486 lt_compiler_flag="-fno-rtti -fno-exceptions"
23487 # Insert the option either (1) after the last *FLAGS variable, or
23488 # (2) before a word containing "conftest.", or (3) at the end.
23489 # Note that $ac_compile itself does not contain backslashes and begins
23490 # with a dollar sign (not a hyphen), so the echo should work correctly.
23491 # The option is referenced via a variable to avoid confusing sed.
23492 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23495 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000023496 (eval echo "\"\$as_me:23496: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023497 (eval "$lt_compile" 2>conftest.err)
23498 ac_status=$?
23499 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000023500 echo "$as_me:23500: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023501 if (exit $ac_status) && test -s "$ac_outfile"; then
23502 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023503 # So say no if there are warnings other than the usual output.
23504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023507 lt_cv_prog_compiler_rtti_exceptions=yes
23508 fi
23509 fi
23510 $rm conftest*
23511
23512fi
Reid Spencera773bd52006-08-04 18:18:08 +000023513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23514echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023515
23516if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23517 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23518else
23519 :
23520fi
23521
23522fi
23523
23524lt_prog_compiler_wl_GCJ=
23525lt_prog_compiler_pic_GCJ=
23526lt_prog_compiler_static_GCJ=
23527
Reid Spencera773bd52006-08-04 18:18:08 +000023528{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023530
23531 if test "$GCC" = yes; then
23532 lt_prog_compiler_wl_GCJ='-Wl,'
23533 lt_prog_compiler_static_GCJ='-static'
23534
23535 case $host_os in
23536 aix*)
23537 # All AIX code is PIC.
23538 if test "$host_cpu" = ia64; then
23539 # AIX 5 now supports IA64 processor
23540 lt_prog_compiler_static_GCJ='-Bstatic'
23541 fi
23542 ;;
23543
23544 amigaos*)
23545 # FIXME: we need at least 68020 code to build shared libraries, but
23546 # adding the `-m68020' flag to GCC prevents building anything better,
23547 # like `-m68040'.
23548 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23549 ;;
23550
23551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23552 # PIC is the default for these OSes.
23553 ;;
23554
23555 mingw* | pw32* | os2*)
23556 # This hack is so that the source file can tell whether it is being
23557 # built for inclusion in a dll (and should export symbols for example).
23558 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23559 ;;
23560
23561 darwin* | rhapsody*)
23562 # PIC is the default on this platform
23563 # Common symbols not allowed in MH_DYLIB files
23564 lt_prog_compiler_pic_GCJ='-fno-common'
23565 ;;
23566
Reid Spencera773bd52006-08-04 18:18:08 +000023567 interix3*)
23568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23569 # Instead, we relocate shared libraries at runtime.
23570 ;;
23571
John Criswell47fdd832003-07-14 16:52:07 +000023572 msdosdjgpp*)
23573 # Just because we use GCC doesn't mean we suddenly get shared libraries
23574 # on systems that don't support them.
23575 lt_prog_compiler_can_build_shared_GCJ=no
23576 enable_shared=no
23577 ;;
23578
23579 sysv4*MP*)
23580 if test -d /usr/nec; then
23581 lt_prog_compiler_pic_GCJ=-Kconform_pic
23582 fi
23583 ;;
23584
23585 hpux*)
23586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23587 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023588 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023589 hppa*64*|ia64*)
23590 # +Z the default
23591 ;;
23592 *)
23593 lt_prog_compiler_pic_GCJ='-fPIC'
23594 ;;
23595 esac
23596 ;;
23597
23598 *)
23599 lt_prog_compiler_pic_GCJ='-fPIC'
23600 ;;
23601 esac
23602 else
23603 # PORTME Check for flag to pass linker flags through the system compiler.
23604 case $host_os in
23605 aix*)
23606 lt_prog_compiler_wl_GCJ='-Wl,'
23607 if test "$host_cpu" = ia64; then
23608 # AIX 5 now supports IA64 processor
23609 lt_prog_compiler_static_GCJ='-Bstatic'
23610 else
23611 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23612 fi
23613 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023614 darwin*)
23615 # PIC is the default on this platform
23616 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023617 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023618 xlc*)
23619 lt_prog_compiler_pic_GCJ='-qnocommon'
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 ;;
23622 esac
23623 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023624
23625 mingw* | pw32* | os2*)
23626 # This hack is so that the source file can tell whether it is being
23627 # built for inclusion in a dll (and should export symbols for example).
23628 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23629 ;;
23630
23631 hpux9* | hpux10* | hpux11*)
23632 lt_prog_compiler_wl_GCJ='-Wl,'
23633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23634 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023635 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023636 hppa*64*|ia64*)
23637 # +Z the default
23638 ;;
23639 *)
23640 lt_prog_compiler_pic_GCJ='+Z'
23641 ;;
23642 esac
23643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23644 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23645 ;;
23646
23647 irix5* | irix6* | nonstopux*)
23648 lt_prog_compiler_wl_GCJ='-Wl,'
23649 # PIC (with -KPIC) is the default.
23650 lt_prog_compiler_static_GCJ='-non_shared'
23651 ;;
23652
23653 newsos6)
23654 lt_prog_compiler_pic_GCJ='-KPIC'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23656 ;;
23657
23658 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023659 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023660 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023661 lt_prog_compiler_wl_GCJ='-Wl,'
23662 lt_prog_compiler_pic_GCJ='-KPIC'
23663 lt_prog_compiler_static_GCJ='-static'
23664 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023665 pgcc* | pgf77* | pgf90* | pgf95*)
23666 # Portland Group compilers (*not* the Pentium gcc compiler,
23667 # which looks to be a dead project)
23668 lt_prog_compiler_wl_GCJ='-Wl,'
23669 lt_prog_compiler_pic_GCJ='-fpic'
23670 lt_prog_compiler_static_GCJ='-Bstatic'
23671 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023672 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023673 lt_prog_compiler_wl_GCJ='-Wl,'
23674 # All Alpha code is PIC.
23675 lt_prog_compiler_static_GCJ='-non_shared'
23676 ;;
23677 esac
23678 ;;
23679
23680 osf3* | osf4* | osf5*)
23681 lt_prog_compiler_wl_GCJ='-Wl,'
23682 # All OSF/1 code is PIC.
23683 lt_prog_compiler_static_GCJ='-non_shared'
23684 ;;
23685
John Criswell47fdd832003-07-14 16:52:07 +000023686 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023687 lt_prog_compiler_pic_GCJ='-KPIC'
23688 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023689 case $cc_basename in
23690 f77* | f90* | f95*)
23691 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23692 *)
23693 lt_prog_compiler_wl_GCJ='-Wl,';;
23694 esac
John Criswell47fdd832003-07-14 16:52:07 +000023695 ;;
23696
23697 sunos4*)
23698 lt_prog_compiler_wl_GCJ='-Qoption ld '
23699 lt_prog_compiler_pic_GCJ='-PIC'
23700 lt_prog_compiler_static_GCJ='-Bstatic'
23701 ;;
23702
Reid Spencera773bd52006-08-04 18:18:08 +000023703 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023704 lt_prog_compiler_wl_GCJ='-Wl,'
23705 lt_prog_compiler_pic_GCJ='-KPIC'
23706 lt_prog_compiler_static_GCJ='-Bstatic'
23707 ;;
23708
23709 sysv4*MP*)
23710 if test -d /usr/nec ;then
23711 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23712 lt_prog_compiler_static_GCJ='-Bstatic'
23713 fi
23714 ;;
23715
Reid Spencera773bd52006-08-04 18:18:08 +000023716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23717 lt_prog_compiler_wl_GCJ='-Wl,'
23718 lt_prog_compiler_pic_GCJ='-KPIC'
23719 lt_prog_compiler_static_GCJ='-Bstatic'
23720 ;;
23721
23722 unicos*)
23723 lt_prog_compiler_wl_GCJ='-Wl,'
23724 lt_prog_compiler_can_build_shared_GCJ=no
23725 ;;
23726
John Criswell47fdd832003-07-14 16:52:07 +000023727 uts4*)
23728 lt_prog_compiler_pic_GCJ='-pic'
23729 lt_prog_compiler_static_GCJ='-Bstatic'
23730 ;;
23731
23732 *)
23733 lt_prog_compiler_can_build_shared_GCJ=no
23734 ;;
23735 esac
23736 fi
23737
Reid Spencera773bd52006-08-04 18:18:08 +000023738{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23739echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023740
23741#
23742# Check to make sure the PIC flag actually works.
23743#
23744if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023745
Reid Spencera773bd52006-08-04 18:18:08 +000023746{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023748if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750else
23751 lt_prog_compiler_pic_works_GCJ=no
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23755 # Insert the option either (1) after the last *FLAGS variable, or
23756 # (2) before a word containing "conftest.", or (3) at the end.
23757 # Note that $ac_compile itself does not contain backslashes and begins
23758 # with a dollar sign (not a hyphen), so the echo should work correctly.
23759 # The option is referenced via a variable to avoid confusing sed.
23760 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000023764 (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023765 (eval "$lt_compile" 2>conftest.err)
23766 ac_status=$?
23767 cat conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000023768 echo "$as_me:23768: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023769 if (exit $ac_status) && test -s "$ac_outfile"; then
23770 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023771 # So say no if there are warnings other than the usual output.
23772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023775 lt_prog_compiler_pic_works_GCJ=yes
23776 fi
23777 fi
23778 $rm conftest*
23779
23780fi
Reid Spencera773bd52006-08-04 18:18:08 +000023781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23782echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023783
23784if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23785 case $lt_prog_compiler_pic_GCJ in
23786 "" | " "*) ;;
23787 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23788 esac
23789else
23790 lt_prog_compiler_pic_GCJ=
23791 lt_prog_compiler_can_build_shared_GCJ=no
23792fi
23793
23794fi
Reid Spencera773bd52006-08-04 18:18:08 +000023795case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023796 # For platforms which do not support PIC, -DPIC is meaningless:
23797 *djgpp*)
23798 lt_prog_compiler_pic_GCJ=
23799 ;;
23800 *)
23801 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23802 ;;
23803esac
23804
Reid Spencera773bd52006-08-04 18:18:08 +000023805#
23806# Check to make sure the static flag actually works.
23807#
23808wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23809{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23810echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23811if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814 lt_prog_compiler_static_works_GCJ=no
23815 save_LDFLAGS="$LDFLAGS"
23816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23817 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23819 # The linker can only warn and ignore the option if not recognized
23820 # So say no if there are warnings
23821 if test -s conftest.err; then
23822 # Append any errors to the config.log.
23823 cat conftest.err 1>&5
23824 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826 if diff conftest.exp conftest.er2 >/dev/null; then
23827 lt_prog_compiler_static_works_GCJ=yes
23828 fi
23829 else
23830 lt_prog_compiler_static_works_GCJ=yes
23831 fi
23832 fi
23833 $rm conftest*
23834 LDFLAGS="$save_LDFLAGS"
23835
23836fi
23837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23838echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23839
23840if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23841 :
23842else
23843 lt_prog_compiler_static_GCJ=
23844fi
23845
23846
23847{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023849if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852 lt_cv_prog_compiler_c_o_GCJ=no
23853 $rm -r conftest 2>/dev/null
23854 mkdir conftest
23855 cd conftest
23856 mkdir out
23857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23858
John Criswell47fdd832003-07-14 16:52:07 +000023859 lt_compiler_flag="-o out/conftest2.$ac_objext"
23860 # Insert the option either (1) after the last *FLAGS variable, or
23861 # (2) before a word containing "conftest.", or (3) at the end.
23862 # Note that $ac_compile itself does not contain backslashes and begins
23863 # with a dollar sign (not a hyphen), so the echo should work correctly.
23864 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23867 -e 's:$: $lt_compiler_flag:'`
Reid Spencer89b0d992006-12-16 22:07:52 +000023868 (eval echo "\"\$as_me:23868: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023869 (eval "$lt_compile" 2>out/conftest.err)
23870 ac_status=$?
23871 cat out/conftest.err >&5
Reid Spencer89b0d992006-12-16 22:07:52 +000023872 echo "$as_me:23872: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23874 then
23875 # The compiler can only warn and ignore the option if not recognized
23876 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023880 lt_cv_prog_compiler_c_o_GCJ=yes
23881 fi
23882 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023883 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023884 $rm conftest*
23885 # SGI C++ compiler will create directory out/ii_files/ for
23886 # template instantiation
23887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23888 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023889 cd ..
23890 rmdir conftest
23891 $rm conftest*
23892
23893fi
Reid Spencera773bd52006-08-04 18:18:08 +000023894{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23895echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023896
23897
23898hard_links="nottested"
23899if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23900 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023903 hard_links=yes
23904 $rm conftest*
23905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23906 touch conftest.a
23907 ln conftest.a conftest.b 2>&5 || hard_links=no
23908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023909 { echo "$as_me:$LINENO: result: $hard_links" >&5
23910echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023911 if test "$hard_links" = no; then
23912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23914 need_locks=warn
23915 fi
23916else
23917 need_locks=no
23918fi
23919
Reid Spencera773bd52006-08-04 18:18:08 +000023920{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023922
23923 runpath_var=
23924 allow_undefined_flag_GCJ=
23925 enable_shared_with_static_runtimes_GCJ=no
23926 archive_cmds_GCJ=
23927 archive_expsym_cmds_GCJ=
23928 old_archive_From_new_cmds_GCJ=
23929 old_archive_from_expsyms_cmds_GCJ=
23930 export_dynamic_flag_spec_GCJ=
23931 whole_archive_flag_spec_GCJ=
23932 thread_safe_flag_spec_GCJ=
23933 hardcode_libdir_flag_spec_GCJ=
23934 hardcode_libdir_flag_spec_ld_GCJ=
23935 hardcode_libdir_separator_GCJ=
23936 hardcode_direct_GCJ=no
23937 hardcode_minus_L_GCJ=no
23938 hardcode_shlibpath_var_GCJ=unsupported
23939 link_all_deplibs_GCJ=unknown
23940 hardcode_automatic_GCJ=no
23941 module_cmds_GCJ=
23942 module_expsym_cmds_GCJ=
23943 always_export_symbols_GCJ=no
23944 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23945 # include_expsyms should be a list of space-separated symbols to be *always*
23946 # included in the symbol list
23947 include_expsyms_GCJ=
23948 # exclude_expsyms can be an extended regexp of symbols to exclude
23949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23951 # as well as any symbol that contains `d'.
23952 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23954 # platforms (ab)use it in PIC code, but their linkers get confused if
23955 # the symbol is explicitly referenced. Since portable code cannot
23956 # rely on this symbol name, it's probably fine to never include it in
23957 # preloaded symbol tables.
23958 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023959 # Just being paranoid about ensuring that cc_basename is set.
23960 for cc_temp in $compiler""; do
23961 case $cc_temp in
23962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23964 \-*) ;;
23965 *) break;;
23966 esac
23967done
23968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023969
23970 case $host_os in
23971 cygwin* | mingw* | pw32*)
23972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23973 # When not using gcc, we currently assume that we are using
23974 # Microsoft Visual C++.
23975 if test "$GCC" != yes; then
23976 with_gnu_ld=no
23977 fi
23978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023979 interix*)
23980 # we just hope/assume this is gcc and not c89 (= MSVC++)
23981 with_gnu_ld=yes
23982 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023983 openbsd*)
23984 with_gnu_ld=no
23985 ;;
23986 esac
23987
23988 ld_shlibs_GCJ=yes
23989 if test "$with_gnu_ld" = yes; then
23990 # If archive_cmds runs LD, not CC, wlarc should be empty
23991 wlarc='${wl}'
23992
Reid Spencera773bd52006-08-04 18:18:08 +000023993 # Set some defaults for GNU ld with shared library support. These
23994 # are reset later if shared libraries are not supported. Putting them
23995 # here allows them to be overridden if necessary.
23996 runpath_var=LD_RUN_PATH
23997 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23998 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23999 # ancient GNU ld didn't support --whole-archive et. al.
24000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24001 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24002 else
24003 whole_archive_flag_spec_GCJ=
24004 fi
24005 supports_anon_versioning=no
24006 case `$LD -v 2>/dev/null` in
24007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24010 *\ 2.11.*) ;; # other 2.11 versions
24011 *) supports_anon_versioning=yes ;;
24012 esac
24013
John Criswell47fdd832003-07-14 16:52:07 +000024014 # See if GNU ld supports shared libraries.
24015 case $host_os in
24016 aix3* | aix4* | aix5*)
24017 # On AIX/PPC, the GNU linker is very broken
24018 if test "$host_cpu" != ia64; then
24019 ld_shlibs_GCJ=no
24020 cat <<EOF 1>&2
24021
24022*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24023*** to be unable to reliably create shared libraries on AIX.
24024*** Therefore, libtool is disabling shared libraries support. If you
24025*** really care for shared libraries, you may want to modify your PATH
24026*** so that a non-GNU linker is found, and then restart.
24027
24028EOF
24029 fi
24030 ;;
24031
24032 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024033 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 +000024034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24035 hardcode_minus_L_GCJ=yes
24036
24037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24038 # that the semantics of dynamic libraries on AmigaOS, at least up
24039 # to version 4, is to share data among multiple programs linked
24040 # with the same dynamic library. Since this doesn't match the
24041 # behavior of shared libraries on other platforms, we can't use
24042 # them.
24043 ld_shlibs_GCJ=no
24044 ;;
24045
24046 beos*)
24047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24048 allow_undefined_flag_GCJ=unsupported
24049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24050 # support --undefined. This deserves some investigation. FIXME
24051 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24052 else
24053 ld_shlibs_GCJ=no
24054 fi
24055 ;;
24056
24057 cygwin* | mingw* | pw32*)
24058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24059 # as there is no search path for DLLs.
24060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24061 allow_undefined_flag_GCJ=unsupported
24062 always_export_symbols_GCJ=no
24063 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024064 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 +000024065
24066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024067 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 +000024068 # If the export-symbols file already is a .def file (1st line
24069 # is EXPORTS), use it as is; otherwise, prepend...
24070 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24071 cp $export_symbols $output_objdir/$soname.def;
24072 else
24073 echo EXPORTS > $output_objdir/$soname.def;
24074 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024075 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024076 $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 +000024077 else
Reid Spencera773bd52006-08-04 18:18:08 +000024078 ld_shlibs_GCJ=no
24079 fi
24080 ;;
24081
24082 interix3*)
24083 hardcode_direct_GCJ=no
24084 hardcode_shlibpath_var_GCJ=no
24085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24086 export_dynamic_flag_spec_GCJ='${wl}-E'
24087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24088 # Instead, shared libraries are loaded at an image base (0x10000000 by
24089 # default) and relocated if they conflict, which is a slow very memory
24090 # consuming and fragmenting process. To avoid this, we pick a random,
24091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24093 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'
24094 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'
24095 ;;
24096
24097 linux*)
24098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24099 tmp_addflag=
24100 case $cc_basename,$host_cpu in
24101 pgcc*) # Portland Group C compiler
24102 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'
24103 tmp_addflag=' $pic_flag'
24104 ;;
24105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24106 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'
24107 tmp_addflag=' $pic_flag -Mnomain' ;;
24108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24109 tmp_addflag=' -i_dynamic' ;;
24110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24111 tmp_addflag=' -i_dynamic -nofor_main' ;;
24112 ifc* | ifort*) # Intel Fortran compiler
24113 tmp_addflag=' -nofor_main' ;;
24114 esac
24115 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24116
24117 if test $supports_anon_versioning = yes; then
24118 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24120 $echo "local: *; };" >> $output_objdir/$libname.ver~
24121 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24122 fi
24123 else
24124 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024125 fi
24126 ;;
24127
24128 netbsd*)
24129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24130 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24131 wlarc=
24132 else
24133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24134 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24135 fi
24136 ;;
24137
Reid Spencera773bd52006-08-04 18:18:08 +000024138 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24140 ld_shlibs_GCJ=no
24141 cat <<EOF 1>&2
24142
24143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24144*** create shared libraries on Solaris systems. Therefore, libtool
24145*** is disabling shared libraries support. We urge you to upgrade GNU
24146*** binutils to release 2.9.1 or newer. Another option is to modify
24147*** your PATH or compiler configuration so that the native linker is
24148*** used, and then restart.
24149
24150EOF
24151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24153 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24154 else
24155 ld_shlibs_GCJ=no
24156 fi
24157 ;;
24158
Reid Spencera773bd52006-08-04 18:18:08 +000024159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24160 case `$LD -v 2>&1` in
24161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24162 ld_shlibs_GCJ=no
24163 cat <<_LT_EOF 1>&2
24164
24165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24166*** reliably create shared libraries on SCO systems. Therefore, libtool
24167*** is disabling shared libraries support. We urge you to upgrade GNU
24168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24169*** your PATH or compiler configuration so that the native linker is
24170*** used, and then restart.
24171
24172_LT_EOF
24173 ;;
24174 *)
24175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24176 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24179 else
24180 ld_shlibs_GCJ=no
24181 fi
24182 ;;
24183 esac
24184 ;;
24185
John Criswell47fdd832003-07-14 16:52:07 +000024186 sunos4*)
24187 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24188 wlarc=
24189 hardcode_direct_GCJ=yes
24190 hardcode_shlibpath_var_GCJ=no
24191 ;;
24192
24193 *)
24194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24196 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24197 else
24198 ld_shlibs_GCJ=no
24199 fi
24200 ;;
24201 esac
24202
Reid Spencera773bd52006-08-04 18:18:08 +000024203 if test "$ld_shlibs_GCJ" = no; then
24204 runpath_var=
24205 hardcode_libdir_flag_spec_GCJ=
24206 export_dynamic_flag_spec_GCJ=
24207 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024208 fi
24209 else
24210 # PORTME fill in a description of your system's linker (not GNU ld)
24211 case $host_os in
24212 aix3*)
24213 allow_undefined_flag_GCJ=unsupported
24214 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024215 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 +000024216 # Note: this linker hardcodes the directories in LIBPATH if there
24217 # are no directories specified by -L.
24218 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024220 # Neither direct hardcoding nor static linking is supported with a
24221 # broken collect2.
24222 hardcode_direct_GCJ=unsupported
24223 fi
24224 ;;
24225
24226 aix4* | aix5*)
24227 if test "$host_cpu" = ia64; then
24228 # On IA64, the linker does run time linking by default, so we don't
24229 # have to do anything special.
24230 aix_use_runtimelinking=no
24231 exp_sym_flag='-Bexport'
24232 no_entry_flag=""
24233 else
24234 # If we're using GNU nm, then we don't want the "-C" option.
24235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24237 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'
24238 else
24239 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'
24240 fi
24241 aix_use_runtimelinking=no
24242
24243 # Test if we are trying to use run time linking or normal
24244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24245 # need to do runtime linking.
24246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24247 for ld_flag in $LDFLAGS; do
24248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24249 aix_use_runtimelinking=yes
24250 break
24251 fi
24252 done
Reid Spencera773bd52006-08-04 18:18:08 +000024253 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024254 esac
24255
24256 exp_sym_flag='-bexport'
24257 no_entry_flag='-bnoentry'
24258 fi
24259
24260 # When large executables or shared objects are built, AIX ld can
24261 # have problems creating the table of contents. If linking a library
24262 # or program results in "error TOC overflow" add -mminimal-toc to
24263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24265
24266 archive_cmds_GCJ=''
24267 hardcode_direct_GCJ=yes
24268 hardcode_libdir_separator_GCJ=':'
24269 link_all_deplibs_GCJ=yes
24270
24271 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024272 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024273 # We only want to do this on AIX 4.2 and lower, the check
24274 # below for broken collect2 doesn't work under 4.3+
24275 collect2name=`${CC} -print-prog-name=collect2`
24276 if test -f "$collect2name" && \
24277 strings "$collect2name" | grep resolve_lib_name >/dev/null
24278 then
24279 # We have reworked collect2
24280 hardcode_direct_GCJ=yes
24281 else
24282 # We have old collect2
24283 hardcode_direct_GCJ=unsupported
24284 # It fails to find uninstalled libraries when the uninstalled
24285 # path is not listed in the libpath. Setting hardcode_minus_L
24286 # to unsupported forces relinking
24287 hardcode_minus_L_GCJ=yes
24288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24289 hardcode_libdir_separator_GCJ=
24290 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024292 esac
24293 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024294 if test "$aix_use_runtimelinking" = yes; then
24295 shared_flag="$shared_flag "'${wl}-G'
24296 fi
John Criswell47fdd832003-07-14 16:52:07 +000024297 else
24298 # not using gcc
24299 if test "$host_cpu" = ia64; then
24300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24301 # chokes on -Wl,-G. The following line is correct:
24302 shared_flag='-G'
24303 else
Reid Spencera773bd52006-08-04 18:18:08 +000024304 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024305 shared_flag='${wl}-G'
24306 else
24307 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024308 fi
John Criswell47fdd832003-07-14 16:52:07 +000024309 fi
24310 fi
24311
24312 # It seems that -bexpall does not export symbols beginning with
24313 # underscore (_), so it is better to generate a list of symbols to export.
24314 always_export_symbols_GCJ=yes
24315 if test "$aix_use_runtimelinking" = yes; then
24316 # Warning - without using the other runtime loading flags (-brtl),
24317 # -berok will link without error, but may produce a broken library.
24318 allow_undefined_flag_GCJ='-berok'
24319 # Determine the default libpath from the value encoded in an empty executable.
24320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024321/* confdefs.h. */
24322_ACEOF
24323cat confdefs.h >>conftest.$ac_ext
24324cat >>conftest.$ac_ext <<_ACEOF
24325/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024326
John Criswell47fdd832003-07-14 16:52:07 +000024327int
24328main ()
24329{
24330
24331 ;
24332 return 0;
24333}
24334_ACEOF
24335rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024336if { (ac_try="$ac_link"
24337case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24340esac
24341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024344 grep -v '^ *+' conftest.er1 >conftest.err
24345 rm -f conftest.er1
24346 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350 { (case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353esac
24354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024360 { (case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24363esac
24364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024366 ac_status=$?
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369
24370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24371}'`
24372# Check for a 64-bit object if we didn't find anything.
24373if 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; }
24374}'`; fi
24375else
24376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024377sed 's/^/| /' conftest.$ac_ext >&5
24378
Reid Spencera773bd52006-08-04 18:18:08 +000024379
John Criswell47fdd832003-07-14 16:52:07 +000024380fi
Reid Spencera773bd52006-08-04 18:18:08 +000024381
24382rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024383 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24385
24386 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024387 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 +000024388 else
24389 if test "$host_cpu" = ia64; then
24390 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24391 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024392 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 +000024393 else
24394 # Determine the default libpath from the value encoded in an empty executable.
24395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024396/* confdefs.h. */
24397_ACEOF
24398cat confdefs.h >>conftest.$ac_ext
24399cat >>conftest.$ac_ext <<_ACEOF
24400/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024401
John Criswell47fdd832003-07-14 16:52:07 +000024402int
24403main ()
24404{
24405
24406 ;
24407 return 0;
24408}
24409_ACEOF
24410rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024411if { (ac_try="$ac_link"
24412case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415esac
24416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24425 { (case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24428esac
24429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024435 { (case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438esac
24439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444
24445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24446}'`
24447# Check for a 64-bit object if we didn't find anything.
24448if 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; }
24449}'`; fi
24450else
24451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024452sed 's/^/| /' conftest.$ac_ext >&5
24453
Reid Spencera773bd52006-08-04 18:18:08 +000024454
John Criswell47fdd832003-07-14 16:52:07 +000024455fi
Reid Spencera773bd52006-08-04 18:18:08 +000024456
24457rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024458 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24460
24461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24462 # Warning - without using the other run time loading flags,
24463 # -berok will link without error, but may produce a broken library.
24464 no_undefined_flag_GCJ=' ${wl}-bernotok'
24465 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024466 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024467 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024468 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024469 # This is similar to how AIX traditionally builds its shared libraries.
24470 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 +000024471 fi
24472 fi
24473 ;;
24474
24475 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024476 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 +000024477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24478 hardcode_minus_L_GCJ=yes
24479 # see comment about different semantics on the GNU ld section
24480 ld_shlibs_GCJ=no
24481 ;;
24482
Reid Spencer2706f8c2004-09-19 23:53:36 +000024483 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024484 export_dynamic_flag_spec_GCJ=-rdynamic
24485 ;;
24486
24487 cygwin* | mingw* | pw32*)
24488 # When not using gcc, we currently assume that we are using
24489 # Microsoft Visual C++.
24490 # hardcode_libdir_flag_spec is actually meaningless, as there is
24491 # no search path for DLLs.
24492 hardcode_libdir_flag_spec_GCJ=' '
24493 allow_undefined_flag_GCJ=unsupported
24494 # Tell ltmain to make .lib files, not .a files.
24495 libext=lib
24496 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024497 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024498 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024499 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 +000024500 # The linker will automatically build a .lib file if we build a DLL.
24501 old_archive_From_new_cmds_GCJ='true'
24502 # FIXME: Should let the user specify the lib program.
24503 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024504 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024505 enable_shared_with_static_runtimes_GCJ=yes
24506 ;;
24507
24508 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024509 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024510 rhapsody* | darwin1.[012])
24511 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24512 ;;
24513 *) # Darwin 1.3 on
24514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24515 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24516 else
24517 case ${MACOSX_DEPLOYMENT_TARGET} in
24518 10.[012])
24519 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24520 ;;
24521 10.*)
24522 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24523 ;;
24524 esac
24525 fi
24526 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024527 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024528 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024529 hardcode_direct_GCJ=no
24530 hardcode_automatic_GCJ=yes
24531 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024532 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024533 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024534 if test "$GCC" = yes ; then
24535 output_verbose_link_cmd='echo'
24536 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24537 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024538 # 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 +000024539 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}'
24540 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 +000024541 else
Reid Spencera773bd52006-08-04 18:18:08 +000024542 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024543 xlc*)
24544 output_verbose_link_cmd='echo'
24545 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24546 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024547 # 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 +000024548 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}'
24549 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 +000024550 ;;
24551 *)
24552 ld_shlibs_GCJ=no
24553 ;;
24554 esac
John Criswell47fdd832003-07-14 16:52:07 +000024555 fi
24556 ;;
24557
24558 dgux*)
24559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24561 hardcode_shlibpath_var_GCJ=no
24562 ;;
24563
24564 freebsd1*)
24565 ld_shlibs_GCJ=no
24566 ;;
24567
24568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24569 # support. Future versions do this automatically, but an explicit c++rt0.o
24570 # does not break anything, and helps significantly (at the cost of a little
24571 # extra space).
24572 freebsd2.2*)
24573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24575 hardcode_direct_GCJ=yes
24576 hardcode_shlibpath_var_GCJ=no
24577 ;;
24578
24579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24580 freebsd2*)
24581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24582 hardcode_direct_GCJ=yes
24583 hardcode_minus_L_GCJ=yes
24584 hardcode_shlibpath_var_GCJ=no
24585 ;;
24586
24587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024588 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024589 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24590 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24591 hardcode_direct_GCJ=yes
24592 hardcode_shlibpath_var_GCJ=no
24593 ;;
24594
24595 hpux9*)
24596 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024597 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 +000024598 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024599 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 +000024600 fi
24601 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24602 hardcode_libdir_separator_GCJ=:
24603 hardcode_direct_GCJ=yes
24604
24605 # hardcode_minus_L: Not really in the search PATH,
24606 # but as the default location of the library.
24607 hardcode_minus_L_GCJ=yes
24608 export_dynamic_flag_spec_GCJ='${wl}-E'
24609 ;;
24610
Reid Spencera773bd52006-08-04 18:18:08 +000024611 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024613 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614 else
24615 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24616 fi
24617 if test "$with_gnu_ld" = no; then
24618 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619 hardcode_libdir_separator_GCJ=:
24620
24621 hardcode_direct_GCJ=yes
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24623
24624 # hardcode_minus_L: Not really in the search PATH,
24625 # but as the default location of the library.
24626 hardcode_minus_L_GCJ=yes
24627 fi
24628 ;;
24629
24630 hpux11*)
24631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24632 case $host_cpu in
24633 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024634 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024636 ia64*)
24637 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24638 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024639 *)
24640 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24641 ;;
24642 esac
24643 else
Reid Spencera773bd52006-08-04 18:18:08 +000024644 case $host_cpu in
24645 hppa*64*)
24646 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24647 ;;
24648 ia64*)
24649 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024650 ;;
24651 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024652 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 +000024653 ;;
24654 esac
24655 fi
24656 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024657 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24658 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024659
Reid Spencera773bd52006-08-04 18:18:08 +000024660 case $host_cpu in
24661 hppa*64*|ia64*)
24662 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24663 hardcode_direct_GCJ=no
24664 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024665 ;;
24666 *)
John Criswell47fdd832003-07-14 16:52:07 +000024667 hardcode_direct_GCJ=yes
24668 export_dynamic_flag_spec_GCJ='${wl}-E'
24669
24670 # hardcode_minus_L: Not really in the search PATH,
24671 # but as the default location of the library.
24672 hardcode_minus_L_GCJ=yes
24673 ;;
24674 esac
24675 fi
24676 ;;
24677
24678 irix5* | irix6* | nonstopux*)
24679 if test "$GCC" = yes; then
24680 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'
24681 else
24682 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'
24683 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24684 fi
24685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24686 hardcode_libdir_separator_GCJ=:
24687 link_all_deplibs_GCJ=yes
24688 ;;
24689
24690 netbsd*)
24691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24693 else
24694 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24695 fi
24696 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24697 hardcode_direct_GCJ=yes
24698 hardcode_shlibpath_var_GCJ=no
24699 ;;
24700
24701 newsos6)
24702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24703 hardcode_direct_GCJ=yes
24704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24705 hardcode_libdir_separator_GCJ=:
24706 hardcode_shlibpath_var_GCJ=no
24707 ;;
24708
24709 openbsd*)
24710 hardcode_direct_GCJ=yes
24711 hardcode_shlibpath_var_GCJ=no
24712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24713 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024714 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 +000024715 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24716 export_dynamic_flag_spec_GCJ='${wl}-E'
24717 else
24718 case $host_os in
24719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24720 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24721 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24722 ;;
24723 *)
24724 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24726 ;;
24727 esac
24728 fi
24729 ;;
24730
24731 os2*)
24732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24733 hardcode_minus_L_GCJ=yes
24734 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024735 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 +000024736 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24737 ;;
24738
24739 osf3*)
24740 if test "$GCC" = yes; then
24741 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24742 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'
24743 else
24744 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24745 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'
24746 fi
24747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748 hardcode_libdir_separator_GCJ=:
24749 ;;
24750
24751 osf4* | osf5*) # as osf3* with the addition of -msym flag
24752 if test "$GCC" = yes; then
24753 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24754 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'
24755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24756 else
24757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758 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 +000024759 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 +000024760 $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 +000024761
John Criswell47fdd832003-07-14 16:52:07 +000024762 # Both c and cxx compiler support -rpath directly
24763 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24764 fi
24765 hardcode_libdir_separator_GCJ=:
24766 ;;
24767
John Criswell47fdd832003-07-14 16:52:07 +000024768 solaris*)
24769 no_undefined_flag_GCJ=' -z text'
24770 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024771 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024772 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024773 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24774 $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 +000024775 else
Reid Spencera773bd52006-08-04 18:18:08 +000024776 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024777 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024778 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24779 $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 +000024780 fi
24781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24782 hardcode_shlibpath_var_GCJ=no
24783 case $host_os in
24784 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024785 *)
24786 # The compiler driver will combine linker options so we
24787 # cannot just pass the convience library names through
24788 # without $wl, iff we do not link with $LD.
24789 # Luckily, gcc supports the same syntax we need for Sun Studio.
24790 # Supported since Solaris 2.6 (maybe 2.5.1?)
24791 case $wlarc in
24792 '')
24793 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24794 *)
24795 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' ;;
24796 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024797 esac
24798 link_all_deplibs_GCJ=yes
24799 ;;
24800
24801 sunos4*)
24802 if test "x$host_vendor" = xsequent; then
24803 # Use $CC to link under sequent, because it throws in some extra .o
24804 # files that make .init and .fini sections work.
24805 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24806 else
24807 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24808 fi
24809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810 hardcode_direct_GCJ=yes
24811 hardcode_minus_L_GCJ=yes
24812 hardcode_shlibpath_var_GCJ=no
24813 ;;
24814
24815 sysv4)
24816 case $host_vendor in
24817 sni)
24818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819 hardcode_direct_GCJ=yes # is this really true???
24820 ;;
24821 siemens)
24822 ## LD is ld it makes a PLAMLIB
24823 ## CC just makes a GrossModule.
24824 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24825 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24826 hardcode_direct_GCJ=no
24827 ;;
24828 motorola)
24829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24830 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24831 ;;
24832 esac
24833 runpath_var='LD_RUN_PATH'
24834 hardcode_shlibpath_var_GCJ=no
24835 ;;
24836
24837 sysv4.3*)
24838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839 hardcode_shlibpath_var_GCJ=no
24840 export_dynamic_flag_spec_GCJ='-Bexport'
24841 ;;
24842
24843 sysv4*MP*)
24844 if test -d /usr/nec; then
24845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24846 hardcode_shlibpath_var_GCJ=no
24847 runpath_var=LD_RUN_PATH
24848 hardcode_runpath_var=yes
24849 ld_shlibs_GCJ=yes
24850 fi
24851 ;;
24852
Reid Spencera773bd52006-08-04 18:18:08 +000024853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24854 no_undefined_flag_GCJ='${wl}-z,text'
24855 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024856 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024857 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024858
John Criswell47fdd832003-07-14 16:52:07 +000024859 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024860 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24861 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 +000024862 else
Reid Spencera773bd52006-08-04 18:18:08 +000024863 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 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 +000024865 fi
John Criswell47fdd832003-07-14 16:52:07 +000024866 ;;
24867
Reid Spencera773bd52006-08-04 18:18:08 +000024868 sysv5* | sco3.2v5* | sco5v6*)
24869 # Note: We can NOT use -z defs as we might desire, because we do not
24870 # link with -lc, and that would cause any symbols used from libc to
24871 # always be unresolved, which means just about no library would
24872 # ever link correctly. If we're not using GNU ld we use -z text
24873 # though, which does catch some bad symbols but isn't as heavy-handed
24874 # as -z defs.
24875 no_undefined_flag_GCJ='${wl}-z,text'
24876 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24877 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024878 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024879 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24880 hardcode_libdir_separator_GCJ=':'
24881 link_all_deplibs_GCJ=yes
24882 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024883 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024884
24885 if test "$GCC" = yes; then
24886 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24887 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888 else
24889 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 fi
John Criswell47fdd832003-07-14 16:52:07 +000024892 ;;
24893
24894 uts4*)
24895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24896 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24897 hardcode_shlibpath_var_GCJ=no
24898 ;;
24899
24900 *)
24901 ld_shlibs_GCJ=no
24902 ;;
24903 esac
24904 fi
24905
Reid Spencera773bd52006-08-04 18:18:08 +000024906{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24907echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024908test "$ld_shlibs_GCJ" = no && can_build_shared=no
24909
John Criswell47fdd832003-07-14 16:52:07 +000024910#
24911# Do we need to explicitly link libc?
24912#
24913case "x$archive_cmds_need_lc_GCJ" in
24914x|xyes)
24915 # Assume -lc should be added
24916 archive_cmds_need_lc_GCJ=yes
24917
24918 if test "$enable_shared" = yes && test "$GCC" = yes; then
24919 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024921 # FIXME: we may have to deal with multi-command sequences.
24922 ;;
24923 '$CC '*)
24924 # Test whether the compiler implicitly links with -lc since on some
24925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24926 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024927 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024929 $rm conftest*
24930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24931
24932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24933 (eval $ac_compile) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } 2>conftest.err; then
24937 soname=conftest
24938 lib=conftest
24939 libobjs=conftest.$ac_objext
24940 deplibs=
24941 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024942 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024943 compiler_flags=-v
24944 linker_flags=-v
24945 verstring=
24946 output_objdir=.
24947 libname=conftest
24948 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24949 allow_undefined_flag_GCJ=
24950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24951 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }
24955 then
24956 archive_cmds_need_lc_GCJ=no
24957 else
24958 archive_cmds_need_lc_GCJ=yes
24959 fi
24960 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24961 else
24962 cat conftest.err 1>&5
24963 fi
24964 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024965 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24966echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024967 ;;
24968 esac
24969 fi
24970 ;;
24971esac
24972
Reid Spencera773bd52006-08-04 18:18:08 +000024973{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24974echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024975library_names_spec=
24976libname_spec='lib$name'
24977soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024978shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024979postinstall_cmds=
24980postuninstall_cmds=
24981finish_cmds=
24982finish_eval=
24983shlibpath_var=
24984shlibpath_overrides_runpath=unknown
24985version_type=none
24986dynamic_linker="$host_os ld.so"
24987sys_lib_dlsearch_path_spec="/lib /usr/lib"
24988if test "$GCC" = yes; then
24989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24991 # if the path contains ";" then we assume it to be the separator
24992 # otherwise default to the standard path separator (i.e. ":") - it is
24993 # assumed that no part of a normal pathname contains ";" but that should
24994 # okay in the real world where ";" in dirpaths is itself problematic.
24995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24996 else
24997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24998 fi
24999else
25000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25001fi
25002need_lib_prefix=unknown
25003hardcode_into_libs=no
25004
25005# when you set need_version to no, make sure it does not cause -set_version
25006# flags to be left without arguments
25007need_version=unknown
25008
25009case $host_os in
25010aix3*)
25011 version_type=linux
25012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25013 shlibpath_var=LIBPATH
25014
25015 # AIX 3 has no versioning support, so we append a major version to the name.
25016 soname_spec='${libname}${release}${shared_ext}$major'
25017 ;;
25018
25019aix4* | aix5*)
25020 version_type=linux
25021 need_lib_prefix=no
25022 need_version=no
25023 hardcode_into_libs=yes
25024 if test "$host_cpu" = ia64; then
25025 # AIX 5 supports IA64
25026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25027 shlibpath_var=LD_LIBRARY_PATH
25028 else
25029 # With GCC up to 2.95.x, collect2 would create an import file
25030 # for dependence libraries. The import file would start with
25031 # the line `#! .'. This would cause the generated library to
25032 # depend on `.', always an invalid library. This was fixed in
25033 # development snapshots of GCC prior to 3.0.
25034 case $host_os in
25035 aix4 | aix4.[01] | aix4.[01].*)
25036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25037 echo ' yes '
25038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25039 :
25040 else
25041 can_build_shared=no
25042 fi
25043 ;;
25044 esac
25045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25046 # soname into executable. Probably we can add versioning support to
25047 # collect2, so additional links can be useful in future.
25048 if test "$aix_use_runtimelinking" = yes; then
25049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25050 # instead of lib<name>.a to let people know that these are not
25051 # typical AIX shared libraries.
25052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25053 else
25054 # We preserve .a as extension for shared libraries through AIX4.2
25055 # and later when we are not doing run time linking.
25056 library_names_spec='${libname}${release}.a $libname.a'
25057 soname_spec='${libname}${release}${shared_ext}$major'
25058 fi
25059 shlibpath_var=LIBPATH
25060 fi
25061 ;;
25062
25063amigaos*)
25064 library_names_spec='$libname.ixlibrary $libname.a'
25065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066 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 +000025067 ;;
25068
25069beos*)
25070 library_names_spec='${libname}${shared_ext}'
25071 dynamic_linker="$host_os ld.so"
25072 shlibpath_var=LIBRARY_PATH
25073 ;;
25074
Reid Spencer2706f8c2004-09-19 23:53:36 +000025075bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025076 version_type=linux
25077 need_version=no
25078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079 soname_spec='${libname}${release}${shared_ext}$major'
25080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25081 shlibpath_var=LD_LIBRARY_PATH
25082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25084 # the default ld.so.conf also contains /usr/contrib/lib and
25085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25086 # libtool to hard-code these into programs
25087 ;;
25088
25089cygwin* | mingw* | pw32*)
25090 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025091 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025092 need_version=no
25093 need_lib_prefix=no
25094
25095 case $GCC,$host_os in
25096 yes,cygwin* | yes,mingw* | yes,pw32*)
25097 library_names_spec='$libname.dll.a'
25098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025099 postinstall_cmds='base_file=`basename \${file}`~
25100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25101 dldir=$destdir/`dirname \$dlpath`~
25102 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025103 $install_prog $dir/$dlname \$dldir/$dlname~
25104 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25106 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025107 $rm \$dlpath'
25108 shlibpath_overrides_runpath=yes
25109
25110 case $host_os in
25111 cygwin*)
25112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25113 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 +000025114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025115 ;;
25116 mingw*)
25117 # MinGW DLLs use traditional 'lib' prefix
25118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25121 # It is most probably a Windows format PATH printed by
25122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25123 # path with ; separators, and with drive letters. We can handle the
25124 # drive letters (cygwin fileutils understands them), so leave them,
25125 # especially as we might pass files found there to a mingw objdump,
25126 # which wouldn't understand a cygwinified path. Ahh.
25127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25128 else
25129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25130 fi
25131 ;;
25132 pw32*)
25133 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025134 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 +000025135 ;;
25136 esac
25137 ;;
25138
25139 *)
25140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25141 ;;
25142 esac
25143 dynamic_linker='Win32 ld.exe'
25144 # FIXME: first we should search . and the directory the executable is in
25145 shlibpath_var=PATH
25146 ;;
25147
25148darwin* | rhapsody*)
25149 dynamic_linker="$host_os dyld"
25150 version_type=darwin
25151 need_lib_prefix=no
25152 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025154 soname_spec='${libname}${release}${major}$shared_ext'
25155 shlibpath_overrides_runpath=yes
25156 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025159 if test "$GCC" = yes; then
25160 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"`
25161 else
25162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025163 fi
25164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25165 ;;
25166
25167dgux*)
25168 version_type=linux
25169 need_lib_prefix=no
25170 need_version=no
25171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25172 soname_spec='${libname}${release}${shared_ext}$major'
25173 shlibpath_var=LD_LIBRARY_PATH
25174 ;;
25175
25176freebsd1*)
25177 dynamic_linker=no
25178 ;;
25179
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180kfreebsd*-gnu)
25181 version_type=linux
25182 need_lib_prefix=no
25183 need_version=no
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25185 soname_spec='${libname}${release}${shared_ext}$major'
25186 shlibpath_var=LD_LIBRARY_PATH
25187 shlibpath_overrides_runpath=no
25188 hardcode_into_libs=yes
25189 dynamic_linker='GNU ld.so'
25190 ;;
25191
Reid Spencera773bd52006-08-04 18:18:08 +000025192freebsd* | dragonfly*)
25193 # DragonFly does not have aout. When/if they implement a new
25194 # versioning mechanism, adjust this.
25195 if test -x /usr/bin/objformat; then
25196 objformat=`/usr/bin/objformat`
25197 else
25198 case $host_os in
25199 freebsd[123]*) objformat=aout ;;
25200 *) objformat=elf ;;
25201 esac
25202 fi
John Criswell47fdd832003-07-14 16:52:07 +000025203 version_type=freebsd-$objformat
25204 case $version_type in
25205 freebsd-elf*)
25206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25207 need_version=no
25208 need_lib_prefix=no
25209 ;;
25210 freebsd-*)
25211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25212 need_version=yes
25213 ;;
25214 esac
25215 shlibpath_var=LD_LIBRARY_PATH
25216 case $host_os in
25217 freebsd2*)
25218 shlibpath_overrides_runpath=yes
25219 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025220 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025221 shlibpath_overrides_runpath=yes
25222 hardcode_into_libs=yes
25223 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025226 shlibpath_overrides_runpath=no
25227 hardcode_into_libs=yes
25228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025229 freebsd*) # from 4.6 on
25230 shlibpath_overrides_runpath=yes
25231 hardcode_into_libs=yes
25232 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025233 esac
25234 ;;
25235
25236gnu*)
25237 version_type=linux
25238 need_lib_prefix=no
25239 need_version=no
25240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25241 soname_spec='${libname}${release}${shared_ext}$major'
25242 shlibpath_var=LD_LIBRARY_PATH
25243 hardcode_into_libs=yes
25244 ;;
25245
25246hpux9* | hpux10* | hpux11*)
25247 # Give a soname corresponding to the major version so that dld.sl refuses to
25248 # link against other versions.
25249 version_type=sunos
25250 need_lib_prefix=no
25251 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025252 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025253 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025254 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025255 hardcode_into_libs=yes
25256 dynamic_linker="$host_os dld.so"
25257 shlibpath_var=LD_LIBRARY_PATH
25258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25260 soname_spec='${libname}${release}${shared_ext}$major'
25261 if test "X$HPUX_IA64_MODE" = X32; then
25262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25263 else
25264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25265 fi
25266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25267 ;;
25268 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025269 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025270 hardcode_into_libs=yes
25271 dynamic_linker="$host_os dld.sl"
25272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25275 soname_spec='${libname}${release}${shared_ext}$major'
25276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25278 ;;
25279 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025281 dynamic_linker="$host_os dld.sl"
25282 shlibpath_var=SHLIB_PATH
25283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25285 soname_spec='${libname}${release}${shared_ext}$major'
25286 ;;
25287 esac
25288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25289 postinstall_cmds='chmod 555 $lib'
25290 ;;
25291
Reid Spencera773bd52006-08-04 18:18:08 +000025292interix3*)
25293 version_type=linux
25294 need_lib_prefix=no
25295 need_version=no
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25297 soname_spec='${libname}${release}${shared_ext}$major'
25298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25299 shlibpath_var=LD_LIBRARY_PATH
25300 shlibpath_overrides_runpath=no
25301 hardcode_into_libs=yes
25302 ;;
25303
John Criswell47fdd832003-07-14 16:52:07 +000025304irix5* | irix6* | nonstopux*)
25305 case $host_os in
25306 nonstopux*) version_type=nonstopux ;;
25307 *)
25308 if test "$lt_cv_prog_gnu_ld" = yes; then
25309 version_type=linux
25310 else
25311 version_type=irix
25312 fi ;;
25313 esac
25314 need_lib_prefix=no
25315 need_version=no
25316 soname_spec='${libname}${release}${shared_ext}$major'
25317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25318 case $host_os in
25319 irix5* | nonstopux*)
25320 libsuff= shlibsuff=
25321 ;;
25322 *)
25323 case $LD in # libtool.m4 will add one of these switches to LD
25324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25325 libsuff= shlibsuff= libmagic=32-bit;;
25326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25327 libsuff=32 shlibsuff=N32 libmagic=N32;;
25328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25330 *) libsuff= shlibsuff= libmagic=never-match;;
25331 esac
25332 ;;
25333 esac
25334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25335 shlibpath_overrides_runpath=no
25336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25338 hardcode_into_libs=yes
25339 ;;
25340
25341# No shared lib support for Linux oldld, aout, or coff.
25342linux*oldld* | linux*aout* | linux*coff*)
25343 dynamic_linker=no
25344 ;;
25345
25346# This must be Linux ELF.
25347linux*)
25348 version_type=linux
25349 need_lib_prefix=no
25350 need_version=no
25351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352 soname_spec='${libname}${release}${shared_ext}$major'
25353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25354 shlibpath_var=LD_LIBRARY_PATH
25355 shlibpath_overrides_runpath=no
25356 # This implies no fast_install, which is unacceptable.
25357 # Some rework will be needed to allow for fast_install
25358 # before this can be enabled.
25359 hardcode_into_libs=yes
25360
Reid Spencer2706f8c2004-09-19 23:53:36 +000025361 # Append ld.so.conf contents to the search path
25362 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025363 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 +000025364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25365 fi
25366
John Criswell47fdd832003-07-14 16:52:07 +000025367 # We used to test for /lib/ld.so.1 and disable shared libraries on
25368 # powerpc, because MkLinux only supported shared libraries with the
25369 # GNU dynamic linker. Since this was broken with cross compilers,
25370 # most powerpc-linux boxes support dynamic linking these days and
25371 # people can always --disable-shared, the test was removed, and we
25372 # assume the GNU/Linux dynamic linker is in use.
25373 dynamic_linker='GNU/Linux ld.so'
25374 ;;
25375
Reid Spencer2706f8c2004-09-19 23:53:36 +000025376knetbsd*-gnu)
25377 version_type=linux
25378 need_lib_prefix=no
25379 need_version=no
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25381 soname_spec='${libname}${release}${shared_ext}$major'
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=no
25384 hardcode_into_libs=yes
25385 dynamic_linker='GNU ld.so'
25386 ;;
25387
John Criswell47fdd832003-07-14 16:52:07 +000025388netbsd*)
25389 version_type=sunos
25390 need_lib_prefix=no
25391 need_version=no
25392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25395 dynamic_linker='NetBSD (a.out) ld.so'
25396 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025398 soname_spec='${libname}${release}${shared_ext}$major'
25399 dynamic_linker='NetBSD ld.elf_so'
25400 fi
25401 shlibpath_var=LD_LIBRARY_PATH
25402 shlibpath_overrides_runpath=yes
25403 hardcode_into_libs=yes
25404 ;;
25405
25406newsos6)
25407 version_type=linux
25408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409 shlibpath_var=LD_LIBRARY_PATH
25410 shlibpath_overrides_runpath=yes
25411 ;;
25412
Reid Spencer2706f8c2004-09-19 23:53:36 +000025413nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025414 version_type=linux
25415 need_lib_prefix=no
25416 need_version=no
25417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25418 soname_spec='${libname}${release}${shared_ext}$major'
25419 shlibpath_var=LD_LIBRARY_PATH
25420 shlibpath_overrides_runpath=yes
25421 ;;
25422
25423openbsd*)
25424 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025425 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025426 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25428 case $host_os in
25429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25430 *) need_version=no ;;
25431 esac
John Criswell47fdd832003-07-14 16:52:07 +000025432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25434 shlibpath_var=LD_LIBRARY_PATH
25435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25436 case $host_os in
25437 openbsd2.[89] | openbsd2.[89].*)
25438 shlibpath_overrides_runpath=no
25439 ;;
25440 *)
25441 shlibpath_overrides_runpath=yes
25442 ;;
25443 esac
25444 else
25445 shlibpath_overrides_runpath=yes
25446 fi
25447 ;;
25448
25449os2*)
25450 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025451 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025452 need_lib_prefix=no
25453 library_names_spec='$libname${shared_ext} $libname.a'
25454 dynamic_linker='OS/2 ld.exe'
25455 shlibpath_var=LIBPATH
25456 ;;
25457
25458osf3* | osf4* | osf5*)
25459 version_type=osf
25460 need_lib_prefix=no
25461 need_version=no
25462 soname_spec='${libname}${release}${shared_ext}$major'
25463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25464 shlibpath_var=LD_LIBRARY_PATH
25465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25467 ;;
25468
John Criswell47fdd832003-07-14 16:52:07 +000025469solaris*)
25470 version_type=linux
25471 need_lib_prefix=no
25472 need_version=no
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25476 shlibpath_overrides_runpath=yes
25477 hardcode_into_libs=yes
25478 # ldd complains unless libraries are executable
25479 postinstall_cmds='chmod +x $lib'
25480 ;;
25481
25482sunos4*)
25483 version_type=sunos
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 shlibpath_overrides_runpath=yes
25488 if test "$with_gnu_ld" = yes; then
25489 need_lib_prefix=no
25490 fi
25491 need_version=yes
25492 ;;
25493
Reid Spencera773bd52006-08-04 18:18:08 +000025494sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025495 version_type=linux
25496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25497 soname_spec='${libname}${release}${shared_ext}$major'
25498 shlibpath_var=LD_LIBRARY_PATH
25499 case $host_vendor in
25500 sni)
25501 shlibpath_overrides_runpath=no
25502 need_lib_prefix=no
25503 export_dynamic_flag_spec='${wl}-Blargedynsym'
25504 runpath_var=LD_RUN_PATH
25505 ;;
25506 siemens)
25507 need_lib_prefix=no
25508 ;;
25509 motorola)
25510 need_lib_prefix=no
25511 need_version=no
25512 shlibpath_overrides_runpath=no
25513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25514 ;;
25515 esac
25516 ;;
25517
25518sysv4*MP*)
25519 if test -d /usr/nec ;then
25520 version_type=linux
25521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25522 soname_spec='$libname${shared_ext}.$major'
25523 shlibpath_var=LD_LIBRARY_PATH
25524 fi
25525 ;;
25526
Reid Spencera773bd52006-08-04 18:18:08 +000025527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25528 version_type=freebsd-elf
25529 need_lib_prefix=no
25530 need_version=no
25531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25532 soname_spec='${libname}${release}${shared_ext}$major'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 hardcode_into_libs=yes
25535 if test "$with_gnu_ld" = yes; then
25536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25537 shlibpath_overrides_runpath=no
25538 else
25539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25540 shlibpath_overrides_runpath=yes
25541 case $host_os in
25542 sco3.2v5*)
25543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25544 ;;
25545 esac
25546 fi
25547 sys_lib_dlsearch_path_spec='/usr/lib'
25548 ;;
25549
John Criswell47fdd832003-07-14 16:52:07 +000025550uts4*)
25551 version_type=linux
25552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553 soname_spec='${libname}${release}${shared_ext}$major'
25554 shlibpath_var=LD_LIBRARY_PATH
25555 ;;
25556
25557*)
25558 dynamic_linker=no
25559 ;;
25560esac
Reid Spencera773bd52006-08-04 18:18:08 +000025561{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25562echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025563test "$dynamic_linker" = no && can_build_shared=no
25564
Reid Spencera773bd52006-08-04 18:18:08 +000025565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25566if test "$GCC" = yes; then
25567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25568fi
25569
25570{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025572hardcode_action_GCJ=
25573if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25574 test -n "$runpath_var_GCJ" || \
25575 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25576
25577 # We can hardcode non-existant directories.
25578 if test "$hardcode_direct_GCJ" != no &&
25579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25580 # have to relink, otherwise we might link with an installed library
25581 # when we should be linking with a yet-to-be-installed one
25582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25583 test "$hardcode_minus_L_GCJ" != no; then
25584 # Linking always hardcodes the temporary library directory.
25585 hardcode_action_GCJ=relink
25586 else
25587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25588 hardcode_action_GCJ=immediate
25589 fi
25590else
25591 # We cannot hardcode anything, or else we can only hardcode existing
25592 # directories.
25593 hardcode_action_GCJ=unsupported
25594fi
Reid Spencera773bd52006-08-04 18:18:08 +000025595{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25596echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025597
25598if test "$hardcode_action_GCJ" = relink; then
25599 # Fast installation is not supported
25600 enable_fast_install=no
25601elif test "$shlibpath_overrides_runpath" = yes ||
25602 test "$enable_shared" = no; then
25603 # Fast installation is not necessary
25604 enable_fast_install=needless
25605fi
25606
John Criswell47fdd832003-07-14 16:52:07 +000025607
25608# The else clause should only fire when bootstrapping the
25609# libtool distribution, otherwise you forgot to ship ltmain.sh
25610# with your package, and you will get complaints that there are
25611# no rules to generate ltmain.sh.
25612if test -f "$ltmain"; then
25613 # See if we are running on zsh, and set the options which allow our commands through
25614 # without removal of \ escapes.
25615 if test -n "${ZSH_VERSION+set}" ; then
25616 setopt NO_GLOB_SUBST
25617 fi
25618 # Now quote all the things that may contain metacharacters while being
25619 # careful not to overquote the AC_SUBSTed values. We take copies of the
25620 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025621 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 +000025622 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025623 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25624 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25625 deplibs_check_method reload_flag reload_cmds need_locks \
25626 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25627 lt_cv_sys_global_symbol_to_c_name_address \
25628 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25629 old_postinstall_cmds old_postuninstall_cmds \
25630 compiler_GCJ \
25631 CC_GCJ \
25632 LD_GCJ \
25633 lt_prog_compiler_wl_GCJ \
25634 lt_prog_compiler_pic_GCJ \
25635 lt_prog_compiler_static_GCJ \
25636 lt_prog_compiler_no_builtin_flag_GCJ \
25637 export_dynamic_flag_spec_GCJ \
25638 thread_safe_flag_spec_GCJ \
25639 whole_archive_flag_spec_GCJ \
25640 enable_shared_with_static_runtimes_GCJ \
25641 old_archive_cmds_GCJ \
25642 old_archive_from_new_cmds_GCJ \
25643 predep_objects_GCJ \
25644 postdep_objects_GCJ \
25645 predeps_GCJ \
25646 postdeps_GCJ \
25647 compiler_lib_search_path_GCJ \
25648 archive_cmds_GCJ \
25649 archive_expsym_cmds_GCJ \
25650 postinstall_cmds_GCJ \
25651 postuninstall_cmds_GCJ \
25652 old_archive_from_expsyms_cmds_GCJ \
25653 allow_undefined_flag_GCJ \
25654 no_undefined_flag_GCJ \
25655 export_symbols_cmds_GCJ \
25656 hardcode_libdir_flag_spec_GCJ \
25657 hardcode_libdir_flag_spec_ld_GCJ \
25658 hardcode_libdir_separator_GCJ \
25659 hardcode_automatic_GCJ \
25660 module_cmds_GCJ \
25661 module_expsym_cmds_GCJ \
25662 lt_cv_prog_compiler_c_o_GCJ \
25663 exclude_expsyms_GCJ \
25664 include_expsyms_GCJ; do
25665
25666 case $var in
25667 old_archive_cmds_GCJ | \
25668 old_archive_from_new_cmds_GCJ | \
25669 archive_cmds_GCJ | \
25670 archive_expsym_cmds_GCJ | \
25671 module_cmds_GCJ | \
25672 module_expsym_cmds_GCJ | \
25673 old_archive_from_expsyms_cmds_GCJ | \
25674 export_symbols_cmds_GCJ | \
25675 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25676 postinstall_cmds | postuninstall_cmds | \
25677 old_postinstall_cmds | old_postuninstall_cmds | \
25678 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25679 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025680 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 +000025681 ;;
25682 *)
25683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25684 ;;
25685 esac
25686 done
25687
25688 case $lt_echo in
25689 *'\$0 --fallback-echo"')
25690 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25691 ;;
25692 esac
25693
25694cfgfile="$ofile"
25695
25696 cat <<__EOF__ >> "$cfgfile"
25697# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25698
25699# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25700
25701# Shell to use when invoking shell scripts.
25702SHELL=$lt_SHELL
25703
25704# Whether or not to build shared libraries.
25705build_libtool_libs=$enable_shared
25706
25707# Whether or not to build static libraries.
25708build_old_libs=$enable_static
25709
25710# Whether or not to add -lc for building shared libraries.
25711build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25712
25713# Whether or not to disallow shared libs when runtime libs are static
25714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25715
25716# Whether or not to optimize for fast installation.
25717fast_install=$enable_fast_install
25718
25719# The host system.
25720host_alias=$host_alias
25721host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025722host_os=$host_os
25723
25724# The build system.
25725build_alias=$build_alias
25726build=$build
25727build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025728
25729# An echo program that does not interpret backslashes.
25730echo=$lt_echo
25731
25732# The archiver.
25733AR=$lt_AR
25734AR_FLAGS=$lt_AR_FLAGS
25735
25736# A C compiler.
25737LTCC=$lt_LTCC
25738
Reid Spencera773bd52006-08-04 18:18:08 +000025739# LTCC compiler flags.
25740LTCFLAGS=$lt_LTCFLAGS
25741
John Criswell47fdd832003-07-14 16:52:07 +000025742# A language-specific compiler.
25743CC=$lt_compiler_GCJ
25744
25745# Is the compiler the GNU C compiler?
25746with_gcc=$GCC_GCJ
25747
25748# An ERE matcher.
25749EGREP=$lt_EGREP
25750
25751# The linker used to build libraries.
25752LD=$lt_LD_GCJ
25753
25754# Whether we need hard or soft links.
25755LN_S=$lt_LN_S
25756
25757# A BSD-compatible nm program.
25758NM=$lt_NM
25759
25760# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025761STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025762
25763# Used to examine libraries when file_magic_cmd begins "file"
25764MAGIC_CMD=$MAGIC_CMD
25765
25766# Used on cygwin: DLL creation program.
25767DLLTOOL="$DLLTOOL"
25768
25769# Used on cygwin: object dumper.
25770OBJDUMP="$OBJDUMP"
25771
25772# Used on cygwin: assembler.
25773AS="$AS"
25774
25775# The name of the directory that contains temporary libtool files.
25776objdir=$objdir
25777
25778# How to create reloadable object files.
25779reload_flag=$lt_reload_flag
25780reload_cmds=$lt_reload_cmds
25781
25782# How to pass a linker flag through the compiler.
25783wl=$lt_lt_prog_compiler_wl_GCJ
25784
25785# Object file suffix (normally "o").
25786objext="$ac_objext"
25787
25788# Old archive suffix (normally "a").
25789libext="$libext"
25790
25791# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025792shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025793
25794# Executable file suffix (normally "").
25795exeext="$exeext"
25796
25797# Additional compiler flags for building library objects.
25798pic_flag=$lt_lt_prog_compiler_pic_GCJ
25799pic_mode=$pic_mode
25800
25801# What is the maximum length of a command?
25802max_cmd_len=$lt_cv_sys_max_cmd_len
25803
25804# Does compiler simultaneously support -c and -o options?
25805compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25806
Reid Spencera773bd52006-08-04 18:18:08 +000025807# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025808need_locks=$lt_need_locks
25809
25810# Do we need the lib prefix for modules?
25811need_lib_prefix=$need_lib_prefix
25812
25813# Do we need a version for libraries?
25814need_version=$need_version
25815
25816# Whether dlopen is supported.
25817dlopen_support=$enable_dlopen
25818
25819# Whether dlopen of programs is supported.
25820dlopen_self=$enable_dlopen_self
25821
25822# Whether dlopen of statically linked programs is supported.
25823dlopen_self_static=$enable_dlopen_self_static
25824
25825# Compiler flag to prevent dynamic linking.
25826link_static_flag=$lt_lt_prog_compiler_static_GCJ
25827
25828# Compiler flag to turn off builtin functions.
25829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25830
25831# Compiler flag to allow reflexive dlopens.
25832export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25833
25834# Compiler flag to generate shared objects directly from archives.
25835whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25836
25837# Compiler flag to generate thread-safe objects.
25838thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25839
25840# Library versioning type.
25841version_type=$version_type
25842
25843# Format of library name prefix.
25844libname_spec=$lt_libname_spec
25845
25846# List of archive names. First name is the real one, the rest are links.
25847# The last name is the one that the linker finds with -lNAME.
25848library_names_spec=$lt_library_names_spec
25849
25850# The coded name of the library, if different from the real name.
25851soname_spec=$lt_soname_spec
25852
25853# Commands used to build and install an old-style archive.
25854RANLIB=$lt_RANLIB
25855old_archive_cmds=$lt_old_archive_cmds_GCJ
25856old_postinstall_cmds=$lt_old_postinstall_cmds
25857old_postuninstall_cmds=$lt_old_postuninstall_cmds
25858
25859# Create an old-style archive from a shared archive.
25860old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25861
25862# Create a temporary old-style archive to link instead of a shared archive.
25863old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25864
25865# Commands used to build and install a shared archive.
25866archive_cmds=$lt_archive_cmds_GCJ
25867archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25868postinstall_cmds=$lt_postinstall_cmds
25869postuninstall_cmds=$lt_postuninstall_cmds
25870
25871# Commands used to build a loadable module (assumed same as above if empty)
25872module_cmds=$lt_module_cmds_GCJ
25873module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25874
25875# Commands to strip libraries.
25876old_striplib=$lt_old_striplib
25877striplib=$lt_striplib
25878
25879# Dependencies to place before the objects being linked to create a
25880# shared library.
25881predep_objects=$lt_predep_objects_GCJ
25882
25883# Dependencies to place after the objects being linked to create a
25884# shared library.
25885postdep_objects=$lt_postdep_objects_GCJ
25886
25887# Dependencies to place before the objects being linked to create a
25888# shared library.
25889predeps=$lt_predeps_GCJ
25890
25891# Dependencies to place after the objects being linked to create a
25892# shared library.
25893postdeps=$lt_postdeps_GCJ
25894
25895# The library search path used internally by the compiler when linking
25896# a shared library.
25897compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25898
25899# Method to check whether dependent libraries are shared objects.
25900deplibs_check_method=$lt_deplibs_check_method
25901
25902# Command to use when deplibs_check_method == file_magic.
25903file_magic_cmd=$lt_file_magic_cmd
25904
25905# Flag that allows shared libraries with undefined symbols to be built.
25906allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25907
25908# Flag that forces no undefined symbols.
25909no_undefined_flag=$lt_no_undefined_flag_GCJ
25910
25911# Commands used to finish a libtool library installation in a directory.
25912finish_cmds=$lt_finish_cmds
25913
25914# Same as above, but a single script fragment to be evaled but not shown.
25915finish_eval=$lt_finish_eval
25916
25917# Take the output of nm and produce a listing of raw symbols and C names.
25918global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25919
25920# Transform the output of nm in a proper C declaration
25921global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25922
25923# Transform the output of nm in a C name address pair
25924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25925
25926# This is the shared library runtime path variable.
25927runpath_var=$runpath_var
25928
25929# This is the shared library path variable.
25930shlibpath_var=$shlibpath_var
25931
25932# Is shlibpath searched before the hard-coded library search path?
25933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25934
25935# How to hardcode a shared library path into an executable.
25936hardcode_action=$hardcode_action_GCJ
25937
25938# Whether we should hardcode library paths into libraries.
25939hardcode_into_libs=$hardcode_into_libs
25940
25941# Flag to hardcode \$libdir into a binary during linking.
25942# This must work even if \$libdir does not exist.
25943hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25944
25945# If ld is used when linking, flag to hardcode \$libdir into
25946# a binary during linking. This must work even if \$libdir does
25947# not exist.
25948hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25949
25950# Whether we need a single -rpath flag with a separated argument.
25951hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25952
25953# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25954# resulting binary.
25955hardcode_direct=$hardcode_direct_GCJ
25956
25957# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25958# resulting binary.
25959hardcode_minus_L=$hardcode_minus_L_GCJ
25960
25961# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25962# the resulting binary.
25963hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25964
25965# Set to yes if building a shared library automatically hardcodes DIR into the library
25966# and all subsequent libraries and executables linked against it.
25967hardcode_automatic=$hardcode_automatic_GCJ
25968
25969# Variables whose values should be saved in libtool wrapper scripts and
25970# restored at relink time.
25971variables_saved_for_relink="$variables_saved_for_relink"
25972
25973# Whether libtool must link a program against all its dependency libraries.
25974link_all_deplibs=$link_all_deplibs_GCJ
25975
25976# Compile-time system search path for libraries
25977sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25978
25979# Run-time system search path for libraries
25980sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25981
25982# Fix the shell variable \$srcfile for the compiler.
25983fix_srcfile_path="$fix_srcfile_path_GCJ"
25984
25985# Set to yes if exported symbols are required.
25986always_export_symbols=$always_export_symbols_GCJ
25987
25988# The commands to list exported symbols.
25989export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25990
25991# The commands to extract the exported symbol list from a shared archive.
25992extract_expsyms_cmds=$lt_extract_expsyms_cmds
25993
25994# Symbols that should not be listed in the preloaded symbols.
25995exclude_expsyms=$lt_exclude_expsyms_GCJ
25996
25997# Symbols that must always be exported.
25998include_expsyms=$lt_include_expsyms_GCJ
25999
26000# ### END LIBTOOL TAG CONFIG: $tagname
26001
26002__EOF__
26003
26004
26005else
26006 # If there is no Makefile yet, we rely on a make rule to execute
26007 # `config.status --recheck' to rerun these tests and create the
26008 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026009 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26010 if test -f "$ltmain_in"; then
26011 test -f Makefile && make "$ltmain"
26012 fi
John Criswell47fdd832003-07-14 16:52:07 +000026013fi
26014
26015
26016ac_ext=c
26017ac_cpp='$CPP $CPPFLAGS'
26018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022CC="$lt_save_CC"
26023
26024 else
26025 tagname=""
26026 fi
26027 ;;
26028
26029 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026030 ac_ext=c
26031ac_cpp='$CPP $CPPFLAGS'
26032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026035
26036
26037# Source file extension for RC test sources.
26038ac_ext=rc
26039
26040# Object file extension for compiled RC test sources.
26041objext=o
26042objext_RC=$objext
26043
26044# Code to be used in simple compile tests
26045lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26046
26047# Code to be used in simple link tests
26048lt_simple_link_test_code="$lt_simple_compile_test_code"
26049
26050# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26051
26052# If no C compiler was specified, use CC.
26053LTCC=${LTCC-"$CC"}
26054
Reid Spencera773bd52006-08-04 18:18:08 +000026055# If no C compiler flags were specified, use CFLAGS.
26056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26057
John Criswell47fdd832003-07-14 16:52:07 +000026058# Allow CC to be a program name with arguments.
26059compiler=$CC
26060
26061
Reid Spencera773bd52006-08-04 18:18:08 +000026062# save warnings/boilerplate of simple test code
26063ac_outfile=conftest.$ac_objext
26064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26066_lt_compiler_boilerplate=`cat conftest.err`
26067$rm conftest*
26068
26069ac_outfile=conftest.$ac_objext
26070printf "$lt_simple_link_test_code" >conftest.$ac_ext
26071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26072_lt_linker_boilerplate=`cat conftest.err`
26073$rm conftest*
26074
26075
John Criswell47fdd832003-07-14 16:52:07 +000026076# Allow CC to be a program name with arguments.
26077lt_save_CC="$CC"
26078CC=${RC-"windres"}
26079compiler=$CC
26080compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026081for cc_temp in $compiler""; do
26082 case $cc_temp in
26083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26085 \-*) ;;
26086 *) break;;
26087 esac
26088done
26089cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26090
John Criswell47fdd832003-07-14 16:52:07 +000026091lt_cv_prog_compiler_c_o_RC=yes
26092
26093# The else clause should only fire when bootstrapping the
26094# libtool distribution, otherwise you forgot to ship ltmain.sh
26095# with your package, and you will get complaints that there are
26096# no rules to generate ltmain.sh.
26097if test -f "$ltmain"; then
26098 # See if we are running on zsh, and set the options which allow our commands through
26099 # without removal of \ escapes.
26100 if test -n "${ZSH_VERSION+set}" ; then
26101 setopt NO_GLOB_SUBST
26102 fi
26103 # Now quote all the things that may contain metacharacters while being
26104 # careful not to overquote the AC_SUBSTed values. We take copies of the
26105 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026106 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 +000026107 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26110 deplibs_check_method reload_flag reload_cmds need_locks \
26111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26112 lt_cv_sys_global_symbol_to_c_name_address \
26113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26114 old_postinstall_cmds old_postuninstall_cmds \
26115 compiler_RC \
26116 CC_RC \
26117 LD_RC \
26118 lt_prog_compiler_wl_RC \
26119 lt_prog_compiler_pic_RC \
26120 lt_prog_compiler_static_RC \
26121 lt_prog_compiler_no_builtin_flag_RC \
26122 export_dynamic_flag_spec_RC \
26123 thread_safe_flag_spec_RC \
26124 whole_archive_flag_spec_RC \
26125 enable_shared_with_static_runtimes_RC \
26126 old_archive_cmds_RC \
26127 old_archive_from_new_cmds_RC \
26128 predep_objects_RC \
26129 postdep_objects_RC \
26130 predeps_RC \
26131 postdeps_RC \
26132 compiler_lib_search_path_RC \
26133 archive_cmds_RC \
26134 archive_expsym_cmds_RC \
26135 postinstall_cmds_RC \
26136 postuninstall_cmds_RC \
26137 old_archive_from_expsyms_cmds_RC \
26138 allow_undefined_flag_RC \
26139 no_undefined_flag_RC \
26140 export_symbols_cmds_RC \
26141 hardcode_libdir_flag_spec_RC \
26142 hardcode_libdir_flag_spec_ld_RC \
26143 hardcode_libdir_separator_RC \
26144 hardcode_automatic_RC \
26145 module_cmds_RC \
26146 module_expsym_cmds_RC \
26147 lt_cv_prog_compiler_c_o_RC \
26148 exclude_expsyms_RC \
26149 include_expsyms_RC; do
26150
26151 case $var in
26152 old_archive_cmds_RC | \
26153 old_archive_from_new_cmds_RC | \
26154 archive_cmds_RC | \
26155 archive_expsym_cmds_RC | \
26156 module_cmds_RC | \
26157 module_expsym_cmds_RC | \
26158 old_archive_from_expsyms_cmds_RC | \
26159 export_symbols_cmds_RC | \
26160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26161 postinstall_cmds | postuninstall_cmds | \
26162 old_postinstall_cmds | old_postuninstall_cmds | \
26163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26164 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026165 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 +000026166 ;;
26167 *)
26168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26169 ;;
26170 esac
26171 done
26172
26173 case $lt_echo in
26174 *'\$0 --fallback-echo"')
26175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26176 ;;
26177 esac
26178
26179cfgfile="$ofile"
26180
26181 cat <<__EOF__ >> "$cfgfile"
26182# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26183
26184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26185
26186# Shell to use when invoking shell scripts.
26187SHELL=$lt_SHELL
26188
26189# Whether or not to build shared libraries.
26190build_libtool_libs=$enable_shared
26191
26192# Whether or not to build static libraries.
26193build_old_libs=$enable_static
26194
26195# Whether or not to add -lc for building shared libraries.
26196build_libtool_need_lc=$archive_cmds_need_lc_RC
26197
26198# Whether or not to disallow shared libs when runtime libs are static
26199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26200
26201# Whether or not to optimize for fast installation.
26202fast_install=$enable_fast_install
26203
26204# The host system.
26205host_alias=$host_alias
26206host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026207host_os=$host_os
26208
26209# The build system.
26210build_alias=$build_alias
26211build=$build
26212build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026213
26214# An echo program that does not interpret backslashes.
26215echo=$lt_echo
26216
26217# The archiver.
26218AR=$lt_AR
26219AR_FLAGS=$lt_AR_FLAGS
26220
26221# A C compiler.
26222LTCC=$lt_LTCC
26223
Reid Spencera773bd52006-08-04 18:18:08 +000026224# LTCC compiler flags.
26225LTCFLAGS=$lt_LTCFLAGS
26226
John Criswell47fdd832003-07-14 16:52:07 +000026227# A language-specific compiler.
26228CC=$lt_compiler_RC
26229
26230# Is the compiler the GNU C compiler?
26231with_gcc=$GCC_RC
26232
26233# An ERE matcher.
26234EGREP=$lt_EGREP
26235
26236# The linker used to build libraries.
26237LD=$lt_LD_RC
26238
26239# Whether we need hard or soft links.
26240LN_S=$lt_LN_S
26241
26242# A BSD-compatible nm program.
26243NM=$lt_NM
26244
26245# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026246STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026247
26248# Used to examine libraries when file_magic_cmd begins "file"
26249MAGIC_CMD=$MAGIC_CMD
26250
26251# Used on cygwin: DLL creation program.
26252DLLTOOL="$DLLTOOL"
26253
26254# Used on cygwin: object dumper.
26255OBJDUMP="$OBJDUMP"
26256
26257# Used on cygwin: assembler.
26258AS="$AS"
26259
26260# The name of the directory that contains temporary libtool files.
26261objdir=$objdir
26262
26263# How to create reloadable object files.
26264reload_flag=$lt_reload_flag
26265reload_cmds=$lt_reload_cmds
26266
26267# How to pass a linker flag through the compiler.
26268wl=$lt_lt_prog_compiler_wl_RC
26269
26270# Object file suffix (normally "o").
26271objext="$ac_objext"
26272
26273# Old archive suffix (normally "a").
26274libext="$libext"
26275
26276# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026277shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026278
26279# Executable file suffix (normally "").
26280exeext="$exeext"
26281
26282# Additional compiler flags for building library objects.
26283pic_flag=$lt_lt_prog_compiler_pic_RC
26284pic_mode=$pic_mode
26285
26286# What is the maximum length of a command?
26287max_cmd_len=$lt_cv_sys_max_cmd_len
26288
26289# Does compiler simultaneously support -c and -o options?
26290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26291
Reid Spencera773bd52006-08-04 18:18:08 +000026292# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026293need_locks=$lt_need_locks
26294
26295# Do we need the lib prefix for modules?
26296need_lib_prefix=$need_lib_prefix
26297
26298# Do we need a version for libraries?
26299need_version=$need_version
26300
26301# Whether dlopen is supported.
26302dlopen_support=$enable_dlopen
26303
26304# Whether dlopen of programs is supported.
26305dlopen_self=$enable_dlopen_self
26306
26307# Whether dlopen of statically linked programs is supported.
26308dlopen_self_static=$enable_dlopen_self_static
26309
26310# Compiler flag to prevent dynamic linking.
26311link_static_flag=$lt_lt_prog_compiler_static_RC
26312
26313# Compiler flag to turn off builtin functions.
26314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26315
26316# Compiler flag to allow reflexive dlopens.
26317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26318
26319# Compiler flag to generate shared objects directly from archives.
26320whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26321
26322# Compiler flag to generate thread-safe objects.
26323thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26324
26325# Library versioning type.
26326version_type=$version_type
26327
26328# Format of library name prefix.
26329libname_spec=$lt_libname_spec
26330
26331# List of archive names. First name is the real one, the rest are links.
26332# The last name is the one that the linker finds with -lNAME.
26333library_names_spec=$lt_library_names_spec
26334
26335# The coded name of the library, if different from the real name.
26336soname_spec=$lt_soname_spec
26337
26338# Commands used to build and install an old-style archive.
26339RANLIB=$lt_RANLIB
26340old_archive_cmds=$lt_old_archive_cmds_RC
26341old_postinstall_cmds=$lt_old_postinstall_cmds
26342old_postuninstall_cmds=$lt_old_postuninstall_cmds
26343
26344# Create an old-style archive from a shared archive.
26345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26346
26347# Create a temporary old-style archive to link instead of a shared archive.
26348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26349
26350# Commands used to build and install a shared archive.
26351archive_cmds=$lt_archive_cmds_RC
26352archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26353postinstall_cmds=$lt_postinstall_cmds
26354postuninstall_cmds=$lt_postuninstall_cmds
26355
26356# Commands used to build a loadable module (assumed same as above if empty)
26357module_cmds=$lt_module_cmds_RC
26358module_expsym_cmds=$lt_module_expsym_cmds_RC
26359
26360# Commands to strip libraries.
26361old_striplib=$lt_old_striplib
26362striplib=$lt_striplib
26363
26364# Dependencies to place before the objects being linked to create a
26365# shared library.
26366predep_objects=$lt_predep_objects_RC
26367
26368# Dependencies to place after the objects being linked to create a
26369# shared library.
26370postdep_objects=$lt_postdep_objects_RC
26371
26372# Dependencies to place before the objects being linked to create a
26373# shared library.
26374predeps=$lt_predeps_RC
26375
26376# Dependencies to place after the objects being linked to create a
26377# shared library.
26378postdeps=$lt_postdeps_RC
26379
26380# The library search path used internally by the compiler when linking
26381# a shared library.
26382compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26383
26384# Method to check whether dependent libraries are shared objects.
26385deplibs_check_method=$lt_deplibs_check_method
26386
26387# Command to use when deplibs_check_method == file_magic.
26388file_magic_cmd=$lt_file_magic_cmd
26389
26390# Flag that allows shared libraries with undefined symbols to be built.
26391allow_undefined_flag=$lt_allow_undefined_flag_RC
26392
26393# Flag that forces no undefined symbols.
26394no_undefined_flag=$lt_no_undefined_flag_RC
26395
26396# Commands used to finish a libtool library installation in a directory.
26397finish_cmds=$lt_finish_cmds
26398
26399# Same as above, but a single script fragment to be evaled but not shown.
26400finish_eval=$lt_finish_eval
26401
26402# Take the output of nm and produce a listing of raw symbols and C names.
26403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26404
26405# Transform the output of nm in a proper C declaration
26406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26407
26408# Transform the output of nm in a C name address pair
26409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26410
26411# This is the shared library runtime path variable.
26412runpath_var=$runpath_var
26413
26414# This is the shared library path variable.
26415shlibpath_var=$shlibpath_var
26416
26417# Is shlibpath searched before the hard-coded library search path?
26418shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26419
26420# How to hardcode a shared library path into an executable.
26421hardcode_action=$hardcode_action_RC
26422
26423# Whether we should hardcode library paths into libraries.
26424hardcode_into_libs=$hardcode_into_libs
26425
26426# Flag to hardcode \$libdir into a binary during linking.
26427# This must work even if \$libdir does not exist.
26428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26429
26430# If ld is used when linking, flag to hardcode \$libdir into
26431# a binary during linking. This must work even if \$libdir does
26432# not exist.
26433hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26434
26435# Whether we need a single -rpath flag with a separated argument.
26436hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26437
26438# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26439# resulting binary.
26440hardcode_direct=$hardcode_direct_RC
26441
26442# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26443# resulting binary.
26444hardcode_minus_L=$hardcode_minus_L_RC
26445
26446# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26447# the resulting binary.
26448hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26449
26450# Set to yes if building a shared library automatically hardcodes DIR into the library
26451# and all subsequent libraries and executables linked against it.
26452hardcode_automatic=$hardcode_automatic_RC
26453
26454# Variables whose values should be saved in libtool wrapper scripts and
26455# restored at relink time.
26456variables_saved_for_relink="$variables_saved_for_relink"
26457
26458# Whether libtool must link a program against all its dependency libraries.
26459link_all_deplibs=$link_all_deplibs_RC
26460
26461# Compile-time system search path for libraries
26462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26463
26464# Run-time system search path for libraries
26465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26466
26467# Fix the shell variable \$srcfile for the compiler.
26468fix_srcfile_path="$fix_srcfile_path_RC"
26469
26470# Set to yes if exported symbols are required.
26471always_export_symbols=$always_export_symbols_RC
26472
26473# The commands to list exported symbols.
26474export_symbols_cmds=$lt_export_symbols_cmds_RC
26475
26476# The commands to extract the exported symbol list from a shared archive.
26477extract_expsyms_cmds=$lt_extract_expsyms_cmds
26478
26479# Symbols that should not be listed in the preloaded symbols.
26480exclude_expsyms=$lt_exclude_expsyms_RC
26481
26482# Symbols that must always be exported.
26483include_expsyms=$lt_include_expsyms_RC
26484
26485# ### END LIBTOOL TAG CONFIG: $tagname
26486
26487__EOF__
26488
26489
26490else
26491 # If there is no Makefile yet, we rely on a make rule to execute
26492 # `config.status --recheck' to rerun these tests and create the
26493 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026494 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26495 if test -f "$ltmain_in"; then
26496 test -f Makefile && make "$ltmain"
26497 fi
John Criswell47fdd832003-07-14 16:52:07 +000026498fi
26499
26500
26501ac_ext=c
26502ac_cpp='$CPP $CPPFLAGS'
26503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26505ac_compiler_gnu=$ac_cv_c_compiler_gnu
26506
26507CC="$lt_save_CC"
26508
26509 ;;
26510
26511 *)
26512 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26513echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26514 { (exit 1); exit 1; }; }
26515 ;;
26516 esac
26517
26518 # Append the new tag name to the list of available tags.
26519 if test -n "$tagname" ; then
26520 available_tags="$available_tags $tagname"
26521 fi
26522 fi
26523 done
26524 IFS="$lt_save_ifs"
26525
26526 # Now substitute the updated list of available tags.
26527 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26528 mv "${ofile}T" "$ofile"
26529 chmod +x "$ofile"
26530 else
26531 rm -f "${ofile}T"
26532 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26533echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26534 { (exit 1); exit 1; }; }
26535 fi
26536fi
John Criswell7a73b802003-06-30 21:59:07 +000026537
26538
26539
26540# This can be used to rebuild libtool when needed
26541LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26542
26543# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026544LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026545
26546# Prevent multiple expansion
26547
26548
26549
John Criswell47fdd832003-07-14 16:52:07 +000026550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026567
Reid Spencer582a23c2004-12-29 07:07:57 +000026568if test "$lt_cv_dlopen_self" = "yes" ; then
26569
26570cat >>confdefs.h <<\_ACEOF
26571#define CAN_DLOPEN_SELF 1
26572_ACEOF
26573
26574fi
26575
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026576etags_version=`$ETAGS --version 2>&1`
26577case "$etags_version" in
26578 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26579 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26580 *) ETAGSFLAGS="" ;;
26581esac
26582ETAGSFLAGS=$ETAGSFLAGS
26583
26584
Reid Spencer7931a782004-12-27 06:15:02 +000026585if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026586 LLVMGCC="llvm-gcc${EXEEXT}"
26587 LLVMGXX="llvm-g++${EXEEXT}"
26588 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26589set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026592if test "${ac_cv_path_LLVMGCC+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595 case $LLVMGCC in
26596 [\\/]* | ?:[\\/]*)
26597 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26598 ;;
26599 *)
26600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601for as_dir in $PATH
26602do
26603 IFS=$as_save_IFS
26604 test -z "$as_dir" && as_dir=.
26605 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026606 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 +000026607 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26609 break 2
26610 fi
26611done
26612done
Reid Spencera773bd52006-08-04 18:18:08 +000026613IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026614
Reid Spencer59473af2004-12-25 07:31:29 +000026615 ;;
26616esac
26617fi
26618LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026619if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026620 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26621echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026622else
Reid Spencera773bd52006-08-04 18:18:08 +000026623 { echo "$as_me:$LINENO: result: no" >&5
26624echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026625fi
26626
Reid Spencera773bd52006-08-04 18:18:08 +000026627
Reid Spencerc84492c2005-06-02 22:34:49 +000026628 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26629set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026632if test "${ac_cv_path_LLVMGXX+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635 case $LLVMGXX in
26636 [\\/]* | ?:[\\/]*)
26637 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26638 ;;
26639 *)
26640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641for as_dir in $PATH
26642do
26643 IFS=$as_save_IFS
26644 test -z "$as_dir" && as_dir=.
26645 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026646 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 +000026647 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649 break 2
26650 fi
26651done
26652done
Reid Spencera773bd52006-08-04 18:18:08 +000026653IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026654
Reid Spencer59473af2004-12-25 07:31:29 +000026655 ;;
26656esac
26657fi
26658LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026659if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026660 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26661echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026662else
Reid Spencera773bd52006-08-04 18:18:08 +000026663 { echo "$as_me:$LINENO: result: no" >&5
26664echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026665fi
26666
Reid Spencera773bd52006-08-04 18:18:08 +000026667
Reid Spencer59473af2004-12-25 07:31:29 +000026668else
Reid Spencerc84492c2005-06-02 22:34:49 +000026669 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26670 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026671 LLVMGCC=$LLVMGCC
26672
26673 LLVMGXX=$LLVMGXX
26674
26675fi
26676
Reid Spencera773bd52006-08-04 18:18:08 +000026677{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26678echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026679
Reid Spencer86901802004-12-08 23:07:27 +000026680ICC=no
26681IXX=no
26682case $CC in
26683 icc*|icpc*)
26684 ICC=yes
26685 IXX=yes
26686 ;;
26687 *)
26688 ;;
26689esac
26690
Duraid Madina937c60a2006-02-15 07:57:42 +000026691if test "$GCC" != "yes" && test "$ICC" != "yes"
26692then
26693 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26694echo "$as_me: error: gcc|icc required but not found" >&2;}
26695 { (exit 1); exit 1; }; }
26696fi
26697
26698if test "$GXX" != "yes" && test "$IXX" != "yes"
26699then
26700 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26701echo "$as_me: error: g++|icc required but not found" >&2;}
26702 { (exit 1); exit 1; }; }
26703fi
26704
Reid Spencer86901802004-12-08 23:07:27 +000026705if test "$GCC" = "yes"
26706then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026707 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026708 if test "$gccmajor" -lt "3"
26709 then
26710 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026711echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26712 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026713 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026714fi
26715
26716if test -z "$llvm_cv_gnu_make_command"
26717then
26718 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26719echo "$as_me: error: GNU Make required but not found" >&2;}
26720 { (exit 1); exit 1; }; }
26721fi
26722
Reid Spencera773bd52006-08-04 18:18:08 +000026723{ echo "$as_me:$LINENO: result: ok" >&5
26724echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026725
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026726
John Criswell7a73b802003-06-30 21:59:07 +000026727
Reid Spencera773bd52006-08-04 18:18:08 +000026728{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26729echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026730if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26732else
26733 ac_check_lib_save_LIBS=$LIBS
26734LIBS="-lelf $LIBS"
26735cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026741
Reid Spencera773bd52006-08-04 18:18:08 +000026742/* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026745#ifdef __cplusplus
26746extern "C"
26747#endif
John Criswell7a73b802003-06-30 21:59:07 +000026748char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026749int
26750main ()
26751{
Reid Spencera773bd52006-08-04 18:18:08 +000026752return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026753 ;
26754 return 0;
26755}
26756_ACEOF
26757rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026758if { (ac_try="$ac_link"
26759case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26762esac
26763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026766 grep -v '^ *+' conftest.er1 >conftest.err
26767 rm -f conftest.er1
26768 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772 { (case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26775esac
26776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026778 ac_status=$?
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; } &&
26781 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026782 { (case "(($ac_try" in
26783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26785esac
26786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_cv_lib_elf_elf_begin=yes
26792else
26793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026794sed 's/^/| /' conftest.$ac_ext >&5
26795
Reid Spencera773bd52006-08-04 18:18:08 +000026796 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026797fi
Reid Spencera773bd52006-08-04 18:18:08 +000026798
26799rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026800 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026801LIBS=$ac_check_lib_save_LIBS
26802fi
Reid Spencera773bd52006-08-04 18:18:08 +000026803{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26804echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026805if test $ac_cv_lib_elf_elf_begin = yes; then
26806 cat >>confdefs.h <<_ACEOF
26807#define HAVE_LIBELF 1
26808_ACEOF
26809
26810 LIBS="-lelf $LIBS"
26811
26812fi
26813
26814
Reid Spencera773bd52006-08-04 18:18:08 +000026815{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26816echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026817if test "${ac_cv_lib_m_sin+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
26820 ac_check_lib_save_LIBS=$LIBS
26821LIBS="-lm $LIBS"
26822cat >conftest.$ac_ext <<_ACEOF
26823/* confdefs.h. */
26824_ACEOF
26825cat confdefs.h >>conftest.$ac_ext
26826cat >>conftest.$ac_ext <<_ACEOF
26827/* end confdefs.h. */
26828
Reid Spencera773bd52006-08-04 18:18:08 +000026829/* Override any GCC internal prototype to avoid an error.
26830 Use char because int might match the return type of a GCC
26831 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026832#ifdef __cplusplus
26833extern "C"
26834#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026835char sin ();
26836int
26837main ()
26838{
Reid Spencera773bd52006-08-04 18:18:08 +000026839return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026840 ;
26841 return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026845if { (ac_try="$ac_link"
26846case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26849esac
26850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026852 ac_status=$?
26853 grep -v '^ *+' conftest.er1 >conftest.err
26854 rm -f conftest.er1
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26859 { (case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26862esac
26863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; } &&
26868 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026869 { (case "(($ac_try" in
26870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871 *) ac_try_echo=$ac_try;;
26872esac
26873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26874 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; }; then
26878 ac_cv_lib_m_sin=yes
26879else
26880 echo "$as_me: failed program was:" >&5
26881sed 's/^/| /' conftest.$ac_ext >&5
26882
Reid Spencera773bd52006-08-04 18:18:08 +000026883 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026884fi
Reid Spencera773bd52006-08-04 18:18:08 +000026885
26886rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026887 conftest$ac_exeext conftest.$ac_ext
26888LIBS=$ac_check_lib_save_LIBS
26889fi
Reid Spencera773bd52006-08-04 18:18:08 +000026890{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26891echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026892if test $ac_cv_lib_m_sin = yes; then
26893 cat >>confdefs.h <<_ACEOF
26894#define HAVE_LIBM 1
26895_ACEOF
26896
26897 LIBS="-lm $LIBS"
26898
26899fi
26900
Reid Spencer484fc8e2006-06-01 16:55:59 +000026901if test "$llvm_cv_os_type" == "MingW" ; then
26902
Reid Spencera773bd52006-08-04 18:18:08 +000026903{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26904echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026905if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026906 echo $ECHO_N "(cached) $ECHO_C" >&6
26907else
26908 ac_check_lib_save_LIBS=$LIBS
26909LIBS="-limagehlp $LIBS"
26910cat >conftest.$ac_ext <<_ACEOF
26911/* confdefs.h. */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h. */
26916
Reid Spencer48fdf912006-06-01 19:03:21 +000026917
Reid Spencer484fc8e2006-06-01 16:55:59 +000026918int
26919main ()
26920{
Reid Spencera773bd52006-08-04 18:18:08 +000026921return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026922 ;
26923 return 0;
26924}
26925_ACEOF
26926rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026927if { (ac_try="$ac_link"
26928case "(($ac_try" in
26929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26931esac
26932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941 { (case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026960 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026961else
26962 echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
Reid Spencera773bd52006-08-04 18:18:08 +000026965 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026966fi
Reid Spencera773bd52006-08-04 18:18:08 +000026967
26968rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026969 conftest$ac_exeext conftest.$ac_ext
26970LIBS=$ac_check_lib_save_LIBS
26971fi
Reid Spencera773bd52006-08-04 18:18:08 +000026972{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26973echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026974if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026975 cat >>confdefs.h <<_ACEOF
26976#define HAVE_LIBIMAGEHLP 1
26977_ACEOF
26978
26979 LIBS="-limagehlp $LIBS"
26980
26981fi
26982
26983
Reid Spencera773bd52006-08-04 18:18:08 +000026984{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26985echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026986if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026987 echo $ECHO_N "(cached) $ECHO_C" >&6
26988else
26989 ac_check_lib_save_LIBS=$LIBS
26990LIBS="-lpsapi $LIBS"
26991cat >conftest.$ac_ext <<_ACEOF
26992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
26997
Reid Spencer48fdf912006-06-01 19:03:21 +000026998
Reid Spencer484fc8e2006-06-01 16:55:59 +000026999int
27000main ()
27001{
Reid Spencera773bd52006-08-04 18:18:08 +000027002return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027003 ;
27004 return 0;
27005}
27006_ACEOF
27007rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027008if { (ac_try="$ac_link"
27009case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27012esac
27013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027015 ac_status=$?
27016 grep -v '^ *+' conftest.er1 >conftest.err
27017 rm -f conftest.er1
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022 { (case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27025esac
27026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27035esac
27036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027041 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027042else
27043 echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
Reid Spencera773bd52006-08-04 18:18:08 +000027046 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027047fi
Reid Spencera773bd52006-08-04 18:18:08 +000027048
27049rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027050 conftest$ac_exeext conftest.$ac_ext
27051LIBS=$ac_check_lib_save_LIBS
27052fi
Reid Spencera773bd52006-08-04 18:18:08 +000027053{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27054echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027055if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027056 cat >>confdefs.h <<_ACEOF
27057#define HAVE_LIBPSAPI 1
27058_ACEOF
27059
27060 LIBS="-lpsapi $LIBS"
27061
27062fi
27063
27064fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027065
Reid Spencera773bd52006-08-04 18:18:08 +000027066{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27067echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027068if test "${ac_cv_search_lt_dlopen+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27070else
27071 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027072cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
27078
Reid Spencera773bd52006-08-04 18:18:08 +000027079/* Override any GCC internal prototype to avoid an error.
27080 Use char because int might match the return type of a GCC
27081 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027082#ifdef __cplusplus
27083extern "C"
27084#endif
Reid Spencer17795972004-11-18 09:47:37 +000027085char lt_dlopen ();
27086int
27087main ()
27088{
Reid Spencera773bd52006-08-04 18:18:08 +000027089return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027090 ;
27091 return 0;
27092}
27093_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027094for ac_lib in '' ltdl; do
27095 if test -z "$ac_lib"; then
27096 ac_res="none required"
27097 else
27098 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027100 fi
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102if { (ac_try="$ac_link"
27103case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106esac
27107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129esac
27130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027135 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
Reid Spencera773bd52006-08-04 18:18:08 +000027140
Reid Spencer17795972004-11-18 09:47:37 +000027141fi
Reid Spencera773bd52006-08-04 18:18:08 +000027142
27143rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext
27145 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27146 break
Reid Spencer17795972004-11-18 09:47:37 +000027147fi
Reid Spencera773bd52006-08-04 18:18:08 +000027148done
27149if test "${ac_cv_search_lt_dlopen+set}" = set; then
27150 :
27151else
27152 ac_cv_search_lt_dlopen=no
27153fi
27154rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027155LIBS=$ac_func_search_save_LIBS
27156fi
Reid Spencera773bd52006-08-04 18:18:08 +000027157{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27158echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27159ac_res=$ac_cv_search_lt_dlopen
27160if test "$ac_res" != no; then
27161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027162
27163cat >>confdefs.h <<\_ACEOF
27164#define HAVE_LT_DLOPEN 1
27165_ACEOF
27166
27167else
27168 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27169 not be available" >&5
27170echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27171 not be available" >&2;}
27172fi
27173
27174
Reid Spencera773bd52006-08-04 18:18:08 +000027175{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27176echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027177if test "${ac_cv_search_dlopen+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027181cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027182/* confdefs.h. */
27183_ACEOF
27184cat confdefs.h >>conftest.$ac_ext
27185cat >>conftest.$ac_ext <<_ACEOF
27186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027187
Reid Spencera773bd52006-08-04 18:18:08 +000027188/* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027191#ifdef __cplusplus
27192extern "C"
27193#endif
John Criswell7a73b802003-06-30 21:59:07 +000027194char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027195int
27196main ()
27197{
Reid Spencera773bd52006-08-04 18:18:08 +000027198return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027199 ;
27200 return 0;
27201}
27202_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027203for ac_lib in '' dl; do
27204 if test -z "$ac_lib"; then
27205 ac_res="none required"
27206 else
27207 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027209 fi
27210 rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (ac_try="$ac_link"
27212case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27215esac
27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027219 grep -v '^ *+' conftest.er1 >conftest.err
27220 rm -f conftest.er1
27221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27225 { (case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228esac
27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027231 ac_status=$?
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; } &&
27234 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027235 { (case "(($ac_try" in
27236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237 *) ac_try_echo=$ac_try;;
27238esac
27239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027241 ac_status=$?
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027244 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027245else
27246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027247sed 's/^/| /' conftest.$ac_ext >&5
27248
Reid Spencera773bd52006-08-04 18:18:08 +000027249
John Criswell7a73b802003-06-30 21:59:07 +000027250fi
Reid Spencera773bd52006-08-04 18:18:08 +000027251
27252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext
27254 if test "${ac_cv_search_dlopen+set}" = set; then
27255 break
John Criswell7a73b802003-06-30 21:59:07 +000027256fi
Reid Spencera773bd52006-08-04 18:18:08 +000027257done
27258if test "${ac_cv_search_dlopen+set}" = set; then
27259 :
27260else
27261 ac_cv_search_dlopen=no
27262fi
27263rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027264LIBS=$ac_func_search_save_LIBS
27265fi
Reid Spencera773bd52006-08-04 18:18:08 +000027266{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27267echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27268ac_res=$ac_cv_search_dlopen
27269if test "$ac_res" != no; then
27270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027271
27272cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027273#define HAVE_DLOPEN 1
27274_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027275
27276else
Brian Gaekec45be042003-10-07 06:01:34 +000027277 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27278echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027279fi
27280
27281
Reid Spencera773bd52006-08-04 18:18:08 +000027282{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27283echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027284if test "${ac_cv_search_mallinfo+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286else
27287 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027288cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027294
Reid Spencera773bd52006-08-04 18:18:08 +000027295/* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027298#ifdef __cplusplus
27299extern "C"
27300#endif
John Criswell7a73b802003-06-30 21:59:07 +000027301char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027302int
27303main ()
27304{
Reid Spencera773bd52006-08-04 18:18:08 +000027305return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027306 ;
27307 return 0;
27308}
27309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027310for ac_lib in '' malloc; do
27311 if test -z "$ac_lib"; then
27312 ac_res="none required"
27313 else
27314 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027316 fi
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318if { (ac_try="$ac_link"
27319case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027326 grep -v '^ *+' conftest.er1 >conftest.err
27327 rm -f conftest.er1
27328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27332 { (case "(($ac_try" in
27333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334 *) ac_try_echo=$ac_try;;
27335esac
27336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027342 { (case "(($ac_try" in
27343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344 *) ac_try_echo=$ac_try;;
27345esac
27346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027348 ac_status=$?
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027351 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027352else
27353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027354sed 's/^/| /' conftest.$ac_ext >&5
27355
Reid Spencera773bd52006-08-04 18:18:08 +000027356
John Criswell7a73b802003-06-30 21:59:07 +000027357fi
Reid Spencera773bd52006-08-04 18:18:08 +000027358
27359rm -f core conftest.err conftest.$ac_objext \
27360 conftest$ac_exeext
27361 if test "${ac_cv_search_mallinfo+set}" = set; then
27362 break
John Criswell7a73b802003-06-30 21:59:07 +000027363fi
Reid Spencera773bd52006-08-04 18:18:08 +000027364done
27365if test "${ac_cv_search_mallinfo+set}" = set; then
27366 :
27367else
27368 ac_cv_search_mallinfo=no
27369fi
27370rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027371LIBS=$ac_func_search_save_LIBS
27372fi
Reid Spencera773bd52006-08-04 18:18:08 +000027373{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27374echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27375ac_res=$ac_cv_search_mallinfo
27376if test "$ac_res" != no; then
27377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027378
27379cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027380#define HAVE_MALLINFO 1
27381_ACEOF
27382
27383fi
27384
27385
Reid Spencer0a262ba2005-08-24 10:07:20 +000027386if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027387
Reid Spencera773bd52006-08-04 18:18:08 +000027388{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27389echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027390if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393 ac_check_lib_save_LIBS=$LIBS
27394LIBS="-lpthread $LIBS"
27395cat >conftest.$ac_ext <<_ACEOF
27396/* confdefs.h. */
27397_ACEOF
27398cat confdefs.h >>conftest.$ac_ext
27399cat >>conftest.$ac_ext <<_ACEOF
27400/* end confdefs.h. */
27401
Reid Spencera773bd52006-08-04 18:18:08 +000027402/* Override any GCC internal prototype to avoid an error.
27403 Use char because int might match the return type of a GCC
27404 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027405#ifdef __cplusplus
27406extern "C"
27407#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027408char pthread_mutex_init ();
27409int
27410main ()
27411{
Reid Spencera773bd52006-08-04 18:18:08 +000027412return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027413 ;
27414 return 0;
27415}
27416_ACEOF
27417rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027418if { (ac_try="$ac_link"
27419case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27422esac
27423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027425 ac_status=$?
27426 grep -v '^ *+' conftest.er1 >conftest.err
27427 rm -f conftest.er1
27428 cat conftest.err >&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432 { (case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27435esac
27436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027438 ac_status=$?
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; } &&
27441 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027442 { (case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27445esac
27446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_lib_pthread_pthread_mutex_init=yes
27452else
27453 echo "$as_me: failed program was:" >&5
27454sed 's/^/| /' conftest.$ac_ext >&5
27455
Reid Spencera773bd52006-08-04 18:18:08 +000027456 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027457fi
Reid Spencera773bd52006-08-04 18:18:08 +000027458
27459rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027460 conftest$ac_exeext conftest.$ac_ext
27461LIBS=$ac_check_lib_save_LIBS
27462fi
Reid Spencera773bd52006-08-04 18:18:08 +000027463{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27464echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027465if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27466 cat >>confdefs.h <<_ACEOF
27467#define HAVE_LIBPTHREAD 1
27468_ACEOF
27469
27470 LIBS="-lpthread $LIBS"
27471
27472fi
27473
Reid Spencera773bd52006-08-04 18:18:08 +000027474 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27475echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027476if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027480cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027481/* confdefs.h. */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h. */
27486
Reid Spencera773bd52006-08-04 18:18:08 +000027487/* Override any GCC internal prototype to avoid an error.
27488 Use char because int might match the return type of a GCC
27489 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027490#ifdef __cplusplus
27491extern "C"
27492#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027493char pthread_mutex_lock ();
27494int
27495main ()
27496{
Reid Spencera773bd52006-08-04 18:18:08 +000027497return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027498 ;
27499 return 0;
27500}
27501_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027502for ac_lib in '' pthread; do
27503 if test -z "$ac_lib"; then
27504 ac_res="none required"
27505 else
27506 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027508 fi
27509 rm -f conftest.$ac_objext conftest$ac_exeext
27510if { (ac_try="$ac_link"
27511case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27514esac
27515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027518 grep -v '^ *+' conftest.er1 >conftest.err
27519 rm -f conftest.er1
27520 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27524 { (case "(($ac_try" in
27525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27527esac
27528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027530 ac_status=$?
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; } &&
27533 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027534 { (case "(($ac_try" in
27535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536 *) ac_try_echo=$ac_try;;
27537esac
27538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027543 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027544else
27545 echo "$as_me: failed program was:" >&5
27546sed 's/^/| /' conftest.$ac_ext >&5
27547
Reid Spencera773bd52006-08-04 18:18:08 +000027548
Brian Gaeke5f268f72003-12-05 19:29:01 +000027549fi
Reid Spencera773bd52006-08-04 18:18:08 +000027550
27551rm -f core conftest.err conftest.$ac_objext \
27552 conftest$ac_exeext
27553 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27554 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027555fi
Reid Spencera773bd52006-08-04 18:18:08 +000027556done
27557if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27558 :
27559else
27560 ac_cv_search_pthread_mutex_lock=no
27561fi
27562rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027563LIBS=$ac_func_search_save_LIBS
27564fi
Reid Spencera773bd52006-08-04 18:18:08 +000027565{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27566echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27567ac_res=$ac_cv_search_pthread_mutex_lock
27568if test "$ac_res" != no; then
27569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027570
John Criswell40468462004-09-24 21:19:06 +000027571cat >>confdefs.h <<\_ACEOF
27572#define HAVE_PTHREAD_MUTEX_LOCK 1
27573_ACEOF
27574
27575fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027576
Reid Spencer0a262ba2005-08-24 10:07:20 +000027577fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027578
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027579
Reid Spencer59473af2004-12-25 07:31:29 +000027580
27581
27582
27583
27584
27585ac_header_dirent=no
27586for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27587 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027588{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27589echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592else
27593 cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599#include <sys/types.h>
27600#include <$ac_hdr>
27601
27602int
27603main ()
27604{
27605if ((DIR *) 0)
27606return 0;
27607 ;
27608 return 0;
27609}
27610_ACEOF
27611rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027612if { (ac_try="$ac_compile"
27613case "(($ac_try" in
27614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615 *) ac_try_echo=$ac_try;;
27616esac
27617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27626 { (case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27629esac
27630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027636 { (case "(($ac_try" in
27637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638 *) ac_try_echo=$ac_try;;
27639esac
27640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027642 ac_status=$?
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); }; }; then
27645 eval "$as_ac_Header=yes"
27646else
27647 echo "$as_me: failed program was:" >&5
27648sed 's/^/| /' conftest.$ac_ext >&5
27649
Reid Spencera773bd52006-08-04 18:18:08 +000027650 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027651fi
Reid Spencera773bd52006-08-04 18:18:08 +000027652
27653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027654fi
Reid Spencera773bd52006-08-04 18:18:08 +000027655ac_res=`eval echo '${'$as_ac_Header'}'`
27656 { echo "$as_me:$LINENO: result: $ac_res" >&5
27657echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027658if test `eval echo '${'$as_ac_Header'}'` = yes; then
27659 cat >>confdefs.h <<_ACEOF
27660#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27661_ACEOF
27662
27663ac_header_dirent=$ac_hdr; break
27664fi
27665
27666done
27667# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27668if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027669 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27670echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027671if test "${ac_cv_search_opendir+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673else
27674 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027675cat >conftest.$ac_ext <<_ACEOF
27676/* confdefs.h. */
27677_ACEOF
27678cat confdefs.h >>conftest.$ac_ext
27679cat >>conftest.$ac_ext <<_ACEOF
27680/* end confdefs.h. */
27681
Reid Spencera773bd52006-08-04 18:18:08 +000027682/* Override any GCC internal prototype to avoid an error.
27683 Use char because int might match the return type of a GCC
27684 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027685#ifdef __cplusplus
27686extern "C"
27687#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027688char opendir ();
27689int
27690main ()
27691{
Reid Spencera773bd52006-08-04 18:18:08 +000027692return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027693 ;
27694 return 0;
27695}
27696_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027697for ac_lib in '' dir; do
27698 if test -z "$ac_lib"; then
27699 ac_res="none required"
27700 else
27701 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027703 fi
27704 rm -f conftest.$ac_objext conftest$ac_exeext
27705if { (ac_try="$ac_link"
27706case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27709esac
27710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027712 ac_status=$?
27713 grep -v '^ *+' conftest.er1 >conftest.err
27714 rm -f conftest.er1
27715 cat conftest.err >&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27719 { (case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27722esac
27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027729 { (case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27732esac
27733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027738 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
Reid Spencera773bd52006-08-04 18:18:08 +000027743
Reid Spencer59473af2004-12-25 07:31:29 +000027744fi
Reid Spencera773bd52006-08-04 18:18:08 +000027745
27746rm -f core conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext
27748 if test "${ac_cv_search_opendir+set}" = set; then
27749 break
Reid Spencer59473af2004-12-25 07:31:29 +000027750fi
Reid Spencera773bd52006-08-04 18:18:08 +000027751done
27752if test "${ac_cv_search_opendir+set}" = set; then
27753 :
27754else
27755 ac_cv_search_opendir=no
27756fi
27757rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027758LIBS=$ac_func_search_save_LIBS
27759fi
Reid Spencera773bd52006-08-04 18:18:08 +000027760{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27761echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27762ac_res=$ac_cv_search_opendir
27763if test "$ac_res" != no; then
27764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027765
27766fi
27767
27768else
Reid Spencera773bd52006-08-04 18:18:08 +000027769 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27770echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027771if test "${ac_cv_search_opendir+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27773else
27774 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027775cat >conftest.$ac_ext <<_ACEOF
27776/* confdefs.h. */
27777_ACEOF
27778cat confdefs.h >>conftest.$ac_ext
27779cat >>conftest.$ac_ext <<_ACEOF
27780/* end confdefs.h. */
27781
Reid Spencera773bd52006-08-04 18:18:08 +000027782/* Override any GCC internal prototype to avoid an error.
27783 Use char because int might match the return type of a GCC
27784 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027785#ifdef __cplusplus
27786extern "C"
27787#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027788char opendir ();
27789int
27790main ()
27791{
Reid Spencera773bd52006-08-04 18:18:08 +000027792return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027793 ;
27794 return 0;
27795}
27796_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027797for ac_lib in '' x; do
27798 if test -z "$ac_lib"; then
27799 ac_res="none required"
27800 else
27801 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027803 fi
27804 rm -f conftest.$ac_objext conftest$ac_exeext
27805if { (ac_try="$ac_link"
27806case "(($ac_try" in
27807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808 *) ac_try_echo=$ac_try;;
27809esac
27810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27811 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027812 ac_status=$?
27813 grep -v '^ *+' conftest.er1 >conftest.err
27814 rm -f conftest.er1
27815 cat conftest.err >&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27819 { (case "(($ac_try" in
27820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821 *) ac_try_echo=$ac_try;;
27822esac
27823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; } &&
27828 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027829 { (case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27832esac
27833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027835 ac_status=$?
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027838 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027839else
27840 echo "$as_me: failed program was:" >&5
27841sed 's/^/| /' conftest.$ac_ext >&5
27842
Reid Spencera773bd52006-08-04 18:18:08 +000027843
Reid Spencer59473af2004-12-25 07:31:29 +000027844fi
Reid Spencera773bd52006-08-04 18:18:08 +000027845
27846rm -f core conftest.err conftest.$ac_objext \
27847 conftest$ac_exeext
27848 if test "${ac_cv_search_opendir+set}" = set; then
27849 break
Reid Spencer59473af2004-12-25 07:31:29 +000027850fi
Reid Spencera773bd52006-08-04 18:18:08 +000027851done
27852if test "${ac_cv_search_opendir+set}" = set; then
27853 :
27854else
27855 ac_cv_search_opendir=no
27856fi
27857rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027858LIBS=$ac_func_search_save_LIBS
27859fi
Reid Spencera773bd52006-08-04 18:18:08 +000027860{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27861echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27862ac_res=$ac_cv_search_opendir
27863if test "$ac_res" != no; then
27864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027865
27866fi
27867
27868fi
27869
Reid Spencera773bd52006-08-04 18:18:08 +000027870{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27871echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027872if test "${ac_cv_header_mmap_anon+set}" = set; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27874else
27875 ac_ext=c
27876ac_cpp='$CPP $CPPFLAGS'
27877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879ac_compiler_gnu=$ac_cv_c_compiler_gnu
27880
27881 cat >conftest.$ac_ext <<_ACEOF
27882/* confdefs.h. */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h. */
27887#include <sys/mman.h>
27888#include <unistd.h>
27889#include <fcntl.h>
27890int
27891main ()
27892{
27893mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27894 ;
27895 return 0;
27896}
27897_ACEOF
27898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027899if { (ac_try="$ac_compile"
27900case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27903esac
27904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027906 ac_status=$?
27907 grep -v '^ *+' conftest.er1 >conftest.err
27908 rm -f conftest.er1
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913 { (case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27916esac
27917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; } &&
27922 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027923 { (case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; }; then
27932 ac_cv_header_mmap_anon=yes
27933else
27934 echo "$as_me: failed program was:" >&5
27935sed 's/^/| /' conftest.$ac_ext >&5
27936
Reid Spencera773bd52006-08-04 18:18:08 +000027937 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027938fi
Reid Spencera773bd52006-08-04 18:18:08 +000027939
27940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027941 ac_ext=c
27942ac_cpp='$CPP $CPPFLAGS'
27943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27945ac_compiler_gnu=$ac_cv_c_compiler_gnu
27946
27947
27948fi
Reid Spencera773bd52006-08-04 18:18:08 +000027949{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27950echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027951if test "$ac_cv_header_mmap_anon" = yes; then
27952
27953cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027954#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027955_ACEOF
27956
27957fi
27958
Reid Spencera773bd52006-08-04 18:18:08 +000027959{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27960echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027961if test "${ac_cv_header_stat_broken+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964 cat >conftest.$ac_ext <<_ACEOF
27965/* confdefs.h. */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h. */
27970#include <sys/types.h>
27971#include <sys/stat.h>
27972
Reid Spencera773bd52006-08-04 18:18:08 +000027973#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027974# if S_ISBLK (S_IFDIR)
27975You lose.
27976# endif
27977#endif
27978
Reid Spencera773bd52006-08-04 18:18:08 +000027979#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027980# if S_ISBLK (S_IFCHR)
27981You lose.
27982# endif
27983#endif
27984
Reid Spencera773bd52006-08-04 18:18:08 +000027985#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027986# if S_ISLNK (S_IFREG)
27987You lose.
27988# endif
27989#endif
27990
Reid Spencera773bd52006-08-04 18:18:08 +000027991#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027992# if S_ISSOCK (S_IFREG)
27993You lose.
27994# endif
27995#endif
27996
27997_ACEOF
27998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999 $EGREP "You lose" >/dev/null 2>&1; then
28000 ac_cv_header_stat_broken=yes
28001else
28002 ac_cv_header_stat_broken=no
28003fi
28004rm -f conftest*
28005
28006fi
Reid Spencera773bd52006-08-04 18:18:08 +000028007{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28008echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028009if test $ac_cv_header_stat_broken = yes; then
28010
28011cat >>confdefs.h <<\_ACEOF
28012#define STAT_MACROS_BROKEN 1
28013_ACEOF
28014
28015fi
28016
Reid Spencera773bd52006-08-04 18:18:08 +000028017{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28018echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028019if test "${ac_cv_header_stdc+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028028#include <stdlib.h>
28029#include <stdarg.h>
28030#include <string.h>
28031#include <float.h>
28032
John Criswell0c38eaf2003-09-10 15:17:25 +000028033int
28034main ()
28035{
28036
28037 ;
28038 return 0;
28039}
John Criswell7a73b802003-06-30 21:59:07 +000028040_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028041rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028042if { (ac_try="$ac_compile"
28043case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028050 grep -v '^ *+' conftest.er1 >conftest.err
28051 rm -f conftest.er1
28052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028054 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056 { (case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28059esac
28060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028075 ac_cv_header_stdc=yes
28076else
28077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028078sed 's/^/| /' conftest.$ac_ext >&5
28079
Reid Spencera773bd52006-08-04 18:18:08 +000028080 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028081fi
Reid Spencera773bd52006-08-04 18:18:08 +000028082
28083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028084
28085if test $ac_cv_header_stdc = yes; then
28086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028088/* confdefs.h. */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028093#include <string.h>
28094
28095_ACEOF
28096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028097 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028098 :
28099else
28100 ac_cv_header_stdc=no
28101fi
28102rm -f conftest*
28103
28104fi
28105
28106if test $ac_cv_header_stdc = yes; then
28107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028109/* confdefs.h. */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028114#include <stdlib.h>
28115
28116_ACEOF
28117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028118 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028119 :
28120else
28121 ac_cv_header_stdc=no
28122fi
28123rm -f conftest*
28124
28125fi
28126
28127if test $ac_cv_header_stdc = yes; then
28128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28129 if test "$cross_compiling" = yes; then
28130 :
28131else
28132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028138#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028139#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028140#if ((' ' & 0x0FF) == 0x020)
28141# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28142# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28143#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028144# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028145 (('a' <= (c) && (c) <= 'i') \
28146 || ('j' <= (c) && (c) <= 'r') \
28147 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028148# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28149#endif
28150
28151#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28152int
28153main ()
28154{
28155 int i;
28156 for (i = 0; i < 256; i++)
28157 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028158 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028159 return 2;
28160 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028161}
28162_ACEOF
28163rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028164if { (ac_try="$ac_link"
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_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028174 { (case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28177esac
28178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028180 ac_status=$?
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 :
28184else
28185 echo "$as_me: program exited with status $ac_status" >&5
28186echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028187sed 's/^/| /' conftest.$ac_ext >&5
28188
John Criswell7a73b802003-06-30 21:59:07 +000028189( exit $ac_status )
28190ac_cv_header_stdc=no
28191fi
Reid Spencera773bd52006-08-04 18:18:08 +000028192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28193fi
28194
28195
John Criswell7a73b802003-06-30 21:59:07 +000028196fi
28197fi
Reid Spencera773bd52006-08-04 18:18:08 +000028198{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28199echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028200if test $ac_cv_header_stdc = yes; then
28201
28202cat >>confdefs.h <<\_ACEOF
28203#define STDC_HEADERS 1
28204_ACEOF
28205
28206fi
28207
Reid Spencera773bd52006-08-04 18:18:08 +000028208{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28209echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028210if test "${ac_cv_header_sys_wait_h+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028214/* confdefs.h. */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028219#include <sys/types.h>
28220#include <sys/wait.h>
28221#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028222# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028223#endif
28224#ifndef WIFEXITED
28225# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28226#endif
28227
John Criswell7a73b802003-06-30 21:59:07 +000028228int
28229main ()
28230{
28231 int s;
28232 wait (&s);
28233 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28234 ;
28235 return 0;
28236}
28237_ACEOF
28238rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028239if { (ac_try="$ac_compile"
28240case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28243esac
28244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028247 grep -v '^ *+' conftest.er1 >conftest.err
28248 rm -f conftest.er1
28249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28253 { (case "(($ac_try" in
28254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255 *) ac_try_echo=$ac_try;;
28256esac
28257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028263 { (case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28266esac
28267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028269 ac_status=$?
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28272 ac_cv_header_sys_wait_h=yes
28273else
28274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028275sed 's/^/| /' conftest.$ac_ext >&5
28276
Reid Spencera773bd52006-08-04 18:18:08 +000028277 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028278fi
Reid Spencera773bd52006-08-04 18:18:08 +000028279
28280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028281fi
Reid Spencera773bd52006-08-04 18:18:08 +000028282{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28283echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028284if test $ac_cv_header_sys_wait_h = yes; then
28285
28286cat >>confdefs.h <<\_ACEOF
28287#define HAVE_SYS_WAIT_H 1
28288_ACEOF
28289
28290fi
28291
Reid Spencera773bd52006-08-04 18:18:08 +000028292{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28293echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028294if test "${ac_cv_header_time+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297 cat >conftest.$ac_ext <<_ACEOF
28298/* confdefs.h. */
28299_ACEOF
28300cat confdefs.h >>conftest.$ac_ext
28301cat >>conftest.$ac_ext <<_ACEOF
28302/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028303#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028304#include <sys/time.h>
28305#include <time.h>
28306
28307int
28308main ()
28309{
28310if ((struct tm *) 0)
28311return 0;
28312 ;
28313 return 0;
28314}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028315_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028316rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028317if { (ac_try="$ac_compile"
28318case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28321esac
28322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028324 ac_status=$?
28325 grep -v '^ *+' conftest.er1 >conftest.err
28326 rm -f conftest.er1
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028329 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28331 { (case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28334esac
28335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028337 ac_status=$?
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; } &&
28340 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028341 { (case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28344esac
28345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028347 ac_status=$?
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; }; then
28350 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028351else
28352 echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
Reid Spencera773bd52006-08-04 18:18:08 +000028355 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028356fi
Reid Spencera773bd52006-08-04 18:18:08 +000028357
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028359fi
Reid Spencera773bd52006-08-04 18:18:08 +000028360{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28361echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028362if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028363
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028364cat >>confdefs.h <<\_ACEOF
28365#define TIME_WITH_SYS_TIME 1
28366_ACEOF
28367
28368fi
28369
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028370
Reid Spencer59473af2004-12-25 07:31:29 +000028371
28372
28373
28374
28375
28376
28377for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28378do
28379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028384 echo $ECHO_N "(cached) $ECHO_C" >&6
28385fi
Reid Spencera773bd52006-08-04 18:18:08 +000028386ac_res=`eval echo '${'$as_ac_Header'}'`
28387 { echo "$as_me:$LINENO: result: $ac_res" >&5
28388echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028389else
28390 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028393cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028399$ac_includes_default
28400#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028401_ACEOF
28402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028403if { (ac_try="$ac_compile"
28404case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28407esac
28408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028410 ac_status=$?
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28417 { (case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028427 { (case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430esac
28431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028436 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028437else
28438 echo "$as_me: failed program was:" >&5
28439sed 's/^/| /' conftest.$ac_ext >&5
28440
Reid Spencera773bd52006-08-04 18:18:08 +000028441 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028442fi
Reid Spencera773bd52006-08-04 18:18:08 +000028443
28444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28446echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028447
Reid Spencer59473af2004-12-25 07:31:29 +000028448# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028451cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
28457#include <$ac_header>
28458_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028459if { (ac_try="$ac_cpp conftest.$ac_ext"
28460case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28463esac
28464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028466 ac_status=$?
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } >/dev/null; then
28472 if test -s conftest.err; then
28473 ac_cpp_err=$ac_c_preproc_warn_flag
28474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28475 else
28476 ac_cpp_err=
28477 fi
28478else
28479 ac_cpp_err=yes
28480fi
28481if test -z "$ac_cpp_err"; then
28482 ac_header_preproc=yes
28483else
28484 echo "$as_me: failed program was:" >&5
28485sed 's/^/| /' conftest.$ac_ext >&5
28486
28487 ac_header_preproc=no
28488fi
Reid Spencera773bd52006-08-04 18:18:08 +000028489
Reid Spencer59473af2004-12-25 07:31:29 +000028490rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28492echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028493
28494# So? What about this header?
28495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28496 yes:no: )
28497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28501 ac_header_preproc=yes
28502 ;;
28503 no:yes:* )
28504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028516 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028517## ----------------------------------- ##
28518## Report this to llvmbugs@cs.uiuc.edu ##
28519## ----------------------------------- ##
28520_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028521 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028522 ;;
28523esac
Reid Spencera773bd52006-08-04 18:18:08 +000028524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529 eval "$as_ac_Header=\$ac_header_preproc"
28530fi
Reid Spencera773bd52006-08-04 18:18:08 +000028531ac_res=`eval echo '${'$as_ac_Header'}'`
28532 { echo "$as_me:$LINENO: result: $ac_res" >&5
28533echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028534
28535fi
Reid Spencer59473af2004-12-25 07:31:29 +000028536if test `eval echo '${'$as_ac_Header'}'` = yes; then
28537 cat >>confdefs.h <<_ACEOF
28538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028539_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028540
28541fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028542
Reid Spencer59473af2004-12-25 07:31:29 +000028543done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028545
28546
Reid Spencer59473af2004-12-25 07:31:29 +000028547
28548
28549
28550
Reid Spencercdb08a32006-06-05 16:11:07 +000028551for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028552do
28553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028558 echo $ECHO_N "(cached) $ECHO_C" >&6
28559fi
Reid Spencera773bd52006-08-04 18:18:08 +000028560ac_res=`eval echo '${'$as_ac_Header'}'`
28561 { echo "$as_me:$LINENO: result: $ac_res" >&5
28562echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028563else
28564 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028567cat >conftest.$ac_ext <<_ACEOF
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
28573$ac_includes_default
28574#include <$ac_header>
28575_ACEOF
28576rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028577if { (ac_try="$ac_compile"
28578case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028584 ac_status=$?
28585 grep -v '^ *+' conftest.er1 >conftest.err
28586 rm -f conftest.er1
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594esac
28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_header_compiler=yes
28611else
28612 echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
Reid Spencera773bd52006-08-04 18:18:08 +000028615 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028616fi
Reid Spencera773bd52006-08-04 18:18:08 +000028617
28618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28620echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028621
28622# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028625cat >conftest.$ac_ext <<_ACEOF
28626/* confdefs.h. */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h. */
28631#include <$ac_header>
28632_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028633if { (ac_try="$ac_cpp conftest.$ac_ext"
28634case "(($ac_try" in
28635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636 *) ac_try_echo=$ac_try;;
28637esac
28638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028640 ac_status=$?
28641 grep -v '^ *+' conftest.er1 >conftest.err
28642 rm -f conftest.er1
28643 cat conftest.err >&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } >/dev/null; then
28646 if test -s conftest.err; then
28647 ac_cpp_err=$ac_c_preproc_warn_flag
28648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28649 else
28650 ac_cpp_err=
28651 fi
28652else
28653 ac_cpp_err=yes
28654fi
28655if test -z "$ac_cpp_err"; then
28656 ac_header_preproc=yes
28657else
28658 echo "$as_me: failed program was:" >&5
28659sed 's/^/| /' conftest.$ac_ext >&5
28660
28661 ac_header_preproc=no
28662fi
Reid Spencera773bd52006-08-04 18:18:08 +000028663
Reid Spencer59473af2004-12-25 07:31:29 +000028664rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28666echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028667
28668# So? What about this header?
28669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28670 yes:no: )
28671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28675 ac_header_preproc=yes
28676 ;;
28677 no:yes:* )
28678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028690 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028691## ----------------------------------- ##
28692## Report this to llvmbugs@cs.uiuc.edu ##
28693## ----------------------------------- ##
28694_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028695 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028696 ;;
28697esac
Reid Spencera773bd52006-08-04 18:18:08 +000028698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028701 echo $ECHO_N "(cached) $ECHO_C" >&6
28702else
28703 eval "$as_ac_Header=\$ac_header_preproc"
28704fi
Reid Spencera773bd52006-08-04 18:18:08 +000028705ac_res=`eval echo '${'$as_ac_Header'}'`
28706 { echo "$as_me:$LINENO: result: $ac_res" >&5
28707echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028708
28709fi
28710if test `eval echo '${'$as_ac_Header'}'` = yes; then
28711 cat >>confdefs.h <<_ACEOF
28712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28713_ACEOF
28714
28715fi
28716
28717done
28718
28719
28720
28721
28722
28723
Reid Spencercdb08a32006-06-05 16:11:07 +000028724for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028725do
28726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732fi
Reid Spencera773bd52006-08-04 18:18:08 +000028733ac_res=`eval echo '${'$as_ac_Header'}'`
28734 { echo "$as_me:$LINENO: result: $ac_res" >&5
28735echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028736else
28737 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028740cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028741/* confdefs.h. */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h. */
28746$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028747#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028748_ACEOF
28749rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028750if { (ac_try="$ac_compile"
28751case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028758 grep -v '^ *+' conftest.er1 >conftest.err
28759 rm -f conftest.er1
28760 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764 { (case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767esac
28768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28777esac
28778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_header_compiler=yes
28784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
Reid Spencera773bd52006-08-04 18:18:08 +000028788 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028789fi
Reid Spencera773bd52006-08-04 18:18:08 +000028790
28791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028794
28795# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028798cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028799/* confdefs.h. */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
28803/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028804#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028805_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028806if { (ac_try="$ac_cpp conftest.$ac_ext"
28807case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028813 ac_status=$?
28814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } >/dev/null; then
28819 if test -s conftest.err; then
28820 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028822 else
28823 ac_cpp_err=
28824 fi
28825else
28826 ac_cpp_err=yes
28827fi
28828if test -z "$ac_cpp_err"; then
28829 ac_header_preproc=yes
28830else
28831 echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
28833
28834 ac_header_preproc=no
28835fi
Reid Spencera773bd52006-08-04 18:18:08 +000028836
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028837rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028840
28841# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028848 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028849 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028850 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028863 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028864## ----------------------------------- ##
28865## Report this to llvmbugs@cs.uiuc.edu ##
28866## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028867_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028868 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028869 ;;
28870esac
Reid Spencera773bd52006-08-04 18:18:08 +000028871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028876 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028877fi
Reid Spencera773bd52006-08-04 18:18:08 +000028878ac_res=`eval echo '${'$as_ac_Header'}'`
28879 { echo "$as_me:$LINENO: result: $ac_res" >&5
28880echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028881
28882fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028883if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884 cat >>confdefs.h <<_ACEOF
28885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028886_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028887
28888fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028889
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028890done
28891
John Criswell7ed43ad2004-07-19 16:12:29 +000028892
Reid Spencercdb08a32006-06-05 16:11:07 +000028893
Reid Spencera6d990a2006-09-14 06:17:21 +000028894
28895for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028896do
28897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903fi
Reid Spencera773bd52006-08-04 18:18:08 +000028904ac_res=`eval echo '${'$as_ac_Header'}'`
28905 { echo "$as_me:$LINENO: result: $ac_res" >&5
28906echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028907else
28908 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028911cat >conftest.$ac_ext <<_ACEOF
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
28917$ac_includes_default
28918#include <$ac_header>
28919_ACEOF
28920rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028921if { (ac_try="$ac_compile"
28922case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028928 ac_status=$?
28929 grep -v '^ *+' conftest.er1 >conftest.err
28930 rm -f conftest.er1
28931 cat conftest.err >&5
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935 { (case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28938esac
28939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28948esac
28949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028951 ac_status=$?
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 ac_header_compiler=yes
28955else
28956 echo "$as_me: failed program was:" >&5
28957sed 's/^/| /' conftest.$ac_ext >&5
28958
Reid Spencera773bd52006-08-04 18:18:08 +000028959 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028960fi
Reid Spencera773bd52006-08-04 18:18:08 +000028961
28962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28964echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028965
28966# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028969cat >conftest.$ac_ext <<_ACEOF
28970/* confdefs.h. */
28971_ACEOF
28972cat confdefs.h >>conftest.$ac_ext
28973cat >>conftest.$ac_ext <<_ACEOF
28974/* end confdefs.h. */
28975#include <$ac_header>
28976_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028977if { (ac_try="$ac_cpp conftest.$ac_ext"
28978case "(($ac_try" in
28979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980 *) ac_try_echo=$ac_try;;
28981esac
28982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028984 ac_status=$?
28985 grep -v '^ *+' conftest.er1 >conftest.err
28986 rm -f conftest.er1
28987 cat conftest.err >&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } >/dev/null; then
28990 if test -s conftest.err; then
28991 ac_cpp_err=$ac_c_preproc_warn_flag
28992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28993 else
28994 ac_cpp_err=
28995 fi
28996else
28997 ac_cpp_err=yes
28998fi
28999if test -z "$ac_cpp_err"; then
29000 ac_header_preproc=yes
29001else
29002 echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005 ac_header_preproc=no
29006fi
Reid Spencera773bd52006-08-04 18:18:08 +000029007
Chris Lattner0b142592005-11-14 06:57:34 +000029008rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29010echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029011
29012# So? What about this header?
29013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29014 yes:no: )
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29019 ac_header_preproc=yes
29020 ;;
29021 no:yes:* )
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029034 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029035## ----------------------------------- ##
29036## Report this to llvmbugs@cs.uiuc.edu ##
29037## ----------------------------------- ##
29038_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029039 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029040 ;;
29041esac
Reid Spencera773bd52006-08-04 18:18:08 +000029042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029045 echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
29047 eval "$as_ac_Header=\$ac_header_preproc"
29048fi
Reid Spencera773bd52006-08-04 18:18:08 +000029049ac_res=`eval echo '${'$as_ac_Header'}'`
29050 { echo "$as_me:$LINENO: result: $ac_res" >&5
29051echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029052
29053fi
29054if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055 cat >>confdefs.h <<_ACEOF
29056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29057_ACEOF
29058
29059fi
29060
29061done
29062
Reid Spencer0a262ba2005-08-24 10:07:20 +000029063if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029064 if test "${ac_cv_header_pthread_h+set}" = set; then
29065 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29066echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29067if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029068 echo $ECHO_N "(cached) $ECHO_C" >&6
29069fi
Reid Spencer1000b732006-12-01 00:37:14 +000029070{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29071echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029072else
29073 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029074{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29075echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029076cat >conftest.$ac_ext <<_ACEOF
29077/* confdefs.h. */
29078_ACEOF
29079cat confdefs.h >>conftest.$ac_ext
29080cat >>conftest.$ac_ext <<_ACEOF
29081/* end confdefs.h. */
29082$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029083#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029084_ACEOF
29085rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029086if { (ac_try="$ac_compile"
29087case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29090esac
29091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029093 ac_status=$?
29094 grep -v '^ *+' conftest.er1 >conftest.err
29095 rm -f conftest.er1
29096 cat conftest.err >&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100 { (case "(($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_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029110 { (case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29113esac
29114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 ac_header_compiler=yes
29120else
29121 echo "$as_me: failed program was:" >&5
29122sed 's/^/| /' conftest.$ac_ext >&5
29123
Reid Spencera773bd52006-08-04 18:18:08 +000029124 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029125fi
Reid Spencera773bd52006-08-04 18:18:08 +000029126
29127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29129echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029130
29131# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029132{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29133echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029134cat >conftest.$ac_ext <<_ACEOF
29135/* confdefs.h. */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029140#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029141_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029142if { (ac_try="$ac_cpp conftest.$ac_ext"
29143case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29146esac
29147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029149 ac_status=$?
29150 grep -v '^ *+' conftest.er1 >conftest.err
29151 rm -f conftest.er1
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } >/dev/null; then
29155 if test -s conftest.err; then
29156 ac_cpp_err=$ac_c_preproc_warn_flag
29157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29158 else
29159 ac_cpp_err=
29160 fi
29161else
29162 ac_cpp_err=yes
29163fi
29164if test -z "$ac_cpp_err"; then
29165 ac_header_preproc=yes
29166else
29167 echo "$as_me: failed program was:" >&5
29168sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 ac_header_preproc=no
29171fi
Reid Spencera773bd52006-08-04 18:18:08 +000029172
Reid Spencer0a262ba2005-08-24 10:07:20 +000029173rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29175echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029176
29177# So? What about this header?
29178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29179 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029180 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29181echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29183echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029184 ac_header_preproc=yes
29185 ;;
29186 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029187 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29188echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29190echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29192echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29193 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29194echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29195 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29196echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29197 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29198echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029199 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029200## ----------------------------------- ##
29201## Report this to llvmbugs@cs.uiuc.edu ##
29202## ----------------------------------- ##
29203_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029204 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029205 ;;
29206esac
Reid Spencer1000b732006-12-01 00:37:14 +000029207{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29208echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29209if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
Reid Spencer1000b732006-12-01 00:37:14 +000029212 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029213fi
Reid Spencer1000b732006-12-01 00:37:14 +000029214{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29215echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029216
29217fi
Reid Spencer1000b732006-12-01 00:37:14 +000029218if test $ac_cv_header_pthread_h = yes; then
29219 HAVE_PTHREAD=1
29220
29221else
29222 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029223
29224fi
29225
Reid Spencer1000b732006-12-01 00:37:14 +000029226
29227else
29228 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029229
29230fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029231
29232
Reid Spencerb2ed05262006-11-03 18:04:08 +000029233
29234 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29235echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29236if test "${ac_cv_huge_val_sanity+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29238else
29239
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029240 ac_ext=cpp
29241ac_cpp='$CXXCPP $CPPFLAGS'
29242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029245
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029246 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029247 if test "$cross_compiling" = yes; then
29248 ac_cv_huge_val_sanity=yes
29249else
29250 cat >conftest.$ac_ext <<_ACEOF
29251/* confdefs.h. */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h. */
29256#include <math.h>
29257int
29258main ()
29259{
29260double x = HUGE_VAL; return x != x;
29261 ;
29262 return 0;
29263}
29264_ACEOF
29265rm -f conftest$ac_exeext
29266if { (ac_try="$ac_link"
29267case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29270esac
29271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_link") 2>&5
29273 ac_status=$?
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29276 { (case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_try") 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 ac_cv_huge_val_sanity=yes
29286else
29287 echo "$as_me: program exited with status $ac_status" >&5
29288echo "$as_me: failed program was:" >&5
29289sed 's/^/| /' conftest.$ac_ext >&5
29290
29291( exit $ac_status )
29292ac_cv_huge_val_sanity=no
29293fi
29294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29295fi
29296
29297
29298 ac_ext=c
29299ac_cpp='$CPP $CPPFLAGS'
29300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302ac_compiler_gnu=$ac_cv_c_compiler_gnu
29303
29304
29305fi
29306{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29307echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29308 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29309
29310
Reid Spencera773bd52006-08-04 18:18:08 +000029311{ echo "$as_me:$LINENO: checking for pid_t" >&5
29312echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029313if test "${ac_cv_type_pid_t+set}" = set; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29315else
29316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029317/* confdefs.h. */
29318_ACEOF
29319cat confdefs.h >>conftest.$ac_ext
29320cat >>conftest.$ac_ext <<_ACEOF
29321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029322$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029323typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029324int
29325main ()
29326{
Reid Spencera773bd52006-08-04 18:18:08 +000029327if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029328 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029329if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029330 return 0;
29331 ;
29332 return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029336if { (ac_try="$ac_compile"
29337case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029344 grep -v '^ *+' conftest.er1 >conftest.err
29345 rm -f conftest.er1
29346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350 { (case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29353esac
29354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029360 { (case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29363esac
29364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029366 ac_status=$?
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_cv_type_pid_t=yes
29370else
29371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029372sed 's/^/| /' conftest.$ac_ext >&5
29373
Reid Spencera773bd52006-08-04 18:18:08 +000029374 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029375fi
Reid Spencera773bd52006-08-04 18:18:08 +000029376
29377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029378fi
Reid Spencera773bd52006-08-04 18:18:08 +000029379{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29380echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029381if test $ac_cv_type_pid_t = yes; then
29382 :
29383else
29384
29385cat >>confdefs.h <<_ACEOF
29386#define pid_t int
29387_ACEOF
29388
29389fi
29390
Reid Spencera773bd52006-08-04 18:18:08 +000029391{ echo "$as_me:$LINENO: checking for size_t" >&5
29392echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029393if test "${ac_cv_type_size_t+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395else
29396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029397/* confdefs.h. */
29398_ACEOF
29399cat confdefs.h >>conftest.$ac_ext
29400cat >>conftest.$ac_ext <<_ACEOF
29401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029402$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029403typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029404int
29405main ()
29406{
Reid Spencera773bd52006-08-04 18:18:08 +000029407if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029408 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029409if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029410 return 0;
29411 ;
29412 return 0;
29413}
29414_ACEOF
29415rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029416if { (ac_try="$ac_compile"
29417case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29420esac
29421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29430 { (case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29433esac
29434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029440 { (case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29443esac
29444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 ac_cv_type_size_t=yes
29450else
29451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029452sed 's/^/| /' conftest.$ac_ext >&5
29453
Reid Spencera773bd52006-08-04 18:18:08 +000029454 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029455fi
Reid Spencera773bd52006-08-04 18:18:08 +000029456
29457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029458fi
Reid Spencera773bd52006-08-04 18:18:08 +000029459{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29460echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029461if test $ac_cv_type_size_t = yes; then
29462 :
29463else
29464
29465cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029466#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029467_ACEOF
29468
29469fi
29470
Reid Spencera773bd52006-08-04 18:18:08 +000029471{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29472echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029473if test "${ac_cv_type_signal+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29475else
29476 cat >conftest.$ac_ext <<_ACEOF
29477/* confdefs.h. */
29478_ACEOF
29479cat confdefs.h >>conftest.$ac_ext
29480cat >>conftest.$ac_ext <<_ACEOF
29481/* end confdefs.h. */
29482#include <sys/types.h>
29483#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029484
29485int
29486main ()
29487{
Reid Spencera773bd52006-08-04 18:18:08 +000029488return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029489 ;
29490 return 0;
29491}
29492_ACEOF
29493rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029494if { (ac_try="$ac_compile"
29495case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29498esac
29499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029501 ac_status=$?
29502 grep -v '^ *+' conftest.er1 >conftest.err
29503 rm -f conftest.er1
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29511esac
29512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029514 ac_status=$?
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; } &&
29517 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029518 { (case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29521esac
29522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029524 ac_status=$?
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029527 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029528else
29529 echo "$as_me: failed program was:" >&5
29530sed 's/^/| /' conftest.$ac_ext >&5
29531
Reid Spencera773bd52006-08-04 18:18:08 +000029532 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029533fi
Reid Spencera773bd52006-08-04 18:18:08 +000029534
29535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029536fi
Reid Spencera773bd52006-08-04 18:18:08 +000029537{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29538echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029539
29540cat >>confdefs.h <<_ACEOF
29541#define RETSIGTYPE $ac_cv_type_signal
29542_ACEOF
29543
29544
Reid Spencera773bd52006-08-04 18:18:08 +000029545{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29546echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029547if test "${ac_cv_struct_tm+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550 cat >conftest.$ac_ext <<_ACEOF
29551/* confdefs.h. */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h. */
29556#include <sys/types.h>
29557#include <time.h>
29558
29559int
29560main ()
29561{
29562struct tm *tp; tp->tm_sec;
29563 ;
29564 return 0;
29565}
29566_ACEOF
29567rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029568if { (ac_try="$ac_compile"
29569case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29572esac
29573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029575 ac_status=$?
29576 grep -v '^ *+' conftest.er1 >conftest.err
29577 rm -f conftest.er1
29578 cat conftest.err >&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29582 { (case "(($ac_try" in
29583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584 *) ac_try_echo=$ac_try;;
29585esac
29586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; } &&
29591 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029592 { (case "(($ac_try" in
29593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594 *) ac_try_echo=$ac_try;;
29595esac
29596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029598 ac_status=$?
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601 ac_cv_struct_tm=time.h
29602else
29603 echo "$as_me: failed program was:" >&5
29604sed 's/^/| /' conftest.$ac_ext >&5
29605
Reid Spencera773bd52006-08-04 18:18:08 +000029606 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029607fi
Reid Spencera773bd52006-08-04 18:18:08 +000029608
29609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029610fi
Reid Spencera773bd52006-08-04 18:18:08 +000029611{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29612echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029613if test $ac_cv_struct_tm = sys/time.h; then
29614
29615cat >>confdefs.h <<\_ACEOF
29616#define TM_IN_SYS_TIME 1
29617_ACEOF
29618
29619fi
29620
Reid Spencera773bd52006-08-04 18:18:08 +000029621{ echo "$as_me:$LINENO: checking for int64_t" >&5
29622echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029623if test "${ac_cv_type_int64_t+set}" = set; then
29624 echo $ECHO_N "(cached) $ECHO_C" >&6
29625else
29626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029632$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029633typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029634int
29635main ()
29636{
Reid Spencera773bd52006-08-04 18:18:08 +000029637if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029638 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029639if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029640 return 0;
29641 ;
29642 return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029646if { (ac_try="$ac_compile"
29647case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29650esac
29651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029654 grep -v '^ *+' conftest.er1 >conftest.err
29655 rm -f conftest.er1
29656 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29660 { (case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29663esac
29664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; } &&
29669 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29673esac
29674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 ac_cv_type_int64_t=yes
29680else
29681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029682sed 's/^/| /' conftest.$ac_ext >&5
29683
Reid Spencera773bd52006-08-04 18:18:08 +000029684 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029685fi
Reid Spencera773bd52006-08-04 18:18:08 +000029686
29687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029688fi
Reid Spencera773bd52006-08-04 18:18:08 +000029689{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29690echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029691if test $ac_cv_type_int64_t = yes; then
29692
29693cat >>confdefs.h <<_ACEOF
29694#define HAVE_INT64_T 1
29695_ACEOF
29696
29697
29698else
29699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29700echo "$as_me: error: Type int64_t required but not found" >&2;}
29701 { (exit 1); exit 1; }; }
29702fi
29703
Reid Spencera773bd52006-08-04 18:18:08 +000029704{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29705echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029706if test "${ac_cv_type_uint64_t+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029710/* confdefs.h. */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029715$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029716typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029717int
29718main ()
29719{
Reid Spencera773bd52006-08-04 18:18:08 +000029720if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029721 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029722if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029723 return 0;
29724 ;
29725 return 0;
29726}
29727_ACEOF
29728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029729if { (ac_try="$ac_compile"
29730case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29733esac
29734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029737 grep -v '^ *+' conftest.er1 >conftest.err
29738 rm -f conftest.er1
29739 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29743 { (case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29746esac
29747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; } &&
29752 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029753 { (case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756esac
29757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029759 ac_status=$?
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; }; then
29762 ac_cv_type_uint64_t=yes
29763else
29764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029765sed 's/^/| /' conftest.$ac_ext >&5
29766
Reid Spencera773bd52006-08-04 18:18:08 +000029767 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029768fi
Reid Spencera773bd52006-08-04 18:18:08 +000029769
29770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029771fi
Reid Spencera773bd52006-08-04 18:18:08 +000029772{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29773echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029774if test $ac_cv_type_uint64_t = yes; then
29775
29776cat >>confdefs.h <<_ACEOF
29777#define HAVE_UINT64_T 1
29778_ACEOF
29779
29780
29781else
Reid Spencera773bd52006-08-04 18:18:08 +000029782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29783echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029784if test "${ac_cv_type_u_int64_t+set}" = set; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29786else
29787 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029788/* confdefs.h. */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h. */
29793$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029794typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029795int
29796main ()
29797{
Reid Spencera773bd52006-08-04 18:18:08 +000029798if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029799 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029800if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029801 return 0;
29802 ;
29803 return 0;
29804}
29805_ACEOF
29806rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029807if { (ac_try="$ac_compile"
29808case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29811esac
29812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029815 grep -v '^ *+' conftest.er1 >conftest.err
29816 rm -f conftest.er1
29817 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821 { (case "(($ac_try" in
29822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823 *) ac_try_echo=$ac_try;;
29824esac
29825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029831 { (case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29834esac
29835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
29840 ac_cv_type_u_int64_t=yes
29841else
29842 echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
Reid Spencera773bd52006-08-04 18:18:08 +000029845 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029846fi
Reid Spencera773bd52006-08-04 18:18:08 +000029847
29848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029849fi
Reid Spencera773bd52006-08-04 18:18:08 +000029850{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29851echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029852if test $ac_cv_type_u_int64_t = yes; then
29853
29854cat >>confdefs.h <<_ACEOF
29855#define HAVE_U_INT64_T 1
29856_ACEOF
29857
29858
Misha Brukmanceca9042004-09-02 23:02:30 +000029859else
29860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29861echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29862 { (exit 1); exit 1; }; }
29863fi
29864
John Criswell679ff312004-09-02 18:44:44 +000029865fi
29866
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029867
29868
29869
29870
29871
29872
29873
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029874
29875
Reid Spencerdf3be822006-01-23 08:15:53 +000029876for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029877do
29878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029885/* confdefs.h. */
29886_ACEOF
29887cat confdefs.h >>conftest.$ac_ext
29888cat >>conftest.$ac_ext <<_ACEOF
29889/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29892#define $ac_func innocuous_$ac_func
29893
29894/* System header to define __stub macros and hopefully few prototypes,
29895 which can conflict with char $ac_func (); below.
29896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897 <limits.h> exists even on freestanding compilers. */
29898
29899#ifdef __STDC__
29900# include <limits.h>
29901#else
29902# include <assert.h>
29903#endif
29904
29905#undef $ac_func
29906
Reid Spencera773bd52006-08-04 18:18:08 +000029907/* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029910#ifdef __cplusplus
29911extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029912#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029913char $ac_func ();
29914/* The GNU C library defines this for functions which it implements
29915 to always fail with ENOSYS. Some functions are actually named
29916 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029917#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029918choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029919#endif
John Criswell7a73b802003-06-30 21:59:07 +000029920
John Criswell7a73b802003-06-30 21:59:07 +000029921int
29922main ()
29923{
Reid Spencera773bd52006-08-04 18:18:08 +000029924return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029925 ;
29926 return 0;
29927}
29928_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029930if { (ac_try="$ac_link"
29931case "(($ac_try" in
29932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933 *) ac_try_echo=$ac_try;;
29934esac
29935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029938 grep -v '^ *+' conftest.er1 >conftest.err
29939 rm -f conftest.er1
29940 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029953 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029954 { (case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029963 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029964else
29965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029966sed 's/^/| /' conftest.$ac_ext >&5
29967
Reid Spencera773bd52006-08-04 18:18:08 +000029968 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029969fi
Reid Spencera773bd52006-08-04 18:18:08 +000029970
29971rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029972 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029973fi
Reid Spencera773bd52006-08-04 18:18:08 +000029974ac_res=`eval echo '${'$as_ac_var'}'`
29975 { echo "$as_me:$LINENO: result: $ac_res" >&5
29976echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029977if test `eval echo '${'$as_ac_var'}'` = yes; then
29978 cat >>confdefs.h <<_ACEOF
29979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029980_ACEOF
29981
29982fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029983done
John Criswell7a73b802003-06-30 21:59:07 +000029984
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029985
29986
29987
Reid Spencer6af3d262004-12-15 04:01:48 +000029988
29989
Reid Spencer59473af2004-12-25 07:31:29 +000029990
Reid Spencerdf3be822006-01-23 08:15:53 +000029991for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29992do
29993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029994{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29996if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029997 echo $ECHO_N "(cached) $ECHO_C" >&6
29998else
29999 cat >conftest.$ac_ext <<_ACEOF
30000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
30005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30007#define $ac_func innocuous_$ac_func
30008
30009/* System header to define __stub macros and hopefully few prototypes,
30010 which can conflict with char $ac_func (); below.
30011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30012 <limits.h> exists even on freestanding compilers. */
30013
30014#ifdef __STDC__
30015# include <limits.h>
30016#else
30017# include <assert.h>
30018#endif
30019
30020#undef $ac_func
30021
Reid Spencera773bd52006-08-04 18:18:08 +000030022/* Override any GCC internal prototype to avoid an error.
30023 Use char because int might match the return type of a GCC
30024 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030025#ifdef __cplusplus
30026extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030027#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030028char $ac_func ();
30029/* The GNU C library defines this for functions which it implements
30030 to always fail with ENOSYS. Some functions are actually named
30031 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030032#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030033choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030034#endif
30035
30036int
30037main ()
30038{
Reid Spencera773bd52006-08-04 18:18:08 +000030039return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030045if { (ac_try="$ac_link"
30046case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030052 ac_status=$?
30053 grep -v '^ *+' conftest.er1 >conftest.err
30054 rm -f conftest.er1
30055 cat conftest.err >&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30059 { (case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030069 { (case "(($ac_try" in
30070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071 *) ac_try_echo=$ac_try;;
30072esac
30073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030075 ac_status=$?
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 eval "$as_ac_var=yes"
30079else
30080 echo "$as_me: failed program was:" >&5
30081sed 's/^/| /' conftest.$ac_ext >&5
30082
Reid Spencera773bd52006-08-04 18:18:08 +000030083 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030084fi
Reid Spencera773bd52006-08-04 18:18:08 +000030085
30086rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030087 conftest$ac_exeext conftest.$ac_ext
30088fi
Reid Spencera773bd52006-08-04 18:18:08 +000030089ac_res=`eval echo '${'$as_ac_var'}'`
30090 { echo "$as_me:$LINENO: result: $ac_res" >&5
30091echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030092if test `eval echo '${'$as_ac_var'}'` = yes; then
30093 cat >>confdefs.h <<_ACEOF
30094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095_ACEOF
30096
30097fi
30098done
30099
30100
30101
30102
30103
30104
30105
30106
30107for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030108do
30109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030113 echo $ECHO_N "(cached) $ECHO_C" >&6
30114else
30115 cat >conftest.$ac_ext <<_ACEOF
30116/* confdefs.h. */
30117_ACEOF
30118cat confdefs.h >>conftest.$ac_ext
30119cat >>conftest.$ac_ext <<_ACEOF
30120/* end confdefs.h. */
30121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30123#define $ac_func innocuous_$ac_func
30124
30125/* System header to define __stub macros and hopefully few prototypes,
30126 which can conflict with char $ac_func (); below.
30127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30128 <limits.h> exists even on freestanding compilers. */
30129
30130#ifdef __STDC__
30131# include <limits.h>
30132#else
30133# include <assert.h>
30134#endif
30135
30136#undef $ac_func
30137
Reid Spencera773bd52006-08-04 18:18:08 +000030138/* Override any GCC internal prototype to avoid an error.
30139 Use char because int might match the return type of a GCC
30140 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030141#ifdef __cplusplus
30142extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030143#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030144char $ac_func ();
30145/* The GNU C library defines this for functions which it implements
30146 to always fail with ENOSYS. Some functions are actually named
30147 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030148#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030149choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030150#endif
30151
30152int
30153main ()
30154{
Reid Spencera773bd52006-08-04 18:18:08 +000030155return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030156 ;
30157 return 0;
30158}
30159_ACEOF
30160rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030161if { (ac_try="$ac_link"
30162case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30165esac
30166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30175 { (case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30178esac
30179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; } &&
30184 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; }; then
30194 eval "$as_ac_var=yes"
30195else
30196 echo "$as_me: failed program was:" >&5
30197sed 's/^/| /' conftest.$ac_ext >&5
30198
Reid Spencera773bd52006-08-04 18:18:08 +000030199 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030200fi
Reid Spencera773bd52006-08-04 18:18:08 +000030201
30202rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030203 conftest$ac_exeext conftest.$ac_ext
30204fi
Reid Spencera773bd52006-08-04 18:18:08 +000030205ac_res=`eval echo '${'$as_ac_var'}'`
30206 { echo "$as_me:$LINENO: result: $ac_res" >&5
30207echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030208if test `eval echo '${'$as_ac_var'}'` = yes; then
30209 cat >>confdefs.h <<_ACEOF
30210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30211_ACEOF
30212
30213fi
30214done
30215
30216
Reid Spencerba46ca32004-12-31 05:49:15 +000030217
30218
Chris Lattner0b142592005-11-14 06:57:34 +000030219
Chris Lattner511f11d2005-11-14 07:25:50 +000030220for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030221do
30222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030226 echo $ECHO_N "(cached) $ECHO_C" >&6
30227else
30228 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030229/* confdefs.h. */
30230_ACEOF
30231cat confdefs.h >>conftest.$ac_ext
30232cat >>conftest.$ac_ext <<_ACEOF
30233/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30236#define $ac_func innocuous_$ac_func
30237
30238/* System header to define __stub macros and hopefully few prototypes,
30239 which can conflict with char $ac_func (); below.
30240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30241 <limits.h> exists even on freestanding compilers. */
30242
30243#ifdef __STDC__
30244# include <limits.h>
30245#else
30246# include <assert.h>
30247#endif
30248
30249#undef $ac_func
30250
Reid Spencera773bd52006-08-04 18:18:08 +000030251/* Override any GCC internal prototype to avoid an error.
30252 Use char because int might match the return type of a GCC
30253 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030254#ifdef __cplusplus
30255extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030256#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030257char $ac_func ();
30258/* The GNU C library defines this for functions which it implements
30259 to always fail with ENOSYS. Some functions are actually named
30260 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030261#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030263#endif
John Criswell7a73b802003-06-30 21:59:07 +000030264
John Criswell7a73b802003-06-30 21:59:07 +000030265int
30266main ()
30267{
Reid Spencera773bd52006-08-04 18:18:08 +000030268return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030269 ;
30270 return 0;
30271}
30272_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030273rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030274if { (ac_try="$ac_link"
30275case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030282 grep -v '^ *+' conftest.er1 >conftest.err
30283 rm -f conftest.er1
30284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30288 { (case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030294 ac_status=$?
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030297 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030298 { (case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30301esac
30302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030304 ac_status=$?
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030307 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030308else
30309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030310sed 's/^/| /' conftest.$ac_ext >&5
30311
Reid Spencera773bd52006-08-04 18:18:08 +000030312 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030313fi
Reid Spencera773bd52006-08-04 18:18:08 +000030314
30315rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030316 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030317fi
Reid Spencera773bd52006-08-04 18:18:08 +000030318ac_res=`eval echo '${'$as_ac_var'}'`
30319 { echo "$as_me:$LINENO: result: $ac_res" >&5
30320echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030321if test `eval echo '${'$as_ac_var'}'` = yes; then
30322 cat >>confdefs.h <<_ACEOF
30323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030324_ACEOF
30325
30326fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030327done
John Criswell7a73b802003-06-30 21:59:07 +000030328
Reid Spencercdb08a32006-06-05 16:11:07 +000030329
30330
30331
30332
Reid Spencerafa22e22006-12-10 23:29:19 +000030333for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030334do
30335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030339 echo $ECHO_N "(cached) $ECHO_C" >&6
30340else
30341 cat >conftest.$ac_ext <<_ACEOF
30342/* confdefs.h. */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h. */
30347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30349#define $ac_func innocuous_$ac_func
30350
30351/* System header to define __stub macros and hopefully few prototypes,
30352 which can conflict with char $ac_func (); below.
30353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30354 <limits.h> exists even on freestanding compilers. */
30355
30356#ifdef __STDC__
30357# include <limits.h>
30358#else
30359# include <assert.h>
30360#endif
30361
30362#undef $ac_func
30363
Reid Spencera773bd52006-08-04 18:18:08 +000030364/* Override any GCC internal prototype to avoid an error.
30365 Use char because int might match the return type of a GCC
30366 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030367#ifdef __cplusplus
30368extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030369#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030370char $ac_func ();
30371/* The GNU C library defines this for functions which it implements
30372 to always fail with ENOSYS. Some functions are actually named
30373 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030374#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030375choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030376#endif
30377
30378int
30379main ()
30380{
Reid Spencera773bd52006-08-04 18:18:08 +000030381return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030382 ;
30383 return 0;
30384}
30385_ACEOF
30386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030387if { (ac_try="$ac_link"
30388case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30391esac
30392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030394 ac_status=$?
30395 grep -v '^ *+' conftest.er1 >conftest.err
30396 rm -f conftest.er1
30397 cat conftest.err >&5
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30401 { (case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30404esac
30405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030407 ac_status=$?
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; } &&
30410 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030411 { (case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30414esac
30415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030417 ac_status=$?
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; }; then
30420 eval "$as_ac_var=yes"
30421else
30422 echo "$as_me: failed program was:" >&5
30423sed 's/^/| /' conftest.$ac_ext >&5
30424
Reid Spencera773bd52006-08-04 18:18:08 +000030425 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030426fi
Reid Spencera773bd52006-08-04 18:18:08 +000030427
30428rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030429 conftest$ac_exeext conftest.$ac_ext
30430fi
Reid Spencera773bd52006-08-04 18:18:08 +000030431ac_res=`eval echo '${'$as_ac_var'}'`
30432 { echo "$as_me:$LINENO: result: $ac_res" >&5
30433echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030434if test `eval echo '${'$as_ac_var'}'` = yes; then
30435 cat >>confdefs.h <<_ACEOF
30436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30437_ACEOF
30438
30439fi
30440done
30441
Reid Spencera773bd52006-08-04 18:18:08 +000030442{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30443echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030444if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445 echo $ECHO_N "(cached) $ECHO_C" >&6
30446else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030447 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030448ac_cpp='$CPP $CPPFLAGS'
30449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30451ac_compiler_gnu=$ac_cv_c_compiler_gnu
30452
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030453 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030454 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030455else
30456 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030457
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030458 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463
John Criswella0137d32003-10-13 16:22:01 +000030464#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030465#include <stdlib.h>
30466
John Criswella0137d32003-10-13 16:22:01 +000030467int
30468main ()
30469{
30470
Reid Spencer2706f8c2004-09-19 23:53:36 +000030471volatile double A, B;
30472char Buffer[100];
30473A = 1;
30474A /= 10.0;
30475sprintf(Buffer, "%a", A);
30476B = atof(Buffer);
30477if (A != B)
30478 return (1);
30479if (A != 0x1.999999999999ap-4)
30480 return (1);
30481return (0);
John Criswella0137d32003-10-13 16:22:01 +000030482 ;
30483 return 0;
30484}
30485_ACEOF
30486rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030487if { (ac_try="$ac_link"
30488case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30491esac
30492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030494 ac_status=$?
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030497 { (case "(($ac_try" in
30498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30500esac
30501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030506 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030507else
30508 echo "$as_me: program exited with status $ac_status" >&5
30509echo "$as_me: failed program was:" >&5
30510sed 's/^/| /' conftest.$ac_ext >&5
30511
30512( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030513llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030514fi
Reid Spencera773bd52006-08-04 18:18:08 +000030515rm -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 +000030516fi
Reid Spencera773bd52006-08-04 18:18:08 +000030517
30518
Reid Spencer2706f8c2004-09-19 23:53:36 +000030519 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030520ac_cpp='$CPP $CPPFLAGS'
30521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523ac_compiler_gnu=$ac_cv_c_compiler_gnu
30524
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030525fi
Reid Spencera773bd52006-08-04 18:18:08 +000030526{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30527echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030528 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030529
30530cat >>confdefs.h <<\_ACEOF
30531#define HAVE_PRINTF_A 1
30532_ACEOF
30533
Reid Spencer2706f8c2004-09-19 23:53:36 +000030534 fi
John Criswella0137d32003-10-13 16:22:01 +000030535
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30537# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030538{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30539echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030540if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030541 echo $ECHO_N "(cached) $ECHO_C" >&6
30542else
John Criswell0021c312004-02-13 21:57:29 +000030543 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030544/* confdefs.h. */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030549#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030550int
30551main ()
30552{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030553char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030554 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030555 ;
30556 return 0;
30557}
30558_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030559rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030560if { (ac_try="$ac_link"
30561case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30564esac
30565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030568 grep -v '^ *+' conftest.er1 >conftest.err
30569 rm -f conftest.er1
30570 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30574 { (case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30577esac
30578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030583 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030584 { (case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30587esac
30588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030593 ac_cv_working_alloca_h=yes
30594else
30595 echo "$as_me: failed program was:" >&5
30596sed 's/^/| /' conftest.$ac_ext >&5
30597
Reid Spencera773bd52006-08-04 18:18:08 +000030598 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030599fi
Reid Spencera773bd52006-08-04 18:18:08 +000030600
30601rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030602 conftest$ac_exeext conftest.$ac_ext
30603fi
Reid Spencera773bd52006-08-04 18:18:08 +000030604{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30605echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030606if test $ac_cv_working_alloca_h = yes; then
30607
30608cat >>confdefs.h <<\_ACEOF
30609#define HAVE_ALLOCA_H 1
30610_ACEOF
30611
30612fi
30613
Reid Spencera773bd52006-08-04 18:18:08 +000030614{ echo "$as_me:$LINENO: checking for alloca" >&5
30615echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030616if test "${ac_cv_func_alloca_works+set}" = set; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30618else
30619 cat >conftest.$ac_ext <<_ACEOF
30620/* confdefs.h. */
30621_ACEOF
30622cat confdefs.h >>conftest.$ac_ext
30623cat >>conftest.$ac_ext <<_ACEOF
30624/* end confdefs.h. */
30625#ifdef __GNUC__
30626# define alloca __builtin_alloca
30627#else
30628# ifdef _MSC_VER
30629# include <malloc.h>
30630# define alloca _alloca
30631# else
30632# if HAVE_ALLOCA_H
30633# include <alloca.h>
30634# else
30635# ifdef _AIX
30636 #pragma alloca
30637# else
30638# ifndef alloca /* predefined by HP cc +Olibcalls */
30639char *alloca ();
30640# endif
30641# endif
30642# endif
30643# endif
30644#endif
30645
30646int
30647main ()
30648{
30649char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030650 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030651 ;
30652 return 0;
30653}
30654_ACEOF
30655rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030656if { (ac_try="$ac_link"
30657case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30660esac
30661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030663 ac_status=$?
30664 grep -v '^ *+' conftest.er1 >conftest.err
30665 rm -f conftest.er1
30666 cat conftest.err >&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30670 { (case "(($ac_try" in
30671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672 *) ac_try_echo=$ac_try;;
30673esac
30674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676 ac_status=$?
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; } &&
30679 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030680 { (case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30683esac
30684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030686 ac_status=$?
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); }; }; then
30689 ac_cv_func_alloca_works=yes
30690else
30691 echo "$as_me: failed program was:" >&5
30692sed 's/^/| /' conftest.$ac_ext >&5
30693
Reid Spencera773bd52006-08-04 18:18:08 +000030694 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030695fi
Reid Spencera773bd52006-08-04 18:18:08 +000030696
30697rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030698 conftest$ac_exeext conftest.$ac_ext
30699fi
Reid Spencera773bd52006-08-04 18:18:08 +000030700{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30701echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030702
30703if test $ac_cv_func_alloca_works = yes; then
30704
30705cat >>confdefs.h <<\_ACEOF
30706#define HAVE_ALLOCA 1
30707_ACEOF
30708
30709else
30710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30711# that cause trouble. Some versions do not even contain alloca or
30712# contain a buggy version. If you still want to use their alloca,
30713# use ar to extract alloca.o from them instead of compiling alloca.c.
30714
Reid Spencera773bd52006-08-04 18:18:08 +000030715ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030716
30717cat >>confdefs.h <<\_ACEOF
30718#define C_ALLOCA 1
30719_ACEOF
30720
30721
Reid Spencera773bd52006-08-04 18:18:08 +000030722{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30723echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030724if test "${ac_cv_os_cray+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30726else
30727 cat >conftest.$ac_ext <<_ACEOF
30728/* confdefs.h. */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030733#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030734webecray
30735#else
30736wenotbecray
30737#endif
30738
30739_ACEOF
30740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741 $EGREP "webecray" >/dev/null 2>&1; then
30742 ac_cv_os_cray=yes
30743else
30744 ac_cv_os_cray=no
30745fi
30746rm -f conftest*
30747
30748fi
Reid Spencera773bd52006-08-04 18:18:08 +000030749{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30750echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030751if test $ac_cv_os_cray = yes; then
30752 for ac_func in _getb67 GETB67 getb67; do
30753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030757 echo $ECHO_N "(cached) $ECHO_C" >&6
30758else
30759 cat >conftest.$ac_ext <<_ACEOF
30760/* confdefs.h. */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h. */
30765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30767#define $ac_func innocuous_$ac_func
30768
30769/* System header to define __stub macros and hopefully few prototypes,
30770 which can conflict with char $ac_func (); below.
30771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30772 <limits.h> exists even on freestanding compilers. */
30773
30774#ifdef __STDC__
30775# include <limits.h>
30776#else
30777# include <assert.h>
30778#endif
30779
30780#undef $ac_func
30781
Reid Spencera773bd52006-08-04 18:18:08 +000030782/* Override any GCC internal prototype to avoid an error.
30783 Use char because int might match the return type of a GCC
30784 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785#ifdef __cplusplus
30786extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030787#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030788char $ac_func ();
30789/* The GNU C library defines this for functions which it implements
30790 to always fail with ENOSYS. Some functions are actually named
30791 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030792#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030793choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030794#endif
30795
30796int
30797main ()
30798{
Reid Spencera773bd52006-08-04 18:18:08 +000030799return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030800 ;
30801 return 0;
30802}
30803_ACEOF
30804rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030805if { (ac_try="$ac_link"
30806case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30809esac
30810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030812 ac_status=$?
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30819 { (case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30822esac
30823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030825 ac_status=$?
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); }; } &&
30828 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030829 { (case "(($ac_try" in
30830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831 *) ac_try_echo=$ac_try;;
30832esac
30833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030835 ac_status=$?
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30838 eval "$as_ac_var=yes"
30839else
30840 echo "$as_me: failed program was:" >&5
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
Reid Spencera773bd52006-08-04 18:18:08 +000030843 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030844fi
Reid Spencera773bd52006-08-04 18:18:08 +000030845
30846rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030847 conftest$ac_exeext conftest.$ac_ext
30848fi
Reid Spencera773bd52006-08-04 18:18:08 +000030849ac_res=`eval echo '${'$as_ac_var'}'`
30850 { echo "$as_me:$LINENO: result: $ac_res" >&5
30851echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030852if test `eval echo '${'$as_ac_var'}'` = yes; then
30853
30854cat >>confdefs.h <<_ACEOF
30855#define CRAY_STACKSEG_END $ac_func
30856_ACEOF
30857
30858 break
30859fi
30860
30861 done
30862fi
30863
Reid Spencera773bd52006-08-04 18:18:08 +000030864{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30865echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030866if test "${ac_cv_c_stack_direction+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30868else
30869 if test "$cross_compiling" = yes; then
30870 ac_cv_c_stack_direction=0
30871else
30872 cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030878$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030879int
30880find_stack_direction ()
30881{
30882 static char *addr = 0;
30883 auto char dummy;
30884 if (addr == 0)
30885 {
30886 addr = &dummy;
30887 return find_stack_direction ();
30888 }
John Criswell0021c312004-02-13 21:57:29 +000030889 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030890 return (&dummy > addr) ? 1 : -1;
30891}
John Criswell0021c312004-02-13 21:57:29 +000030892
John Criswell0021c312004-02-13 21:57:29 +000030893int
30894main ()
30895{
Reid Spencera773bd52006-08-04 18:18:08 +000030896 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030897}
30898_ACEOF
30899rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030900if { (ac_try="$ac_link"
30901case "(($ac_try" in
30902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903 *) ac_try_echo=$ac_try;;
30904esac
30905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030910 { (case "(($ac_try" in
30911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912 *) ac_try_echo=$ac_try;;
30913esac
30914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030916 ac_status=$?
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030919 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030920else
30921 echo "$as_me: program exited with status $ac_status" >&5
30922echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030926ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030927fi
Reid Spencera773bd52006-08-04 18:18:08 +000030928rm -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 +000030929fi
Reid Spencera773bd52006-08-04 18:18:08 +000030930
30931
John Criswell0021c312004-02-13 21:57:29 +000030932fi
Reid Spencera773bd52006-08-04 18:18:08 +000030933{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30934echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030935
30936cat >>confdefs.h <<_ACEOF
30937#define STACK_DIRECTION $ac_cv_c_stack_direction
30938_ACEOF
30939
30940
John Criswell0021c312004-02-13 21:57:29 +000030941fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030942
30943
Reid Spencera773bd52006-08-04 18:18:08 +000030944{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30945echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030946if test "${ac_cv_func_rand48+set}" = set; then
30947 echo $ECHO_N "(cached) $ECHO_C" >&6
30948else
Reid Spencera773bd52006-08-04 18:18:08 +000030949 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030950ac_cpp='$CXXCPP $CPPFLAGS'
30951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30954
30955 cat >conftest.$ac_ext <<_ACEOF
30956/* confdefs.h. */
30957_ACEOF
30958cat confdefs.h >>conftest.$ac_ext
30959cat >>conftest.$ac_ext <<_ACEOF
30960/* end confdefs.h. */
30961#include <stdlib.h>
30962int
30963main ()
30964{
30965srand48(0);lrand48();drand48();
30966 ;
30967 return 0;
30968}
30969_ACEOF
30970rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030971if { (ac_try="$ac_compile"
30972case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30975esac
30976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030978 ac_status=$?
30979 grep -v '^ *+' conftest.er1 >conftest.err
30980 rm -f conftest.er1
30981 cat conftest.err >&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30985 { (case "(($ac_try" in
30986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987 *) ac_try_echo=$ac_try;;
30988esac
30989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030995 { (case "(($ac_try" in
30996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997 *) ac_try_echo=$ac_try;;
30998esac
30999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ac_cv_func_rand48=yes
31005else
31006 echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
Reid Spencera773bd52006-08-04 18:18:08 +000031009 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010fi
Reid Spencera773bd52006-08-04 18:18:08 +000031011
31012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013 ac_ext=c
31014ac_cpp='$CPP $CPPFLAGS'
31015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017ac_compiler_gnu=$ac_cv_c_compiler_gnu
31018
31019fi
Reid Spencera773bd52006-08-04 18:18:08 +000031020{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31021echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022
31023if test "$ac_cv_func_rand48" = "yes" ; then
31024
31025cat >>confdefs.h <<\_ACEOF
31026#define HAVE_RAND48 1
31027_ACEOF
31028
31029fi
John Criswell0021c312004-02-13 21:57:29 +000031030
31031
Reid Spencera773bd52006-08-04 18:18:08 +000031032{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31033echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031034if test "${ac_cv_cxx_namespaces+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
Reid Spencera773bd52006-08-04 18:18:08 +000031037 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031038ac_cpp='$CXXCPP $CPPFLAGS'
31039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31042
31043 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031044/* confdefs.h. */
31045_ACEOF
31046cat confdefs.h >>conftest.$ac_ext
31047cat >>conftest.$ac_ext <<_ACEOF
31048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031049namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031050int
31051main ()
31052{
31053using namespace Outer::Inner; return i;
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031059if { (ac_try="$ac_compile"
31060case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31063esac
31064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031066 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031067 grep -v '^ *+' conftest.er1 >conftest.err
31068 rm -f conftest.er1
31069 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31073 { (case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31076esac
31077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; } &&
31082 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031083 { (case "(($ac_try" in
31084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085 *) ac_try_echo=$ac_try;;
31086esac
31087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031089 ac_status=$?
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); }; }; then
31092 ac_cv_cxx_namespaces=yes
31093else
31094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031095sed 's/^/| /' conftest.$ac_ext >&5
31096
Reid Spencera773bd52006-08-04 18:18:08 +000031097 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031098fi
Reid Spencera773bd52006-08-04 18:18:08 +000031099
31100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031101 ac_ext=c
31102ac_cpp='$CPP $CPPFLAGS'
31103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105ac_compiler_gnu=$ac_cv_c_compiler_gnu
31106
31107
31108fi
Reid Spencera773bd52006-08-04 18:18:08 +000031109{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31110echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031111if test "$ac_cv_cxx_namespaces" = yes; then
31112
31113cat >>confdefs.h <<\_ACEOF
31114#define HAVE_NAMESPACES
31115_ACEOF
31116
31117fi
31118
Reid Spencera773bd52006-08-04 18:18:08 +000031119{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31120echo $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 +000031121if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031122 echo $ECHO_N "(cached) $ECHO_C" >&6
31123else
31124
Reid Spencera773bd52006-08-04 18:18:08 +000031125 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031126ac_cpp='$CXXCPP $CPPFLAGS'
31127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31130
31131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031132/* confdefs.h. */
31133_ACEOF
31134cat confdefs.h >>conftest.$ac_ext
31135cat >>conftest.$ac_ext <<_ACEOF
31136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031137#include <ext/hash_map>
31138#ifdef HAVE_NAMESPACES
31139using namespace std;
31140#endif
John Criswell7a73b802003-06-30 21:59:07 +000031141int
31142main ()
31143{
Brian Gaeke90583492003-11-10 03:06:28 +000031144hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031145 ;
31146 return 0;
31147}
31148_ACEOF
31149rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031150if { (ac_try="$ac_compile"
31151case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31154esac
31155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031157 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031158 grep -v '^ *+' conftest.er1 >conftest.err
31159 rm -f conftest.er1
31160 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31164 { (case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31167esac
31168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031170 ac_status=$?
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; } &&
31173 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031174 { (case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031180 ac_status=$?
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031183 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031184else
31185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031186sed 's/^/| /' conftest.$ac_ext >&5
31187
Reid Spencera773bd52006-08-04 18:18:08 +000031188 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031189fi
Reid Spencera773bd52006-08-04 18:18:08 +000031190
31191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031192 ac_ext=c
31193ac_cpp='$CPP $CPPFLAGS'
31194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31196ac_compiler_gnu=$ac_cv_c_compiler_gnu
31197
John Criswell7a73b802003-06-30 21:59:07 +000031198fi
Reid Spencera773bd52006-08-04 18:18:08 +000031199{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31200echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031201 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31202 then
John Criswell9f011862004-09-24 18:28:00 +000031203
31204cat >>confdefs.h <<\_ACEOF
31205#define HAVE_STD_EXT_HASH_MAP 1
31206_ACEOF
31207
31208 else
31209
31210cat >>confdefs.h <<\_ACEOF
31211#define HAVE_STD_EXT_HASH_MAP 0
31212_ACEOF
31213
Brian Gaeke90583492003-11-10 03:06:28 +000031214 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031215
Reid Spencera773bd52006-08-04 18:18:08 +000031216 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31217echo $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 +000031218if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31220else
31221
Reid Spencera773bd52006-08-04 18:18:08 +000031222 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031223ac_cpp='$CXXCPP $CPPFLAGS'
31224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31227
31228 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031229/* confdefs.h. */
31230_ACEOF
31231cat confdefs.h >>conftest.$ac_ext
31232cat >>conftest.$ac_ext <<_ACEOF
31233/* end confdefs.h. */
31234#include <ext/hash_map>
31235#ifdef HAVE_NAMESPACES
31236using namespace __gnu_cxx;
31237#endif
31238int
31239main ()
31240{
31241hash_map<int,int> t;
31242 ;
31243 return 0;
31244}
31245_ACEOF
31246rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031247if { (ac_try="$ac_compile"
31248case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31251esac
31252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031254 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031255 grep -v '^ *+' conftest.er1 >conftest.err
31256 rm -f conftest.er1
31257 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31261 { (case "(($ac_try" in
31262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263 *) ac_try_echo=$ac_try;;
31264esac
31265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031267 ac_status=$?
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); }; } &&
31270 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031271 { (case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31274esac
31275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }; then
31280 ac_cv_cxx_have_gnu_ext_hash_map=yes
31281else
31282 echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
Reid Spencera773bd52006-08-04 18:18:08 +000031285 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031286fi
Reid Spencera773bd52006-08-04 18:18:08 +000031287
31288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031289 ac_ext=c
31290ac_cpp='$CPP $CPPFLAGS'
31291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31293ac_compiler_gnu=$ac_cv_c_compiler_gnu
31294
31295fi
Reid Spencera773bd52006-08-04 18:18:08 +000031296{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31297echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031298 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31299 then
John Criswell9f011862004-09-24 18:28:00 +000031300
31301cat >>confdefs.h <<\_ACEOF
31302#define HAVE_GNU_EXT_HASH_MAP 1
31303_ACEOF
31304
31305 else
31306
31307cat >>confdefs.h <<\_ACEOF
31308#define HAVE_GNU_EXT_HASH_MAP 0
31309_ACEOF
31310
Brian Gaeke90583492003-11-10 03:06:28 +000031311 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031312
Reid Spencera773bd52006-08-04 18:18:08 +000031313 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31314echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031315if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31317else
John Criswell7a73b802003-06-30 21:59:07 +000031318
Reid Spencera773bd52006-08-04 18:18:08 +000031319 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031320ac_cpp='$CXXCPP $CPPFLAGS'
31321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31324
31325 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031326/* confdefs.h. */
31327_ACEOF
31328cat confdefs.h >>conftest.$ac_ext
31329cat >>conftest.$ac_ext <<_ACEOF
31330/* end confdefs.h. */
31331#include <hash_map>
31332int
31333main ()
31334{
31335hash_map<int,int> t;
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031341if { (ac_try="$ac_compile"
31342case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31358esac
31359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368esac
31369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_cxx_have_global_hash_map=yes
31375else
31376 echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
Reid Spencera773bd52006-08-04 18:18:08 +000031379 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031380fi
Reid Spencera773bd52006-08-04 18:18:08 +000031381
31382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031383 ac_ext=c
31384ac_cpp='$CPP $CPPFLAGS'
31385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31387ac_compiler_gnu=$ac_cv_c_compiler_gnu
31388
31389fi
Reid Spencera773bd52006-08-04 18:18:08 +000031390{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31391echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031392 if test "$ac_cv_cxx_have_global_hash_map" = yes
31393 then
John Criswell9f011862004-09-24 18:28:00 +000031394
31395cat >>confdefs.h <<\_ACEOF
31396#define HAVE_GLOBAL_HASH_MAP 1
31397_ACEOF
31398
31399 else
31400
31401cat >>confdefs.h <<\_ACEOF
31402#define HAVE_GLOBAL_HASH_MAP 0
31403_ACEOF
31404
Brian Gaeke90583492003-11-10 03:06:28 +000031405 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031406
Reid Spencera773bd52006-08-04 18:18:08 +000031407{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31408echo $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 +000031409if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031410 echo $ECHO_N "(cached) $ECHO_C" >&6
31411else
31412
Reid Spencera773bd52006-08-04 18:18:08 +000031413 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031414ac_cpp='$CXXCPP $CPPFLAGS'
31415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31418
31419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031420/* confdefs.h. */
31421_ACEOF
31422cat confdefs.h >>conftest.$ac_ext
31423cat >>conftest.$ac_ext <<_ACEOF
31424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031425#include <ext/hash_set>
31426#ifdef HAVE_NAMESPACES
31427using namespace std;
31428#endif
John Criswell7a73b802003-06-30 21:59:07 +000031429int
31430main ()
31431{
Brian Gaeke90583492003-11-10 03:06:28 +000031432hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031433 ;
31434 return 0;
31435}
31436_ACEOF
31437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031438if { (ac_try="$ac_compile"
31439case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031446 grep -v '^ *+' conftest.er1 >conftest.err
31447 rm -f conftest.er1
31448 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31452 { (case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31455esac
31456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031458 ac_status=$?
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; } &&
31461 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031462 { (case "(($ac_try" in
31463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464 *) ac_try_echo=$ac_try;;
31465esac
31466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031468 ac_status=$?
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031471 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031472else
31473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031474sed 's/^/| /' conftest.$ac_ext >&5
31475
Reid Spencera773bd52006-08-04 18:18:08 +000031476 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031477fi
Reid Spencera773bd52006-08-04 18:18:08 +000031478
31479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031480 ac_ext=c
31481ac_cpp='$CPP $CPPFLAGS'
31482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31484ac_compiler_gnu=$ac_cv_c_compiler_gnu
31485
31486fi
Reid Spencera773bd52006-08-04 18:18:08 +000031487{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31488echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031489 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31490 then
John Criswell9f011862004-09-24 18:28:00 +000031491
31492cat >>confdefs.h <<\_ACEOF
31493#define HAVE_STD_EXT_HASH_SET 1
31494_ACEOF
31495
31496 else
31497
31498cat >>confdefs.h <<\_ACEOF
31499#define HAVE_STD_EXT_HASH_SET 0
31500_ACEOF
31501
Brian Gaeke90583492003-11-10 03:06:28 +000031502 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031503
Reid Spencera773bd52006-08-04 18:18:08 +000031504 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31505echo $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 +000031506if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31507 echo $ECHO_N "(cached) $ECHO_C" >&6
31508else
31509
Reid Spencera773bd52006-08-04 18:18:08 +000031510 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031511ac_cpp='$CXXCPP $CPPFLAGS'
31512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31515
John Criswell7a73b802003-06-30 21:59:07 +000031516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031517/* confdefs.h. */
31518_ACEOF
31519cat confdefs.h >>conftest.$ac_ext
31520cat >>conftest.$ac_ext <<_ACEOF
31521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031522#include <ext/hash_set>
31523#ifdef HAVE_NAMESPACES
31524using namespace __gnu_cxx;
31525#endif
John Criswell7a73b802003-06-30 21:59:07 +000031526int
31527main ()
31528{
Brian Gaeke90583492003-11-10 03:06:28 +000031529hash_set<int> t;
31530 ;
31531 return 0;
31532}
31533_ACEOF
31534rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031535if { (ac_try="$ac_compile"
31536case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 ac_cv_cxx_have_gnu_ext_hash_set=yes
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
Reid Spencera773bd52006-08-04 18:18:08 +000031573 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031574fi
Reid Spencera773bd52006-08-04 18:18:08 +000031575
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031577 ac_ext=c
31578ac_cpp='$CPP $CPPFLAGS'
31579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581ac_compiler_gnu=$ac_cv_c_compiler_gnu
31582
31583fi
Reid Spencera773bd52006-08-04 18:18:08 +000031584{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31585echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031586 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31587 then
John Criswell9f011862004-09-24 18:28:00 +000031588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_GNU_EXT_HASH_SET 1
31591_ACEOF
31592
31593 else
31594
31595cat >>confdefs.h <<\_ACEOF
31596#define HAVE_GNU_EXT_HASH_SET 0
31597_ACEOF
31598
Brian Gaeke90583492003-11-10 03:06:28 +000031599 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031600
Reid Spencera773bd52006-08-04 18:18:08 +000031601 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31602echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031603if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31605else
31606
Reid Spencera773bd52006-08-04 18:18:08 +000031607 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031608ac_cpp='$CXXCPP $CPPFLAGS'
31609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31612
31613 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031614/* confdefs.h. */
31615_ACEOF
31616cat confdefs.h >>conftest.$ac_ext
31617cat >>conftest.$ac_ext <<_ACEOF
31618/* end confdefs.h. */
31619#include <hash_set>
31620int
31621main ()
31622{
John Criswell7a73b802003-06-30 21:59:07 +000031623hash_set<int> t; return 0;
31624 ;
31625 return 0;
31626}
31627_ACEOF
31628rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031629if { (ac_try="$ac_compile"
31630case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031637 grep -v '^ *+' conftest.er1 >conftest.err
31638 rm -f conftest.er1
31639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31643 { (case "(($ac_try" in
31644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645 *) ac_try_echo=$ac_try;;
31646esac
31647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031649 ac_status=$?
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031653 { (case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31656esac
31657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031659 ac_status=$?
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031662 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031663else
31664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031665sed 's/^/| /' conftest.$ac_ext >&5
31666
Reid Spencera773bd52006-08-04 18:18:08 +000031667 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031668fi
Reid Spencera773bd52006-08-04 18:18:08 +000031669
31670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031671 ac_ext=c
31672ac_cpp='$CPP $CPPFLAGS'
31673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31675ac_compiler_gnu=$ac_cv_c_compiler_gnu
31676
John Criswell7a73b802003-06-30 21:59:07 +000031677fi
Reid Spencera773bd52006-08-04 18:18:08 +000031678{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31679echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031680 if test "$ac_cv_cxx_have_global_hash_set" = yes
31681 then
John Criswell9f011862004-09-24 18:28:00 +000031682
31683cat >>confdefs.h <<\_ACEOF
31684#define HAVE_GLOBAL_HASH_SET 1
31685_ACEOF
31686
31687 else
31688
31689cat >>confdefs.h <<\_ACEOF
31690#define HAVE_GLOBAL_HASH_SET 0
31691_ACEOF
31692
Brian Gaeke90583492003-11-10 03:06:28 +000031693 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031694
Reid Spencera773bd52006-08-04 18:18:08 +000031695{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31696echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031697if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700
Reid Spencera773bd52006-08-04 18:18:08 +000031701 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031702ac_cpp='$CXXCPP $CPPFLAGS'
31703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31706
31707 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031708/* confdefs.h. */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031713#include <iterator>
31714#ifdef HAVE_NAMESPACES
31715using namespace std;
31716#endif
John Criswell7a73b802003-06-30 21:59:07 +000031717int
31718main ()
31719{
31720iterator<int,int,int> t; return 0;
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031726if { (ac_try="$ac_compile"
31727case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031734 grep -v '^ *+' conftest.er1 >conftest.err
31735 rm -f conftest.er1
31736 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31740 { (case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31743esac
31744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031746 ac_status=$?
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; } &&
31749 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031750 { (case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031756 ac_status=$?
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; }; then
31759 ac_cv_cxx_have_std_iterator=yes
31760else
31761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031762sed 's/^/| /' conftest.$ac_ext >&5
31763
Reid Spencera773bd52006-08-04 18:18:08 +000031764 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031765fi
Reid Spencera773bd52006-08-04 18:18:08 +000031766
31767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031768 ac_ext=c
31769ac_cpp='$CPP $CPPFLAGS'
31770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772ac_compiler_gnu=$ac_cv_c_compiler_gnu
31773
31774
31775fi
Reid Spencera773bd52006-08-04 18:18:08 +000031776{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31777echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031778if test "$ac_cv_cxx_have_std_iterator" = yes
31779then
John Criswell40468462004-09-24 21:19:06 +000031780
31781cat >>confdefs.h <<\_ACEOF
31782#define HAVE_STD_ITERATOR 1
31783_ACEOF
31784
31785else
31786
31787cat >>confdefs.h <<\_ACEOF
31788#define HAVE_STD_ITERATOR 0
31789_ACEOF
31790
John Criswell7a73b802003-06-30 21:59:07 +000031791fi
31792
Reid Spencera773bd52006-08-04 18:18:08 +000031793{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31794echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031795if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31796 echo $ECHO_N "(cached) $ECHO_C" >&6
31797else
31798
Reid Spencera773bd52006-08-04 18:18:08 +000031799 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031800ac_cpp='$CXXCPP $CPPFLAGS'
31801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804
31805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031806/* confdefs.h. */
31807_ACEOF
31808cat confdefs.h >>conftest.$ac_ext
31809cat >>conftest.$ac_ext <<_ACEOF
31810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031811#include <iterator>
31812#ifdef HAVE_NAMESPACES
31813using namespace std;
31814#endif
John Criswell7a73b802003-06-30 21:59:07 +000031815int
31816main ()
31817{
John Criswellc78022e2003-07-29 19:11:58 +000031818bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031819 ;
31820 return 0;
31821}
31822_ACEOF
31823rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031824if { (ac_try="$ac_compile"
31825case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031832 grep -v '^ *+' conftest.er1 >conftest.err
31833 rm -f conftest.er1
31834 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31838 { (case "(($ac_try" in
31839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840 *) ac_try_echo=$ac_try;;
31841esac
31842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31843 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031844 ac_status=$?
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); }; } &&
31847 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031848 { (case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31851esac
31852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031854 ac_status=$?
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 ac_cv_cxx_have_bi_iterator=yes
31858else
31859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031860sed 's/^/| /' conftest.$ac_ext >&5
31861
Reid Spencera773bd52006-08-04 18:18:08 +000031862 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031863fi
Reid Spencera773bd52006-08-04 18:18:08 +000031864
31865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031866 ac_ext=c
31867ac_cpp='$CPP $CPPFLAGS'
31868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870ac_compiler_gnu=$ac_cv_c_compiler_gnu
31871
31872
31873fi
Reid Spencera773bd52006-08-04 18:18:08 +000031874{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31875echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031876if test "$ac_cv_cxx_have_bi_iterator" = yes
31877then
John Criswell40468462004-09-24 21:19:06 +000031878
31879cat >>confdefs.h <<\_ACEOF
31880#define HAVE_BI_ITERATOR 1
31881_ACEOF
31882
31883else
31884
31885cat >>confdefs.h <<\_ACEOF
31886#define HAVE_BI_ITERATOR 0
31887_ACEOF
31888
John Criswell7a73b802003-06-30 21:59:07 +000031889fi
31890
Reid Spencera773bd52006-08-04 18:18:08 +000031891{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31892echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031893if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896
Reid Spencera773bd52006-08-04 18:18:08 +000031897 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031898ac_cpp='$CXXCPP $CPPFLAGS'
31899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902
31903 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031904/* confdefs.h. */
31905_ACEOF
31906cat confdefs.h >>conftest.$ac_ext
31907cat >>conftest.$ac_ext <<_ACEOF
31908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031909#include <iterator>
31910#ifdef HAVE_NAMESPACES
31911using namespace std;
31912#endif
John Criswell7a73b802003-06-30 21:59:07 +000031913int
31914main ()
31915{
John Criswellc78022e2003-07-29 19:11:58 +000031916forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031917 ;
31918 return 0;
31919}
31920_ACEOF
31921rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031922if { (ac_try="$ac_compile"
31923case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31926esac
31927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031930 grep -v '^ *+' conftest.er1 >conftest.err
31931 rm -f conftest.er1
31932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939esac
31940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; } &&
31945 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031946 { (case "(($ac_try" in
31947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948 *) ac_try_echo=$ac_try;;
31949esac
31950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 ac_cv_cxx_have_fwd_iterator=yes
31956else
31957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031958sed 's/^/| /' conftest.$ac_ext >&5
31959
Reid Spencera773bd52006-08-04 18:18:08 +000031960 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031961fi
Reid Spencera773bd52006-08-04 18:18:08 +000031962
31963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031964 ac_ext=c
31965ac_cpp='$CPP $CPPFLAGS'
31966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968ac_compiler_gnu=$ac_cv_c_compiler_gnu
31969
31970
31971fi
Reid Spencera773bd52006-08-04 18:18:08 +000031972{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31973echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031974if test "$ac_cv_cxx_have_fwd_iterator" = yes
31975then
John Criswell40468462004-09-24 21:19:06 +000031976
31977cat >>confdefs.h <<\_ACEOF
31978#define HAVE_FWD_ITERATOR 1
31979_ACEOF
31980
31981else
31982
31983cat >>confdefs.h <<\_ACEOF
31984#define HAVE_FWD_ITERATOR 0
31985_ACEOF
31986
John Criswell7a73b802003-06-30 21:59:07 +000031987fi
31988
31989
Reid Spencera773bd52006-08-04 18:18:08 +000031990{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31991echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031992if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31994else
Reid Spencera773bd52006-08-04 18:18:08 +000031995 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031996ac_cpp='$CXXCPP $CPPFLAGS'
31997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32000
Reid Spencerabec8f92004-10-27 23:03:44 +000032001 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032002/* confdefs.h. */
32003_ACEOF
32004cat confdefs.h >>conftest.$ac_ext
32005cat >>conftest.$ac_ext <<_ACEOF
32006/* end confdefs.h. */
32007#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032008int
32009main ()
32010{
32011float f; isnan(f);
32012 ;
32013 return 0;
32014}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032015_ACEOF
32016rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032017if { (ac_try="$ac_compile"
32018case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32021esac
32022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032025 grep -v '^ *+' conftest.er1 >conftest.err
32026 rm -f conftest.er1
32027 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031 { (case "(($ac_try" in
32032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033 *) ac_try_echo=$ac_try;;
32034esac
32035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032037 ac_status=$?
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; } &&
32040 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044esac
32045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_func_isnan_in_math_h=yes
32051else
32052 echo "$as_me: failed program was:" >&5
32053sed 's/^/| /' conftest.$ac_ext >&5
32054
Reid Spencera773bd52006-08-04 18:18:08 +000032055 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032056fi
Reid Spencera773bd52006-08-04 18:18:08 +000032057
32058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032059 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032060ac_cpp='$CPP $CPPFLAGS'
32061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063ac_compiler_gnu=$ac_cv_c_compiler_gnu
32064
32065fi
Reid Spencera773bd52006-08-04 18:18:08 +000032066{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32067echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032068
32069
32070if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032071
32072cat >>confdefs.h <<\_ACEOF
32073#define HAVE_ISNAN_IN_MATH_H 1
32074_ACEOF
32075
Reid Spencerabec8f92004-10-27 23:03:44 +000032076fi
32077
Reid Spencera773bd52006-08-04 18:18:08 +000032078{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32079echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032080if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32082else
Reid Spencera773bd52006-08-04 18:18:08 +000032083 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032084ac_cpp='$CXXCPP $CPPFLAGS'
32085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32088
Reid Spencerabec8f92004-10-27 23:03:44 +000032089 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032090/* confdefs.h. */
32091_ACEOF
32092cat confdefs.h >>conftest.$ac_ext
32093cat >>conftest.$ac_ext <<_ACEOF
32094/* end confdefs.h. */
32095#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032096int
32097main ()
32098{
32099float f; isnan(f);
32100 ;
32101 return 0;
32102}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032103_ACEOF
32104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032105if { (ac_try="$ac_compile"
32106case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32109esac
32110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032113 grep -v '^ *+' conftest.er1 >conftest.err
32114 rm -f conftest.er1
32115 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32119 { (case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; } &&
32128 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032129 { (case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32132esac
32133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; }; then
32138 ac_cv_func_isnan_in_cmath=yes
32139else
32140 echo "$as_me: failed program was:" >&5
32141sed 's/^/| /' conftest.$ac_ext >&5
32142
Reid Spencera773bd52006-08-04 18:18:08 +000032143 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032144fi
Reid Spencera773bd52006-08-04 18:18:08 +000032145
32146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032147 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032148ac_cpp='$CPP $CPPFLAGS'
32149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151ac_compiler_gnu=$ac_cv_c_compiler_gnu
32152
32153fi
Reid Spencera773bd52006-08-04 18:18:08 +000032154{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32155echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032156
32157if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032158
32159cat >>confdefs.h <<\_ACEOF
32160#define HAVE_ISNAN_IN_CMATH 1
32161_ACEOF
32162
Reid Spencerabec8f92004-10-27 23:03:44 +000032163fi
32164
Reid Spencera773bd52006-08-04 18:18:08 +000032165{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32166echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032167if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32169else
Reid Spencera773bd52006-08-04 18:18:08 +000032170 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032171ac_cpp='$CXXCPP $CPPFLAGS'
32172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32175
Reid Spencerabec8f92004-10-27 23:03:44 +000032176 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032177/* confdefs.h. */
32178_ACEOF
32179cat confdefs.h >>conftest.$ac_ext
32180cat >>conftest.$ac_ext <<_ACEOF
32181/* end confdefs.h. */
32182#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032183int
32184main ()
32185{
32186float f; std::isnan(f);
32187 ;
32188 return 0;
32189}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032190_ACEOF
32191rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032192if { (ac_try="$ac_compile"
32193case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196esac
32197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032199 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032200 grep -v '^ *+' conftest.er1 >conftest.err
32201 rm -f conftest.er1
32202 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32206 { (case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209esac
32210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032212 ac_status=$?
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; } &&
32215 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032216 { (case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32219esac
32220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; }; then
32225 ac_cv_func_std_isnan_in_cmath=yes
32226else
32227 echo "$as_me: failed program was:" >&5
32228sed 's/^/| /' conftest.$ac_ext >&5
32229
Reid Spencera773bd52006-08-04 18:18:08 +000032230 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032231fi
Reid Spencera773bd52006-08-04 18:18:08 +000032232
32233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032234 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032235ac_cpp='$CPP $CPPFLAGS'
32236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239
32240fi
Reid Spencera773bd52006-08-04 18:18:08 +000032241{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32242echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032243
32244if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032245
32246cat >>confdefs.h <<\_ACEOF
32247#define HAVE_STD_ISNAN_IN_CMATH 1
32248_ACEOF
32249
Reid Spencerabec8f92004-10-27 23:03:44 +000032250fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032251
32252
Reid Spencera773bd52006-08-04 18:18:08 +000032253{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32254echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032255if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32257else
Reid Spencera773bd52006-08-04 18:18:08 +000032258 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032259ac_cpp='$CXXCPP $CPPFLAGS'
32260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32263
Reid Spencerabec8f92004-10-27 23:03:44 +000032264 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032265/* confdefs.h. */
32266_ACEOF
32267cat confdefs.h >>conftest.$ac_ext
32268cat >>conftest.$ac_ext <<_ACEOF
32269/* end confdefs.h. */
32270#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032271int
32272main ()
32273{
32274float f; isinf(f);
32275 ;
32276 return 0;
32277}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032278_ACEOF
32279rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032280if { (ac_try="$ac_compile"
32281case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284esac
32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297esac
32298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_cv_func_isinf_in_math_h=yes
32314else
32315 echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
Reid Spencera773bd52006-08-04 18:18:08 +000032318 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032319fi
Reid Spencera773bd52006-08-04 18:18:08 +000032320
32321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032322 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032323ac_cpp='$CPP $CPPFLAGS'
32324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326ac_compiler_gnu=$ac_cv_c_compiler_gnu
32327
32328fi
Reid Spencera773bd52006-08-04 18:18:08 +000032329{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32330echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032331
32332if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032333
32334cat >>confdefs.h <<\_ACEOF
32335#define HAVE_ISINF_IN_MATH_H 1
32336_ACEOF
32337
Reid Spencerabec8f92004-10-27 23:03:44 +000032338fi
32339
Reid Spencera773bd52006-08-04 18:18:08 +000032340{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32341echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032342if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32343 echo $ECHO_N "(cached) $ECHO_C" >&6
32344else
Reid Spencera773bd52006-08-04 18:18:08 +000032345 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032346ac_cpp='$CXXCPP $CPPFLAGS'
32347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32350
Reid Spencerabec8f92004-10-27 23:03:44 +000032351 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032352/* confdefs.h. */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h. */
32357#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032358int
32359main ()
32360{
32361float f; isinf(f);
32362 ;
32363 return 0;
32364}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032365_ACEOF
32366rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032367if { (ac_try="$ac_compile"
32368case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032375 grep -v '^ *+' conftest.er1 >conftest.err
32376 rm -f conftest.er1
32377 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32381 { (case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32384esac
32385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032387 ac_status=$?
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
32400 ac_cv_func_isinf_in_cmath=yes
32401else
32402 echo "$as_me: failed program was:" >&5
32403sed 's/^/| /' conftest.$ac_ext >&5
32404
Reid Spencera773bd52006-08-04 18:18:08 +000032405 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032406fi
Reid Spencera773bd52006-08-04 18:18:08 +000032407
32408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032409 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032410ac_cpp='$CPP $CPPFLAGS'
32411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_c_compiler_gnu
32414
32415fi
Reid Spencera773bd52006-08-04 18:18:08 +000032416{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32417echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032418
32419if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032420
32421cat >>confdefs.h <<\_ACEOF
32422#define HAVE_ISINF_IN_CMATH 1
32423_ACEOF
32424
Reid Spencerabec8f92004-10-27 23:03:44 +000032425fi
32426
Reid Spencera773bd52006-08-04 18:18:08 +000032427{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32428echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032429if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32431else
Reid Spencera773bd52006-08-04 18:18:08 +000032432 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032433ac_cpp='$CXXCPP $CPPFLAGS'
32434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32437
Reid Spencerabec8f92004-10-27 23:03:44 +000032438 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032439/* confdefs.h. */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h. */
32444#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032445int
32446main ()
32447{
32448float f; std::isinf(f)}
32449 ;
32450 return 0;
32451}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032452_ACEOF
32453rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032454if { (ac_try="$ac_compile"
32455case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32468 { (case "(($ac_try" in
32469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470 *) ac_try_echo=$ac_try;;
32471esac
32472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; } &&
32477 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032478 { (case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32481esac
32482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032484 ac_status=$?
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); }; }; then
32487 ac_cv_func_std_isinf_in_cmath=yes
32488else
32489 echo "$as_me: failed program was:" >&5
32490sed 's/^/| /' conftest.$ac_ext >&5
32491
Reid Spencera773bd52006-08-04 18:18:08 +000032492 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032493fi
Reid Spencera773bd52006-08-04 18:18:08 +000032494
32495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032496 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032497ac_cpp='$CPP $CPPFLAGS'
32498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500ac_compiler_gnu=$ac_cv_c_compiler_gnu
32501
32502fi
Reid Spencera773bd52006-08-04 18:18:08 +000032503{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32504echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032505
32506if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032507
32508cat >>confdefs.h <<\_ACEOF
32509#define HAVE_STD_ISINF_IN_CMATH 1
32510_ACEOF
32511
Reid Spencerabec8f92004-10-27 23:03:44 +000032512fi
32513
Reid Spencera773bd52006-08-04 18:18:08 +000032514{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32515echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032516if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
Reid Spencera773bd52006-08-04 18:18:08 +000032519 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032520ac_cpp='$CXXCPP $CPPFLAGS'
32521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
Reid Spencerabec8f92004-10-27 23:03:44 +000032525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032526/* confdefs.h. */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h. */
32531#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032532int
32533main ()
32534{
32535float f; finite(f);
32536 ;
32537 return 0;
32538}
Brian Gaeked59a6472004-07-21 03:33:58 +000032539_ACEOF
32540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032541if { (ac_try="$ac_compile"
32542case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32558esac
32559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032565 { (case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32568esac
32569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
32574 ac_cv_func_finite_in_ieeefp_h=yes
32575else
32576 echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
Reid Spencera773bd52006-08-04 18:18:08 +000032579 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032580fi
Reid Spencera773bd52006-08-04 18:18:08 +000032581
32582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032583 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032584ac_cpp='$CPP $CPPFLAGS'
32585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589fi
Reid Spencera773bd52006-08-04 18:18:08 +000032590{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32591echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032592
Brian Gaeke6802b552004-10-28 05:06:45 +000032593if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032594
32595cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032596#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032597_ACEOF
32598
Reid Spencerabec8f92004-10-27 23:03:44 +000032599fi
32600
32601
32602
John Criswell7a73b802003-06-30 21:59:07 +000032603
32604
32605for ac_header in stdlib.h unistd.h
32606do
32607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613fi
Reid Spencera773bd52006-08-04 18:18:08 +000032614ac_res=`eval echo '${'$as_ac_Header'}'`
32615 { echo "$as_me:$LINENO: result: $ac_res" >&5
32616echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032617else
32618 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032619{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032621cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032627$ac_includes_default
32628#include <$ac_header>
32629_ACEOF
32630rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032631if { (ac_try="$ac_compile"
32632case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32635esac
32636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032639 grep -v '^ *+' conftest.er1 >conftest.err
32640 rm -f conftest.er1
32641 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645 { (case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648esac
32649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032655 { (case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32658esac
32659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_header_compiler=yes
32665else
32666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032667sed 's/^/| /' conftest.$ac_ext >&5
32668
Reid Spencera773bd52006-08-04 18:18:08 +000032669 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032670fi
Reid Spencera773bd52006-08-04 18:18:08 +000032671
32672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32674echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032675
32676# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032677{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032679cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032680/* confdefs.h. */
32681_ACEOF
32682cat confdefs.h >>conftest.$ac_ext
32683cat >>conftest.$ac_ext <<_ACEOF
32684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032685#include <$ac_header>
32686_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032687if { (ac_try="$ac_cpp conftest.$ac_ext"
32688case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32691esac
32692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032694 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032695 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032696 rm -f conftest.er1
32697 cat conftest.err >&5
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } >/dev/null; then
32700 if test -s conftest.err; then
32701 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032703 else
32704 ac_cpp_err=
32705 fi
32706else
32707 ac_cpp_err=yes
32708fi
32709if test -z "$ac_cpp_err"; then
32710 ac_header_preproc=yes
32711else
32712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032713sed 's/^/| /' conftest.$ac_ext >&5
32714
John Criswell7a73b802003-06-30 21:59:07 +000032715 ac_header_preproc=no
32716fi
Reid Spencera773bd52006-08-04 18:18:08 +000032717
John Criswell7a73b802003-06-30 21:59:07 +000032718rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32720echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032721
32722# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32724 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32729 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032730 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032731 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032744 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032745## ----------------------------------- ##
32746## Report this to llvmbugs@cs.uiuc.edu ##
32747## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032748_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032749 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032750 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032751esac
Reid Spencera773bd52006-08-04 18:18:08 +000032752{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032757 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032758fi
Reid Spencera773bd52006-08-04 18:18:08 +000032759ac_res=`eval echo '${'$as_ac_Header'}'`
32760 { echo "$as_me:$LINENO: result: $ac_res" >&5
32761echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032762
32763fi
32764if test `eval echo '${'$as_ac_Header'}'` = yes; then
32765 cat >>confdefs.h <<_ACEOF
32766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32767_ACEOF
32768
32769fi
32770
32771done
32772
32773
32774for ac_func in getpagesize
32775do
32776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032780 echo $ECHO_N "(cached) $ECHO_C" >&6
32781else
32782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032783/* confdefs.h. */
32784_ACEOF
32785cat confdefs.h >>conftest.$ac_ext
32786cat >>conftest.$ac_ext <<_ACEOF
32787/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32790#define $ac_func innocuous_$ac_func
32791
John Criswell7a73b802003-06-30 21:59:07 +000032792/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032793 which can conflict with char $ac_func (); below.
32794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32795 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032796
John Criswell0c38eaf2003-09-10 15:17:25 +000032797#ifdef __STDC__
32798# include <limits.h>
32799#else
32800# include <assert.h>
32801#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032802
32803#undef $ac_func
32804
Reid Spencera773bd52006-08-04 18:18:08 +000032805/* Override any GCC internal prototype to avoid an error.
32806 Use char because int might match the return type of a GCC
32807 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032808#ifdef __cplusplus
32809extern "C"
32810#endif
John Criswell7a73b802003-06-30 21:59:07 +000032811char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032812/* The GNU C library defines this for functions which it implements
32813 to always fail with ENOSYS. Some functions are actually named
32814 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032815#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032816choke me
John Criswell7a73b802003-06-30 21:59:07 +000032817#endif
32818
John Criswell0c38eaf2003-09-10 15:17:25 +000032819int
32820main ()
32821{
Reid Spencera773bd52006-08-04 18:18:08 +000032822return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032823 ;
32824 return 0;
32825}
32826_ACEOF
32827rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032828if { (ac_try="$ac_link"
32829case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032836 grep -v '^ *+' conftest.er1 >conftest.err
32837 rm -f conftest.er1
32838 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842 { (case "(($ac_try" in
32843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844 *) ac_try_echo=$ac_try;;
32845esac
32846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032848 ac_status=$?
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032852 { (case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32855esac
32856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032858 ac_status=$?
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); }; }; then
32861 eval "$as_ac_var=yes"
32862else
32863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032864sed 's/^/| /' conftest.$ac_ext >&5
32865
Reid Spencera773bd52006-08-04 18:18:08 +000032866 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032867fi
Reid Spencera773bd52006-08-04 18:18:08 +000032868
32869rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032870 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032871fi
Reid Spencera773bd52006-08-04 18:18:08 +000032872ac_res=`eval echo '${'$as_ac_var'}'`
32873 { echo "$as_me:$LINENO: result: $ac_res" >&5
32874echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032875if test `eval echo '${'$as_ac_var'}'` = yes; then
32876 cat >>confdefs.h <<_ACEOF
32877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32878_ACEOF
32879
32880fi
32881done
32882
Reid Spencera773bd52006-08-04 18:18:08 +000032883{ echo "$as_me:$LINENO: checking for working mmap" >&5
32884echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032885if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32886 echo $ECHO_N "(cached) $ECHO_C" >&6
32887else
32888 if test "$cross_compiling" = yes; then
32889 ac_cv_func_mmap_fixed_mapped=no
32890else
32891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032892/* confdefs.h. */
32893_ACEOF
32894cat confdefs.h >>conftest.$ac_ext
32895cat >>conftest.$ac_ext <<_ACEOF
32896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032897$ac_includes_default
32898/* malloc might have been renamed as rpl_malloc. */
32899#undef malloc
32900
32901/* Thanks to Mike Haertel and Jim Avera for this test.
32902 Here is a matrix of mmap possibilities:
32903 mmap private not fixed
32904 mmap private fixed at somewhere currently unmapped
32905 mmap private fixed at somewhere already mapped
32906 mmap shared not fixed
32907 mmap shared fixed at somewhere currently unmapped
32908 mmap shared fixed at somewhere already mapped
32909 For private mappings, we should verify that changes cannot be read()
32910 back from the file, nor mmap's back from the file at a different
32911 address. (There have been systems where private was not correctly
32912 implemented like the infamous i386 svr4.0, and systems where the
32913 VM page cache was not coherent with the file system buffer cache
32914 like early versions of FreeBSD and possibly contemporary NetBSD.)
32915 For shared mappings, we should conversely verify that changes get
32916 propagated back to all the places they're supposed to be.
32917
32918 Grep wants private fixed already mapped.
32919 The main things grep needs to know about mmap are:
32920 * does it exist and is it safe to write into the mmap'd area
32921 * how to use it (BSD variants) */
32922
32923#include <fcntl.h>
32924#include <sys/mman.h>
32925
32926#if !STDC_HEADERS && !HAVE_STDLIB_H
32927char *malloc ();
32928#endif
32929
32930/* This mess was copied from the GNU getpagesize.h. */
32931#if !HAVE_GETPAGESIZE
32932/* Assume that all systems that can run configure have sys/param.h. */
32933# if !HAVE_SYS_PARAM_H
32934# define HAVE_SYS_PARAM_H 1
32935# endif
32936
32937# ifdef _SC_PAGESIZE
32938# define getpagesize() sysconf(_SC_PAGESIZE)
32939# else /* no _SC_PAGESIZE */
32940# if HAVE_SYS_PARAM_H
32941# include <sys/param.h>
32942# ifdef EXEC_PAGESIZE
32943# define getpagesize() EXEC_PAGESIZE
32944# else /* no EXEC_PAGESIZE */
32945# ifdef NBPG
32946# define getpagesize() NBPG * CLSIZE
32947# ifndef CLSIZE
32948# define CLSIZE 1
32949# endif /* no CLSIZE */
32950# else /* no NBPG */
32951# ifdef NBPC
32952# define getpagesize() NBPC
32953# else /* no NBPC */
32954# ifdef PAGESIZE
32955# define getpagesize() PAGESIZE
32956# endif /* PAGESIZE */
32957# endif /* no NBPC */
32958# endif /* no NBPG */
32959# endif /* no EXEC_PAGESIZE */
32960# else /* no HAVE_SYS_PARAM_H */
32961# define getpagesize() 8192 /* punt totally */
32962# endif /* no HAVE_SYS_PARAM_H */
32963# endif /* no _SC_PAGESIZE */
32964
32965#endif /* no HAVE_GETPAGESIZE */
32966
32967int
32968main ()
32969{
32970 char *data, *data2, *data3;
32971 int i, pagesize;
32972 int fd;
32973
32974 pagesize = getpagesize ();
32975
32976 /* First, make a file with some known garbage in it. */
32977 data = (char *) malloc (pagesize);
32978 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032979 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032980 for (i = 0; i < pagesize; ++i)
32981 *(data + i) = rand ();
32982 umask (0);
32983 fd = creat ("conftest.mmap", 0600);
32984 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032985 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032986 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032987 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032988 close (fd);
32989
32990 /* Next, try to mmap the file at a fixed address which already has
32991 something else allocated at it. If we can, also make sure that
32992 we see the same garbage. */
32993 fd = open ("conftest.mmap", O_RDWR);
32994 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032995 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032996 data2 = (char *) malloc (2 * pagesize);
32997 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032998 return 1;
32999 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033000 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033002 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033003 for (i = 0; i < pagesize; ++i)
33004 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033005 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033006
33007 /* Finally, make sure that changes to the mapped area do not
33008 percolate back to the file as seen by read(). (This is a bug on
33009 some variants of i386 svr4.0.) */
33010 for (i = 0; i < pagesize; ++i)
33011 *(data2 + i) = *(data2 + i) + 1;
33012 data3 = (char *) malloc (pagesize);
33013 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033014 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033015 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033016 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033017 for (i = 0; i < pagesize; ++i)
33018 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033019 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033020 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033021 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033022}
33023_ACEOF
33024rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033025if { (ac_try="$ac_link"
33026case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33029esac
33030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33038esac
33039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
33044 ac_cv_func_mmap_fixed_mapped=yes
33045else
33046 echo "$as_me: program exited with status $ac_status" >&5
33047echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033048sed 's/^/| /' conftest.$ac_ext >&5
33049
John Criswell7a73b802003-06-30 21:59:07 +000033050( exit $ac_status )
33051ac_cv_func_mmap_fixed_mapped=no
33052fi
Reid Spencera773bd52006-08-04 18:18:08 +000033053rm -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 +000033054fi
Reid Spencera773bd52006-08-04 18:18:08 +000033055
33056
John Criswell7a73b802003-06-30 21:59:07 +000033057fi
Reid Spencera773bd52006-08-04 18:18:08 +000033058{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33059echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033060if test $ac_cv_func_mmap_fixed_mapped = yes; then
33061
33062cat >>confdefs.h <<\_ACEOF
33063#define HAVE_MMAP 1
33064_ACEOF
33065
33066fi
33067rm -f conftest.mmap
33068
Reid Spencera773bd52006-08-04 18:18:08 +000033069{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33070echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033071if test "${ac_cv_func_mmap_file+set}" = set; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33073else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033074 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033075ac_cpp='$CPP $CPPFLAGS'
33076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078ac_compiler_gnu=$ac_cv_c_compiler_gnu
33079
33080 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033081 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033082else
33083 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033084
Reid Spencer777ce172004-09-20 04:09:56 +000033085 /* confdefs.h. */
33086_ACEOF
33087cat confdefs.h >>conftest.$ac_ext
33088cat >>conftest.$ac_ext <<_ACEOF
33089/* end confdefs.h. */
33090
John Criswell7a73b802003-06-30 21:59:07 +000033091#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033092#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033093#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033094
33095int
33096main ()
33097{
John Criswell7a73b802003-06-30 21:59:07 +000033098
33099 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033100 fd = creat ("foo",0777);
33101 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33102 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033103 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033104 ;
33105 return 0;
33106}
John Criswell7a73b802003-06-30 21:59:07 +000033107_ACEOF
33108rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033109if { (ac_try="$ac_link"
33110case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033125 ac_status=$?
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; }; then
33128 ac_cv_func_mmap_file=yes
33129else
33130 echo "$as_me: program exited with status $ac_status" >&5
33131echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033132sed 's/^/| /' conftest.$ac_ext >&5
33133
John Criswell7a73b802003-06-30 21:59:07 +000033134( exit $ac_status )
33135ac_cv_func_mmap_file=no
33136fi
Reid Spencera773bd52006-08-04 18:18:08 +000033137rm -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 +000033138fi
Reid Spencera773bd52006-08-04 18:18:08 +000033139
33140
John Criswell7a73b802003-06-30 21:59:07 +000033141 ac_ext=c
33142ac_cpp='$CPP $CPPFLAGS'
33143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145ac_compiler_gnu=$ac_cv_c_compiler_gnu
33146
33147
33148fi
Reid Spencera773bd52006-08-04 18:18:08 +000033149{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33150echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033151if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033152
33153cat >>confdefs.h <<\_ACEOF
33154#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033155_ACEOF
33156
33157 MMAP_FILE=yes
33158
33159fi
33160
Reid Spencera773bd52006-08-04 18:18:08 +000033161{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33162echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033163if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33164 echo $ECHO_N "(cached) $ECHO_C" >&6
33165else
Reid Spencer582a23c2004-12-29 07:07:57 +000033166 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033167 ac_cv_need_dev_zero_for_mmap=yes
33168 else
33169 ac_cv_need_dev_zero_for_mmap=no
33170 fi
33171
33172fi
Reid Spencera773bd52006-08-04 18:18:08 +000033173{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33174echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033175if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33176
33177cat >>confdefs.h <<\_ACEOF
33178#define NEED_DEV_ZERO_FOR_MMAP 1
33179_ACEOF
33180
33181fi
Reid Spencera773bd52006-08-04 18:18:08 +000033182{ echo "$as_me:$LINENO: checking for mprotect" >&5
33183echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033184if test "${ac_cv_func_mprotect+set}" = set; then
33185 echo $ECHO_N "(cached) $ECHO_C" >&6
33186else
33187 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033188/* confdefs.h. */
33189_ACEOF
33190cat confdefs.h >>conftest.$ac_ext
33191cat >>conftest.$ac_ext <<_ACEOF
33192/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033193/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33195#define mprotect innocuous_mprotect
33196
John Criswell7a73b802003-06-30 21:59:07 +000033197/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033198 which can conflict with char mprotect (); below.
33199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33200 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033201
John Criswell0c38eaf2003-09-10 15:17:25 +000033202#ifdef __STDC__
33203# include <limits.h>
33204#else
33205# include <assert.h>
33206#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033207
33208#undef mprotect
33209
Reid Spencera773bd52006-08-04 18:18:08 +000033210/* Override any GCC internal prototype to avoid an error.
33211 Use char because int might match the return type of a GCC
33212 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033213#ifdef __cplusplus
33214extern "C"
33215#endif
John Criswell7a73b802003-06-30 21:59:07 +000033216char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033217/* The GNU C library defines this for functions which it implements
33218 to always fail with ENOSYS. Some functions are actually named
33219 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033220#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033221choke me
John Criswell7a73b802003-06-30 21:59:07 +000033222#endif
33223
John Criswell0c38eaf2003-09-10 15:17:25 +000033224int
33225main ()
33226{
Reid Spencera773bd52006-08-04 18:18:08 +000033227return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033228 ;
33229 return 0;
33230}
33231_ACEOF
33232rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033233if { (ac_try="$ac_link"
33234case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033241 grep -v '^ *+' conftest.er1 >conftest.err
33242 rm -f conftest.er1
33243 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33247 { (case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33250esac
33251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033253 ac_status=$?
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; } &&
33256 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033257 { (case "(($ac_try" in
33258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259 *) ac_try_echo=$ac_try;;
33260esac
33261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033263 ac_status=$?
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); }; }; then
33266 ac_cv_func_mprotect=yes
33267else
33268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033269sed 's/^/| /' conftest.$ac_ext >&5
33270
Reid Spencera773bd52006-08-04 18:18:08 +000033271 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033272fi
Reid Spencera773bd52006-08-04 18:18:08 +000033273
33274rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033275 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033276fi
Reid Spencera773bd52006-08-04 18:18:08 +000033277{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33278echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033279if test $ac_cv_func_mprotect = yes; then
33280 :
33281else
33282 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33283echo "$as_me: error: Function mprotect() required but not found" >&2;}
33284 { (exit 1); exit 1; }; }
33285fi
33286
33287
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033288if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033289then
Reid Spencer582a23c2004-12-29 07:07:57 +000033290 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33291echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033292fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033293if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033294then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033295 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33296echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033297fi
John Criswell7a73b802003-06-30 21:59:07 +000033298
33299
Reid Spencera773bd52006-08-04 18:18:08 +000033300{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33301echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033302if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33303 echo $ECHO_N "(cached) $ECHO_C" >&6
33304else
33305 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033306if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033307 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033308 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033309 if test $? -eq 0 ; then
33310 llvm_cv_llvmgcc_sanity="yes"
33311 fi
33312 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033313fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033314fi
Reid Spencera773bd52006-08-04 18:18:08 +000033315{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33316echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033317
33318if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033319 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033320 LLVMCC1=$llvmcc1path
33321
Reid Spencer502935f2004-12-22 05:56:56 +000033322 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033323 LLVMCC1PLUS=$llvmcc1pluspath
33324
Reid Spencer502935f2004-12-22 05:56:56 +000033325 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33326 LLVMGCCDIR=$llvmgccdir
33327
Reid Spencerb5d75b82006-05-09 00:31:01 +000033328 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033329 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33330 LLVMGCC_VERSION=$llvmgccversion
33331
33332 LLVMGCC_MAJVERS=$llvmgccmajvers
33333
Brian Gaekef3b24102003-11-16 18:38:14 +000033334fi
33335
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033336SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033337
33338
Reid Spencere9de0912004-08-20 09:03:57 +000033339# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033340# information into substitutions that will end up in Makefile.config.in
33341# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033342if test "${prefix}" == "NONE" ; then
33343 prefix="/usr/local"
33344fi
Reid Spencere9de0912004-08-20 09:03:57 +000033345eval LLVM_PREFIX="${prefix}";
33346eval LLVM_BINDIR="${prefix}/bin";
33347eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033348eval LLVM_DATADIR="${prefix}/share/llvm";
33349eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33350eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033351eval LLVM_INCLUDEDIR="${prefix}/include";
33352eval LLVM_INFODIR="${prefix}/info";
33353eval LLVM_MANDIR="${prefix}/man";
33354LLVM_CONFIGTIME=`date`
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033366# Place the various directores into the config.h file as #defines so that we
33367# can know about the installation paths within LLVM.
33368
Reid Spencere9de0912004-08-20 09:03:57 +000033369cat >>confdefs.h <<_ACEOF
33370#define LLVM_PREFIX "$LLVM_PREFIX"
33371_ACEOF
33372
33373
33374cat >>confdefs.h <<_ACEOF
33375#define LLVM_BINDIR "$LLVM_BINDIR"
33376_ACEOF
33377
33378
33379cat >>confdefs.h <<_ACEOF
33380#define LLVM_LIBDIR "$LLVM_LIBDIR"
33381_ACEOF
33382
33383
33384cat >>confdefs.h <<_ACEOF
33385#define LLVM_DATADIR "$LLVM_DATADIR"
33386_ACEOF
33387
33388
33389cat >>confdefs.h <<_ACEOF
33390#define LLVM_DATADIR "$LLVM_DOCSDIR"
33391_ACEOF
33392
33393
33394cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033395#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033396_ACEOF
33397
33398
33399cat >>confdefs.h <<_ACEOF
33400#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33401_ACEOF
33402
33403
33404cat >>confdefs.h <<_ACEOF
33405#define LLVM_INFODIR "$LLVM_INFODIR"
33406_ACEOF
33407
33408
33409cat >>confdefs.h <<_ACEOF
33410#define LLVM_MANDIR "$LLVM_MANDIR"
33411_ACEOF
33412
33413
33414cat >>confdefs.h <<_ACEOF
33415#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33416_ACEOF
33417
33418
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033419
Reid Spencera773bd52006-08-04 18:18:08 +000033420ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033421
Reid Spencera773bd52006-08-04 18:18:08 +000033422ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033423
Reid Spencera773bd52006-08-04 18:18:08 +000033424ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033425
Reid Spencera773bd52006-08-04 18:18:08 +000033426ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033427
Reid Spencera773bd52006-08-04 18:18:08 +000033428ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033429
33430
Reid Spencera773bd52006-08-04 18:18:08 +000033431ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033432
33433
Reid Spencerea949cf2006-08-16 00:45:38 +000033434ac_config_files="$ac_config_files llvm.spec"
33435
33436
Reid Spencera773bd52006-08-04 18:18:08 +000033437ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033438
33439
Reid Spencera773bd52006-08-04 18:18:08 +000033440ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033441
33442
Reid Spencera773bd52006-08-04 18:18:08 +000033443ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033444
Reid Spencera773bd52006-08-04 18:18:08 +000033445ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033446
33447
Reid Spencera773bd52006-08-04 18:18:08 +000033448ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033449
33450
Reid Spencera773bd52006-08-04 18:18:08 +000033451ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033452
33453
Reid Spencera773bd52006-08-04 18:18:08 +000033454ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033455
33456
Reid Spencer8b2e1412006-11-17 03:32:33 +000033457ac_config_commands="$ac_config_commands runtime/Makefile"
33458
33459
Reid Spencera773bd52006-08-04 18:18:08 +000033460ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033461
33462
Reid Spencera773bd52006-08-04 18:18:08 +000033463ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033464
33465
Reid Spencera773bd52006-08-04 18:18:08 +000033466ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033467
33468
Reid Spencera773bd52006-08-04 18:18:08 +000033469ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033470
33471
Reid Spencera773bd52006-08-04 18:18:08 +000033472ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033473
33474
33475
John Criswell7a73b802003-06-30 21:59:07 +000033476cat >confcache <<\_ACEOF
33477# This file is a shell script that caches the results of configure
33478# tests run on this system so they can be shared between configure
33479# scripts and configure runs, see configure's option --config-cache.
33480# It is not useful on other systems. If it contains results you don't
33481# want to keep, you may remove or edit it.
33482#
33483# config.status only pays attention to the cache file if you give it
33484# the --recheck option to rerun configure.
33485#
John Criswell0c38eaf2003-09-10 15:17:25 +000033486# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033487# loading this file, other *unset* `ac_cv_foo' will be assigned the
33488# following values.
33489
33490_ACEOF
33491
33492# The following way of writing the cache mishandles newlines in values,
33493# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033494# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033495# Ultrix sh set writes to stderr and can't be redirected directly,
33496# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033497(
33498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33499 eval ac_val=\$$ac_var
33500 case $ac_val in #(
33501 *${as_nl}*)
33502 case $ac_var in #(
33503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33504echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33505 esac
33506 case $ac_var in #(
33507 _ | IFS | as_nl) ;; #(
33508 *) $as_unset $ac_var ;;
33509 esac ;;
33510 esac
33511 done
33512
John Criswell7a73b802003-06-30 21:59:07 +000033513 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33515 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033516 # `set' does not quote correctly, so add quotes (double-quote
33517 # substitution turns \\\\ into \\, and sed turns \\ into \).
33518 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033519 "s/'/'\\\\''/g;
33520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033521 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033522 *)
33523 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033526 esac |
33527 sort
33528) |
John Criswell7a73b802003-06-30 21:59:07 +000033529 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033530 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033531 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033532 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33534 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33536 :end' >>confcache
33537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33538 if test -w "$cache_file"; then
33539 test "x$cache_file" != "x/dev/null" &&
33540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33541echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033542 cat confcache >$cache_file
33543 else
Reid Spencera773bd52006-08-04 18:18:08 +000033544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33545echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033546 fi
33547fi
33548rm -f confcache
33549
33550test "x$prefix" = xNONE && prefix=$ac_default_prefix
33551# Let make expand exec_prefix.
33552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33553
John Criswell7a73b802003-06-30 21:59:07 +000033554DEFS=-DHAVE_CONFIG_H
33555
John Criswell0c38eaf2003-09-10 15:17:25 +000033556ac_libobjs=
33557ac_ltlibobjs=
33558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33559 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33561 ac_i=`echo "$ac_i" | sed "$ac_script"`
33562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33563 # will be set to the directory where LIBOBJS objects are built.
33564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033566done
33567LIBOBJS=$ac_libobjs
33568
33569LTLIBOBJS=$ac_ltlibobjs
33570
33571
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033572if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33573 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33574Usually this means the macro was only invoked conditionally." >&5
33575echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33576Usually this means the macro was only invoked conditionally." >&2;}
33577 { (exit 1); exit 1; }; }
33578fi
33579if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33580 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33581Usually this means the macro was only invoked conditionally." >&5
33582echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33583Usually this means the macro was only invoked conditionally." >&2;}
33584 { (exit 1); exit 1; }; }
33585fi
John Criswell7a73b802003-06-30 21:59:07 +000033586
33587: ${CONFIG_STATUS=./config.status}
33588ac_clean_files_save=$ac_clean_files
33589ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33590{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33591echo "$as_me: creating $CONFIG_STATUS" >&6;}
33592cat >$CONFIG_STATUS <<_ACEOF
33593#! $SHELL
33594# Generated by $as_me.
33595# Run this file to recreate the current configuration.
33596# Compiler output produced by configure, useful for debugging
33597# configure, is in config.log if it exists.
33598
33599debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033600ac_cs_recheck=false
33601ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033602SHELL=\${CONFIG_SHELL-$SHELL}
33603_ACEOF
33604
33605cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033606## --------------------- ##
33607## M4sh Initialization. ##
33608## --------------------- ##
33609
33610# Be Bourne compatible
33611if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33612 emulate sh
33613 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33615 # is contrary to our usage. Disable this feature.
33616 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033617 setopt NO_GLOB_SUBST
33618else
33619 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033620fi
Reid Spencera773bd52006-08-04 18:18:08 +000033621BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033622DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033623
John Criswell7a73b802003-06-30 21:59:07 +000033624
Reid Spencera773bd52006-08-04 18:18:08 +000033625# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033626# Avoid depending upon Character Ranges.
33627as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33628as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33629as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33630as_cr_digits='0123456789'
33631as_cr_alnum=$as_cr_Letters$as_cr_digits
33632
33633# The user is always right.
33634if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033635 echo "#! /bin/sh" >conf$$.sh
33636 echo "exit 0" >>conf$$.sh
33637 chmod +x conf$$.sh
33638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033639 PATH_SEPARATOR=';'
33640 else
33641 PATH_SEPARATOR=:
33642 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033643 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033644fi
33645
Reid Spencera773bd52006-08-04 18:18:08 +000033646# Support unset when possible.
33647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33648 as_unset=unset
33649else
33650 as_unset=false
33651fi
John Criswell7a73b802003-06-30 21:59:07 +000033652
Reid Spencera773bd52006-08-04 18:18:08 +000033653
33654# IFS
33655# We need space, tab and new line, in precisely that order. Quoting is
33656# there to prevent editors from complaining about space-tab.
33657# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33658# splitting by setting IFS to empty value.)
33659as_nl='
33660'
33661IFS=" "" $as_nl"
33662
33663# Find who we are. Look in the path if we contain no directory separator.
33664case $0 in
33665 *[\\/]* ) as_myself=$0 ;;
33666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033667for as_dir in $PATH
33668do
33669 IFS=$as_save_IFS
33670 test -z "$as_dir" && as_dir=.
33671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33672done
Reid Spencera773bd52006-08-04 18:18:08 +000033673IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033674
Reid Spencera773bd52006-08-04 18:18:08 +000033675 ;;
33676esac
33677# We did not find ourselves, most probably we were run as `sh COMMAND'
33678# in which case we are not to be found in the path.
33679if test "x$as_myself" = x; then
33680 as_myself=$0
33681fi
33682if test ! -f "$as_myself"; then
33683 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33684 { (exit 1); exit 1; }
33685fi
33686
33687# Work around bugs in pre-3.0 UWIN ksh.
33688for as_var in ENV MAIL MAILPATH
33689do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33690done
33691PS1='$ '
33692PS2='> '
33693PS4='+ '
33694
33695# NLS nuisances.
33696for as_var in \
33697 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33698 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33699 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033700do
Reid Spencera773bd52006-08-04 18:18:08 +000033701 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33702 eval $as_var=C; export $as_var
33703 else
33704 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33705 fi
33706done
33707
33708# Required to use basename.
33709if expr a : '\(a\)' >/dev/null 2>&1 &&
33710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33711 as_expr=expr
33712else
33713 as_expr=false
33714fi
33715
33716if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33717 as_basename=basename
33718else
33719 as_basename=false
33720fi
33721
33722
33723# Name of the executable.
33724as_me=`$as_basename -- "$0" ||
33725$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33726 X"$0" : 'X\(//\)$' \| \
33727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33728echo X/"$0" |
33729 sed '/^.*\/\([^/][^/]*\)\/*$/{
33730 s//\1/
33731 q
33732 }
33733 /^X\/\(\/\/\)$/{
33734 s//\1/
33735 q
33736 }
33737 /^X\/\(\/\).*/{
33738 s//\1/
33739 q
33740 }
33741 s/.*/./; q'`
33742
33743# CDPATH.
33744$as_unset CDPATH
33745
33746
33747
John Criswell7a73b802003-06-30 21:59:07 +000033748 as_lineno_1=$LINENO
33749 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033750 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033751 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033752
33753 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33754 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033755 # line-number line after each line using $LINENO; the second 'sed'
33756 # does the real work. The second script uses 'N' to pair each
33757 # line-number line with the line containing $LINENO, and appends
33758 # trailing '-' during substitution so that $LINENO is not a special
33759 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033760 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033761 # scripts with optimization help from Paolo Bonzini. Blame Lee
33762 # E. McMahon (1931-1989) for sed's syntax. :-)
33763 sed -n '
33764 p
33765 /[$]LINENO/=
33766 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033767 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033768 s/[$]LINENO.*/&-/
33769 t lineno
33770 b
33771 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033772 N
Reid Spencera773bd52006-08-04 18:18:08 +000033773 :loop
33774 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033775 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033776 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033777 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033778 chmod +x "$as_me.lineno" ||
33779 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033780 { (exit 1); exit 1; }; }
33781
33782 # Don't try to exec as it changes $[0], causing all sort of problems
33783 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033784 # original and so on. Autoconf is especially sensitive to this).
33785 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033786 # Exit status is that of the last command.
33787 exit
33788}
33789
33790
Reid Spencera773bd52006-08-04 18:18:08 +000033791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33792 as_dirname=dirname
33793else
33794 as_dirname=false
33795fi
33796
33797ECHO_C= ECHO_N= ECHO_T=
33798case `echo -n x` in
33799-n*)
33800 case `echo 'x\c'` in
33801 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33802 *) ECHO_C='\c';;
33803 esac;;
33804*)
33805 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033806esac
33807
Reid Spencera773bd52006-08-04 18:18:08 +000033808if expr a : '\(a\)' >/dev/null 2>&1 &&
33809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033810 as_expr=expr
33811else
33812 as_expr=false
33813fi
33814
33815rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033816if test -d conf$$.dir; then
33817 rm -f conf$$.dir/conf$$.file
33818else
33819 rm -f conf$$.dir
33820 mkdir conf$$.dir
33821fi
John Criswell7a73b802003-06-30 21:59:07 +000033822echo >conf$$.file
33823if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033824 as_ln_s='ln -s'
33825 # ... but there are two gotchas:
33826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33828 # In both cases, we have to default to `cp -p'.
33829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033830 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033831elif ln conf$$.file conf$$ 2>/dev/null; then
33832 as_ln_s=ln
33833else
33834 as_ln_s='cp -p'
33835fi
Reid Spencera773bd52006-08-04 18:18:08 +000033836rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33837rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033838
John Criswell0c38eaf2003-09-10 15:17:25 +000033839if mkdir -p . 2>/dev/null; then
33840 as_mkdir_p=:
33841else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033842 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033843 as_mkdir_p=false
33844fi
33845
Reid Spencera773bd52006-08-04 18:18:08 +000033846# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33847# systems may use methods other than mode bits to determine executability.
33848cat >conf$$.file <<_ASEOF
33849#! /bin/sh
33850exit 0
33851_ASEOF
33852chmod +x conf$$.file
33853if test -x conf$$.file >/dev/null 2>&1; then
33854 as_executable_p="test -x"
33855else
33856 as_executable_p=:
33857fi
33858rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033859
33860# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033861as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033862
33863# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033864as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033865
33866
John Criswell7a73b802003-06-30 21:59:07 +000033867exec 6>&1
33868
Reid Spencera773bd52006-08-04 18:18:08 +000033869# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033870# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033871# values after options handling.
33872ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033873This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033874generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033875
33876 CONFIG_FILES = $CONFIG_FILES
33877 CONFIG_HEADERS = $CONFIG_HEADERS
33878 CONFIG_LINKS = $CONFIG_LINKS
33879 CONFIG_COMMANDS = $CONFIG_COMMANDS
33880 $ $0 $@
33881
Reid Spencera773bd52006-08-04 18:18:08 +000033882on `(hostname || uname -n) 2>/dev/null | sed 1q`
33883"
33884
John Criswell7a73b802003-06-30 21:59:07 +000033885_ACEOF
33886
Reid Spencera773bd52006-08-04 18:18:08 +000033887cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033888# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033889config_files="$ac_config_files"
33890config_headers="$ac_config_headers"
33891config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033892
Reid Spencera773bd52006-08-04 18:18:08 +000033893_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033894
33895cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033896ac_cs_usage="\
33897\`$as_me' instantiates files from templates according to the
33898current configuration.
33899
33900Usage: $0 [OPTIONS] [FILE]...
33901
33902 -h, --help print this help, then exit
33903 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033904 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033905 -d, --debug don't remove temporary files
33906 --recheck update $as_me by reconfiguring in the same conditions
33907 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033908 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033909 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033910 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033911
33912Configuration files:
33913$config_files
33914
33915Configuration headers:
33916$config_headers
33917
John Criswellc764fbc2003-09-06 15:17:13 +000033918Configuration commands:
33919$config_commands
33920
John Criswell7a73b802003-06-30 21:59:07 +000033921Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033922
Reid Spencera773bd52006-08-04 18:18:08 +000033923_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033924cat >>$CONFIG_STATUS <<_ACEOF
33925ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033926llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033927configured by $0, generated by GNU Autoconf 2.60,
33928 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033929
Reid Spencera773bd52006-08-04 18:18:08 +000033930Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033931This config.status script is free software; the Free Software Foundation
33932gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033933
33934ac_pwd='$ac_pwd'
33935srcdir='$srcdir'
33936INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033937_ACEOF
33938
33939cat >>$CONFIG_STATUS <<\_ACEOF
33940# If no file are specified by the user, then we need to provide default
33941# value. By we need to know if files were specified by the user.
33942ac_need_defaults=:
33943while test $# != 0
33944do
33945 case $1 in
33946 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033949 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033951 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033952 ac_option=$1
33953 ac_optarg=$2
33954 ac_shift=shift
33955 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033956 esac
33957
John Criswell0c38eaf2003-09-10 15:17:25 +000033958 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033959 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33961 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33963 echo "$ac_cs_version"; exit ;;
33964 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033965 debug=: ;;
33966 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033967 $ac_shift
33968 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033969 ac_need_defaults=false;;
33970 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033971 $ac_shift
33972 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033973 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033974 --he | --h)
33975 # Conflict between --help and --header
33976 { echo "$as_me: error: ambiguous option: $1
33977Try \`$0 --help' for more information." >&2
33978 { (exit 1); exit 1; }; };;
33979 --help | --hel | -h )
33980 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33983 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033984
33985 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033986 -*) { echo "$as_me: error: unrecognized option: $1
33987Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033988 { (exit 1); exit 1; }; } ;;
33989
Reid Spencera773bd52006-08-04 18:18:08 +000033990 *) ac_config_targets="$ac_config_targets $1"
33991 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033992
33993 esac
33994 shift
33995done
33996
John Criswell0c38eaf2003-09-10 15:17:25 +000033997ac_configure_extra_args=
33998
33999if $ac_cs_silent; then
34000 exec 6>/dev/null
34001 ac_configure_extra_args="$ac_configure_extra_args --silent"
34002fi
34003
34004_ACEOF
34005cat >>$CONFIG_STATUS <<_ACEOF
34006if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034007 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34008 CONFIG_SHELL=$SHELL
34009 export CONFIG_SHELL
34010 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034011fi
34012
John Criswell7a73b802003-06-30 21:59:07 +000034013_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034014cat >>$CONFIG_STATUS <<\_ACEOF
34015exec 5>>config.log
34016{
34017 echo
34018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34019## Running $as_me. ##
34020_ASBOX
34021 echo "$ac_log"
34022} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034023
Reid Spencera773bd52006-08-04 18:18:08 +000034024_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034025cat >>$CONFIG_STATUS <<_ACEOF
34026#
Reid Spencera773bd52006-08-04 18:18:08 +000034027# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034028#
Reid Spencerc0682832005-02-24 19:05:19 +000034029llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034030
34031_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034032
John Criswell7a73b802003-06-30 21:59:07 +000034033cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034034
34035# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034036for ac_config_target in $ac_config_targets
34037do
Reid Spencera773bd52006-08-04 18:18:08 +000034038 case $ac_config_target in
34039 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34040 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34041 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34042 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34043 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34044 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034045 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034046 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34047 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34048 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34049 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34050 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34051 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34052 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034053 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034054 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34055 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34056 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34057 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34058 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34059
John Criswell7a73b802003-06-30 21:59:07 +000034060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34061echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34062 { (exit 1); exit 1; }; };;
34063 esac
34064done
34065
Reid Spencera773bd52006-08-04 18:18:08 +000034066
John Criswell7a73b802003-06-30 21:59:07 +000034067# If the user did not use the arguments to specify the items to instantiate,
34068# then the envvar interface is used. Set only those that are not.
34069# We use the long form for the default assignment because of an extremely
34070# bizarre bug on SunOS 4.1.3.
34071if $ac_need_defaults; then
34072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034075fi
34076
John Criswell0c38eaf2003-09-10 15:17:25 +000034077# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034078# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034079# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034080# Hook for its removal unless debugging.
34081# Note that there is a small window in which the directory will not be cleaned:
34082# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034083$debug ||
34084{
Reid Spencera773bd52006-08-04 18:18:08 +000034085 tmp=
34086 trap 'exit_status=$?
34087 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34088' 0
John Criswell7a73b802003-06-30 21:59:07 +000034089 trap '{ (exit 1); exit 1; }' 1 2 13 15
34090}
John Criswell7a73b802003-06-30 21:59:07 +000034091# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034092
John Criswell7a73b802003-06-30 21:59:07 +000034093{
Reid Spencera773bd52006-08-04 18:18:08 +000034094 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034095 test -n "$tmp" && test -d "$tmp"
34096} ||
34097{
Reid Spencera773bd52006-08-04 18:18:08 +000034098 tmp=./conf$$-$RANDOM
34099 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034100} ||
34101{
John Criswell0c38eaf2003-09-10 15:17:25 +000034102 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034103 { (exit 1); exit 1; }
34104}
34105
John Criswell7a73b802003-06-30 21:59:07 +000034106#
Reid Spencera773bd52006-08-04 18:18:08 +000034107# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034108#
34109
34110# No need to generate the scripts if there are no CONFIG_FILES.
34111# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034112if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034113
34114_ACEOF
34115
Reid Spencera773bd52006-08-04 18:18:08 +000034116
34117
34118ac_delim='%!_!# '
34119for ac_last_try in false false false false false :; do
34120 cat >conf$$subs.sed <<_ACEOF
34121SHELL!$SHELL$ac_delim
34122PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34123PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34124PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34125PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34126PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34127PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34128exec_prefix!$exec_prefix$ac_delim
34129prefix!$prefix$ac_delim
34130program_transform_name!$program_transform_name$ac_delim
34131bindir!$bindir$ac_delim
34132sbindir!$sbindir$ac_delim
34133libexecdir!$libexecdir$ac_delim
34134datarootdir!$datarootdir$ac_delim
34135datadir!$datadir$ac_delim
34136sysconfdir!$sysconfdir$ac_delim
34137sharedstatedir!$sharedstatedir$ac_delim
34138localstatedir!$localstatedir$ac_delim
34139includedir!$includedir$ac_delim
34140oldincludedir!$oldincludedir$ac_delim
34141docdir!$docdir$ac_delim
34142infodir!$infodir$ac_delim
34143htmldir!$htmldir$ac_delim
34144dvidir!$dvidir$ac_delim
34145pdfdir!$pdfdir$ac_delim
34146psdir!$psdir$ac_delim
34147libdir!$libdir$ac_delim
34148localedir!$localedir$ac_delim
34149mandir!$mandir$ac_delim
34150DEFS!$DEFS$ac_delim
34151ECHO_C!$ECHO_C$ac_delim
34152ECHO_N!$ECHO_N$ac_delim
34153ECHO_T!$ECHO_T$ac_delim
34154LIBS!$LIBS$ac_delim
34155build_alias!$build_alias$ac_delim
34156host_alias!$host_alias$ac_delim
34157target_alias!$target_alias$ac_delim
34158LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34159subdirs!$subdirs$ac_delim
34160build!$build$ac_delim
34161build_cpu!$build_cpu$ac_delim
34162build_vendor!$build_vendor$ac_delim
34163build_os!$build_os$ac_delim
34164host!$host$ac_delim
34165host_cpu!$host_cpu$ac_delim
34166host_vendor!$host_vendor$ac_delim
34167host_os!$host_os$ac_delim
34168target!$target$ac_delim
34169target_cpu!$target_cpu$ac_delim
34170target_vendor!$target_vendor$ac_delim
34171target_os!$target_os$ac_delim
34172OS!$OS$ac_delim
34173LINKALL!$LINKALL$ac_delim
34174NOLINKALL!$NOLINKALL$ac_delim
34175LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34176LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34177ARCH!$ARCH$ac_delim
34178ENDIAN!$ENDIAN$ac_delim
34179CC!$CC$ac_delim
34180CFLAGS!$CFLAGS$ac_delim
34181LDFLAGS!$LDFLAGS$ac_delim
34182CPPFLAGS!$CPPFLAGS$ac_delim
34183ac_ct_CC!$ac_ct_CC$ac_delim
34184EXEEXT!$EXEEXT$ac_delim
34185OBJEXT!$OBJEXT$ac_delim
34186CPP!$CPP$ac_delim
34187GREP!$GREP$ac_delim
34188EGREP!$EGREP$ac_delim
34189LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34190BUILD_CC!$BUILD_CC$ac_delim
34191BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34192CVSBUILD!$CVSBUILD$ac_delim
34193ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34194DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034195DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034196JIT!$JIT$ac_delim
34197TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34198ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34199ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034200ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034201TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034202ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034203EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34204CXX!$CXX$ac_delim
34205CXXFLAGS!$CXXFLAGS$ac_delim
34206ac_ct_CXX!$ac_ct_CXX$ac_delim
34207LEX!$LEX$ac_delim
34208LEXLIB!$LEXLIB$ac_delim
34209LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34210FLEX!$FLEX$ac_delim
34211YACC!$YACC$ac_delim
34212YFLAGS!$YFLAGS$ac_delim
34213BISON!$BISON$ac_delim
34214NM!$NM$ac_delim
34215ifGNUmake!$ifGNUmake$ac_delim
34216LN_S!$LN_S$ac_delim
34217CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034218_ACEOF
34219
34220 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34221 break
34222 elif $ac_last_try; then
34223 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34224echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34225 { (exit 1); exit 1; }; }
34226 else
34227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034228 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034229done
34230
34231ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34232if test -n "$ac_eof"; then
34233 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34234 ac_eof=`expr $ac_eof + 1`
34235fi
34236
34237cat >>$CONFIG_STATUS <<_ACEOF
34238cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34240_ACEOF
34241sed '
34242s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34243s/^/s,@/; s/!/@,|#_!!_#|/
34244:n
34245t n
34246s/'"$ac_delim"'$/,g/; t
34247s/$/\\/; p
34248N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34249' >>$CONFIG_STATUS <conf$$subs.sed
34250rm -f conf$$subs.sed
34251cat >>$CONFIG_STATUS <<_ACEOF
34252CEOF$ac_eof
34253_ACEOF
34254
34255
34256ac_delim='%!_!# '
34257for ac_last_try in false false false false false :; do
34258 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034259CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034260DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034261FIND!$FIND$ac_delim
34262MKDIR!$MKDIR$ac_delim
34263MV!$MV$ac_delim
34264RANLIB!$RANLIB$ac_delim
34265RM!$RM$ac_delim
34266SED!$SED$ac_delim
34267TAR!$TAR$ac_delim
34268BINPWD!$BINPWD$ac_delim
34269GRAPHVIZ!$GRAPHVIZ$ac_delim
34270DOT!$DOT$ac_delim
34271GV!$GV$ac_delim
34272DOTTY!$DOTTY$ac_delim
34273PERL!$PERL$ac_delim
34274HAVE_PERL!$HAVE_PERL$ac_delim
34275INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34276INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34277INSTALL_DATA!$INSTALL_DATA$ac_delim
34278BZIP2!$BZIP2$ac_delim
34279DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034280GROFF!$GROFF$ac_delim
34281GZIP!$GZIP$ac_delim
34282POD2HTML!$POD2HTML$ac_delim
34283POD2MAN!$POD2MAN$ac_delim
34284RUNTEST!$RUNTEST$ac_delim
34285TCLSH!$TCLSH$ac_delim
34286ZIP!$ZIP$ac_delim
34287INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34288INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34289CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34290CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34291LIBADD_DL!$LIBADD_DL$ac_delim
34292ECHO!$ECHO$ac_delim
34293AR!$AR$ac_delim
34294STRIP!$STRIP$ac_delim
34295CXXCPP!$CXXCPP$ac_delim
34296F77!$F77$ac_delim
34297FFLAGS!$FFLAGS$ac_delim
34298ac_ct_F77!$ac_ct_F77$ac_delim
34299LIBTOOL!$LIBTOOL$ac_delim
34300ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34301LLVMGCC!$LLVMGCC$ac_delim
34302LLVMGXX!$LLVMGXX$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034303HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034304HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034305ALLOCA!$ALLOCA$ac_delim
34306MMAP_FILE!$MMAP_FILE$ac_delim
34307LLVMCC1!$LLVMCC1$ac_delim
34308LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34309LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34310LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34311LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34312SHLIBEXT!$SHLIBEXT$ac_delim
34313LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34314LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34315LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34316LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34317LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34318LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34319LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34320LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34321LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34322LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34323LIBOBJS!$LIBOBJS$ac_delim
34324LTLIBOBJS!$LTLIBOBJS$ac_delim
34325_ACEOF
34326
Reid Spencer89b0d992006-12-16 22:07:52 +000034327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
Reid Spencera773bd52006-08-04 18:18:08 +000034328 break
34329 elif $ac_last_try; then
34330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34332 { (exit 1); exit 1; }; }
34333 else
34334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34335 fi
34336done
34337
34338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34339if test -n "$ac_eof"; then
34340 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34341 ac_eof=`expr $ac_eof + 1`
34342fi
34343
34344cat >>$CONFIG_STATUS <<_ACEOF
34345cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34347_ACEOF
34348sed '
34349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34350s/^/s,@/; s/!/@,|#_!!_#|/
34351:n
34352t n
34353s/'"$ac_delim"'$/,g/; t
34354s/$/\\/; p
34355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34356' >>$CONFIG_STATUS <conf$$subs.sed
34357rm -f conf$$subs.sed
34358cat >>$CONFIG_STATUS <<_ACEOF
34359:end
34360s/|#_!!_#|//g
34361CEOF$ac_eof
34362_ACEOF
34363
34364
34365# VPATH may cause trouble with some makes, so we remove $(srcdir),
34366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367# trailing colons and then remove the whole line if VPATH becomes empty
34368# (actually we leave an empty line to preserve line numbers).
34369if test "x$srcdir" = x.; then
34370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34371s/:*\$(srcdir):*/:/
34372s/:*\${srcdir}:*/:/
34373s/:*@srcdir@:*/:/
34374s/^\([^=]*=[ ]*\):*/\1/
34375s/:*$//
34376s/^[^=]*=[ ]*$//
34377}'
34378fi
34379
34380cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034381fi # test -n "$CONFIG_FILES"
34382
Reid Spencera773bd52006-08-04 18:18:08 +000034383
34384for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34385do
34386 case $ac_tag in
34387 :[FHLC]) ac_mode=$ac_tag; continue;;
34388 esac
34389 case $ac_mode$ac_tag in
34390 :[FHL]*:*);;
34391 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34392echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34393 { (exit 1); exit 1; }; };;
34394 :[FH]-) ac_tag=-:-;;
34395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34396 esac
34397 ac_save_IFS=$IFS
34398 IFS=:
34399 set x $ac_tag
34400 IFS=$ac_save_IFS
34401 shift
34402 ac_file=$1
34403 shift
34404
34405 case $ac_mode in
34406 :L) ac_source=$1;;
34407 :[FH])
34408 ac_file_inputs=
34409 for ac_f
34410 do
34411 case $ac_f in
34412 -) ac_f="$tmp/stdin";;
34413 *) # Look for the file first in the build tree, then in the source tree
34414 # (if the path is not absolute). The absolute path cannot be DOS-style,
34415 # because $ac_f cannot contain `:'.
34416 test -f "$ac_f" ||
34417 case $ac_f in
34418 [\\/$]*) false;;
34419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34420 esac ||
34421 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34422echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34423 { (exit 1); exit 1; }; };;
34424 esac
34425 ac_file_inputs="$ac_file_inputs $ac_f"
34426 done
34427
34428 # Let's still pretend it is `configure' which instantiates (i.e., don't
34429 # use $as_me), people would be surprised to read:
34430 # /* config.h. Generated by config.status. */
34431 configure_input="Generated from "`IFS=:
34432 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34433 if test x"$ac_file" != x-; then
34434 configure_input="$ac_file. $configure_input"
34435 { echo "$as_me:$LINENO: creating $ac_file" >&5
34436echo "$as_me: creating $ac_file" >&6;}
34437 fi
34438
34439 case $ac_tag in
34440 *:-:* | *:-) cat >"$tmp/stdin";;
34441 esac
34442 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034443 esac
34444
Reid Spencera773bd52006-08-04 18:18:08 +000034445 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034447 X"$ac_file" : 'X\(//\)[^/]' \| \
34448 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034450echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34452 s//\1/
34453 q
34454 }
34455 /^X\(\/\/\)[^/].*/{
34456 s//\1/
34457 q
34458 }
34459 /^X\(\/\/\)$/{
34460 s//\1/
34461 q
34462 }
34463 /^X\(\/\).*/{
34464 s//\1/
34465 q
34466 }
34467 s/.*/./; q'`
34468 { as_dir="$ac_dir"
34469 case $as_dir in #(
34470 -*) as_dir=./$as_dir;;
34471 esac
34472 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034473 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034474 while :; do
34475 case $as_dir in #(
34476 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34477 *) as_qdir=$as_dir;;
34478 esac
34479 as_dirs="'$as_qdir' $as_dirs"
34480 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034482 X"$as_dir" : 'X\(//\)[^/]' \| \
34483 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034485echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34487 s//\1/
34488 q
34489 }
34490 /^X\(\/\/\)[^/].*/{
34491 s//\1/
34492 q
34493 }
34494 /^X\(\/\/\)$/{
34495 s//\1/
34496 q
34497 }
34498 /^X\(\/\).*/{
34499 s//\1/
34500 q
34501 }
34502 s/.*/./; q'`
34503 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034504 done
Reid Spencera773bd52006-08-04 18:18:08 +000034505 test -z "$as_dirs" || eval "mkdir $as_dirs"
34506 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34507echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034508 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034509 ac_builddir=.
34510
Reid Spencera773bd52006-08-04 18:18:08 +000034511case "$ac_dir" in
34512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34513*)
John Criswell7a73b802003-06-30 21:59:07 +000034514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034515 # A ".." for each directory in $ac_dir_suffix.
34516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34517 case $ac_top_builddir_sub in
34518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34520 esac ;;
34521esac
34522ac_abs_top_builddir=$ac_pwd
34523ac_abs_builddir=$ac_pwd$ac_dir_suffix
34524# for backward compatibility:
34525ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034526
34527case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034528 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034529 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034530 ac_top_srcdir=$ac_top_builddir_sub
34531 ac_abs_top_srcdir=$ac_pwd ;;
34532 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034533 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034534 ac_top_srcdir=$srcdir
34535 ac_abs_top_srcdir=$srcdir ;;
34536 *) # Relative name.
34537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34538 ac_top_srcdir=$ac_top_build_prefix$srcdir
34539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034540esac
Reid Spencera773bd52006-08-04 18:18:08 +000034541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034542
John Criswell7a73b802003-06-30 21:59:07 +000034543
Reid Spencera773bd52006-08-04 18:18:08 +000034544 case $ac_mode in
34545 :F)
34546 #
34547 # CONFIG_FILE
34548 #
John Criswell7a73b802003-06-30 21:59:07 +000034549
34550 case $INSTALL in
34551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034553 esac
John Criswell7a73b802003-06-30 21:59:07 +000034554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034555
34556cat >>$CONFIG_STATUS <<\_ACEOF
34557# If the template does not know about datarootdir, expand it.
34558# FIXME: This hack should be removed a few years after 2.60.
34559ac_datarootdir_hack=; ac_datarootdir_seen=
34560
34561case `sed -n '/datarootdir/ {
34562 p
34563 q
34564}
34565/@datadir@/p
34566/@docdir@/p
34567/@infodir@/p
34568/@localedir@/p
34569/@mandir@/p
34570' $ac_file_inputs` in
34571*datarootdir*) ac_datarootdir_seen=yes;;
34572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34573 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34574echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34575_ACEOF
34576cat >>$CONFIG_STATUS <<_ACEOF
34577 ac_datarootdir_hack='
34578 s&@datadir@&$datadir&g
34579 s&@docdir@&$docdir&g
34580 s&@infodir@&$infodir&g
34581 s&@localedir@&$localedir&g
34582 s&@mandir@&$mandir&g
34583 s&\\\${datarootdir}&$datarootdir&g' ;;
34584esac
34585_ACEOF
34586
34587# Neutralize VPATH when `$srcdir' = `.'.
34588# Shell code in configure.ac might set extrasub.
34589# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034590cat >>$CONFIG_STATUS <<_ACEOF
34591 sed "$ac_vpsub
34592$extrasub
34593_ACEOF
34594cat >>$CONFIG_STATUS <<\_ACEOF
34595:t
34596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034597s&@configure_input@&$configure_input&;t t
34598s&@top_builddir@&$ac_top_builddir_sub&;t t
34599s&@srcdir@&$ac_srcdir&;t t
34600s&@abs_srcdir@&$ac_abs_srcdir&;t t
34601s&@top_srcdir@&$ac_top_srcdir&;t t
34602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34603s&@builddir@&$ac_builddir&;t t
34604s&@abs_builddir@&$ac_abs_builddir&;t t
34605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34606s&@INSTALL@&$ac_INSTALL&;t t
34607$ac_datarootdir_hack
34608" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034609
Reid Spencera773bd52006-08-04 18:18:08 +000034610test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34613 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34614which seems to be undefined. Please make sure it is defined." >&5
34615echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34616which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034617
Reid Spencera773bd52006-08-04 18:18:08 +000034618 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034619 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034620 -) cat "$tmp/out"; rm -f "$tmp/out";;
34621 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034622 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034623 ;;
34624 :H)
34625 #
34626 # CONFIG_HEADER
34627 #
John Criswell7a73b802003-06-30 21:59:07 +000034628_ACEOF
34629
Reid Spencera773bd52006-08-04 18:18:08 +000034630# Transform confdefs.h into a sed script `conftest.defines', that
34631# substitutes the proper values into config.h.in to produce config.h.
34632rm -f conftest.defines conftest.tail
34633# First, append a space to every undef/define line, to ease matching.
34634echo 's/$/ /' >conftest.defines
34635# Then, protect against being on the right side of a sed subst, or in
34636# an unquoted here document, in config.status. If some macros were
34637# called several times there might be several #defines for the same
34638# symbol, which is useless. But do not sort them, since the last
34639# AC_DEFINE must be honored.
34640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34641# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34642# NAME is the cpp macro being defined, VALUE is the value it is being given.
34643# PARAMS is the parameter list in the macro definition--in most cases, it's
34644# just an empty string.
34645ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34646ac_dB='\\)[ (].*,\\1define\\2'
34647ac_dC=' '
34648ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034649
Reid Spencera773bd52006-08-04 18:18:08 +000034650uniq confdefs.h |
34651 sed -n '
34652 t rset
34653 :rset
34654 s/^[ ]*#[ ]*define[ ][ ]*//
34655 t ok
34656 d
34657 :ok
34658 s/[\\&,]/\\&/g
34659 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34660 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34661 ' >>conftest.defines
34662
34663# Remove the space that was appended to ease matching.
34664# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034665# example, in the case of _POSIX_SOURCE, which is predefined and required
34666# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034667# (The regexp can be short, since the line contains either #define or #undef.)
34668echo 's/ $//
34669s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034670
Reid Spencera773bd52006-08-04 18:18:08 +000034671# Break up conftest.defines:
34672ac_max_sed_lines=50
34673
34674# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34675# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34676# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34677# et cetera.
34678ac_in='$ac_file_inputs'
34679ac_out='"$tmp/out1"'
34680ac_nxt='"$tmp/out2"'
34681
34682while :
John Criswell7a73b802003-06-30 21:59:07 +000034683do
Reid Spencera773bd52006-08-04 18:18:08 +000034684 # Write a here document:
34685 cat >>$CONFIG_STATUS <<_ACEOF
34686 # First, check the format of the line:
34687 cat >"\$tmp/defines.sed" <<\\CEOF
34688/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34689/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34690b
34691:def
34692_ACEOF
34693 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034694 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034695 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34696 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34697 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34698 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034699 rm -f conftest.defines
34700 mv conftest.tail conftest.defines
34701done
Reid Spencera773bd52006-08-04 18:18:08 +000034702rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034703
Reid Spencera773bd52006-08-04 18:18:08 +000034704echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034705cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034706 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034707 echo "/* $configure_input */" >"$tmp/config.h"
34708 cat "$ac_result" >>"$tmp/config.h"
34709 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034710 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34711echo "$as_me: $ac_file is unchanged" >&6;}
34712 else
John Criswell7a73b802003-06-30 21:59:07 +000034713 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034714 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034715 fi
34716 else
Reid Spencera773bd52006-08-04 18:18:08 +000034717 echo "/* $configure_input */"
34718 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034719 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034720 rm -f "$tmp/out12"
34721 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034722
Reid Spencera773bd52006-08-04 18:18:08 +000034723 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34724echo "$as_me: executing $ac_file commands" >&6;}
34725 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034726 esac
John Criswell7a73b802003-06-30 21:59:07 +000034727
Reid Spencera773bd52006-08-04 18:18:08 +000034728
34729 case $ac_file$ac_mode in
34730 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34731 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34732 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34733 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34734 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34735 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34736 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34737 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034738 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34739 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034740 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34741 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34742 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34743 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34744 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34745 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34746 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34747 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34748 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34749 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34750
34751 esac
34752done # for ac_tag
34753
John Criswell7a73b802003-06-30 21:59:07 +000034754
34755{ (exit 0); exit 0; }
34756_ACEOF
34757chmod +x $CONFIG_STATUS
34758ac_clean_files=$ac_clean_files_save
34759
34760
34761# configure is writing to config.log, and then calls config.status.
34762# config.status does its own redirection, appending to config.log.
34763# Unfortunately, on DOS this fails, as config.log is still kept open
34764# by configure, so config.status won't be able to write to it; its
34765# output is simply discarded. So we exec the FD to /dev/null,
34766# effectively closing config.log, so it can be properly (re)opened and
34767# appended to by config.status. When coming back to configure, we
34768# need to make the FD available again.
34769if test "$no_create" != yes; then
34770 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034771 ac_config_status_args=
34772 test "$silent" = yes &&
34773 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034774 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034776 exec 5>>config.log
34777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34778 # would make configure fail if this is the last instruction.
34779 $ac_cs_success || { (exit 1); exit 1; }
34780fi
34781
John Criswell12399a12003-09-30 15:55:44 +000034782#
34783# CONFIG_SUBDIRS section.
34784#
34785if test "$no_recursion" != yes; then
34786
34787 # Remove --cache-file and --srcdir arguments so they do not pile up.
34788 ac_sub_configure_args=
34789 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034790 eval "set x $ac_configure_args"
34791 shift
34792 for ac_arg
34793 do
John Criswell12399a12003-09-30 15:55:44 +000034794 if test -n "$ac_prev"; then
34795 ac_prev=
34796 continue
34797 fi
34798 case $ac_arg in
34799 -cache-file | --cache-file | --cache-fil | --cache-fi \
34800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34801 ac_prev=cache_file ;;
34802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34804 | --c=*)
34805 ;;
34806 --config-cache | -C)
34807 ;;
34808 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34809 ac_prev=srcdir ;;
34810 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34811 ;;
34812 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34813 ac_prev=prefix ;;
34814 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034816 *)
34817 case $ac_arg in
34818 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34819 esac
34820 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034821 esac
34822 done
34823
34824 # Always prepend --prefix to ensure using the same prefix
34825 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034826 ac_arg="--prefix=$prefix"
34827 case $ac_arg in
34828 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34829 esac
34830 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034831
34832 ac_popdir=`pwd`
34833 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34834
34835 # Do not complain, so a configure script can configure whichever
34836 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034837 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034838
Reid Spencera773bd52006-08-04 18:18:08 +000034839 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34840 echo "$as_me:$LINENO: $ac_msg" >&5
34841 echo "$ac_msg" >&6
34842 { as_dir="$ac_dir"
34843 case $as_dir in #(
34844 -*) as_dir=./$as_dir;;
34845 esac
34846 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034847 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034848 while :; do
34849 case $as_dir in #(
34850 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34851 *) as_qdir=$as_dir;;
34852 esac
34853 as_dirs="'$as_qdir' $as_dirs"
34854 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034855$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034856 X"$as_dir" : 'X\(//\)[^/]' \| \
34857 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034859echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34861 s//\1/
34862 q
34863 }
34864 /^X\(\/\/\)[^/].*/{
34865 s//\1/
34866 q
34867 }
34868 /^X\(\/\/\)$/{
34869 s//\1/
34870 q
34871 }
34872 /^X\(\/\).*/{
34873 s//\1/
34874 q
34875 }
34876 s/.*/./; q'`
34877 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034878 done
Reid Spencera773bd52006-08-04 18:18:08 +000034879 test -z "$as_dirs" || eval "mkdir $as_dirs"
34880 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34881echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034882 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034883 ac_builddir=.
34884
Reid Spencera773bd52006-08-04 18:18:08 +000034885case "$ac_dir" in
34886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34887*)
John Criswell12399a12003-09-30 15:55:44 +000034888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034889 # A ".." for each directory in $ac_dir_suffix.
34890 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34891 case $ac_top_builddir_sub in
34892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34894 esac ;;
34895esac
34896ac_abs_top_builddir=$ac_pwd
34897ac_abs_builddir=$ac_pwd$ac_dir_suffix
34898# for backward compatibility:
34899ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034900
34901case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034902 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034903 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034904 ac_top_srcdir=$ac_top_builddir_sub
34905 ac_abs_top_srcdir=$ac_pwd ;;
34906 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034907 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034908 ac_top_srcdir=$srcdir
34909 ac_abs_top_srcdir=$srcdir ;;
34910 *) # Relative name.
34911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34912 ac_top_srcdir=$ac_top_build_prefix$srcdir
34913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034914esac
Reid Spencera773bd52006-08-04 18:18:08 +000034915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034916
34917
Reid Spencera773bd52006-08-04 18:18:08 +000034918 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034919
34920 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034921 if test -f "$ac_srcdir/configure.gnu"; then
34922 ac_sub_configure=$ac_srcdir/configure.gnu
34923 elif test -f "$ac_srcdir/configure"; then
34924 ac_sub_configure=$ac_srcdir/configure
34925 elif test -f "$ac_srcdir/configure.in"; then
34926 # This should be Cygnus configure.
34927 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034928 else
34929 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34930echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34931 ac_sub_configure=
34932 fi
34933
34934 # The recursion is here.
34935 if test -n "$ac_sub_configure"; then
34936 # Make the cache file name correct relative to the subdirectory.
34937 case $cache_file in
34938 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034939 *) # Relative name.
34940 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034941 esac
34942
Reid Spencera773bd52006-08-04 18:18:08 +000034943 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34944echo "$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 +000034945 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034946 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34947 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034948 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034949echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34950 { (exit 1); exit 1; }; }
34951 fi
34952
Reid Spencera773bd52006-08-04 18:18:08 +000034953 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034954 done
34955fi
34956
Brian Gaekef3b24102003-11-16 18:38:14 +000034957